/* =========================================================================
   SiriusQuant – Landing Page
   Design tokens consistent with the QuantDesk app
   ========================================================================= */

:root {
  /* Accent (default violet, color-mix derivations like the app) */
  --accent: #8b5cf6;
  --accent-strong: color-mix(in srgb, var(--accent) 88%, white 12%);
  --accent-hover: color-mix(in srgb, var(--accent) 82%, black 18%);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 38%, transparent);
  --on-accent: #ffffff;

  /* Score color scale: dark green -> light green -> yellow -> light red -> dark red */
  --score-1: #16a34a; /* excellent */
  --score-2: #4ade80; /* good */
  --score-3: #eab308; /* neutral */
  --score-4: #fb7185; /* weak */
  --score-5: #e11d48; /* bad */
  --score-na: #6b7280; /* n/a */

  --pos: #22c55e;
  --neg: #f43f5e;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Radius / shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --maxw: 1200px;
}

/* ---------- Dark (default) ---------- */
:root,
[data-theme="dark"] {
  --bg: #0b0b0e;
  --bg-soft: #0e0e13;
  --surface: #131319;
  --surface-2: #1a1a22;
  --surface-3: #21212b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f3f6;
  --text-2: #b8b8c4;
  --text-3: #8b8b98;
  --grid-line: rgba(255, 255, 255, 0.06);
  --glow: color-mix(in srgb, var(--accent) 30%, transparent);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -28px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- Light ---------- */
[data-theme="light"] {
  --bg: #f6f6f9;
  --bg-soft: #f0f0f4;
  --surface: #ffffff;
  --surface-2: #f7f7fa;
  --surface-3: #eeeef3;
  --border: rgba(15, 15, 25, 0.10);
  --border-strong: rgba(15, 15, 25, 0.16);
  --text: #16161d;
  --text-2: #4a4a57;
  --text-3: #74747f;
  --grid-line: rgba(15, 15, 25, 0.07);
  --glow: color-mix(in srgb, var(--accent) 22%, transparent);
  --shadow: 0 24px 60px -28px rgba(20, 14, 40, 0.28);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 36px -26px rgba(30, 20, 60, 0.28);
  color-scheme: light;
}

* { box-sizing: border-box; }

/* Fokus-Rahmen entfernen (inkl. der per FocusOnNavigate fokussierten <h1>) */
*:focus,
*:focus-visible { outline: none; }
h1:focus, h1:focus-visible { outline: none; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 10px 26px -12px var(--glow), 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent) inset;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 14px 34px -12px var(--glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; }

/* =========================================================================
   Header / Nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark {
  position: relative; width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark img { width: 30px; height: 30px; object-fit: contain; display: block; }
.brand-name b { font-weight: 700; }
.brand-name span { color: var(--accent-strong); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a {
  font-size: 14.5px; color: var(--text-2); padding: 8px 13px; border-radius: var(--r-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.seg {
  display: inline-flex; align-items: center; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 3px; gap: 2px;
}
.seg button {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--text-3); background: transparent; border: 0; cursor: pointer;
  padding: 5px 9px; border-radius: 6px; transition: color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
}
.seg button.active { color: var(--text); background: var(--surface-3); }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text-2); cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
[data-theme="light"] .theme-sun { display: block; }
[data-theme="light"] .theme-moon { display: none; }

.nav-toggle { display: none; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; padding: 78px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto 0; height: 720px; z-index: 0;
  background:
    radial-gradient(680px 380px at 18% 8%, var(--accent-soft), transparent 70%),
    radial-gradient(560px 420px at 92% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 1.18fr; gap: 56px; align-items: center;
}
/* Grid-Kinder dürfen schrumpfen, damit Inhalt nicht in die Nachbarspalte überläuft */
.hero-copy, .hero-visual { min-width: 0; }
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  margin: 22px 0 0;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero h1 em { font-style: normal; color: var(--accent-strong); }
.hero-sub { color: var(--text-2); font-size: clamp(16px, 1.4vw, 19px); margin-top: 22px; max-width: 520px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--text-3); font-size: 13.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--accent-strong); }

/* =========================================================================
   Dashboard mock
   ========================================================================= */
