/* Capturra landing page
   Themes: dark (default, the brand's home) and light.
   The <html data-theme> attribute is set by script.js; with JS off, the system preference decides. */

:root {
  --font: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1200px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- dark (default) ---------- */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e14;
  --surface: #131620;
  --surface-sunk: #090b10;
  --surface-card: rgba(19, 22, 32, 0.78);
  --card-bg-gradient: linear-gradient(180deg, rgba(25, 29, 43, 0.7) 0%, rgba(15, 18, 27, 0.85) 100%);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(139, 146, 255, 0.45);
  --card-glow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.65), 0 0 28px -4px rgba(139, 146, 255, 0.25);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);
  --grid-line: rgba(255, 255, 255, 0.04);
  --text: #ffffff;
  --text-2: #b4b8c6;
  --text-3: #848898;
  --text-soft: #e3e4e9;
  --accent: #8b92ff;
  --accent-rgb: 139, 146, 255;
  --panel: #181a33;
  --panel-line: #2b2f56;
  --panel-text: #c3c5dd;
  --btn-bg: #f4f5f8;
  --btn-bg-hover: #ffffff;
  --btn-text: #090a0d;
  --ghost-hover: rgba(255, 255, 255, 0.06);
  --ghost-line-hover: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(12, 14, 20, 0.72);
  --header-bg-scrolled: rgba(12, 14, 20, 0.88);
  --shot-shadow: 0 28px 70px rgba(0, 0, 0, .55);
  --hero-shadow: 0 32px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .1);
  --glow-hero: rgba(120, 119, 198, 0.32);
  --glow-hero-shot: rgba(139, 146, 255, 0.26);
  --glow-accent: rgba(99, 102, 241, 0.22);
  --glow-cyan: rgba(56, 189, 248, 0.18);
  --glow-pink: rgba(236, 72, 153, 0.15);
  --glow-terminal: rgba(56, 189, 248, 0.18);
  --cta-bg: linear-gradient(145deg, rgba(28, 30, 62, 0.9) 0%, rgba(14, 16, 36, 0.95) 100%);
  --cta-line: rgba(139, 146, 255, 0.25);
  --cta-shadow: 0 32px 80px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --cta-glow: rgba(139, 146, 255, 0.32);
  --ok: #35d08a;
  --rec: #ff4d4d;
  --logo-dark: none;
  --logo-light: block;
}

