/* ──────────────────────────────────────────────────────────────
   FileID — landing page
   Design tokens lifted from shared/docs/VISUAL-LANGUAGE.md
   ────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --gold:        #FFCC00;
  --gold-dim:    #CCA300;
  --gold-deep:   #B88800;
  --lavender:    #B19BCE;
  --cyan:        #A0E2EA;
  --pink:        #F2A6C0;
  --hot:         #FF6600;   /* lava-lamp red-orange */

  /* Greys */
  --bg-0:    #0a0a0a;
  --bg-1:    #111111;
  --bg-2:    #141414;
  --bg-3:    #1c1c1c;
  --line:    rgba(255,255,255,0.08);
  --line-2:  rgba(255,255,255,0.04);

  /* Type */
  --fg:        #f5f5f5;
  --fg-soft:   rgba(245,245,245,0.72);
  --fg-mute:   rgba(245,245,245,0.50);
  --fg-faint:  rgba(245,245,245,0.32);

  --black-on-gold: #0a0a0a;

  /* Surface tokens — from VISUAL-LANGUAGE.md */
  --surface-base:   rgba(0,0,0,0.30);
  --surface-card:   rgba(255,255,255,0.06);
  --surface-border: rgba(255,255,255,0.08);

  /* Radii — VL doc */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;

  /* Spacing — VL doc */
  --sp-xs: 4px;
  --sp-s:  8px;
  --sp-m:  16px;
  --sp-l:  24px;
  --sp-xl: 40px;

  /* Display font: SF Pro / Segoe UI fallback — VL doc says OS default UI font */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code",
               "Roboto Mono", Consolas, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

::selection { background: var(--gold); color: var(--black-on-gold); }

/* ───── NAV ───── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10,10,10,0.55);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--fg-soft);
}
.nav-links a:not(.nav-cta) {
  position: relative;
  padding: 4px 0;
  transition: color .15s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--fg); }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  color: var(--fg);
  transition: background .15s ease, border-color .15s ease;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--black-on-gold);
  border-color: var(--gold);
}

@media (max-width: 700px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta):not(.nav-cta) { display: none; }
  .nav-links a[href="#download"] { display: inline; }
}

/* ───── HERO ───── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 130px 24px 90px;
  isolation: isolate;
  overflow: hidden;
}
#lavalamp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  filter: blur(110px) saturate(115%);
  /* Pre-blur via CSS rather than Gaussian at draw time — way cheaper. */
}
.hero-tint {
  /* "surface.base" #000 @ 30%, plus gradient vignette — VL doc */
  position: absolute; inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.85) 100%),
    rgba(0,0,0,0.30);
}
.hero-grain {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* 3D logo stage */
.logo-stage {
  position: relative;
  width: 320px;
  height: 320px;
  margin-bottom: 38px;
  perspective: 1400px;
  perspective-origin: 50% 45%;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  touch-action: none;
}
.logo-stage:active { cursor: grabbing; }
.logo-halo {
  position: absolute;
  inset: -90px;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(255,204,0,0.55) 0%,
    rgba(255,204,0,0.20) 35%,
    rgba(255,102,0,0.10) 60%,
    transparent 75%);
  filter: blur(28px);
  z-index: 0;
  animation: haloPulse 5.5s ease-in-out infinite;
}
@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.06); opacity: 1; }
}
.logo-bob {
  position: relative;
  width: 100%;
  height: 100%;
  animation: bob 5s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes bob {
  0%, 100% { transform: translateY(0)   rotateZ(-1.5deg); }
  50%      { transform: translateY(-14px) rotateZ(1.5deg); }
}
.logo-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  /* JS sets --rx and --ry; defaults give a nice starting tilt */
  --rx: -8deg;
  --ry: -18deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}
.logo-3d.no-trans { transition: none !important; }
.logo-3d.snap     { transition: transform .8s cubic-bezier(.2,.6,.2,1); }

/* Each layer is an absolutely positioned div with the icon as a background.
   We extrude the icon by stacking many layers at small Z offsets. */
