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

:root {
  --teal:      #2DD4BF;
  --teal-dim:  #1a9e8f;
  --teal-glow: rgba(45,212,191,0.15);
  --navy:      #060C1A;
  --navy-mid:  #0B1528;
  --navy-card: #0e1a2e;
  --text:      #E8EEF8;
  --muted:     #7A90B8;
  --border:    rgba(45,212,191,0.14);
  --font-d:    'Syne', sans-serif;
  --font-m:    'DM Mono', monospace;
}

html { scroll-behavior: smooth; }
body { background: var(--navy); color: var(--text); font-family: var(--font-d); overflow-x: hidden; cursor: none; }

/* ── Cursor ── */
#cursor {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  width: 10px; height: 10px; background: var(--teal); border-radius: 50%;
  transform: translate(-50%,-50%); mix-blend-mode: screen;
  transition: width .2s, height .2s;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  width: 36px; height: 36px; border: 1px solid rgba(45,212,191,.45); border-radius: 50%;
  transform: translate(-50%,-50%); transition: width .3s, height .3s, border-color .3s;
}
body:has(a:hover) #cursor, body:has(button:hover) #cursor { width: 18px; height: 18px; }
body:has(a:hover) #cursor-ring { width: 52px; height: 52px; border-color: var(--teal); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--teal-dim); border-radius: 2px; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(6,12,26,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(45,212,191,0.4)); }
.nav-logo-text { font-size: 1.15rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1; }
.nav-center { display: flex; gap: 0; list-style: none; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-center a {
  font-family: var(--font-m); font-size: 0.75rem; color: var(--muted);
  text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.4rem 1.25rem; border: 1px solid transparent;
  transition: color .2s, border-color .2s, background .2s; display: block;
}
.nav-center a:hover { color: var(--teal); border-color: var(--border); background: rgba(45,212,191,0.05); }
.nav-cta {
  font-family: var(--font-m); font-size: 0.76rem; font-weight: 500;
  color: var(--navy); background: var(--teal);
  padding: 0.55rem 1.4rem; text-decoration: none; letter-spacing: 0.07em; text-transform: uppercase;
  transition: background .2s, box-shadow .2s; flex-shrink: 0; white-space: nowrap;
}
.nav-cta:hover { background: #3fe8d2; box-shadow: 0 0 22px 2px var(--teal-glow); }

/* ── Hero ── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-top: 80px; }
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-video-wrap video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-video-wrap video.loaded { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(6,12,26,0.60) 0%, rgba(6,12,26,0.50) 40%, rgba(6,12,26,0.78) 80%, var(--navy) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; opacity: 0.035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}
.hero-content { position: relative; z-index: 3; text-align: center; max-width: 860px; padding: 0 2rem; }
.hero-eyebrow {
  font-family: var(--font-m); font-size: 0.72rem; color: var(--teal);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.6rem;
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  opacity: 0; transform: translateY(18px); animation: fadeUp .8s .3s forwards;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--teal); opacity: 0.5; }
.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 6rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em;
  opacity: 0; transform: translateY(22px); animation: fadeUp .9s .5s forwards;
}
.hero-title .accent { color: var(--teal); }
.hero-title .outline { -webkit-text-stroke: 1.5px rgba(45,212,191,0.45); color: transparent; }
.hero-sub {
  margin-top: 1.75rem; font-family: var(--font-m); font-size: 0.95rem; font-weight: 300;
  color: var(--muted); line-height: 1.75; max-width: 520px; margin-inline: auto;
  opacity: 0; transform: translateY(18px); animation: fadeUp .9s .72s forwards;
}
.hero-actions {
  margin-top: 2.5rem; display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(18px); animation: fadeUp .9s .92s forwards;
}
.btn-primary {
  font-family: var(--font-m); font-size: 0.8rem; font-weight: 500;
  color: var(--navy); background: var(--teal); padding: 0.8rem 2rem;
  text-decoration: none; letter-spacing: 0.07em; text-transform: uppercase;
  transition: all .25s; box-shadow: 0 0 28px -6px var(--teal); display: inline-block;
}
.btn-primary:hover { background: #3fe8d2; transform: translateY(-2px); box-shadow: 0 8px 36px -4px var(--teal); }
.btn-ghost {
  font-family: var(--font-m); font-size: 0.8rem; font-weight: 400;
  color: var(--teal); background: transparent; border: 1px solid rgba(45,212,191,0.35);
  padding: 0.8rem 2rem; text-decoration: none; letter-spacing: 0.07em; text-transform: uppercase;
  transition: all .25s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-glow); transform: translateY(-2px); }
.hero-scroll {
  position: absolute; bottom: 2.25rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  opacity: 0; animation: fadeIn 1s 1.6s forwards;
}
.hero-scroll span { font-family: var(--font-m); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--teal), transparent); animation: scrollPulse 2.2s ease-in-out infinite; }

/* ── Ticker ── */
.ticker-wrap { overflow: hidden; background: rgba(45,212,191,0.05); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.7rem 0; position: relative; z-index: 10; }
.ticker { display: flex; gap: 3.5rem; width: max-content; animation: ticker 32s linear infinite; }
.ticker-item { font-family: var(--font-m); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.07em; white-space: nowrap; display: flex; align-items: center; gap: 0.45rem; }
.t-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); animation: blink 2.2s ease-in-out infinite; }
.t-up { color: var(--teal); }
.t-dn { color: #f87171; }

/* ── Layout ── */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 6.5rem 3rem; }
.section-label { font-family: var(--font-m); font-size: 0.68rem; color: var(--teal); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.section-label::before { content: '//'; opacity: 0.45; }
.section-title { font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.section-title .accent { color: var(--teal); }

/* ── Steps ── */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5px; margin-top: 3rem; }
.step { background: var(--navy-card); border: 1px solid var(--border); padding: 2.25rem 1.75rem; position: relative; overflow: hidden; transition: border-color .3s, transform .3s; opacity: 0; transform: translateY(28px); }
.step.visible { animation: fadeUp .7s forwards; }
.step:nth-child(2).visible { animation-delay: .1s; }
.step:nth-child(3).visible { animation-delay: .2s; }
.step::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--teal), transparent); opacity: 0; transition: opacity .3s; }
.step:hover { border-color: rgba(45,212,191,0.4); transform: translateY(-3px); }
.step:hover::after { opacity: 1; }
.step-num { font-family: var(--font-m); font-size: 3rem; font-weight: 500; color: rgba(45,212,191,0.08); line-height: 1; margin-bottom: 1.1rem; display: block; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.65rem; letter-spacing: -0.02em; }
.step p { font-family: var(--font-m); font-size: 0.8rem; color: var(--muted); line-height: 1.8; }

