/* ═══════════════════════════════════════════════════════════════
   StripVision Marketing Site — Aurora Design System (web)
   Cinematic dark mode, editorial type, single fusion-gradient CTA.
   Token reference lives in /AURORA.md at the repo root.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Aurora colour palette */
  --bg-base: #05080F;
  --bg-elevated: #0A1228;
  --bg-card: #121A30;
  --bg-card-elevated: #18213A;

  --fg-primary: #FAFBFF;
  --fg-secondary: #C6CCDC;
  --fg-muted: #8890A6;
  --fg-inverse: #05080F;

  --accent-lime: #E5FF5C;
  --accent-mint: #9AF7C8;
  --accent-cyan: #5CF0FF;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(154, 247, 200, 0.28);

  --fusion-gradient: linear-gradient(90deg, #E5FF5C 0%, #9AF7C8 50%, #5CF0FF 100%);

  /* Type families */
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing scale (matches mobile token: 0,4,8,12,16,20,24,32,40,48,64,80,96) */
  --s4: 4px;   --s8: 8px;   --s12: 12px; --s16: 16px;
  --s24: 24px; --s32: 32px; --s40: 40px; --s48: 48px;
  --s64: 64px; --s80: 80px; --s96: 96px; --s120: 120px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--fg-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

/* ───────────────────────────────────────────────
   Aurora background — fixed, cinematic depth.
   Stacks 5 radial blooms over a vertical linear
   gradient. Foreground scrolls; lights stay still.
   ─────────────────────────────────────────────── */
.aurora-bg {
  position: fixed;
  inset: -8%;
  z-index: -1;
  background:
    radial-gradient(ellipse 140% 140% at 50% 50%,
      rgba(10, 18, 40, 0.55) 0%, rgba(5, 8, 15, 0) 75%),
    radial-gradient(80% 80% at 12% 112%,
      rgba(229, 255, 92, 0.18) 0%, rgba(229, 255, 92, 0) 62%),
    radial-gradient(70% 70% at 95% 105%,
      rgba(92, 240, 255, 0.22) 0%, rgba(92, 240, 255, 0) 58%),
    radial-gradient(110% 110% at 88% -10%,
      rgba(92, 240, 255, 0.32) 0%, rgba(92, 240, 255, 0) 64%),
    radial-gradient(90% 90% at 18% -5%,
      rgba(229, 255, 92, 0.24) 0%, rgba(229, 255, 92, 0) 62%),
    linear-gradient(180deg, #05080F 0%, #070B1A 40%, #0A1228 100%);
  /* Ambient drift — extremely slow, low amplitude. Adds the "alive"
     feeling without being a parallax distraction. The 8% inset gives
     the animation room to translate without exposing edges. */
  animation: auroraDrift 28s ease-in-out infinite;
}
@keyframes auroraDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(1.4%, -0.8%, 0) scale(1.012); }
  66%      { transform: translate3d(-1.2%, 0.6%, 0) scale(1.008); }
}

/* ───────────────────────────────────────────────
   Top nav — sits above the hero, glass-like.
   ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s24);
  padding: var(--s16) var(--s32);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5, 8, 15, 0.55);
  border-bottom: 1px solid var(--border-subtle);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s12);
  text-decoration: none;
  color: var(--fg-primary);
}
.brand-mark { width: 22px; height: 22px; }
.brand-name {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.6px;
  color: var(--fg-primary);
}
.nav-links {
  display: flex;
  gap: var(--s24);
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--fg-primary); }
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s16);
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
}
.lang-opt {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.18s ease;
  padding: 2px 0;
}
.lang-opt:hover { color: var(--fg-primary); }
.lang-opt.is-active { color: var(--accent-mint); }
.lang-sep { color: rgba(255, 255, 255, 0.18); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s8);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-mint);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-cta:hover { background: rgba(154, 247, 200, 0.08); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { padding: var(--s12) var(--s20); }
}

/* ───────────────────────────────────────────────
   Common — meta labels (instrument metadata).
   ─────────────────────────────────────────────── */
.meta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.display, .display-lg, .display-md {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--fg-primary);
  letter-spacing: -0.04em;
}
.display em, .display-lg em, .display-md em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-mint);
}
.display { font-size: clamp(56px, 9vw, 120px); line-height: 0.96; }
.display-lg { font-size: clamp(40px, 6vw, 80px); line-height: 1; }
.display-md { font-size: clamp(28px, 4.4vw, 56px); line-height: 1.05; }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s24);
}