/* ---------- light ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-sunk: #edf0f5;
  --surface-card: rgba(255, 255, 255, 0.86);
  --card-bg-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 248, 252, 0.88) 100%);
  --card-border: rgba(19, 21, 26, 0.08);
  --card-border-hover: rgba(79, 70, 229, 0.4);
  --card-glow-hover: 0 20px 40px -10px rgba(19, 21, 26, 0.1), 0 0 24px -2px rgba(79, 70, 229, 0.14);
  --line: rgba(19, 21, 26, 0.08);
  --line-2: rgba(19, 21, 26, 0.12);
  --grid-line: rgba(19, 21, 26, 0.035);
  --text: #121419;
  --text-2: #484c59;
  --text-3: #6b7080;
  --text-soft: #20232a;
  --accent: #4f46e5;
  --accent-rgb: 79, 70, 229;
  --panel: #eaecff;
  --panel-line: #d2d5fb;
  --panel-text: #414568;
  --btn-bg: #121419;
  --btn-bg-hover: #000000;
  --btn-text: #ffffff;
  --ghost-hover: rgba(19, 21, 26, 0.05);
  --ghost-line-hover: rgba(19, 21, 26, 0.2);
  --header-bg: rgba(247, 248, 251, 0.75);
  --header-bg-scrolled: rgba(247, 248, 251, 0.92);
  --shot-shadow: 0 24px 60px rgba(19, 21, 26, .14);
  --hero-shadow: 0 32px 75px rgba(19, 21, 26, .18), 0 0 0 1px rgba(19, 21, 26, .06);
  --glow-hero: rgba(99, 102, 241, 0.15);
  --glow-hero-shot: rgba(99, 102, 241, 0.14);
  --glow-accent: rgba(168, 85, 247, 0.1);
  --glow-cyan: rgba(14, 165, 233, 0.09);
  --glow-pink: rgba(236, 72, 153, 0.08);
  --glow-terminal: rgba(14, 165, 233, 0.1);
  --cta-bg: linear-gradient(145deg, rgba(238, 240, 255, 0.92) 0%, rgba(225, 229, 255, 0.96) 100%);
  --cta-line: rgba(79, 70, 229, 0.22);
  --cta-shadow: 0 28px 70px -15px rgba(79, 70, 229, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --cta-glow: rgba(99, 102, 241, 0.2);
  --ok: #10935a;
  --rec: #ff4d4d;
  --logo-dark: block;
  --logo-light: none;
}

/* No-JS fallback: follow the OS when no theme has been set */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f7f8fb; --surface: #ffffff; --surface-sunk: #edf0f5; --surface-card: rgba(255, 255, 255, 0.86);
    --card-bg-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 248, 252, 0.88) 100%);
    --card-border: rgba(19, 21, 26, 0.08); --card-border-hover: rgba(79, 70, 229, 0.4);
    --card-glow-hover: 0 20px 40px -10px rgba(19, 21, 26, 0.1), 0 0 24px -2px rgba(79, 70, 229, 0.14);
    --line: rgba(19, 21, 26, 0.08); --line-2: rgba(19, 21, 26, 0.12); --grid-line: rgba(19, 21, 26, 0.035);
    --text: #121419; --text-2: #484c59; --text-3: #6b7080; --text-soft: #20232a;
    --accent: #4f46e5; --accent-rgb: 79, 70, 229; --panel: #eaecff; --panel-line: #d2d5fb; --panel-text: #414568;
    --btn-bg: #121419; --btn-bg-hover: #000000; --btn-text: #ffffff;
    --ghost-hover: rgba(19, 21, 26, 0.05); --ghost-line-hover: rgba(19, 21, 26, 0.2);
    --header-bg: rgba(247, 248, 251, 0.75); --header-bg-scrolled: rgba(247, 248, 251, 0.92);
    --shot-shadow: 0 24px 60px rgba(19, 21, 26, .14);
    --hero-shadow: 0 32px 75px rgba(19, 21, 26, .18), 0 0 0 1px rgba(19, 21, 26, .06);
    --glow-hero: rgba(99, 102, 241, 0.15); --glow-hero-shot: rgba(99, 102, 241, 0.14);
    --glow-accent: rgba(168, 85, 247, 0.1); --glow-cyan: rgba(14, 165, 233, 0.09);
    --glow-pink: rgba(236, 72, 153, 0.08); --glow-terminal: rgba(14, 165, 233, 0.1);
    --cta-bg: linear-gradient(145deg, rgba(238, 240, 255, 0.92) 0%, rgba(225, 229, 255, 0.96) 100%);
    --cta-line: rgba(79, 70, 229, 0.22);
    --cta-shadow: 0 28px 70px -15px rgba(79, 70, 229, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --cta-glow: rgba(99, 102, 241, 0.2);
    --ok: #10935a; --rec: #ff4d4d;
    --logo-dark: block; --logo-light: none;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); transition: color .15s var(--ease); }
a:hover { color: var(--text); }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 160px; position: relative; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-text); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* logos swap with theme */
.logo-on-dark { display: var(--logo-light); }
.logo-on-light { display: var(--logo-dark); }

/* ---------- scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b92ff, #38bdf8, #a855f7);
  transform-origin: 0% 50%;
  transform: scaleX(0);
  z-index: 110;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  @keyframes progress-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
  .scroll-progress {
    animation: progress-grow auto linear both;
    animation-timeline: scroll(root);
  }
}

/* ---------- ambient background decor ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.bg-decor__aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.bg-decor__aura--hero {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 100vw);
  height: 600px;
  background: radial-gradient(ellipse at 50% 30%, var(--glow-hero) 0%, var(--glow-accent) 45%, transparent 72%);
  opacity: 0.9;
}
.bg-decor__aura--mid {
  top: 40%;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 68%);
  opacity: 0.75;
}
.bg-decor__aura--bottom {
  bottom: 8%;
  left: -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, var(--glow-pink) 0%, var(--glow-accent) 45%, transparent 70%);
  opacity: 0.65;
}
.bg-decor__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, black 25%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, black 25%, transparent 92%);
}

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.03em; }
.h2--sm { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
.lead { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; gap: 8px; }
.btn--primary {
  background: var(--btn-bg); color: var(--btn-text); border: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}
.btn--primary:hover {
  background: var(--btn-bg-hover); color: var(--btn-text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transform: translateY(-1px);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.02); color: var(--text);
  border: 1px solid var(--line-2); font-weight: 500;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--ghost-hover); border-color: var(--ghost-line-hover);
  color: var(--text); transform: translateY(-1px);
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02); color: var(--text); cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.icon-btn:hover { background: var(--ghost-hover); border-color: var(--ghost-line-hover); color: var(--text); transform: translateY(-1px); }

/* theme toggle icons */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--line-2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 32px; font-size: 14px; }
.nav__links a, .footer__links a { color: var(--text-2); text-decoration: none; transition: color .15s var(--ease); }
.nav__links a:hover, .footer__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }

.mobile-menu {
  display: none; border-top: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  background: var(--header-bg-scrolled); backdrop-filter: blur(16px);
}
.mobile-menu a {
  display: block; padding: 14px 0; font-size: 17px; color: var(--text);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-menu.is-open { display: block; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav__github, .nav__download-label { display: none; }
  .nav__actions .btn--sm { width: 44px; padding: 0; }
}
@media (min-width: 821px) { .mobile-menu.is-open { display: none; } }

/* ---------- hero ---------- */
.hero {
  padding-top: 100px; display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--text-2); background: var(--surface-card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12), 0 0 16px rgba(var(--accent-rgb), 0.15);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.pill:hover { transform: translateY(-1px); border-color: var(--accent); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: pulse 2s ease-in-out infinite; box-shadow: 0 0 8px var(--rec); }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 {
  margin-top: 28px; max-width: 980px;
  font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.035em;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-soft) 100%);
  -webkit-background-clip: text;
}
.hero__lead { margin-top: 28px; max-width: 680px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-2); }
.hero__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__note { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* Hero Shot with dynamic scroll perspective & halo glow */
.hero__shot-wrap {
  position: relative; width: 100%; margin-top: 68px;
  perspective: 1200px;
}
.hero__glow {
  position: absolute;
  inset: -30px 5% -20px 5%;
  background: radial-gradient(ellipse at 50% 45%, var(--glow-hero-shot) 0%, transparent 68%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.hero__shot {
  position: relative; z-index: 1; width: 100%; padding: clamp(16px, 4vw, 56px);
  border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--panel-line);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-origin: top center;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.hero__shot img { width: 100%; border-radius: 12px; box-shadow: var(--hero-shadow); }
.caption { margin-top: 16px; font-size: 13px; color: var(--text-3); font-family: var(--mono); }

/* ---------- how it works ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; }
.split > :first-child { flex: 1 1 520px; min-width: 0; }
.split > .lead { flex: 1 1 360px; }
.steps { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  padding: 34px; border-radius: var(--radius);
  background: var(--card-bg-gradient);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-glow-hover);
}
.card__num { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.card h3 { margin-top: 36px; font-size: 22px; letter-spacing: -.015em; }
.card p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text-2); }

.files {
  margin-top: 24px; padding: 28px 32px; border-radius: var(--radius);
  background: var(--surface-card); border: 1px solid var(--card-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: center;
  font-family: var(--mono); font-size: 14px;
  transition: border-color .2s var(--ease);
}
.files:hover { border-color: var(--card-border-hover); }
.files div { display: flex; gap: 14px; }
.files .name { color: var(--accent); font-weight: 500; }
.files .desc { color: var(--text-3); }

/* ---------- feature rows ---------- */
.rows { display: flex; flex-direction: column; gap: 130px; }
.row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; position: relative; }
.row--reverse { flex-wrap: wrap-reverse; }
.row__text { flex: 1 1 380px; min-width: 0; }
.row__media { flex: 1 1 520px; min-width: 0; position: relative; }
.row__glow {
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse at 50% 50%, var(--glow-hero-shot) 0%, transparent 68%);
  filter: blur(50px); pointer-events: none; z-index: 0; opacity: 0.75;
}
.row__glow--frame { background: radial-gradient(ellipse at 50% 50%, var(--glow-pink) 0%, var(--glow-accent) 40%, transparent 70%); }
.row__glow--audio { background: radial-gradient(ellipse at 50% 50%, var(--glow-cyan) 0%, var(--glow-hero) 40%, transparent 70%); }
.row__media img {
  position: relative; z-index: 1; width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line-2); box-shadow: var(--shot-shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.row__media:hover img {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 32px 75px rgba(0, 0, 0, .45);
}
.checks { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--text-soft); }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks svg { color: var(--accent); flex: none; }

/* ---------- feature grid ---------- */
.section__header { margin-bottom: 56px; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.grid__item {
  padding: 36px; border-radius: var(--radius);
  background: var(--card-bg-gradient);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.grid__item:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-glow-hover);
}
.grid__item svg {
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.grid__item:hover svg {
  transform: scale(1.1);
}
.grid__item h3 { margin-top: 24px; font-size: 18px; }
.grid__item p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* ---------- privacy ---------- */
.privacy-wrap { position: relative; width: 100%; }
.privacy__glow {
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse at 20% 50%, var(--glow-hero) 0%, transparent 65%);
  filter: blur(55px); pointer-events: none; z-index: 0; opacity: 0.7;
}
.privacy {
  position: relative; z-index: 1;
  padding: clamp(32px, 6vw, 72px); border-radius: var(--radius-lg);
  background: var(--card-bg-gradient); border: 1px solid var(--card-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex; flex-wrap: wrap; gap: 48px 64px;
}
.privacy > div { flex: 1 1 400px; min-width: 0; }
.privacy .h2 { margin-top: 24px; font-size: clamp(32px, 4vw, 48px); }
.privacy__lock { color: var(--accent); }
.facts > div { padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.facts > div:last-child { border-bottom: 0; }
.facts h3 { font-size: 17px; }
.facts p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ---------- developers ---------- */
.dev { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.dev > div { flex: 1 1 400px; min-width: 0; }
.dev .h2 { font-size: clamp(32px, 4vw, 48px); }
.crates { margin-top: 32px; font-size: 14px; }
.crates div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.crates div:last-child { border-bottom: 1px solid var(--line-2); }
.crates code { font-family: var(--mono); color: var(--text); width: 180px; }
.crates span { color: var(--text-3); }

.terminal-wrap { position: relative; flex: 1 1 480px !important; }
.terminal__glow {
  position: absolute; inset: -24px;
  background: radial-gradient(ellipse at 50% 50%, var(--glow-terminal) 0%, transparent 68%);
  filter: blur(50px); pointer-events: none; z-index: 0; opacity: 0.8;
}
.terminal {
  position: relative; z-index: 1; border-radius: var(--radius);
  background: #090a0e; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.02); }
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2f333d; }
.terminal__bar span { margin-left: 10px; font-size: 12px; color: #8a8e9c; font-family: var(--mono); flex: 1; }
.copy-btn {
  font: inherit; font-family: var(--mono); font-size: 12px; color: #b9bcc7;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px;
  height: 32px; padding: 0 12px; cursor: pointer; transition: all .15s var(--ease);
}
.copy-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.terminal pre {
  margin: 0; padding: 24px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.8; color: #e3e4e9;
}
.terminal .c { color: #8a8e9c; }

/* ---------- final cta ---------- */
.cta-wrap { position: relative; width: 100%; }
.cta__glow {
  position: absolute; inset: -40px 10%;
  background: radial-gradient(ellipse at 50% 50%, var(--cta-glow) 0%, transparent 70%);
  filter: blur(70px); pointer-events: none; z-index: 0; opacity: 0.9;
}
.cta {
  position: relative; z-index: 1;
  padding: clamp(48px, 7vw, 100px) 24px; border-radius: var(--radius-lg);
  background: var(--cta-bg); border: 1px solid var(--cta-line);
  box-shadow: var(--cta-shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 250px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta img { width: 64px; height: 64px; position: relative; }
.cta h2 { margin-top: 28px; max-width: 760px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.cta p { margin-top: 18px; font-size: 17px; color: var(--panel-text); }
.cta .hero__ctas { margin-top: 36px; }
.cta .btn--ghost { border-color: var(--panel-line); background: rgba(255, 255, 255, 0.05); }

/* ---------- footer ---------- */
.footer { padding: 80px var(--gutter) 56px; }
.footer__top {
  display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center;
  padding-top: 36px; border-top: 1px solid var(--line);
}
.footer__top img { height: 22px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; }
.footer__note { margin-top: 28px; max-width: 760px; font-size: 13px; line-height: 1.6; color: var(--text-3); }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(4px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
  will-change: opacity, transform, filter;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.no-js .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Staggered delay for child items */
.steps .card:nth-child(1) { transition-delay: 0.05s; }
.steps .card:nth-child(2) { transition-delay: 0.15s; }
.steps .card:nth-child(3) { transition-delay: 0.25s; }

.grid .grid__item:nth-child(1) { transition-delay: 0.04s; }
.grid .grid__item:nth-child(2) { transition-delay: 0.09s; }
.grid .grid__item:nth-child(3) { transition-delay: 0.14s; }
.grid .grid__item:nth-child(4) { transition-delay: 0.19s; }
.grid .grid__item:nth-child(5) { transition-delay: 0.24s; }
.grid .grid__item:nth-child(6) { transition-delay: 0.29s; }

/* ---------- modern CSS scroll-driven animations (Progressive Enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes hero-shot-scroll-tilt {
      from {
        transform: perspective(1200px) rotateX(10deg) scale(0.94);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
      }
      to {
        transform: perspective(1200px) rotateX(0deg) scale(1);
        box-shadow: var(--hero-shadow);
      }
    }
    .hero__shot {
      animation: hero-shot-scroll-tilt auto cubic-bezier(.16, 1, .3, 1) both;
      animation-timeline: view();
      animation-range: entry 5% cover 45%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .scroll-progress {
    display: none;
  }
}