.l-layer {
  position: absolute;
  inset: 0;
  background-image: url("assets/app-icon.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  backface-visibility: visible;
  transform-style: preserve-3d;
}

/* Subtle ground shadow under the logo */
.logo-shadow {
  position: absolute;
  left: 50%;
  bottom: -38px;
  width: 240px;
  height: 36px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.30) 40%,
    transparent 70%);
  filter: blur(10px);
  z-index: -1;
  animation: shadowBob 5s ease-in-out infinite;
}
@keyframes shadowBob {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.75; }
  50%      { transform: translateX(-50%) scale(0.86); opacity: 0.55; }
}

.logo-sparkles {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  z-index: 2;
}
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background:
    linear-gradient(transparent 45%, #fff 45%, #fff 55%, transparent 55%),
    linear-gradient(90deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px var(--gold));
  border-radius: 1px;
  opacity: 0;
  animation: sparkle 2.4s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { transform: scale(0) rotate(0deg);   opacity: 0; }
  40%      { transform: scale(1) rotate(180deg); opacity: 1; }
  60%      { transform: scale(1) rotate(220deg); opacity: 1; }
}

.logo-hint {
  position: absolute;
  left: 50%;
  bottom: -68px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--fg-mute);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  opacity: 1;
  transition: opacity .4s ease;
  pointer-events: none;
}
.logo-hint.hidden { opacity: 0; }

/* Hero copy */
.hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}
.hero-title {
  font-size: clamp(64px, 14vw, 168px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}
.hero-title span {
  background: linear-gradient(180deg, #ffffff 0%, #ffeb99 55%, #FFCC00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255,204,0,0.25));
}
.hero-tagline {
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.45;
  color: var(--fg-soft);
  text-wrap: pretty;
  margin-bottom: 38px;
}
.hero-tagline em {
  font-style: normal;
  color: var(--gold);
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-pills {
  display: flex;
  gap: 24px;
  list-style: none;
  justify-content: center;
  font-size: 13px;
  color: var(--fg-mute);
}
.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pill-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.pill-dot-on   { background: var(--gold); box-shadow: 0 0 6px rgba(255,204,0,0.6); }
.pill-dot-soon { background: var(--fg-faint); }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--fg-faint);
  border-radius: 12px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
  opacity: 0.7;
  transition: opacity .2s;
}
.hero-scroll span {
  display: block;
  width: 2px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
  animation: scrollDown 1.8s ease-in-out infinite;
}
.hero-scroll:hover { opacity: 1; }
@keyframes scrollDown {
  0%   { transform: translateY(0);    opacity: 1; }
  60%  { transform: translateY(12px); opacity: 0; }
  61%  { transform: translateY(0);    opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--black-on-gold);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 -2px 0 rgba(0,0,0,0.15) inset,
    0 10px 28px -10px rgba(255,204,0,0.55);
}
.btn-gold:hover {
  background: #ffd83a;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.55) inset,
    0 -2px 0 rgba(0,0,0,0.15) inset,
    0 14px 36px -8px rgba(255,204,0,0.7);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}
.btn-block {
  width: 100%;
  justify-content: space-between;
  padding: 14px 18px;
}
.btn-pri { display: block; font-size: 15px; font-weight: 700; }
.btn-sec { display: block; font-size: 11.5px; font-weight: 500; opacity: 0.7; margin-top: 1px; }
.btn-block span { text-align: left; }
.btn-gold .btn-sec { opacity: 0.65; }

/* ───── Scroll reveal ───── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.6,.2,1),
              transform .9s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1),
              transform .7s cubic-bezier(.2,.6,.2,1);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s;    }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .06s;  }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .12s;  }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .18s;  }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .24s;  }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .30s;  }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ───── BANDS / SECTIONS ───── */
.band {
  position: relative;
  padding: 120px 24px;
}
.band-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.band-dark   { background: var(--bg-1); }
.band-canvas { background: var(--bg-0); position: relative; }
.band-canvas::before {
  /* Subtle radial spotlight */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%,
                rgba(255,204,0,0.06) 0%,
                transparent 60%);
  pointer-events: none;
}