/* ───────────────────────────────────────────────
   Hero — establish the editorial tone.
   ─────────────────────────────────────────────── */
.hero {
  /* Tightened from 120px → 48px top so the headline sits closer to
     the navbar (user feedback: "navbar'a yaklaştır çok boşluk var"). */
  padding: var(--s48) 0 var(--s96);
  position: relative;
}
.hero-meta { margin-bottom: var(--s16); color: var(--accent-mint); }
.lede {
  margin-top: var(--s32);
  max-width: 620px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--fg-secondary);
  font-weight: 400;
}
.lede strong {
  color: var(--fg-primary);
  font-weight: 600;
}
.cta-row {
  margin-top: var(--s40);
  display: flex;
  align-items: center;
  gap: var(--s24);
  flex-wrap: wrap;
}
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s16);
  height: 64px;
  padding: 0 22px 0 26px;
  border-radius: 999px;
  background: var(--fusion-gradient);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: var(--fg-inverse);
  text-decoration: none;
  box-shadow: 0 18px 36px -16px rgba(92, 240, 255, 0.5);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.22s ease,
              background-position 0.6s ease;
  position: relative;
  overflow: hidden;
}
.cta-pill::after {
  /* Glossy highlight that sweeps left→right on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.cta-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 52px -16px rgba(92, 240, 255, 0.7);
  background-position: 100% 50%;
}
.cta-pill:hover::after {
  transform: translateX(100%);
}
.cta-stack { display: flex; flex-direction: column; align-items: flex-start; }
.cta-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.cta-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.4px;
  color: rgba(5, 8, 15, 0.55);
  margin-top: 2px;
}
.cta-ghost {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.cta-ghost:hover {
  color: var(--accent-mint);
  border-color: var(--accent-mint);
}

/* Spec strip — instrument metadata. Redesigned to read like a single
   editorial unit instead of a grid of boxes. Hairline dividers
   between cells; values left-aligned and baseline-aligned across
   all four cells regardless of label length. */
.spec-strip {
  margin-top: var(--s40);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  max-width: 640px;
  background: rgba(10, 18, 40, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.spec-strip > div {
  padding: var(--s16) var(--s20);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border-subtle);
  min-height: 76px;
  justify-content: center;
}
.spec-strip > div:last-child { border-right: 0; }
.spec-strip > div .meta {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spec-strip .num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--fg-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
@media (max-width: 720px) {
  .spec-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: var(--s32);
  }
  .spec-strip > div { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .spec-strip > div:nth-child(odd) { border-right: 1px solid var(--border-subtle); }
  .spec-strip > div:nth-child(n+3) { border-bottom: 0; }
}

/* ───────────────────────────────────────────────
   Hero 2-column grid — text left, device right.
   Falls to single column on tablets so the device
   stacks below the CTA + spec strip.
   ─────────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s64);
  /* Top-align so the headline sits right under the navbar instead of
     centring against the device's full height. Without this, a 575 px
     device pushes the text down ~80 px from the top. */
  align-items: start;
}
.hero-text { min-width: 0; }
.hero-device-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s48); }
  .hero-device-wrap { order: -1; }
}

/* ───────────────────────────────────────────────
   Device frame — single CSS, reused across hero
   and triptych. The frame is a thick rounded body
   in near-black with a thin highlight border; the
   screen sits inside with its own clip path.
   ─────────────────────────────────────────────── */
.device {
  position: relative;
  width: 280px;
  height: 575px;
  border-radius: 44px;
  background: #04060B;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 60px 80px -30px rgba(5, 8, 15, 0.85),
    0 30px 60px -20px rgba(92, 240, 255, 0.18);
  padding: 8px;
  flex: 0 0 auto;
}
.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #05080F 0%, #0A1228 100%);
}
.device-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: 999px;
  background: #000;
  z-index: 6;
}
.device-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 18% -10%, rgba(229, 255, 92, 0.18) 0%, transparent 60%),
    radial-gradient(80% 60% at 92% -10%, rgba(92, 240, 255, 0.22) 0%, transparent 60%),
    radial-gradient(70% 50% at 50% 110%, rgba(92, 240, 255, 0.12) 0%, transparent 60%);
}
/* Bloom under the device — looks like the screen is the light source.
   Sized larger than the device so it bleeds beyond the bezel. */