.mock {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.mock::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.mock-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.mock-url {
  flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 5px 11px;
  display: flex; align-items: center; gap: 7px; max-width: 280px;
}
.mock-url svg { width: 12px; height: 12px; color: var(--accent-strong); }
.mock-tag { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

.mock-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; padding: 16px; }
@media (max-width: 520px) { .mock-body { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-title { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: 0.01em; }
.panel-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* chart panel */
.chart-panel { grid-row: span 1; }
.chart-kpis { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.chart-val { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.chart-delta { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--pos); display: inline-flex; align-items: center; gap: 4px; }
.chart-delta.neg { color: var(--neg); }
.spline-wrap { position: relative; width: 100%; height: 132px; }
.spline-wrap svg { width: 100%; height: 100%; display: block; }
.spline-path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: var(--len, 1000); stroke-dashoffset: 0;
  filter: drop-shadow(0 6px 10px var(--glow));
}
.reveal .spline-path { animation: drawline 1.8s cubic-bezier(.6,.05,.2,1) forwards; }
@keyframes drawline { from { stroke-dashoffset: var(--len, 1000); } to { stroke-dashoffset: 0; } }
.chart-tabs { display: flex; gap: 4px; }
.chart-tabs-x { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
.range-pills { display: flex; gap: 3px; }
.range-pills b { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--text-3); padding: 3px 7px; border-radius: 5px; }
.range-pills b.on { color: var(--accent-strong); background: var(--accent-soft); }

/* top quants list */
.quant-list { display: flex; flex-direction: column; gap: 7px; }
.quant-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--grid-line); }
.quant-row:last-child { border-bottom: 0; }
.quant-tk { display: flex; align-items: center; gap: 9px; }
.tk-badge { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--text); background: var(--surface-3); border: 1px solid var(--border); }
.quant-name { font-size: 12.5px; font-weight: 500; }
.quant-name small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); font-weight: 400; }
.quant-spark { width: 54px; height: 20px; }
.quant-spark svg { width: 100%; height: 100%; }
.score-chip {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #07120c;
  min-width: 36px; text-align: center; padding: 4px 7px; border-radius: 6px;
}

/* mini donut + kpis column */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px 12px; }
.kpi .k-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.kpi .k-val { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-top: 3px; }
.kpi .k-sub { font-family: var(--font-mono); font-size: 10.5px; margin-top: 1px; }
.kpi .k-sub.pos { color: var(--pos); } .kpi .k-sub.neg { color: var(--neg); }

.donut-panel { display: flex; align-items: center; gap: 14px; }
.donut { width: 92px; height: 92px; flex: none; position: relative; }
.donut svg { transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-center b { font-family: var(--font-display); font-size: 17px; }
.donut-center small { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--text-3); letter-spacing: 0.05em; }
.legend { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 8px; }
.legend div { display: flex; align-items: center; color: var(--text-2); }
.legend b { margin-left: auto; font-family: var(--font-mono); font-weight: 500; padding-left: 14px; }

.float-badge {
  position: absolute; right: -14px; top: 86px; z-index: 3;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: var(--shadow); padding: 11px 14px; display: flex; align-items: center; gap: 11px;
}
.float-badge .fb-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; }
.float-badge .fb-ico svg { width: 18px; height: 18px; }
.float-badge .fb-num { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.float-badge .fb-lab { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
@media (max-width: 1040px) { .float-badge { display: none; } }

/* =========================================================================
   Stat band
   ========================================================================= */
.stat-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; }
.stat-num span { color: var(--accent-strong); }
.stat-label { font-size: 13.5px; color: var(--text-3); margin-top: 4px; }
@media (max-width: 720px) { .stat-band .wrap { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); } }

/* =========================================================================
   Section scaffolding
   ========================================================================= */
section.block { padding: 92px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 16px; }
.section-head p { color: var(--text-2); font-size: 17px; margin-top: 16px; text-wrap: pretty; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* =========================================================================
   Features
   ========================================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
.feature-card:hover::before { opacity: 1; }
.f-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--accent-line); margin-bottom: 16px; }
.f-ico svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 19px; }
.feature-card p { color: var(--text-2); font-size: 14.5px; margin-top: 9px; }
.f-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.f-tags b { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 8px; border-radius: 5px; }

/* =========================================================================
   Models (Vega & Alpha)
   ========================================================================= */
