/* ─── TWEAK DEFAULTS ─────────────────────────────────────────── */
:root {
  --accent: #4F6BFF;
  --accent-hover: #6B83FF;
  --accent-soft: rgba(79, 107, 255, 0.14);
  --accent-ring: rgba(79, 107, 255, 0.45);
}

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root[data-theme="dark"] {
  --bg-base: #06070C;
  --bg-elev: #0B0D14;
  --surface: #0E1018;
  --surface-strong: #131623;
  --surface-muted: #161A26;

  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.10);
  --border-bright: rgba(255,255,255,0.18);

  --text: #ECEEF5;
  --text-muted: #A6ACBE;
  --text-subtle: #6E7488;
  --text-faint: #4A4F62;

  --success: #34D399;
  --success-soft: rgba(52,211,153,0.14);
  --danger: #F87171;
  --warning: #FBBF24;

  --chart-1: var(--accent);
  --chart-2: #34D399;
  --chart-3: #7B8CFF;
  --chart-grid: rgba(255,255,255,0.06);

  --shadow-sm: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,0.7), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-glow: 0 0 80px -20px var(--accent-ring);

  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg-base: #F6F7FB;
  --bg-elev: #FFFFFF;
  --surface: #FFFFFF;
  --surface-strong: #FFFFFF;
  --surface-muted: #F2F4FA;

  --border: rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.14);
  --border-bright: rgba(15,23,42,0.22);

  --text: #0B1220;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --text-faint: #94A3B8;

  --success: #059669;
  --success-soft: rgba(5,150,105,0.10);
  --danger: #DC2626;
  --warning: #D97706;

  --chart-1: var(--accent);
  --chart-2: #10B981;
  --chart-3: #8B92FF;
  --chart-grid: rgba(15,23,42,0.06);

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.06);
  --shadow-lg: 0 24px 48px -12px rgba(15,23,42,0.18);
  --shadow-glow: 0 0 80px -20px var(--accent-ring);

  color-scheme: light;
}

:root {
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: white; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── PAGE BACKDROP ────────────────────────────────────────── */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  overflow: hidden;
}
.backdrop::before {
  content: ""; position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-ring), transparent 70%);
  opacity: 0.55; filter: blur(20px);
}
:root[data-theme="light"] .backdrop::before { opacity: 0.35; }

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  opacity: 0.6;
}

/* ─── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  background: color-mix(in oklab, var(--bg-base) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset, 0 6px 20px -8px var(--accent-ring);
  flex-shrink: 0;
}
.brand-mark svg { display: block; }

.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px; color: var(--text-muted); font-weight: 500;
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; gap: 10px; align-items: center; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { padding: 12px 18px; }
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 10px;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  transition: transform .12s, background .15s, border-color .15s, color .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 12px 24px -10px var(--accent-ring);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--surface-strong); color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--border-bright); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-muted); }

.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 9px;
  background: var(--surface-strong);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-bright); }

/* ─── SECTION ──────────────────────────────────────────────── */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: 110px 28px;
}
@media (max-width: 760px) {
  .section { padding: 72px 18px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted);
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border-strong);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 600;
  margin: 20px 0 14px;
  color: var(--text);
  text-wrap: balance;
}
.section-sub {
  font-size: 17px; line-height: 1.55;
  color: var(--text-muted);
  max-width: 620px;
  text-wrap: pretty;
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 88px; padding-bottom: 100px;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 7.6vw, 96px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 28px 0 24px;
  color: var(--text);
  text-wrap: balance;
  max-width: 14ch;
}
.hero-headline .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.hero-sub {
  font-size: 19px; line-height: 1.5;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: 28px;
  display: flex; gap: 22px; flex-wrap: wrap;
  color: var(--text-subtle);
  font-size: 13px;
  font-family: var(--font-mono);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--text-muted); }

.hero-windows {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-muted);
  font-weight: 500;
}
.win-glyph {
  display: inline-grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  width: 14px; height: 14px; gap: 1.5px;
}
.win-glyph i { background: currentColor; border-radius: 1px; display: block; }

/* ─── HERO VISUAL: DASHBOARD MOCKUP ────────────────────────── */
.hero-mockup {
  position: relative;
  margin-top: 70px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}
