/* ============================================================
   NeuroVault landing page
   Palette + type borrow from the app's brand:
     bg           #0b0b12     deep navy
     surface      #11111b     panel
     peach        #DE7356     primary accent
     peach-soft   #FFAF87     secondary accent
   Type: JetBrains Mono for the logo and code, Inter for prose.
   Techniques pulled from ../frontendmaxxing/: aurora blobs,
   glassmorphic feature cards, scroll-triggered reveal, grain.
   ============================================================ */

:root {
  --bg:           #0b0b12;
  --bg-deep:      #07070c;
  --surface:      #11111b;
  --surface-2:    #15151f;
  --border:       rgba(255, 175, 135, 0.12);
  --border-hot:   rgba(222, 115, 86, 0.45);
  --text:         #f4ece7;
  --text-muted:   #d4cac3;
  --text-dim:     #9c9089;

  --peach:        #DE7356;
  --peach-soft:   #FFAF87;
  --peach-glow:   rgba(222, 115, 86, 0.35);

  --radius:       14px;
  --radius-lg:    22px;
  --maxw:         1180px;

  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ============================================================
   Blue theme — matches the app icon (navy bg + cyan accents)
   Toggle via [data-theme="blue"] on <html>. Keeps the existing
   --peach variable names so no component CSS has to change;
   only the color values swap under the hood.
   ============================================================ */
[data-theme="blue"] {
  --bg:           #0a1628;
  --bg-deep:      #060e1b;
  --surface:      #0f1d35;
  --surface-2:    #132544;
  --border:       rgba(168, 229, 240, 0.12);
  --border-hot:   rgba(77, 212, 232, 0.45);
  --text:         #f0f7fa;
  --text-muted:   #b8c8d8;
  --text-dim:     #7a90ad;

  --peach:        #4dd4e8;   /* bright cyan, matches neural-network nodes */
  --peach-soft:   #a8e5f0;   /* pale cyan for highlights */
  --peach-glow:   rgba(77, 212, 232, 0.38);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  /* Bumped from 16px / 1.55 for legibility; the hero / pitch / privacy
     sections still set their own larger sizes where appropriate. */
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.9em;
  background: rgba(255, 175, 135, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--peach-soft);
}

.gradient-text {
  background: linear-gradient(135deg, var(--peach-soft) 0%, var(--peach) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   Scroll progress bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--peach), var(--peach-soft));
  z-index: 1000;
  transition: width 60ms linear;
  display: none; /* hidden by default (desktop) */
}
/* Show the scroll progress bar only on mobile */
@media (max-width: 720px) {
  .scroll-progress { display: block; }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 3vw, 40px);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  background: rgba(11, 11, 18, 0.55);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
}
[data-theme="blue"] .nav {
  background: rgba(10, 22, 40, 0.62);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  box-shadow: 0 4px 14px -4px var(--peach-glow);
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-logo:hover .nav-logo-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 18px -4px var(--peach-glow);
}
.nav-logo-mark {
  color: var(--peach);
  font-size: 1.2em;
}

/* ───── Theme toggle ───── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  border-color: var(--border-hot);
  color: var(--peach);
  background: rgba(255, 255, 255, 0.02);
}
.theme-icon {
  width: 18px;
  height: 18px;
}
/* Show sun in blue mode (click → switch to peach), moon in peach mode */
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
[data-theme="blue"] .theme-icon-sun { display: block; }
[data-theme="blue"] .theme-icon-moon { display: none; }
@media (max-width: 720px) {
  .theme-toggle { width: 32px; height: 32px; }
  .theme-icon { width: 16px; height: 16px; }
}
.nav-links {
  display: flex;
  gap: clamp(14px, 2.5vw, 28px);
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a {
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--peach-soft); }
.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--peach) 0%, #c3624a 100%);
  color: #1a0b06;
  border: 1px solid rgba(255, 175, 135, 0.3);
  transition: transform .15s ease, box-shadow .2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px var(--peach-glow);
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  padding: clamp(60px, 9vh, 120px) clamp(16px, 4vw, 40px) 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