/* Hazard stripe band */
.band-stripes {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.band-stripes::before, .band-stripes::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  height: 26px;
  background:
    repeating-linear-gradient(115deg,
      var(--gold) 0 40px,
      #0a0a0a 40px 80px);
  opacity: 0.85;
}
.band-stripes::before { top: 0; }
.band-stripes::after  { bottom: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.kicker-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
}
.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.section-head h2 em {
  font-style: normal;
  color: var(--gold);
}
.section-sub {
  margin-top: 20px;
  font-size: 17px;
  color: var(--fg-soft);
  max-width: 640px;
  text-wrap: pretty;
}

/* ───── WHAT BAND ───── */
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.what-headline h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
.what-headline h2 em {
  font-style: italic;
  color: var(--gold);
}
.what-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.what-point {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 24px 24px 0;
  border-top: 1px solid var(--line);
}
.what-point:last-child {
  border-bottom: 1px solid var(--line);
}
.what-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-top: 3px;
  font-feature-settings: "tnum" 1;
}
.what-point h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.what-point p {
  font-size: 14.5px;
  color: var(--fg-soft);
  line-height: 1.55;
}
@media (max-width: 800px) {
  .what-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ───── FEATURES GRID ───── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-m);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: border-color .2s ease, transform .3s cubic-bezier(.2,.6,.2,1), background .2s ease, box-shadow .3s ease;
  overflow: hidden;
  transform-style: preserve-3d;
  /* JS sets --tx, --ty for hover tilt */
  --tx: 0deg;
  --ty: 0deg;
}
.feature.tilt {
  transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)) translateY(-3px);
  box-shadow:
    0 24px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,204,0,0.06);
}
.feature::before {
  /* Iridescent ring on hover */
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 90deg, var(--gold), var(--pink), var(--lavender), var(--cyan), var(--gold));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.feature:hover {
  background: rgba(255,255,255,0.08);
}
.feature:hover::before { opacity: 0.9; }
.feature-accent {
  background:
    linear-gradient(180deg, rgba(255,204,0,0.06) 0%, transparent 60%),
    var(--surface-card);
  border-color: rgba(255,204,0,0.18);
}
.feature-glyph {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  position: relative;
}
/* Distinct mini-icons per feature, drawn with CSS — no emoji, no stock icons */
.feature-glyph::before {
  content: "";
  position: absolute;
  inset: 10px;
}
.feature-glyph[data-glyph="library"]::before {
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 6px no-repeat,
    linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)) 0 12px / 100% 4px no-repeat,
    linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.35)) 0 22px / 60% 4px no-repeat;
}
.feature-glyph[data-glyph="people"]::before {
  background:
    radial-gradient(circle at 35% 35%, var(--gold) 0 4px, transparent 5px),
    radial-gradient(circle at 65% 35%, var(--lavender) 0 4px, transparent 5px),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(255,255,255,0.4) 0 50%, transparent 51%);
}
.feature-glyph[data-glyph="cleanup"]::before {
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 12px 12px no-repeat,
    linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)) 12px 6px / 12px 12px no-repeat,
    linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)) 4px 14px / 12px 12px no-repeat;
}
.feature-glyph[data-glyph="deep"]::before {
  background:
    radial-gradient(circle at 50% 50%, var(--lavender) 0 6px, transparent 7px),
    conic-gradient(from 0deg, var(--gold), var(--pink), var(--cyan), var(--lavender), var(--gold));
  border-radius: 50%;
  filter: blur(0.3px);
}
.feature-glyph[data-glyph="restructure"]::before {
  background:
    linear-gradient(var(--gold), var(--gold)) 0 4px / 6px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 16px / 6px 4px no-repeat,
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)) 18px 10px / 6px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 6px 6px / 12px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 6px 18px / 12px 1.5px no-repeat;
}
.feature-glyph[data-glyph="settings"]::before {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 3px, var(--gold) 3.5px 5.5px, transparent 6.5px),
    conic-gradient(from 22.5deg, var(--gold) 0deg 30deg, transparent 30deg 60deg,
                                  var(--gold) 60deg 90deg, transparent 90deg 120deg,
                                  var(--gold) 120deg 150deg, transparent 150deg 180deg,
                                  var(--gold) 180deg 210deg, transparent 210deg 240deg,
                                  var(--gold) 240deg 270deg, transparent 270deg 300deg,
                                  var(--gold) 300deg 330deg, transparent 330deg 360deg);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 35%, #000 38%, transparent 39%, #000 40%, #000 100%);
}
.feature h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.feature p {
  font-size: 14.5px;
  color: var(--fg-soft);
  line-height: 1.55;
  margin-bottom: 16px;
  text-wrap: pretty;
}
.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ───── PRIVACY ───── */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding-top: 22px;   /* clear top stripe */
  padding-bottom: 22px;
}
.privacy-copy h2 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 14px 0 24px;
}
.privacy-copy h2 em { font-style: italic; color: var(--gold); }
.privacy-lede {
  font-size: 16px;
  color: var(--fg-soft);
  margin-bottom: 28px;
  text-wrap: pretty;
}
.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.privacy-list li {
  position: relative;
  padding-left: 22px;
  color: var(--fg-soft);
  font-size: 14.5px;
}
.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.privacy-list strong { color: var(--fg); font-weight: 600; }