.device-bloom {
  position: absolute;
  inset: -50px -60px -40px -60px;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 60%, rgba(92, 240, 255, 0.28) 0%, transparent 55%),
    radial-gradient(70% 60% at 30% 30%, rgba(229, 255, 92, 0.18) 0%, transparent 60%);
  filter: blur(20px);
  z-index: -1;
}

.device--hero {
  /* Static — no float, no parallax. The user's feedback was that
     hero motion competed with reading; the surrounding aurora drift +
     bloom is enough atmosphere on its own. The device sits in a
     fixed editorial pose. */
  transform: rotateY(-6deg) rotateX(2deg);
  transform-origin: 50% 50%;
}
.device--tilt-left { transform: rotate(-6deg); }
.device--tilt-right { transform: rotate(6deg); }
.device--centre {
  transform: rotate(0) translateY(-12px) scale(1.04);
  z-index: 2;
  animation: centrePulse 4s ease-in-out infinite;
}
@keyframes centrePulse {
  0%, 100% { transform: rotate(0) translateY(-12px) scale(1.04);
             box-shadow:
               inset 0 0 0 1px rgba(255,255,255,0.04),
               0 1px 0 rgba(255,255,255,0.08),
               0 60px 80px -30px rgba(5,8,15,0.85),
               0 30px 60px -20px rgba(92,240,255,0.18); }
  50%      { transform: rotate(0) translateY(-15px) scale(1.045);
             box-shadow:
               inset 0 0 0 1px rgba(255,255,255,0.06),
               0 1px 0 rgba(255,255,255,0.12),
               0 70px 90px -30px rgba(5,8,15,0.9),
               0 36px 72px -20px rgba(92,240,255,0.32); }
}

/* ───────────────────────────────────────────────
   Triptych — three devices, fan layout.
   ─────────────────────────────────────────────── */
.triptych {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s32);
  margin: var(--s48) 0 var(--s64);
  padding: var(--s32) 0;
  position: relative;
}
.triptych::before {
  /* Soft bloom under the centre device anchoring the trio */
  content: "";
  position: absolute;
  left: 50%;
  bottom: var(--s24);
  transform: translateX(-50%);
  width: 60%;
  height: 80px;
  background: radial-gradient(60% 100% at 50% 50%, rgba(92, 240, 255, 0.18) 0%, transparent 70%);
  filter: blur(24px);
  z-index: 0;
}
.device--triptych { width: 240px; height: 494px; }
.device--triptych .device-screen { border-radius: 32px; }
.device--triptych .device-notch { width: 80px; height: 18px; top: 12px; }
@media (max-width: 980px) {
  .triptych {
    flex-direction: column;
    gap: var(--s40);
  }
  .device--tilt-left, .device--tilt-right, .device--centre {
    transform: none;
  }
}

/* ───────────────────────────────────────────────
   Screen — base + content variants. All sizes are
   fixed (not responsive) because the device frame
   is a fixed canvas. Internal type uses the same
   Aurora tokens as the real app.
   ─────────────────────────────────────────────── */