.hero-mockup::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, var(--accent-soft), transparent 60%);
  pointer-events: none; opacity: 0.7;
}
.win-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 12px; color: var(--text-subtle);
  font-family: var(--font-mono);
}
.win-titlebar .lights { display: flex; gap: 6px; }
.win-titlebar .lights i {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface-muted);
  border: 1px solid var(--border-strong);
}
.win-controls { margin-left: auto; display: flex; gap: 14px; color: var(--text-faint); }
.win-controls svg { display: block; }

.mockup-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 480px;
}
.mockup-side {
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  background: var(--bg-elev);
  display: flex; flex-direction: column;
  gap: 4px;
}
.mockup-side .side-brand {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 8px 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.mockup-side .side-brand .brand-mark { width: 22px; height: 22px; border-radius: 5px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 7px;
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.side-link.active { background: var(--accent-soft); color: var(--accent); }
.side-link svg { flex-shrink: 0; }

.mockup-main { padding: 24px 28px; min-width: 0; }
.mockup-h {
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.mockup-h h3 {
  font-family: var(--font-display); margin: 0;
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
}
.mockup-h p {
  margin: 4px 0 0; color: var(--text-subtle); font-size: 12px;
}
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
}
.stat .lbl {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-subtle); font-weight: 500;
}
.stat .val {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 600;
  margin-top: 4px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat.accent .val { color: var(--accent); }
.stat.green .val { color: var(--success); }

.chart-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 18px;
}
.chart-h {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.chart-h .ctitle {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
}
.chart-h .legend { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.chart-h .legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-h .legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

.chart {
  display: flex; gap: 14px; align-items: end;
  height: 180px;
  padding: 0 4px;
  position: relative;
}
.chart::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 24px;
  background-image: linear-gradient(var(--chart-grid) 1px, transparent 1px);
  background-size: 100% 33.33%;
}
.bar-group {
  flex: 1; display: flex; gap: 3px; align-items: end;
  height: calc(100% - 24px);
  position: relative; z-index: 1;
}
.bar {
  flex: 1; border-radius: 3px 3px 0 0;
  min-width: 6px;
  transition: filter .2s;
}
.bar.p { background: var(--chart-1); }
.bar.w { background: var(--chart-3); }
.bar.i { background: var(--chart-2); }
.bar-group:hover .bar { filter: brightness(1.1); }
.bar-month {
  position: absolute; left: 0; right: 0; bottom: 0;
  text-align: center; font-size: 10px;
  color: var(--text-subtle); font-family: var(--font-mono);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-side { display: none; }
  .mockup-stats { grid-template-columns: repeat(2, 1fr); }
}

.hero-pillar {
  position: relative;
  border-radius: 18px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex; flex-direction: column; gap: 14px;
}
.hero-pillar .ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--surface-muted);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--text);
}
.hero-pillar h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 17px; margin: 0; letter-spacing: -0.01em;
}
.hero-pillar p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

/* ─── FEATURES ─────────────────────────────────────────────── */
.features-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 760px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column;
  min-height: 260px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--border-bright); }
.feature-card .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-subtle); letter-spacing: 0.1em;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
  margin: 18px 0 10px;
  line-height: 1.15;
}
.feature-card p {
  font-size: 14.5px; line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 38ch;
}
.feature-art {
  margin-top: auto;
  height: 100px;
  margin-left: -10px; margin-right: -10px;
  margin-bottom: -10px;
  display: flex; align-items: end; justify-content: center;
  position: relative;
}