/* ── Features ── */
.features-bg { background: var(--navy-mid); }
.features-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; margin-top: 3rem; }
.feat { background: var(--navy-card); border: 1px solid var(--border); padding: 2rem; display: flex; gap: 1.1rem; align-items: flex-start; transition: border-color .3s, box-shadow .3s; opacity: 0; transform: translateY(22px); }
.feat.visible { animation: fadeUp .6s forwards; }
.feat:nth-child(2).visible { animation-delay: .08s; }
.feat:nth-child(3).visible { animation-delay: .14s; }
.feat:nth-child(4).visible { animation-delay: .2s; }
.feat:nth-child(5).visible { animation-delay: .26s; }
.feat:nth-child(6).visible { animation-delay: .32s; }
.feat:hover { border-color: rgba(45,212,191,0.38); box-shadow: 0 0 38px -12px var(--teal-glow); }
.feat-icon { width: 2.75rem; height: 2.75rem; border: 1px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--teal); transition: border-color .3s, background .3s; }
.feat:hover .feat-icon { border-color: var(--teal); background: var(--teal-glow); }
.feat h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.feat p { font-family: var(--font-m); font-size: 0.78rem; color: var(--muted); line-height: 1.82; }

/* ── Alert card ── */
.alert-wrap { max-width: 640px; margin: 2.75rem auto 0; }
.alert-card { background: var(--navy-card); border: 1px solid var(--border); font-family: var(--font-m); font-size: 0.76rem; opacity: 0; transform: translateY(20px); }
.alert-card.visible { animation: fadeUp .8s forwards; }
.alert-head { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); }
.alert-head-title { color: var(--text); letter-spacing: 0.06em; font-size: 0.72rem; text-transform: uppercase; }
.badge-row { display: flex; gap: 0.45rem; align-items: center; }
.badge { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border: 1px solid; }
.badge-high { color: #f87171; border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.08); }
.badge-platform { color: var(--teal); border-color: var(--border); background: rgba(45,212,191,0.07); }
.alert-body { padding: 0 1.25rem; }
.alert-row { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid rgba(45,212,191,0.06); gap: 1rem; }
.alert-row:last-child { border-bottom: none; }
.alert-key { color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.alert-val { color: var(--text); text-align: right; }
.alert-val.teal { color: var(--teal); }
.alert-val.red { color: #f87171; }
.alert-score { padding: 0.9rem 1.25rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.score-num { font-size: 1.4rem; font-weight: 700; color: var(--teal); letter-spacing: -0.03em; }
.pulse-wrap { display: flex; align-items: center; gap: 0.4rem; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #f87171; animation: pulseDot 1.5s ease-in-out infinite; }

/* ── Stats ── */
.stats-bg { background: var(--navy-mid); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5px; margin-top: 2.75rem; }
.stat { padding: 2.25rem 1.25rem; border: 1px solid var(--border); background: var(--navy-card); text-align: center; opacity: 0; transform: translateY(18px); }
.stat.visible { animation: fadeUp .6s forwards; }
.stat:nth-child(2).visible { animation-delay: .1s; }
.stat:nth-child(3).visible { animation-delay: .2s; }
.stat:nth-child(4).visible { animation-delay: .3s; }
.stat-val { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.04em; color: var(--teal); display: block; line-height: 1; margin-bottom: 0.45rem; }
.stat-lbl { font-family: var(--font-m); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Platforms ── */
.platform-row { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 2.25rem; }
.ptag { font-family: var(--font-m); font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border); padding: 0.4rem 0.95rem; letter-spacing: 0.07em; transition: all .2s; cursor: default; }
.ptag:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-glow); }

/* ── CTA ── */
.cta-wrap { text-align: center; padding: 7rem 3rem; background: linear-gradient(to bottom, var(--navy), var(--navy-mid)); position: relative; overflow: hidden; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 700px; height: 280px; background: radial-gradient(ellipse, rgba(45,212,191,0.09) 0%, transparent 70%); pointer-events: none; }
.cta-wrap h2 { font-size: clamp(1.9rem,3.8vw,3.25rem); font-weight: 800; letter-spacing: -0.04em; position: relative; z-index: 1; }
.cta-wrap p { font-family: var(--font-m); font-size: 0.88rem; color: var(--muted); margin: 0.9rem 0 2.25rem; position: relative; z-index: 1; }

/* ── Footer ── */
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 2rem 3rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.footer-logo img { width: 22px; height: 22px; object-fit: contain; }
.footer-logo span { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.footer-copy { font-family: var(--font-m); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; }

/* ── Animations ── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pulseDot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .5; } }


/* ─────────────────────────────────────────────────────────────────────────
   MOBILE — phone-sized viewports only. Desktop layout above is untouched.
   Primary target: iPhone 14 (390px). Minimum: iPhone SE (375px).
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

  /* Restore OS cursor — touch devices have no hover, and the JS fallback
     in main.js already handles this. CSS belt for older mobile browsers. */
  body { cursor: auto; }

  /* A1 — NAV: logo left, CTA right. Centered nav links removed entirely. */
  nav { padding: 0.75rem 1.25rem; }
  .nav-center { display: none; }
  .nav-logo img { width: 28px; height: 28px; }
  .nav-logo-text { font-size: 1rem; }
  .nav-cta { padding: 0.45rem 1rem; font-size: 0.7rem; }

  /* A2 — HERO: left-aligned content, vertically stacked CTAs. */
  .hero { padding: 80px 0 2rem; }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(6,12,26,0.72) 0%, rgba(6,12,26,0.62) 40%, rgba(6,12,26,0.85) 80%, var(--navy) 100%);
  }
  .hero-content { text-align: left; padding: 1.5rem; }
  .hero-eyebrow { justify-content: flex-start; font-size: 0.65rem; margin-bottom: 1.1rem; }
  .hero-eyebrow::before { display: none; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1.0; }
  .hero-sub {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 1.25rem;
    margin-inline: 0;
    max-width: none;
  }
  .hero-actions {
    margin-top: 1.75rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 0.85rem 1.25rem;
    min-height: 48px;
  }
  .hero-scroll { display: none; }

  /* A3 — TICKER stays as-is per spec. */

  /* Reduce section padding so content has room to breathe. */
  .section-inner { padding: 4rem 1.25rem; }

  /* A4 — HOW IT WORKS: single column. */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }
  .step { padding: 1.75rem 1.5rem; }

  /* A5 — FEATURES: single column. */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }
  .feat { padding: 1.5rem 1.25rem; }

  /* A6 — ALERT PREVIEW CARD: rows wrap to two lines on narrow widths. */
  .alert-wrap { padding: 0 1rem; max-width: 100%; }
  .alert-head { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.6rem; }
  .alert-head-title { font-size: 0.65rem; }
  .alert-body { padding: 0 1rem; }
  .alert-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.55rem 0;
  }
  .alert-key { font-size: 0.65rem; }
  .alert-val { text-align: left; font-size: 0.78rem; }
  .alert-score { padding: 0.85rem 1rem; }

  /* A7 — PLATFORM TAGS: already wrap; tighten gap on mobile. */
  .platform-row { gap: 0.5rem; margin-top: 1.5rem; }
  .ptag { padding: 0.35rem 0.75rem; font-size: 0.68rem; }

  /* A8 — STATS: 2×2 grid on mobile. */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 2rem;
  }
  .stat { padding: 1.5rem 0.75rem; }
  .stat-val { font-size: 1.85rem; }
  .stat-lbl { font-size: 0.6rem; }

  /* A9 — CTA: tighter padding, full-width button. */
  .cta-wrap { padding: 4rem 1.5rem; }
  .cta-wrap h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .cta-wrap p { font-size: 0.82rem; margin: 0.85rem 0 1.75rem; }
  .cta-wrap .btn-primary {
    width: 100%;
    box-sizing: border-box;
    padding: 0.9rem 1.25rem;
    min-height: 48px;
  }

  /* A10 — FOOTER: stack vertically, centered. */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.25rem;
  }
  .footer-copy { font-size: 0.65rem; }

  /* Section title scales down comfortably. */
  .section-title { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
  .section-label { font-size: 0.62rem; }
}


/* Small phones (≤400px) — drop stats to single column so values aren't cramped. */
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 1.25rem 0.75rem; }
  .stat-val { font-size: 2rem; }
}