.screen {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 38px 16px 16px;
  display: flex;
  flex-direction: column;
  color: var(--fg-primary);
  overflow: hidden;
}
.screen-meta-mini, .meta-tag {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.meta-tag.mint, .screen-meta-mini.mint { color: var(--accent-mint); }
.meta-tag.dimmer { opacity: 0.55; }

/* HOME mock */
.screen--home { gap: 8px; }
.screen-topstrip {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.screen-brand { display: inline-flex; align-items: center; gap: 6px; }
.brand-mark-mini { width: 12px; height: 12px; }
.screen-brandname {
  font-family: var(--mono); font-size: 8px; letter-spacing: 1.2px;
  color: var(--fg-primary);
}
.screen-context {
  font-family: var(--mono); font-size: 7.5px; letter-spacing: 1.2px;
  color: var(--accent-mint); margin-top: 6px;
}
.screen-hero {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--fg-primary);
  margin-top: 4px;
  margin-bottom: 4px;
}
.screen-hero em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-mint);
}
.screen-sub {
  font-size: 9px;
  color: var(--fg-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}
.screen-quota {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: rgba(18, 26, 48, 0.5);
}
.screen-tier {
  font-family: var(--mono); font-size: 8px; letter-spacing: 1.2px;
  color: var(--accent-cyan);
}
.screen-slots {
  display: flex; gap: 2px; flex: 1;
}
.slot {
  width: 4px; height: 6px; border-radius: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.slot.on { background: var(--accent-cyan); }
.screen-frac {
  font-family: var(--mono); font-size: 9px; color: var(--fg-primary);
}

.screen-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(18, 26, 48, 0.55);
}
.screen-card--muted { opacity: 0.78; }
.screen-band {
  width: 4px;
  align-self: stretch;
  border-radius: 2px;
  background: var(--accent-mint);
}
.screen-band--warn { background: #FFB020; }
.screen-card-body { flex: 1; }
.screen-card-name {
  font-family: var(--serif); font-size: 13px; font-weight: 500;
  color: var(--fg-primary); letter-spacing: -0.01em;
}
.screen-card-row { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.screen-card-val {
  font-family: var(--mono); font-size: 16px; font-weight: 500;
  color: var(--fg-primary); letter-spacing: -0.02em;
}
.screen-card-unit {
  font-family: var(--mono); font-size: 8px; color: var(--fg-muted);
}
.screen-status {
  font-family: var(--mono); font-size: 7.5px; letter-spacing: 1.2px;
  padding: 3px 6px; border-radius: 4px;
  background: rgba(154, 247, 200, 0.16);
  color: var(--accent-mint);
  border: 1px solid rgba(154, 247, 200, 0.3);
}
.screen-status--watch {
  background: rgba(255, 176, 32, 0.16);
  color: #FFB020;
  border-color: rgba(255, 176, 32, 0.3);
}
.screen-fab {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: space-between;
  height: 38px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  background: var(--fusion-gradient);
  color: var(--fg-inverse);
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  box-shadow: 0 8px 18px -8px rgba(92, 240, 255, 0.45);
}

/* CAPTURE mock */
.screen--capture {
  padding: 30px 12px 14px;
  align-items: center; justify-content: center;
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(0, 0, 0, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #06080E 0%, #0A1228 100%);
  gap: 14px;
}
.capture-frame {
  position: relative;
  width: 180px; height: 240px;
  border-radius: 16px;
  background:
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 6px,
      transparent 6px,
      transparent 12px);
  display: flex; align-items: center; justify-content: center;
}
.capture-corner {
  position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--accent-mint);
}
.capture-corner.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.capture-corner.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.capture-corner.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.capture-corner.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.capture-strip {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px;
  background: rgba(0, 0, 0, 0.4); border-radius: 4px;
}
.capture-strip span {
  width: 22px; height: 36px; border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.capture-ring {
  position: relative; display: flex; align-items: center; justify-content: center;
}
/* Capture ring breathing — the steady-hold ring fills back and forth
   so the device looks like it's actively waiting for a stable shot. */
.capture-ring svg circle:nth-of-type(2) {
  animation: captureBreathe 2.6s ease-in-out infinite;
}
@keyframes captureBreathe {
  0%, 100% { stroke-dashoffset: 200; }
  50%      { stroke-dashoffset: 30; }
}
.capture-ring-label {
  position: absolute;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--accent-mint);
}
.capture-meta {
  font-family: var(--mono); font-size: 8px; letter-spacing: 1.4px;
  color: var(--fg-muted);
}
.capture-status {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  color: var(--fg-primary); text-align: center;
}

/* ANALYZE mock — centre device, show the work */
.screen--analyze {
  padding: 32px 14px 18px;
  gap: 16px;
  align-items: center;
}
.analyze-ring {
  position: relative; display: flex; align-items: center; justify-content: center;
  margin: 8px 0 4px;
}
/* Analyze ring slowly rotates — gradient strokes drift around the
   centre numeral, conveying live computation. Linear timing so the
   motion never feels mechanical. */
.analyze-ring svg {
  animation: analyzeSpin 14s linear infinite;
}
@keyframes analyzeSpin {
  to { transform: rotate(360deg); }
}
.analyze-ring-centre {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.analyze-num {
  font-family: var(--mono); font-size: 56px; font-weight: 500;
  color: var(--fg-primary); letter-spacing: -0.04em; line-height: 1;
}
.analyze-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(18, 26, 48, 0.5);
}
.analyze-row > span {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
}
.analyze-row strong {
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--fg-primary);
}

/* RESULT mock — final deliverable */
.screen--result {
  padding: 32px 14px 16px;
  gap: 8px;
}
.result-top {
  display: flex; align-items: center; justify-content: space-between;
}
.knockout {
  font-family: var(--mono); font-size: 8px; font-weight: 500;
  letter-spacing: 1.4px;
  padding: 3px 6px;
  border: 1px solid var(--accent-cyan);
  border-radius: 4px;
  color: var(--accent-cyan);
}
.result-value { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.result-num {
  font-family: var(--serif);
  font-size: 56px; font-weight: 500;
  color: var(--fg-primary); letter-spacing: -0.04em; line-height: 1;
}
.result-unit {
  font-family: var(--mono); font-size: 12px; color: var(--fg-muted);
}
.result-status {
  display: inline-block;
  font-family: var(--mono); font-size: 8px; letter-spacing: 1.4px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(154, 247, 200, 0.16);
  color: var(--accent-mint);
  border: 1px solid rgba(154, 247, 200, 0.3);
  align-self: flex-start;
}
.result-cross {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(18, 26, 48, 0.55);
  border: 1px solid var(--border-subtle);
}
.result-cross > div { display: flex; flex-direction: column; gap: 2px; }
.result-cross strong {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--fg-primary);
}
.result-cross strong.mint { color: var(--accent-mint); }
.result-grid {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.result-grid > div {
  background: rgba(10, 18, 40, 0.5);
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.result-grid strong {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--fg-primary);
}

.scroll-cue {
  position: absolute;
  bottom: var(--s32);
  right: var(--s24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: cueFloat 2.8s ease-in-out infinite;
}
@keyframes cueFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 0.9; }
}
@media (max-width: 720px) { .scroll-cue { display: none; } }

/* ───────────────────────────────────────────────
   Use cases strip
   ─────────────────────────────────────────────── */
.use-cases {
  padding: var(--s80) 0 var(--s64);
  border-top: 1px solid var(--border-subtle);
}
.use-grid {
  margin-top: var(--s32);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s16);
}
.use-card {
  padding: var(--s24);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: rgba(10, 18, 40, 0.32);
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}
.use-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  background: rgba(18, 26, 48, 0.45);
}
.use-icon {
  display: block;
  font-size: 24px;
  color: var(--accent-mint);
  margin-bottom: var(--s16);
  font-weight: 300;
}
.use-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg-primary);
  margin-bottom: var(--s8);
}
.use-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
}
@media (max-width: 900px) {
  .use-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .use-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────
   How — three-step pipeline
   ─────────────────────────────────────────────── */
.how {
  padding: var(--s120) 0 var(--s96);
  border-top: 1px solid var(--border-subtle);
}
.how .display-md { margin-top: var(--s16); margin-bottom: var(--s64); max-width: 760px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s24);
}
.step {
  position: relative;
  padding: var(--s32);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 26, 48, 0.55) 0%, rgba(10, 18, 40, 0.4) 100%);
  display: flex;
  flex-direction: column;
  gap: var(--s16);
  min-height: 280px;
}
.step-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.4px;
  color: var(--accent-mint);
}
.step h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--fg-primary);
  letter-spacing: -0.02em;
}
.step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-secondary);
}
.step strong {
  color: var(--fg-primary);
  font-weight: 600;
}
.step-meta {
  margin-top: auto;
  color: var(--fg-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--s16);
}
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────
   Science / pillars
   ─────────────────────────────────────────────── */