/* feature 1: split bar */
.fa-split {
  display: flex; width: 100%; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.fa-split .fa-p { background: var(--chart-1); flex: 0 0 62%; position: relative; }
.fa-split .fa-w { background: var(--chart-3); flex: 1; position: relative; }
.fa-split .fa-p::after, .fa-split .fa-w::after {
  content: attr(data-l);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.fa-split .fa-w::after { color: var(--text); }
:root[data-theme="light"] .fa-split .fa-w::after { color: var(--text); }

/* feature 2: mini bars */
.fa-bars {
  display: flex; gap: 6px; align-items: end;
  height: 88px; width: 100%;
}
.fa-bars i {
  flex: 1; background: var(--accent);
  border-radius: 3px 3px 0 0;
  display: block;
}
.fa-bars i:nth-child(odd) { background: var(--chart-3); }

/* feature 3: hard drive */
.fa-drive {
  width: 100%; height: 88px;
  display: grid; place-items: center;
  position: relative;
}

/* feature 4: export */
.fa-export {
  width: 100%; height: 88px;
  display: flex; gap: 8px; align-items: end; justify-content: center;
}
.fa-export .doc {
  width: 46px; height: 64px;
  background: var(--surface-muted);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  position: relative;
  padding: 8px 6px;
  display: flex; flex-direction: column; gap: 3px;
}
.fa-export .doc i {
  height: 3px; background: var(--text-faint);
  border-radius: 1px; display: block;
}
.fa-export .doc i:nth-child(1) { width: 80%; }
.fa-export .doc i:nth-child(2) { width: 60%; }
.fa-export .doc i:nth-child(3) { width: 70%; }
.fa-export .doc .ext {
  position: absolute; bottom: 5px; right: 5px;
  font-family: var(--font-mono); font-size: 8px;
  color: var(--accent); font-weight: 600;
}
.fa-export .doc.csv .ext { color: var(--success); }

/* ─── RELEASES ─────────────────────────────────────────────── */
.releases {
  margin-top: 56px;
  position: relative;
}
.releases::before {
  content: ""; position: absolute;
  left: 88px; top: 32px; bottom: 32px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-strong) 8%, var(--border-strong) 92%, transparent);
}
@media (max-width: 760px) {
  .releases::before { left: 14px; }
}
.releases-empty {
  padding: 48px 0;
  font-size: 15px;
  color: var(--text-subtle);
  text-align: center;
}
.release {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 30px;
  padding: 22px 0;
  align-items: start;
  position: relative;
}
@media (max-width: 760px) {
  .release { grid-template-columns: 1fr; gap: 12px; padding-left: 40px; }
}
.release-meta {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-subtle);
  padding-top: 22px;
}
.release-meta::before {
  content: ""; position: absolute;
  left: 80px; top: 30px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--border-bright);
}
@media (max-width: 760px) {
  .release-meta { padding-top: 0; padding-left: 28px; }
  .release-meta::before { left: 6px; top: 5px; }
}
.release.latest .release-meta::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.release-body {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px 26px;
  position: relative;
}
.release.latest .release-body {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border-strong));
  box-shadow: 0 0 0 1px var(--accent-soft) inset, 0 24px 60px -28px var(--accent-ring);
}
.release.latest .release-body::after {
  content: "LATEST";
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
}

.release-h {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.version-badge {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  padding: 4px 10px; border-radius: 7px;
  background: var(--surface-muted);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.release.latest .version-badge {
  background: var(--accent-soft);
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
  color: var(--accent);
}
.release-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; letter-spacing: -0.01em;
  margin: 0;
}
.release ul {
  margin: 0 0 18px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.release ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14px; color: var(--text-muted);
  line-height: 1.55;
}
.release ul li::before {
  content: ""; position: absolute;
  left: 4px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-subtle);
}
.release.latest ul li::before { background: var(--accent); }
.release ul li b {
  font-weight: 600; color: var(--text);
}
.release ul li code {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text);
  background: var(--surface-muted);
  padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--border);
}
.release-foot {
  display: flex; gap: 10px; align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.release-foot .size {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-subtle);
  margin-left: auto;
}

/* releases loading state */
.releases-loading {
  padding: 36px 0;
  text-align: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ─── FEEDBACK ─────────────────────────────────────────────── */
.feedback {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 48px;
  margin-top: 56px;
  overflow: hidden;
}
.feedback::before {
  content: ""; position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
@media (max-width: 760px) { .feedback { padding: 28px; } }

.fb-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 760px) { .fb-grid { grid-template-columns: 1fr; } }

.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}
.field label .opt {
  color: var(--text-faint); font-weight: 400;
  text-transform: none; letter-spacing: 0; margin-left: 6px;
}
.input, .textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.input:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }

.fb-foot {
  margin-top: 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  justify-content: space-between;
}
.fb-note {
  font-size: 13px; color: var(--text-subtle);
  font-family: var(--font-mono);
  display: inline-flex; align-items: center; gap: 8px;
}
.fb-note .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 4px var(--success-soft);
}

.fb-error {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(248,113,113,0.10);
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 13px;
  font-family: var(--font-mono);
}
.fb-error.shown { display: block; }

.fb-success {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 24px; text-align: center;
}
.fb-success.shown { display: flex; }
.fb-success .check {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--success-soft); color: var(--success);
  border: 1px solid var(--success);
}
.fb-success h3 {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 600; letter-spacing: -0.01em;
  margin: 0;
}
.fb-success p { color: var(--text-muted); margin: 0; }

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 36px 28px;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.footer .left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer .legal {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-subtle);
}
.footer .pill {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 9px; border-radius: 999px;
  background: var(--surface-muted); border: 1px solid var(--border-strong);
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-links {
  display: flex; gap: 22px;
  font-size: 13px; color: var(--text-muted);
  font-weight: 500;
}
.footer-links a:hover { color: var(--text); }

/* ─── MOTION ───────────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .6s cubic-bezier(.2,.7,.3,1) both; }
.rise.d1 { animation-delay: .05s; }
.rise.d2 { animation-delay: .12s; }
.rise.d3 { animation-delay: .2s; }
.rise.d4 { animation-delay: .28s; }
.rise.d5 { animation-delay: .36s; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.stagger.in > * { opacity: 1; transform: none; }
.reveal.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal.stagger.in > *:nth-child(4) { transition-delay: .24s; }

/* Aurora drift behind hero */
.backdrop::before {
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate(-50%, 0)     scale(1);   opacity: var(--aurora-op, 0.55); }
  50%  { transform: translate(-46%, 20px)  scale(1.1); opacity: calc(var(--aurora-op, 0.55) * 0.85); }
  100% { transform: translate(-54%, -10px) scale(0.95); opacity: var(--aurora-op, 0.55); }
}
:root[data-theme="light"] { --aurora-op: 0.35; }

/* Brand mark glint */
.brand-mark { position: relative; overflow: hidden; }
.brand-mark::after {
  content: ""; position: absolute; inset: -50%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.5) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: glint 6s ease-in-out infinite;
  animation-delay: 2s;
}
@keyframes glint {
  0%, 55% { transform: translateX(-100%); }
  72%, 100% { transform: translateX(100%); }
}

/* Primary CTA shimmer on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(110%); }

/* Bar grow-in for hero chart */
.bar { transform-origin: bottom; transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.7,.3,1); }
.chart.armed .bar { transform: scaleY(1); }
.bar.live { animation: live-pulse 2.4s ease-in-out infinite; animation-delay: 1.4s; }
@keyframes live-pulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.3); }
}

/* Feature 2 — perpetual mini bars */
#feature-bars i {
  transform-origin: bottom;
  animation: bar-sway 4s ease-in-out infinite alternate;
}
#feature-bars i:nth-child(1) { --h: 30%; animation-delay: .0s; }
#feature-bars i:nth-child(2) { --h: 55%; animation-delay: .25s; }
#feature-bars i:nth-child(3) { --h: 42%; animation-delay: .5s; }
#feature-bars i:nth-child(4) { --h: 70%; animation-delay: .75s; }
#feature-bars i:nth-child(5) { --h: 58%; animation-delay: 1.0s; }
#feature-bars i:nth-child(6) { --h: 88%; animation-delay: 1.25s; }
#feature-bars i:nth-child(7) { --h: 65%; animation-delay: 1.5s; }
#feature-bars i:nth-child(8) { --h: 78%; animation-delay: 1.75s; }
#feature-bars i:nth-child(9) { --h: 46%; animation-delay: 2.0s; }
@keyframes bar-sway {
  0%   { transform: scaleY(0.78); }
  100% { transform: scaleY(1.05); }
}