.models { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.model-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.model-card .glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; filter: blur(60px); opacity: 0.18; top: -120px; right: -80px; pointer-events: none; }
.model-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-3); }
.model-tag i { width: 8px; height: 8px; border-radius: 2px; }
.model-card h3 { font-size: 30px; margin-top: 12px; }
.model-card .model-kicker { font-size: 14px; color: var(--text-2); margin-top: 6px; font-weight: 500; }
.model-card > p { color: var(--text-2); font-size: 14.5px; margin-top: 14px; }
.model-stats { display: flex; gap: 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.model-stats .ms-num { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.model-stats .ms-lab { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-top: 2px; }

.score-legend { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; box-shadow: var(--shadow-card); }
.score-legend .sl-title { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.score-scale { display: flex; flex: 1; min-width: 280px; height: 12px; border-radius: 6px; overflow: hidden; }
.score-scale i { flex: 1; }
.score-marks { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); flex-wrap: wrap; }
.score-marks span { display: inline-flex; align-items: center; gap: 6px; }
.score-marks i { width: 9px; height: 9px; border-radius: 2px; }

/* =========================================================================
   How it works
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow-card); position: relative; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-strong); border: 1px solid var(--accent-line); background: var(--accent-soft); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; }
.step h3 { font-size: 20px; margin-top: 18px; }
.step p { color: var(--text-2); font-size: 14.5px; margin-top: 10px; }
.step .step-ico { position: absolute; top: 26px; right: 26px; color: var(--text-3); opacity: 0.5; }
.step .step-ico svg { width: 22px; height: 22px; }

/* =========================================================================
   Data depth
   ========================================================================= */
.depth { background: var(--bg-soft); border-top: 1px solid var(--border); }
.depth-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.depth-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.depth-item { display: flex; align-items: flex-start; gap: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 15px; box-shadow: var(--shadow-card); }
.depth-item .di-ico { color: var(--accent-strong); margin-top: 1px; flex: none; }
.depth-item .di-ico svg { width: 17px; height: 17px; }
.depth-item b { font-size: 14px; font-weight: 600; display: block; }
.depth-item small { color: var(--text-3); font-size: 12.5px; }

/* =========================================================================
   Final CTA
   ========================================================================= */
.cta-final { position: relative; overflow: hidden; }
.cta-card {
  position: relative; border-radius: var(--r-xl); padding: 64px 56px; text-align: center;
  background:
    radial-gradient(600px 280px at 50% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow); overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--grid-line) 1px, transparent 0);
  background-size: 26px 26px; mask-image: radial-gradient(360px 200px at 50% 0%, #000, transparent 75%);
  opacity: 0.7;
}
.cta-card h2 { position: relative; font-size: clamp(30px, 4vw, 46px); }
.cta-card p { position: relative; color: var(--text-2); font-size: 18px; margin: 18px auto 0; max-width: 520px; }
.cta-card .hero-ctas { position: relative; justify-content: center; }
.cta-fine { position: relative; margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 34px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--text-3); font-size: 13.5px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; font-weight: 500; }
.footer-col a { display: block; color: var(--text-2); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-strong); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom small { color: var(--text-3); font-size: 12.5px; font-family: var(--font-mono); }
.footer-bottom .disclaimer { max-width: 640px; line-height: 1.6; }

/* =========================================================================
   Reveal on scroll
   ========================================================================= */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .reveal .spline-path { animation: none; stroke-dashoffset: 0; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 640px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  section.block { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .feature-grid, .model-grid, .steps, .depth-list { grid-template-columns: 1fr; }
  .depth-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-card { padding: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
}
@media (max-width: 460px) {
  .nav-actions .seg { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name small { display: none; }
}

/* =========================================================================
   Sub-pages (pricing, legal, contact, about)
   ========================================================================= */
.page-hero { position: relative; padding: 70px 0 22px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -200px 0 auto 0; height: 460px; z-index: 0;
  background: radial-gradient(620px 320px at 20% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); margin-top: 16px; overflow-wrap: break-word; }
.page-hero h1 em { font-style: normal; color: var(--accent-strong); }
.page-lead { color: var(--text-2); font-size: clamp(16px, 1.4vw, 19px); margin-top: 18px; max-width: 600px; text-wrap: pretty; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.price-card.featured {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line) inset, 0 26px 60px -30px var(--glow);
}
@media (min-width: 921px) { .price-card.featured { transform: translateY(-10px); } .price-card.featured:hover { transform: translateY(-14px); } }
.price-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; box-shadow: 0 8px 20px -10px var(--glow);
}
.price-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.price-tagline { color: var(--text-3); font-size: 14px; margin-top: 4px; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin: 20px 0 22px; flex-wrap: wrap; }
.price-cur { font-size: 20px; color: var(--text-2); font-weight: 600; }
.price-num { font-family: var(--font-display); font-size: 46px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.price-per { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.price-cta { width: 100%; margin-bottom: 22px; }
.price-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; color: var(--text-2); }
.price-features li { position: relative; padding-left: 27px; }
.price-features li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.price-features li.incl { padding-left: 0; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.price-features li.incl::before { display: none; }
.pricing-note { text-align: center; color: var(--text-3); font-family: var(--font-mono); font-size: 12.5px; margin-top: 30px; }

/* ---------- Legal / content ---------- */
.legal-block { padding-top: 8px; }
.legal { max-width: 780px; }
.legal h2 { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--text); margin-top: 34px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--text-2); font-size: 15.5px; line-height: 1.75; margin-top: 12px; }
.legal a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.legal a:hover { text-decoration-color: var(--accent-strong); }
.legal-note {
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-md);
  padding: 14px 16px; color: var(--text-2); font-size: 14px; margin: 0 0 28px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
a.contact-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.contact-card h3 { font-size: 18px; }
.contact-card p { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.contact-link { margin-top: 16px; color: var(--accent-strong); font-size: 13px; }

@media (max-width: 920px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
}