.science {
  padding: var(--s120) 0 var(--s96);
  border-top: 1px solid var(--border-subtle);
}
.science .display-md { margin-top: var(--s16); margin-bottom: var(--s64); max-width: 880px; }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s24);
}
.pillar {
  padding: var(--s32);
  border-radius: 22px;
  background: rgba(18, 26, 48, 0.55);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--s12);
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--fg-primary);
  letter-spacing: -0.02em;
}
.pillar p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-secondary);
}
.pillar strong { color: var(--fg-primary); font-weight: 600; }
.pillar .meta {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--s16);
}
@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────
   Pricing
   ─────────────────────────────────────────────── */
.pricing {
  padding: var(--s120) 0 var(--s96);
  border-top: 1px solid var(--border-subtle);
}
.pricing .display-md { margin-top: var(--s16); margin-bottom: var(--s64); max-width: 880px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s24);
}
.price-card {
  position: relative;
  padding: var(--s32);
  border-radius: 24px;
  background: rgba(18, 26, 48, 0.62);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--s16);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.price-card:hover { transform: translateY(-3px); }
.price-card--featured {
  border-color: var(--border-accent);
  box-shadow: 0 32px 80px -32px rgba(92, 240, 255, 0.25);
  background: linear-gradient(180deg, rgba(28, 40, 76, 0.7) 0%, rgba(18, 26, 48, 0.7) 100%);
}
.ribbon {
  position: absolute;
  top: -12px;
  left: var(--s24);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--fusion-gradient);
  color: var(--fg-inverse);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
}
.price-head h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--fg-primary);
  margin-top: 4px;
}
.price-body { display: flex; align-items: baseline; gap: 6px; margin-top: var(--s8); }
.price-num {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 500;
  color: var(--fg-primary);
  letter-spacing: -0.04em;
}
.price-cadence {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-muted);
}
.price-aside {
  font-size: 12px;
  color: var(--fg-muted);
}
.price-aside strong { color: var(--accent-mint); font-weight: 600; }
.price-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s8);
  padding-top: var(--s16);
  border-top: 1px solid var(--border-subtle);
}
.price-feats li {
  font-size: 14px;
  color: var(--fg-secondary);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-feats li::before {
  content: "+";
  color: var(--accent-mint);
  font-family: var(--mono);
  font-size: 12px;
}
.price-feats li span:first-child {
  font-family: var(--mono);
  color: var(--fg-primary);
  font-weight: 500;
}
.price-cta {
  margin-top: var(--s16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--fg-primary);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.price-cta:hover {
  background: rgba(154, 247, 200, 0.08);
  border-color: var(--border-accent);
}
.price-cta--primary {
  background: var(--fusion-gradient);
  color: var(--fg-inverse);
  border-color: transparent;
}
.price-cta--primary:hover { background: var(--fusion-gradient); }

.price-fineprint {
  text-align: center;
  margin-top: var(--s48);
  font-size: 9px;
  color: var(--fg-muted);
}
@media (max-width: 980px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────
   Trust strip
   ─────────────────────────────────────────────── */
.trust {
  padding: var(--s64) 0;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s24);
}
.trust-card {
  padding: var(--s24);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: rgba(18, 26, 48, 0.4);
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(154, 247, 200, 0.12);
  color: var(--accent-mint);
  font-size: 14px;
  margin-bottom: var(--s12);
}
.trust-card h4 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-primary);
  margin-bottom: 6px;
}
.trust-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-muted);
}
@media (max-width: 900px) {
  .trust { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────
   FAQ
   ─────────────────────────────────────────────── */
.faq {
  padding: var(--s120) 0 var(--s96);
  border-top: 1px solid var(--border-subtle);
}
.faq .display-md { margin: var(--s16) 0 var(--s48); }
.faq details {
  border-top: 1px solid var(--border-subtle);
  padding: var(--s24) 0;
  cursor: pointer;
}
.faq details:last-of-type { border-bottom: 1px solid var(--border-subtle); }
.faq summary {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent-mint);
  font-weight: 400;
  transition: transform 0.22s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: var(--s16);
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-secondary);
  max-width: 820px;
}
.faq details a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}