/* Aurora blobs */
.aurora {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: aurora-drift 14s ease-in-out infinite alternate;
}
.aurora-blob-1 {
  top: -10%; left: -5%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, #DE7356 0%, transparent 60%);
  animation-delay: 0s;
}
.aurora-blob-2 {
  top: 15%; right: -8%;
  width: 580px; height: 580px;
  background: radial-gradient(circle, #FFAF87 0%, transparent 55%);
  animation-delay: -4s;
}
.aurora-blob-3 {
  bottom: -15%; left: 30%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, #a0472a 0%, transparent 55%);
  animation-delay: -8s;
  opacity: 0.32;
}
@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 20px) scale(0.95); }
}

/* Grid overlay */
.grid-overlay {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 175, 135, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 175, 135, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 85%);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 175, 135, 0.06);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.hero-chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 8px var(--peach-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-logo {
  width: min(100%, 820px);
  max-width: 100%;
  margin: 28px auto 20px;
  display: block;
  filter: drop-shadow(0 20px 60px var(--peach-glow));
}

.hero-tagline {
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 auto;
  max-width: 780px;
  letter-spacing: -0.02em;
}
.hero-tagline-accent {
  display: block;
  color: var(--peach-soft);
}

.hero-sub {
  margin: 18px auto 36px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}
.btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
}
.btn { padding-left: 52px; padding-right: 26px; }
.btn-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
  font-family: var(--mono);
}
/* The primary download (Windows today, OS-detected at runtime) gets a
   warm / branded treatment that's deliberately distinct from the cool
   glass Mac button: a multi-stop peach aurora that slowly drifts across
   the surface, a gentle glow pulse, and a vertical light-pass on hover
   (perpendicular to the Mac sheen so they read as siblings, not twins). */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg,
    var(--peach) 0%,
    var(--peach-soft) 28%,
    var(--peach) 52%,
    #c3624a 78%,
    var(--peach) 100%);
  background-size: 220% 220%;
  color: #1a0b06;
  border-color: rgba(255, 175, 135, 0.42);
  box-shadow:
    0 10px 30px -10px var(--peach-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: nv-aurora-pan 9s ease-in-out infinite,
             nv-aurora-pulse 5s ease-in-out infinite;
}
/* Keep content above the sheen (::before, z-index 0) without disturbing
   the icon's `position: absolute` from the .btn-icon base class. */
.btn-primary > span { position: relative; z-index: 1; }
.btn-primary > .btn-icon { z-index: 1; }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.22) 52%,
    transparent 100%);
  transform: translateY(-130%);
  transition: transform 0.8s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
  z-index: 0;
}
.btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 190, 0.6);
  box-shadow:
    0 16px 44px -10px var(--peach-glow),
    0 0 0 1px rgba(255, 175, 135, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation-duration: 4s, 2.4s;
}
.btn-primary:hover::before { transform: translateY(130%); }
.btn-primary:focus-visible {
  outline: 2px solid var(--peach-soft);
  outline-offset: 3px;
}
@keyframes nv-aurora-pan {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes nv-aurora-pulse {
  0%, 100% {
    box-shadow:
      0 10px 30px -10px var(--peach-glow),
      inset 0 1px 0 rgba(255, 255, 255, 0.20),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
  50% {
    box-shadow:
      0 12px 36px -10px var(--peach-glow),
      0 0 0 1px rgba(255, 175, 135, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.26),
      inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary {
    animation: none;
    background-position: 0% 50%;
  }
  .btn-primary::before { transition: none; }
}
.btn-secondary {
  background: rgba(255, 175, 135, 0.05);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 175, 135, 0.1);
  border-color: var(--border-hot);
  transform: translateY(-2px);
}

/* Glass macOS download button. Frosted-glass surface, subtle inner
   highlight, animated sheen on hover. The sheen is a separate child
   element so we can clip it with overflow:hidden without breaking
   the icon's absolute positioning. */
.btn-mac {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--text);
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.04) 60%,
      rgba(255, 175, 135, 0.06) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(255, 175, 135, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20);
}
[data-theme="blue"] .btn-mac {
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.04) 60%,
      rgba(77, 212, 232, 0.08) 100%);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.32),
    0 2px 8px rgba(77, 212, 232, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20);
}
.btn-mac .btn-mac-sheen {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.9s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.btn-mac:hover .btn-mac-sheen { transform: translateX(130%); }
.btn-mac:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.34),
    0 4px 14px var(--peach-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20);
}
.btn-mac:focus-visible {
  outline: 2px solid var(--peach-soft);
  outline-offset: 3px;
}
.btn-icon-apple { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .btn-mac .btn-mac-sheen { transition: none; }
}