.glass {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-m);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.privacy-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255,204,0,0.05), transparent 50%),
    rgba(255,255,255,0.05);
}
.privacy-card-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-soft);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.status-dot {
  width: 8px; height: 8px;
  background: #6CE390;
  border-radius: 50%;
  box-shadow: 0 0 8px #6CE390;
  animation: dotPulse 2.4s ease-in-out infinite;
}
.privacy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.stat {
  padding: 16px 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
}
.stat-val {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 11px;
  color: var(--fg-mute);
  line-height: 1.35;
  text-wrap: pretty;
}
.privacy-gate {
  background: #050505;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 14px 16px;
}
.privacy-gate pre,
.code-block {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--fg-soft);
  white-space: pre;
  overflow-x: auto;
}
.c-key  { color: var(--fg-faint); }
.c-cmd  { color: var(--gold); }
.c-flag { color: var(--lavender); }
.c-cmt  { color: var(--fg-faint); font-style: italic; }
.c-ok   { color: #6CE390; }

@media (max-width: 800px) {
  .privacy-grid    { grid-template-columns: 1fr; gap: 36px; }
  .privacy-stats   { grid-template-columns: 1fr; }
}

/* ───── DOWNLOAD ───── */
.release-status {
  margin-bottom: 32px;
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--fg-soft);
  background: rgba(255,204,0,0.06);
  border: 1px solid rgba(255,204,0,0.25);
  border-radius: var(--r-s);
}
.release-status strong { color: var(--gold); }
.release-status a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.downloads {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 56px;
}
.dl-card {
  position: relative;
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-m);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}
.dl-card-primary {
  background:
    linear-gradient(180deg, rgba(255,204,0,0.10), transparent 50%),
    var(--surface-card);
  border-color: rgba(255,204,0,0.30);
}
.dl-card-deferred {
  opacity: 0.78;
}
.dl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dl-platform { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.dl-platform h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.dl-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.dl-badge-soon { color: var(--fg-faint); }
.dl-blurb {
  font-size: 13.5px;
  color: var(--fg-soft);
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
  text-wrap: pretty;
}
.dl-actions { display: flex; flex-direction: column; gap: 10px; }
.dl-sub {
  display: flex; gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.btn-link {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .15s ease;
}
.btn-link:hover { border-bottom-color: var(--gold); }

.dl-foot p {
  font-size: 13.5px;
  color: var(--fg-mute);
  margin-bottom: 12px;
}
.code-block {
  background: #050505;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 18px 22px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .downloads { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .downloads { grid-template-columns: 1fr; }
}

/* ───── ARCHITECTURE ───── */
.arch-band {
  position: relative;
  overflow: hidden;
}
.arch-band::before {
  /* Soft constellation backdrop */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 22%, rgba(255,204,0,0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 30%, rgba(255,255,255,0.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 18%, rgba(177,155,206,0.5) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 88% 72%, rgba(255,204,0,0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 12% 78%, rgba(255,255,255,0.3) 0 0.8px, transparent 1.3px),
    radial-gradient(circle at 56% 64%, rgba(160,226,234,0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 30% 50%, rgba(255,255,255,0.25) 0 0.8px, transparent 1.3px),
    radial-gradient(circle at 68% 88%, rgba(255,204,0,0.35) 0 1px, transparent 1.5px),
    radial-gradient(ellipse 50% 80% at 50% 50%, transparent 0%, rgba(0,0,0,0.4) 80%);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}
.arch-band .band-inner { position: relative; z-index: 1; }
.arch-diagram {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 18px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
.arch-node {
  padding: 26px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-m);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.arch-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  background: var(--gold);
  color: var(--black-on-gold);
  border-radius: 4px;
  margin-bottom: 14px;
  font-weight: 700;
}
.arch-tag-ai { background: var(--lavender); }
.arch-name {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 14px;
  font-weight: 600;
}
.arch-node ul { list-style: none; }
.arch-node li {
  font-size: 13.5px;
  color: var(--fg-soft);
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.arch-node li:first-child { border-top: none; padding-top: 0; }
.arch-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 20px;
}
.arch-arrow { width: 100%; height: 50px; }
.arch-link-label {
  text-align: center;
  font-size: 12px;
  color: var(--fg-mute);
}
.arch-link-label code {
  display: block;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 4px;
}
@media (max-width: 800px) {
  .arch-diagram { grid-template-columns: 1fr; }
  .arch-arrow { transform: rotate(90deg); width: 80px; margin: 0 auto; }
}

.ml-table {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-m);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.ml-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1.5fr;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.ml-row:first-child { border-top: none; }
.ml-row > div:first-child {
  color: var(--fg);
  font-weight: 500;
}
.ml-row > div:not(:first-child) {
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.ml-row-head > div {
  font-size: 11px !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute) !important;
}
@media (max-width: 700px) {
  .ml-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .ml-row-head { display: none; }
  .ml-row > div:first-child { color: var(--gold); font-size: 13px; margin-bottom: 4px; }
}

/* ───── CHANGELOG TIMELINE ───── */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 0;
  max-width: 880px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 130px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--line);
}
@media (max-width: 700px) {
  .timeline::before { display: none; }
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 36px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.tl-item:first-child { border-top: none; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 126px;
  top: 38px;
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-1), 0 0 12px var(--gold);
}
@media (max-width: 700px) {
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .tl-item::before { display: none; }
}
.tl-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}
.tl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}
.tl-ver {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}
.tl-item h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.tl-item p {
  font-size: 14.5px;
  color: var(--fg-soft);
  line-height: 1.6;
  text-wrap: pretty;
}
.tl-item code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--gold);
  background: rgba(255,204,0,0.08);
  padding: 1px 6px;
  border-radius: 4px;
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 14px;
  color: var(--gold);
  border-bottom: 1px solid rgba(255,204,0,0.3);
  padding-bottom: 2px;
  transition: border-color .15s;
}
.more-link:hover { border-bottom-color: var(--gold); }

/* ───── FOOTER ───── */
.footer {
  background: #050505;
  padding: 80px 24px 50px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  box-shadow: 0 6px 28px -4px rgba(255,204,0,0.4);
}
.footer-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-tag {
  font-size: 13px;
  color: var(--fg-mute);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--fg-soft);
  padding: 5px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--gold); }
.footer-fine {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-faint);
}

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols  { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* ───── Reduced motion (per VL doc) ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .logo-3d { transform: rotateX(-6deg) rotateY(-15deg) !important; }
  /* LavaLamp keeps animating at half rate per VL doc — handled in JS */
}
