/* ============================================================
   Bocify — landing page (dark theme)
   Layout recreated from a reference landing structure,
   rebuilt from scratch with original code and Bocify branding.
   ============================================================ */

/* ============ Self-hosted Poppins (latin subset) ============ */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/poppins-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-700-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/poppins-800-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #8b5cf6;        /* violet accent, brightened for dark bg */
  --primary-dark: #7c3aed;   /* hover / saturated surfaces */
  --primary-soft: #a78bfa;   /* glows, numbers, map accents */
  --purple: #2c1a4d;         /* mid band */
  --purple-soft: #3a2760;    /* chips, raised purple surfaces */
  --bg: #0e0919;             /* page background */
  --band: #161028;           /* alternate band background */
  --surface: #1d1432;        /* cards, pills */
  --line: rgba(255, 255, 255, 0.08);
  --ink: #ece7f8;            /* main text */
  --muted: #a79fc2;          /* secondary text */
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #0e0919;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.overflow-hidden { overflow: hidden; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

/* ============ Brand logo ============ */

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-img {
  height: 30px;
  width: auto;
  display: block;
}

/* ============ Buttons ============ */

.btn {
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-md { font-size: 15px; padding: 10px 20px; }
.btn-lg { font-size: 16px; padding: 15px 34px; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 10px 24px rgba(124, 58, 237, 0.5); }

.btn-light {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
}

.icon { width: 20px; height: 20px; }
.icon-lg { width: 32px; height: 32px; }

/* ============ Highlight mark ============ */

.mark {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-style: italic;
  font-weight: 800;
  padding: 0.02em 0.3em 0.12em;
  transform: skew(-8deg);
  border-radius: 3px;
}

/* ============ Headers ============ */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.inner-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--primary-dark);
  transform: translateY(-100%);
  visibility: hidden;
  box-shadow: none;
  transition: transform 0.35s ease, visibility 0s 0.35s;
}

.fixed-header.visible {
  transform: translateY(0);
  visibility: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease;
}

.fixed-header-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right { display: flex; align-items: center; gap: 12px; }

/* ============ Hero ============ */

.hero {
  position: relative;
  padding-top: var(--header-h);
  padding-bottom: 130px;
  min-height: 640px;
  background: var(--bg);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, 46%) 1fr;
  align-items: center;
  min-height: 560px;
}

.hero-title {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
}

.hero-title .light { font-weight: 400; }

.hero-title em {
  font-style: italic;
  color: var(--primary-soft);
}

.hero-sub {
  margin: 22px 0 30px;
  font-size: 16px;
  font-weight: 600;
  max-width: 460px;
  color: var(--muted);
}

.hero-art {
  position: absolute;
  top: 30px;
  bottom: 110px;
  right: 0;
  width: 58%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%);
  mask-image: linear-gradient(to right, transparent 0, #000 18%);
}

.hero-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* animated equalizer bars in the phone mockup */
.eq-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: eq 0.9s ease-in-out infinite alternate;
}

.eq-bar:nth-of-type(2) { animation-delay: 0.12s; }
.eq-bar:nth-of-type(3) { animation-delay: 0.24s; }
.eq-bar:nth-of-type(4) { animation-delay: 0.06s; }
.eq-bar:nth-of-type(5) { animation-delay: 0.3s; }
.eq-bar:nth-of-type(6) { animation-delay: 0.18s; }
.eq-bar:nth-of-type(7) { animation-delay: 0.09s; }
.eq-bar:nth-of-type(8) { animation-delay: 0.27s; }

@keyframes eq {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}

/* floating topic chips around the phone */
.float-chip { animation: floaty 4s ease-in-out infinite alternate; }
.float-b { animation-duration: 5s; animation-delay: 0.8s; }
.float-c { animation-duration: 4.5s; animation-delay: 1.6s; }

@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

/* ============ Bands (diagonal sections) ============ */

.band { position: relative; }

.band > .container { position: relative; z-index: 2; }

.band--gray {
  padding: 40px 0 110px;
  margin-top: -60px;
}

.band--gray::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--band);
  transform: skewY(-3deg);
  transform-origin: top right;
  z-index: 0;
}