/* Feature 3 — hard drive activity LEDs */
.fa-drive .led-1 { animation: led-blink 1.6s steps(1) infinite; }
.fa-drive .led-2 { animation: led-blink 1.6s steps(1) infinite; animation-delay: .8s; }
.fa-drive .scan { animation: drive-scan 3.6s linear infinite; }
@keyframes led-blink {
  0%, 49%   { fill: var(--text-subtle); }
  50%, 100% { fill: var(--success); }
}
@keyframes drive-scan {
  0%   { transform: translateX(-40px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(140px); opacity: 0; }
}

/* Latest release ring pulse */
.release.latest .release-meta::before {
  animation: ring-pulse 2.4s ease-out infinite;
}
@keyframes ring-pulse {
  0%   { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 0 var(--accent-ring); }
  70%  { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 0 transparent; }
}

/* Mockup cursor */
.mock-cursor {
  position: absolute; left: 0; top: 0;
  width: 16px; height: 16px;
  pointer-events: none; z-index: 5;
  transition: transform 1.2s cubic-bezier(.5,.05,.2,1);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.mock-cursor svg { display: block; }
.side-link.highlight { background: var(--surface-muted); color: var(--text); transition: background .25s, color .25s; }

/* Live tick indicator on stat card */
.stat .lbl .live {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--success);
  margin-right: 6px;
  animation: tick 1.6s ease-in-out infinite;
  vertical-align: 1px;
}
@keyframes tick {
  0%, 100% { box-shadow: 0 0 0 0 var(--success-soft); }
  50%      { box-shadow: 0 0 0 4px transparent; }
}

/* Feature card subtle hover glow */
.feature-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }

/* Brand mark C — stroke draws on load */
.brand-mark svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw-c 1.4s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes draw-c { to { stroke-dashoffset: 0; } }

/* Floating ambient bars in backdrop */
.amb {
  position: absolute; bottom: -40px;
  display: flex; gap: 4px; align-items: end;
  opacity: 0;
  filter: blur(0.5px);
  animation: amb-rise 14s linear infinite;
}
.amb i {
  width: 8px; border-radius: 2px 2px 0 0;
  background: var(--accent);
  display: block;
  opacity: 0.35;
}
.amb.b i:nth-child(odd) { background: var(--chart-3); }
.amb.b i { opacity: 0.25; }
@keyframes amb-rise {
  0%   { transform: translateY(0)      rotate(0); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.55; }
  100% { transform: translateY(-140vh) rotate(-3deg); opacity: 0; }
}

/* Hero headline char stagger reveal + accent shimmer */
.hero-headline { padding-bottom: 0.12em; }
.hero-headline .ch {
  display: inline-block;
  vertical-align: top;
  line-height: 1;
  padding-bottom: 0.12em;
  opacity: 0;
  transform: translateY(28px) rotate(2deg);
  animation: ch-in .9s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes ch-in {
  to { opacity: 1; transform: none; }
}
.hero-headline .accent {
  background-image: linear-gradient(110deg, var(--accent) 0%, var(--accent) 40%, color-mix(in oklab, var(--accent) 55%, white) 50%, var(--accent) 60%, var(--accent) 100%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: accent-sweep 5s ease-in-out infinite;
}
@keyframes accent-sweep {
  0%, 100% { background-position: 100% 0; }
  50%      { background-position: 0% 0; }
}

.hero-headline .accent.ch {
  animation:
    ch-in .9s cubic-bezier(.2,.7,.3,1) forwards,
    accent-sweep 5s ease-in-out infinite;
}

/* Mockup window pulsing halo */
.hero-mockup { animation: mock-halo 5s ease-in-out infinite; }
@keyframes mock-halo {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 60px -30px var(--accent-ring); }
  50%      { box-shadow: var(--shadow-lg), 0 0 120px -10px var(--accent-ring); }
}

/* All chart bars subtly breathe */
.chart.armed .bar.p, .chart.armed .bar.w, .chart.armed .bar.i {
  animation: bar-breathe 3.6s ease-in-out infinite;
}
.bar-group:nth-child(2) .bar { animation-delay: .2s; }
.bar-group:nth-child(3) .bar { animation-delay: .4s; }
.bar-group:nth-child(4) .bar { animation-delay: .6s; }
.bar-group:nth-child(5) .bar { animation-delay: .8s; }
.bar-group:nth-child(6) .bar { animation-delay: 1.0s; }
@keyframes bar-breathe {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(1.05); }
}