/* ───────────────────────────────────────────────
   Finale CTA
   ─────────────────────────────────────────────── */
.finale {
  padding: var(--s120) 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}
.finale .display-lg { margin-bottom: var(--s24); }
.finale .cta-pill { margin-top: var(--s32); }

/* ───────────────────────────────────────────────
   Footer
   ─────────────────────────────────────────────── */
.footer {
  padding: var(--s48) 0 var(--s64);
  border-top: 1px solid var(--border-subtle);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s24);
  margin-bottom: var(--s32);
}
.footer-links {
  display: flex;
  gap: var(--s24);
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-links a:hover { color: var(--accent-mint); }
.copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--fg-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--s24);
}

/* ───────────────────────────────────────────────
   Reveal-on-scroll — used by the intersection
   observer at the bottom of index.html. Sections
   start translated + faded; class .reveal lifts
   them into place. Subtle, premium, never noisy.
   ─────────────────────────────────────────────── */
section, .price-card, .step, .pillar, .use-card, .trust-card {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
/* Stagger — when a parent reveals, its children appear in sequence
   with an 80ms increment. The transition delay is set per child via
   nth-of-type so we don't need extra JS. */
.price-grid > .price-card:nth-child(1) { transition-delay: 0.0s; }
.price-grid > .price-card:nth-child(2) { transition-delay: 0.08s; }
.price-grid > .price-card:nth-child(3) { transition-delay: 0.16s; }

.use-grid > .use-card:nth-child(1) { transition-delay: 0.0s; }
.use-grid > .use-card:nth-child(2) { transition-delay: 0.06s; }
.use-grid > .use-card:nth-child(3) { transition-delay: 0.12s; }
.use-grid > .use-card:nth-child(4) { transition-delay: 0.18s; }

.how-grid > .step:nth-child(1) { transition-delay: 0.0s; }
.how-grid > .step:nth-child(2) { transition-delay: 0.10s; }
.how-grid > .step:nth-child(3) { transition-delay: 0.20s; }

.pillar-grid > .pillar:nth-child(1) { transition-delay: 0.0s; }
.pillar-grid > .pillar:nth-child(2) { transition-delay: 0.08s; }
.pillar-grid > .pillar:nth-child(3) { transition-delay: 0.16s; }

.trust > .trust-card:nth-child(1) { transition-delay: 0.0s; }
.trust > .trust-card:nth-child(2) { transition-delay: 0.08s; }
.trust > .trust-card:nth-child(3) { transition-delay: 0.16s; }

/* Brand mark idle — gentle pulse on the III bars so the logo
   reads as a "live signal" rather than a static mark. */
.brand-mark rect:nth-of-type(2),
.brand-mark rect:nth-of-type(3),
.brand-mark rect:nth-of-type(4) {
  animation: brandPulse 4s ease-in-out infinite;
}
.brand-mark rect:nth-of-type(3) { animation-delay: 0.4s; }
.brand-mark rect:nth-of-type(4) { animation-delay: 0.8s; }
@keyframes brandPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
/* The hero must show without scrolling, so reveal it on first paint. */
.hero { opacity: 1; transform: none; transition: none; }

/* ───────────────────────────────────────────────
   TOS / Privacy doc styles — share the Aurora
   background + type with the landing. Two layouts
   are used: .doc-page (newer) and .page-header /
   plain section (older legal docs); both keep
   the same editorial weight.
   ─────────────────────────────────────────────── */
.doc-page,
body > main:has(> .page-header) {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s64) var(--s24) var(--s96);
}
.page-header {
  margin-bottom: var(--s48);
}
.page-header .back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: var(--s24);
  transition: color 0.18s ease;
}
.page-header .back:hover { color: var(--accent-mint); }
.page-header h1,
.doc-page h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--s12);
}
.page-header .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--fg-muted);
}
body > main h2,
.doc-page h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: var(--s48) 0 var(--s16);
  color: var(--fg-primary);
}
body > main h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  margin: var(--s24) 0 var(--s8);
  color: var(--fg-primary);
}
body > main section p,
body > main section li,
.doc-page p, .doc-page li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-secondary);
  margin-bottom: var(--s12);
}
body > main section ul,
body > main section ol,
.doc-page ul, .doc-page ol {
  padding-left: var(--s24);
  margin-bottom: var(--s16);
}
body > main section li { margin-bottom: 6px; }
body > main a,
.doc-page a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.18s ease, border-color 0.18s ease;
}
body > main a:hover { color: var(--accent-mint); border-color: var(--accent-mint); }
.disclaimer {
  border-left: 3px solid var(--accent-mint);
  padding-left: var(--s16);
  margin-left: -16px;
}
.disclaimer h2 { color: var(--accent-mint); }
table.spec {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--s16);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 18, 40, 0.32);
}
table.spec td {
  padding: var(--s12) var(--s16);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--fg-secondary);
  vertical-align: middle;
}
table.spec tr:last-child td { border-bottom: 0; }
table.spec td:first-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg-muted);
  width: 40%;
}
table.spec code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-primary);
  background: rgba(154, 247, 200, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}
body > main pre {
  background: rgba(10, 18, 40, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--s12) var(--s16);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-secondary);
  overflow-x: auto;
  margin: var(--s16) 0;
}
body > main pre code { font-family: var(--mono); }
body > main em { color: var(--fg-primary); font-style: italic; }
body > main strong { color: var(--fg-primary); font-weight: 600; }
body > main > footer {
  margin-top: var(--s64);
  padding-top: var(--s24);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.4px;
}
body > main > footer .copy { margin-top: var(--s8); }

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  section, .price-card, .step, .pillar, .use-card, .trust-card {
    opacity: 1;
    transform: none;
  }
  .device--hero, .device--centre, .aurora-bg {
    animation: none !important;
  }
}