.hero-alt {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
}
.hero-alt-label { color: var(--text-dim); }
.hero-alt-link {
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: color .15s, border-color .15s;
}
.hero-alt-link:hover:not(.is-disabled) {
  color: var(--peach-soft);
  border-color: var(--border-hot);
}
.hero-alt-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Stats */
.hero-stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 880px;
  margin-inline: auto;
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.stat-num {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--peach-soft);
  line-height: 1;
}
.stat-unit {
  font-size: 0.55em;
  color: var(--peach);
  margin-left: 2px;
}
.stat-label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ============================================================
   Section primitives
   ============================================================ */
.section-head {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--peach);
  padding: 4px 10px;
  border: 1px solid var(--border-hot);
  border-radius: 4px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Pitch
   ============================================================ */
.pitch {
  padding: clamp(60px, 10vh, 110px) clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(222, 115, 86, 0.08), transparent 70%),
    var(--bg-deep);
}
.pitch-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.pitch-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.pitch-body {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

/* ============================================================
   Features
   ============================================================ */
/* ============================================================
   ASCII marquee — news-ticker strip
   Thin horizontal band that scrolls continuously. Sits between hero
   and features to give the page a "living" pulse.
   ============================================================ */
.marquee {
  overflow: hidden;
  width: 100%;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg,
      var(--bg) 0%,
      rgba(222, 115, 86, 0.04) 50%,
      var(--bg) 100%);
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-scroll 55s linear infinite;
  will-change: transform;
}
.marquee-group {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--peach);
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(222, 115, 86, 0.25);
}
.marquee-group > span {
  flex-shrink: 0;
}
.marquee-group .sep {
  color: var(--peach-soft);
  opacity: 0.55;
  font-size: 12px;
}
/* Pause on hover so users can read items */
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
[data-theme="blue"] .marquee-group {
  text-shadow: 0 0 8px rgba(77, 212, 232, 0.25);
}
[data-theme="blue"] .marquee {
  background:
    linear-gradient(90deg,
      var(--bg) 0%,
      rgba(77, 212, 232, 0.04) 50%,
      var(--bg) 100%);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.features {
  padding: clamp(48px, 7vh, 80px) clamp(16px, 4vw, 40px);
}

/* ASCII brain animation disabled — assets still in website/assets/ and
   the Remotion source + asciify.py pipeline in demo-video/ if we want
   to bring it back later. See commit df0800a for the split-layout
   variant. */
@media (prefers-reduced-motion: reduce) {
  .features-brain img { /* browsers freeze GIF animation — nothing to disable in CSS, but keep the rule explicit */ }
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature {
  position: relative;
  padding: 20px 20px;
  background: linear-gradient(
    150deg,
    rgba(255, 175, 135, 0.04) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}

/* Mouse-follow spotlight on every card (borrowed from frontendmaxxing
   spotlight-reveal pattern). Peach glow that tracks the cursor. */
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    var(--peach-glow),
    transparent 40%
  );
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 0;
}
.feature:hover::after { opacity: 0.6; }
.feature > * { position: relative; z-index: 1; }

.feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(222, 115, 86, 0) 0%,
    rgba(222, 115, 86, 0.5) 50%,
    rgba(222, 115, 86, 0) 100%
  );
  -webkit-mask:
    linear-gradient(#000, #000) content-box,
    linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.feature:hover { transform: translateY(-3px); }
.feature:hover::before { opacity: 1; }

/* Staggered reveal — each card delays in by its nth-child index when
   the section enters the viewport. Existing .reveal → .is-in flow
   keeps firing; we just augment the timing per-card. */
.feature.reveal { transition-duration: 0.7s; }
.feature.reveal:nth-child(1) { transition-delay: 0s; }
.feature.reveal:nth-child(2) { transition-delay: 0.08s; }
.feature.reveal:nth-child(3) { transition-delay: 0.16s; }
.feature.reveal:nth-child(4) { transition-delay: 0.24s; }
.feature.reveal:nth-child(5) { transition-delay: 0.32s; }
.feature.reveal:nth-child(6) { transition-delay: 0.4s; }
.feature.reveal:nth-child(7) { transition-delay: 0.48s; }
.feature.reveal:nth-child(8) { transition-delay: 0.56s; }

/* ASCII icons — replace the old SVG .feature-icon boxes.
   Each icon is rendered in a <pre> tag, monospace, peach-colored.
   Text-shadow gives a subtle glow that matches the Vault Noir vibe. */
.feature-ascii {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.05;
  color: var(--peach);
  margin: 0 0 12px;
  white-space: pre;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(222, 115, 86, 0.35);
  transition: transform .25s ease, text-shadow .25s ease, color .25s ease;
  user-select: none;
  min-height: 60px;
}
.feature:hover .feature-ascii {
  transform: translateY(-1px) scale(1.04);
  color: var(--peach-soft);
  text-shadow: 0 0 18px rgba(255, 175, 135, 0.55);
}
[data-theme="blue"] .feature-ascii {
  text-shadow: 0 0 10px rgba(77, 212, 232, 0.35);
}
[data-theme="blue"] .feature:hover .feature-ascii {
  text-shadow: 0 0 18px rgba(168, 229, 240, 0.55);
}
@media (max-width: 520px) {
  .feature-ascii { font-size: 10px; }
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   Screenshots
   ============================================================ */
.screens {
  padding: clamp(70px, 11vh, 120px) clamp(16px, 4vw, 40px);
  background:
    radial-gradient(ellipse at 20% 20%, rgba(222, 115, 86, 0.05), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 175, 135, 0.05), transparent 60%),
    var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.screen {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.screen-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(
    135deg,
    rgba(222, 115, 86, 0.18) 0%,
    rgba(255, 175, 135, 0.08) 50%,
    transparent 100%
  );
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--border);
}
.screen-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.screen figcaption {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 0 4px;
}
.screen figcaption strong { color: var(--text); }

/* ============================================================
   How it works
   ============================================================ */
.how {
  padding: clamp(70px, 11vh, 120px) clamp(16px, 4vw, 40px);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
  .how-arrow { display: none; }
}
.how-step {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  position: relative;
}
.how-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--peach);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.how-step h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.how-step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.how-arrow {
  align-self: center;
  font-size: 20px;
  color: var(--peach);
  opacity: 0.6;
}

/* ============================================================
   Privacy
   ============================================================ */
.privacy {
  padding: clamp(70px, 11vh, 120px) clamp(16px, 4vw, 40px);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(222, 115, 86, 0.1), transparent 70%),
    var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.privacy-inner {
  max-width: 780px;
  margin: 0 auto;
}
.privacy .section-kicker,
.privacy .section-title {
  text-align: left;
  display: block;
}
.privacy .section-title { margin-bottom: 30px; }
.privacy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.privacy-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.privacy-list strong { color: var(--text); }
.privacy-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 10px var(--peach-glow);
  margin-top: 8px;
}

/* ============================================================
   Final CTA
   ============================================================ */
.cta {
  padding: clamp(90px, 14vh, 150px) clamp(16px, 4vw, 40px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(222, 115, 86, 0.18), transparent 65%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  font-weight: 700;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 40px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  color: var(--text-muted);
}
.footer-mark { color: var(--peach); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
}
.footer-links a { transition: color .15s; }
.footer-links a:hover { color: var(--peach-soft); }
.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* ============================================================
   Grain overlay (sits on top, below text via pointer-events:none)
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  filter: url(#grain-filter);
  background: #fff;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-chip-dot { animation: none; }
  html { scroll-behavior: auto; }
}