/* Feature card 3D tilt */
.feature-card {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .2s;
}
.feature-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(2px); }

/* Section title accent bar */
.section-title { position: relative; }
.section.reveal.in .section-title::after {
  content: ""; position: absolute; left: 0; bottom: -16px;
  width: 56px; height: 3px; border-radius: 2px;
  background: var(--accent);
  transform-origin: left center;
  animation: title-rule .8s cubic-bezier(.2,.7,.3,1) .2s both;
}
@keyframes title-rule {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Shipping dot — travels down the changelog rail */
.releases::after {
  content: ""; position: absolute;
  left: 88px; top: 0;
  width: 7px; height: 7px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft), 0 0 24px var(--accent);
  animation: ship-dot 6.5s cubic-bezier(.4,0,.6,1) infinite;
}
@media (max-width: 760px) { .releases::after { left: 14px; } }
@keyframes ship-dot {
  0%   { top: 0;    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Live transaction ticker */
.ticker {
  margin-top: 28px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, var(--surface-muted), transparent);
  position: relative;
  --ticker-mask: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: var(--ticker-mask);
  -webkit-mask-image: var(--ticker-mask);
}
.ticker-track {
  display: flex; gap: 28px; align-items: center;
  padding: 12px 0;
  width: max-content;
  animation: ticker-roll 42s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tx {
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tx .tx-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 4px;
}
.tx .tx-tag.p { background: var(--accent-soft); color: var(--accent); }
.tx .tx-tag.w { background: rgba(123, 140, 255, 0.14); color: var(--chart-3); }
.tx .tx-tag.i { background: var(--success-soft); color: var(--success); }
.tx .tx-amt { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.tx .tx-amt.neg { color: var(--text); }
.tx .tx-amt.pos { color: var(--success); }

/* Mockup window crawl dot */
.chart-card { position: relative; overflow: hidden; }
.chart-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 320deg, var(--accent) 350deg, transparent 360deg);
  opacity: 0;
  animation: card-glint 7s linear infinite;
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}
@keyframes card-glint {
  0%   { opacity: 0; transform: rotate(0deg); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { opacity: 0; transform: rotate(360deg); }
}

/* Magnetic CTA support */
.magnet {
  transition: transform .22s cubic-bezier(.2,.7,.3,1);
}
.magnet[data-active="1"] {
  transform: translate(var(--mx, 0px), var(--my, 0px));
}

/* Eyebrow dot pulse */
.eyebrow .dot { animation: dot-pulse 2s ease-in-out infinite; }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

/* Motion off / subtle still respected */
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; }
[data-motion="off"] .reveal { opacity: 1; transform: none; }
[data-motion="off"] .bar { transform: scaleY(1); }
[data-motion="off"] .mock-cursor { display: none; }
[data-motion="off"] .ticker { display: none; }
[data-motion="off"] .amb { display: none; }
[data-motion="off"] .hero-headline .ch { opacity: 1; transform: none; }
[data-motion="off"] .hero-headline .accent { color: var(--accent); -webkit-text-fill-color: var(--accent); background: none; }

[data-motion="subtle"] .brand-mark::after,
[data-motion="subtle"] .bar.live,
[data-motion="subtle"] .release.latest .release-meta::before,
[data-motion="subtle"] #feature-bars i,
[data-motion="subtle"] .stat .lbl .live,
[data-motion="subtle"] .amb,
[data-motion="subtle"] .releases::after,
[data-motion="subtle"] .chart-card::after,
[data-motion="subtle"] .chart.armed .bar.p,
[data-motion="subtle"] .chart.armed .bar.w,
[data-motion="subtle"] .chart.armed .bar.i { animation: none; }
[data-motion="subtle"] .mock-cursor { display: none; }
[data-motion="subtle"] .ticker { display: none; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .mock-cursor { display: none; }
  .ticker { display: none; }
  .amb { display: none; }
}

/* small underlined link */
.link-inline {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.link-inline:hover { color: var(--text); border-color: var(--text-muted); }