.band--dark {
  padding: 150px 0 220px;
  margin-top: -40px;
  color: var(--white);
}

.band--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--purple);
  transform: skewY(3deg);
  z-index: 0;
}

.band--light {
  padding: 0 0 90px;
  background: var(--band);
}

.band--white {
  background: var(--bg);
}

/* ============ Features strip card ============ */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.features-card {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 30px 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.feature-item strong { color: var(--white); }

.feature-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.14);
  color: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Caret ============ */

.caret {
  display: flex;
  justify-content: center;
  margin: 36px 0 10px;
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============ Integrate / download section ============ */

.integrate { text-align: center; padding-top: 40px; }

.section-title {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
}

.section-sub {
  margin: 26px auto 34px;
  font-size: 15px;
  font-weight: 600;
  max-width: 640px;
  color: var(--muted);
}

/* ============ App store badge links ============ */

.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-buttons--center { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #241940;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 12px 22px;
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:visited { color: var(--white); }

.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary-soft);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.3);
}

.store-icon { width: 26px; height: 26px; flex: 0 0 auto; }

.store-btn span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-btn small { font-size: 11px; font-weight: 500; color: var(--muted); }
.store-btn strong { font-size: 16px; font-weight: 700; }

/* ============ Dark control section ============ */

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 34px;
  align-items: start;
}

.control-title {
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  align-self: center;
}

.control-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  padding: 64px 28px 40px;
  font-weight: 600;
  font-size: 16px;
  min-height: 210px;
}

.control-icon {
  position: absolute;
  top: -24px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
}

/* ============ Stats card ============ */

.stats-card {
  position: relative;
  z-index: 3;
  margin-top: -140px;
  padding: 44px 56px 40px;
  text-align: left;
}

.stats-title {
  text-align: center;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  margin-bottom: 36px;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  color: var(--primary-soft);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
}

.stat strong { font-size: 14px; margin-top: 2px; color: var(--white); }
.stat small { font-size: 13px; color: var(--muted); }

/* ============ Topics ============ */

.clients { padding: 90px 0 40px; text-align: center; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 50px 0 44px;
}

.client-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(139, 92, 246, 0.45);
}

.topic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.topic-emoji { font-size: 24px; }

/* ============ Moments / coverage ============ */

.coverage { padding: 60px 0 20px; text-align: center; }

.coverage .section-title strong { font-weight: 800; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 760px;
  margin: 36px auto 30px;
}

.chip {
  background: var(--purple-soft);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 40px;
}

.chip--outline {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.coverage-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

/* ============ FAQ ============ */

.faq-band { padding-top: 70px; }

.faq { text-align: center; }

.faq-list {
  margin: 34px auto 0;
  max-width: 760px;
  text-align: left;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 24px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 30px 20px 0;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--primary-soft);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 0 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ============ Final CTA ============ */

.final-cta {
  padding: 130px 0 90px;
  margin-top: -50px;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: skewY(-2.5deg);
  z-index: 0;
}

.final-title {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 32px;
  color: var(--white);
}

.final-title strong { font-weight: 800; }

/* ============ Footer ============ */

.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 56px 0 70px;
}

.footer-links {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.footer-links a:hover { text-decoration: underline; }

.footer-copy {
  margin-top: 34px;
  font-size: 13px;
  opacity: 0.85;
}

/* ============ Scroll reveal (AOS-style) ============ */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
  .eq-bar { animation: none; }
  .float-chip { animation: none; }
}

/* ============ Responsive ============ */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; }
  .hero { min-height: 0; padding-bottom: 420px; }
  .hero-art {
    width: 100%;
    height: 300px;
    top: auto;
    bottom: 90px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 25%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 25%);
  }
  .features-card { grid-template-columns: 1fr; margin-top: 0; }
  .control-grid { grid-template-columns: repeat(2, 1fr); }
  .control-title { grid-column: 1 / -1; text-align: center; }
  .stats-card { margin-top: -40px; padding-top: 40px; }
  .band--light { padding-top: 90px; }
  .band--dark { padding-bottom: 81px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .control-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .stats-card { padding: 36px 24px; }
  .nav-right .btn-light { display: none; }
  .platform-pill { padding: 14px 30px; }
}
