/* Timpul Landing — light default + dark via html[data-theme="dark"]
   Native CSS only. Colors / type from DESIGN.md + Stitch refs. */

/* ========== Fonts ========== */
/* Plus Jakarta Sans — Latin (+ext). Cyrillic falls back to Inter (GF has no full Cyrillic). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter — body + Cyrillic headlines fallback */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — metrics */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========== Tokens (light default / dark via data-theme) ========== */
:root {
  /* Semantic — light (Stitch light reference) */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --card-muted: #F8FAFC;
  --text: #050B2E;
  --text-muted: #64748B;
  --text-soft: #475569;
  --line: #E6EAF0;
  --line-strong: #CBD5E1;
  --accent-from: #1EACBB;
  --accent-to: #00B79E;
  --accent: linear-gradient(135deg, #1EACBB 0%, #00B79E 100%);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.08);
  --danger-bd: rgba(239, 68, 68, 0.28);
  --danger-text: #E11D48;
  --ok: #059669;
  --ok-soft: #10B981;
  --ok-bg: rgba(16, 185, 129, 0.10);
  --ok-bd: rgba(16, 185, 129, 0.28);
  --warn: #D97706;
  --warn-text: #B45309;
  --warn-bg: rgba(245, 158, 11, 0.10);
  --warn-bd: rgba(245, 158, 11, 0.30);
  --teal: #00B79E;
  --cyan: #1EACBB;
  --cyan-soft: #0891B2;
  --cyan-bright: #0E7490;
  --grad: var(--accent);
  --grad-text: linear-gradient(135deg, #0891B2 0%, #1EACBB 50%, #00B79E 100%);
  --hairline: #E6EAF0;
  --hairline-strong: rgba(30, 172, 187, 0.35);
  --header-bg: rgba(248, 250, 252, 0.88);
  --header-border: rgba(230, 234, 240, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: #E6EAF0;
  --glass-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --glow-teal: 0 0 40px -10px rgba(0, 183, 158, 0.28);
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --nav-link: #475569;
  --nav-link-hover: #050B2E;
  --pipeline-bg: #F1F5F9;
  --inset-bg: #F8FAFC;
  --inset-border: #E6EAF0;
  --track: #E6EAF0;
  --node-bg: #FFFFFF;
  --node-border: #E6EAF0;
  --btn-on-accent: #FFFFFF;
  --btn-ghost: #475569;
  --eyebrow-fg: #0E7490;
  --eyebrow-bg: #FFFFFF;
  --eyebrow-bd: rgba(30, 172, 187, 0.28);
  --live-bg: rgba(16, 185, 129, 0.10);
  --live-fg: #059669;
  --live-bd: rgba(16, 185, 129, 0.22);
  --risk: var(--danger);
  --risk-bg: var(--danger-bg);
  --risk-bd: var(--danger-bd);
  --risk-fg: #E11D48;
  --meta-bg: #F8FAFC;
  --meta-bd: #E6EAF0;
  --meta-val: #050B2E;
  --deal-ai-bg: #F8FAFC;
  --deal-ai-bd: #E6EAF0;
  --deal-ai-fg: #0D9488;
  --rec-bg: rgba(0, 183, 158, 0.06);
  --rec-bd: rgba(0, 183, 158, 0.28);
  --rec-lbl: #0F766E;
  --pill-bg: #FFFFFF;
  --ambient-1: rgba(30, 172, 187, 0.12);
  --ambient-2: rgba(0, 183, 158, 0.08);
  --ambient-3: rgba(30, 172, 187, 0.07);
  --grid-line: rgba(5, 11, 46, 0.045);
  --lang-bg: rgba(255, 255, 255, 0.95);
  --lang-bd: #E6EAF0;
  --lang-fg: #64748B;
  --wave-bg: #F1F5F9;
  --chart-bg: #F8FAFC;
  --silent: #CBD5E1;
  --score-track: #E2E8F0;
  --section-border: #E6EAF0;
  --info-shadow: 0 8px 28px -4px rgba(15, 23, 42, 0.08);
  --footer-fg: #64748B;
  --accent-glow: rgba(0, 183, 158, 0.22);
  --pulse-ring: rgba(30, 172, 187, 0.35);
  --spec-accent: #0E7490;
  --spec-code: #0D9488;
  --canvas: var(--bg);
  --text-2: var(--text-muted);
  --text-3: var(--text-muted);
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --font-display: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 80rem;
  --gutter: 1.5rem;
  --transition-panel: 260ms;
}

html[data-theme="dark"] {
  --bg: #050B2E;
  --surface: #0B1340;
  --card: #0B1340;
  --card-muted: #070e38;
  --text: #FFFFFF;
  --text-muted: #94A3B8;
  --text-soft: #CBD5E1;
  --line: rgba(30, 172, 187, 0.2);
  --line-strong: rgba(30, 172, 187, 0.35);
  --accent-from: #1EACBB;
  --accent-to: #00B79E;
  --accent: linear-gradient(135deg, #1EACBB 0%, #00B79E 100%);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-bd: rgba(239, 68, 68, 0.3);
  --danger-text: #FB7185;
  --ok: #10B981;
  --ok-soft: #34D399;
  --ok-bg: rgba(16, 185, 129, 0.10);
  --ok-bd: rgba(16, 185, 129, 0.20);
  --warn: #F59E0B;
  --warn-text: #FCD34D;
  --warn-bg: rgba(245, 158, 11, 0.10);
  --warn-bd: rgba(245, 158, 11, 0.30);
  --teal: #00B79E;
  --cyan: #1EACBB;
  --cyan-soft: #38BDF8;
  --cyan-bright: #67E8F9;
  --grad: var(--accent);
  --grad-text: linear-gradient(135deg, #38BDF8 0%, #1EACBB 50%, #00B79E 100%);
  --hairline: rgba(30, 172, 187, 0.2);
  --hairline-strong: rgba(30, 172, 187, 0.35);
  --header-bg: rgba(5, 11, 46, 0.80);
  --header-border: rgba(30, 172, 187, 0.10);
  --glass-bg: rgba(11, 19, 64, 0.65);
  --glass-border: rgba(30, 172, 187, 0.22);
  --glass-shadow: 0 20px 50px rgba(2, 6, 23, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --glow-teal: 0 0 45px -8px rgba(0, 183, 158, 0.35);
  --shadow: 0 20px 50px rgba(2, 6, 23, 0.55);
  --shadow-sm: 0 8px 20px rgba(2, 6, 23, 0.4);
  --nav-link: #CBD5E1;
  --nav-link-hover: #FFFFFF;
  --pipeline-bg: rgba(7, 14, 56, 0.70);
  --inset-bg: rgba(5, 11, 46, 0.9);
  --inset-border: rgba(30, 172, 187, 0.30);
  --track: #1e293b;
  --node-bg: #0B1340;
  --node-border: #334155;
  --btn-on-accent: #050B2E;
  --btn-ghost: #CBD5E1;
  --eyebrow-fg: #67E8F9;
  --eyebrow-bg: #0B1340;
  --eyebrow-bd: rgba(30, 172, 187, 0.25);
  --live-bg: rgba(16, 185, 129, 0.10);
  --live-fg: #34D399;
  --live-bd: rgba(16, 185, 129, 0.20);
  --risk: #EF4444;
  --risk-bg: rgba(239, 68, 68, 0.12);
  --risk-bd: rgba(239, 68, 68, 0.3);
  --risk-fg: #FB7185;
  --meta-bg: rgba(15, 23, 42, 0.6);
  --meta-bd: #1e293b;
  --meta-val: #E2E8F0;
  --deal-ai-bg: rgba(15, 23, 42, 0.8);
  --deal-ai-bd: #334155;
  --deal-ai-fg: #2DD4BF;
  --rec-bg: rgba(4, 47, 46, 0.3);
  --rec-bd: rgba(20, 184, 166, 0.3);
  --rec-lbl: #99F6E4;
  --pill-bg: #050B2E;
  --ambient-1: rgba(30, 172, 187, 0.10);
  --ambient-2: rgba(0, 183, 158, 0.08);
  --ambient-3: rgba(30, 172, 187, 0.08);
  --grid-line: rgba(255, 255, 255, 0.02);
  --lang-bg: rgba(11, 19, 64, 0.85);
  --lang-bd: rgba(30, 172, 187, 0.25);
  --lang-fg: #94A3B8;
  --wave-bg: rgba(2, 6, 23, 0.7);
  --chart-bg: rgba(2, 6, 23, 0.8);
  --silent: #334155;
  --score-track: #1e293b;
  --section-border: rgba(30, 41, 59, 0.8);
  --info-shadow: 0 8px 32px -4px rgba(2, 6, 23, 0.6);
  --footer-fg: #64748B;
  --accent-glow: rgba(0, 183, 158, 0.4);
  --pulse-ring: rgba(34, 211, 238, 0.2);
  --spec-accent: #67E8F9;
  --spec-code: #5EEAD4;
  --canvas: var(--bg);
  --text-2: var(--text-muted);
  --text-3: #64748B;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }

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

/* ========== Ambient ========== */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ambient__blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(140px);
}
.ambient__blob--1 {
  top: -25%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: var(--ambient-1);
}
.ambient__blob--2 {
  top: 60%; left: -10%;
  width: 600px; height: 600px;
  background: var(--ambient-2);
  filter: blur(160px);
}
.ambient__blob--3 {
  top: 80%; right: -10%;
  width: 650px; height: 650px;
  background: var(--ambient-3);
  filter: blur(150px);
}
.ambient__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: 4rem 4rem;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}
.site-header__inner {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo__mark {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center;
  padding: 0.35rem;
}
.logo__mark svg { width: 100%; height: 100%; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.logo__dot {
  width: 0.375rem; height: 0.375rem;
  border-radius: 9999px;
  background: var(--teal);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nav-link);
}
.nav a:hover { color: var(--nav-link-hover); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.header-examples {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: color .2s, background .2s;
}
.header-examples:hover {
  color: var(--cyan);
  background: var(--meta-bg);
}
.header-examples .arrow {
  font-family: var(--font-mono);
  transition: transform .2s;
}
.header-examples:hover .arrow { transform: translateX(3px); }

.header-auth {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.25rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--hairline);
}
.header-auth.is-on { display: inline-flex; }
.btn-ghost {
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--btn-ghost);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--meta-bg); }
.btn-auth-primary {
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--btn-on-accent);
  background: var(--grad);
  box-shadow: 0 0 12px var(--accent-glow);
}
.btn-auth-primary:hover { box-shadow: 0 0 16px var(--accent-glow); }

/* Lang switch (theme-aware) */
.lang-switch-l {
  background: var(--lang-bg) !important;
  border: 1px solid var(--lang-bd) !important;
  border-radius: 8px !important;
  padding: 3px !important;
}
.lang-switch-l button {
  color: var(--lang-fg) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
.lang-switch-l button:hover {
  color: var(--text) !important;
  background: var(--meta-bg) !important;
}
.lang-switch-l button.active {
  background: var(--grad) !important;
  color: var(--btn-on-accent) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 10px -3px var(--accent-glow) !important;
}

/* ========== Shared UI ========== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--eyebrow-bg);
  border: 1px solid var(--eyebrow-bd);
  color: var(--eyebrow-fg);
}
.eyebrow__dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 9999px;
  background: var(--teal);
  animation: pulseDot 1.6s ease-in-out infinite;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.65rem;
  border-radius: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--btn-on-accent);
  background: var(--grad);
  box-shadow: 0 10px 28px var(--accent-glow);
  transition: box-shadow .2s, filter .2s, transform .15s;
}
.btn-primary:hover {
  box-shadow: 0 10px 32px var(--accent-glow);
  filter: brightness(1.05);
}
.btn-primary:active { transform: scale(0.98); }

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
}
.glow-teal { box-shadow: var(--glow-teal); }

.badge-risk {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--risk-bg);
  border: 1px solid var(--risk-bd);
  color: var(--risk-fg);
}
.badge-risk__dot {
  width: 0.375rem; height: 0.375rem;
  border-radius: 9999px;
  background: var(--risk);
  animation: pulseDot 1.4s ease-in-out infinite;
}
.badge-live {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  background: var(--live-bg);
  color: var(--live-fg);
  border: 1px solid var(--live-bd);
  animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  z-index: 10;
  padding: 4rem 0 6rem;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 1.75rem; }
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.75rem); /* ~36 → 60px */
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero__sub {
  margin: 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-soft);
  font-weight: 400;
}
.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--section-border);
}
.hero__metric-val {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.2vw, 2.875rem); /* ~28 → 46px */
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero__metric-val--teal { color: var(--teal); }
.hero__metric-val--cyan { color: var(--cyan-bright); }
.hero__metric-lbl {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--text-3);
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.hero__cta-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-3);
}
.hero__cta-note svg { width: 1rem; height: 1rem; color: #34D399; flex-shrink: 0; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__visual-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.2), rgba(20, 184, 166, 0.1));
  border-radius: 1.5rem;
  filter: blur(40px);
  opacity: 0.7;
  transform: rotate(-1deg);
  pointer-events: none;
}

/* Deal card */
.deal-card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  padding: 1.65rem 1.5rem 1.75rem;
  border: 1px solid var(--hairline-strong);
  animation: dealFloat 6s ease-in-out infinite;
}
@keyframes dealFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.deal-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.deal-card__head-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.deal-card__ai {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--deal-ai-bg);
  border: 1px solid var(--deal-ai-bd);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--deal-ai-fg);
  flex-shrink: 0;
}
.deal-card__tag-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.deal-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.deal-card__company {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.deal-card__body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.4rem 0;
}
.score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 0 auto;
}
.score-ring {
  position: relative;
  width: 7.5rem; height: 7.5rem;
  flex-shrink: 0;
}
.score-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.score-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  box-sizing: border-box;
}
.score-ring__pct {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.score-ring__sub {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.2;
  text-align: center;
}
.deal-meta { display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.75rem; }
.deal-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--meta-bg);
  border: 1px solid var(--meta-bd);
}
.deal-meta__row span:first-child { color: var(--text-3); }
.deal-meta__row .val { font-weight: 500; color: var(--meta-val); }
.deal-meta__row .val-strong {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--text);
}
.deal-meta__row .val-warn { font-weight: 500; color: var(--warn-text); }

.deal-card__foot {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.deal-risk,
.deal-rec {
  padding: 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
}
.deal-risk {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: var(--danger-bg);
  border: 1px solid var(--danger-bd);
}
.deal-risk svg { width: 1rem; height: 1rem; color: var(--risk-fg); flex-shrink: 0; margin-top: 0.1rem; }
.deal-risk b { color: var(--risk-fg); }
.deal-risk p { margin: 0.2rem 0 0; color: var(--text-soft); line-height: 1.4; }
.deal-rec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--rec-bg);
  border: 1px solid var(--rec-bd);
}
.deal-rec__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-wrap: wrap;
}
.deal-rec__dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 9999px;
  background: var(--teal);
  flex-shrink: 0;
}
.deal-rec__lbl { font-weight: 600; color: var(--rec-lbl); }
.deal-rec__txt { color: var(--text-soft); }
.deal-pill {
  position: absolute;
  bottom: -1rem; left: -0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--pill-bg);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-soft);
}
.deal-pill__dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 9999px;
  background: #22D3EE;
  animation: pulseDot 1.5s ease-in-out infinite;
}

/* ========== Pipeline ========== */
.pipeline {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
  background: var(--pipeline-bg);
  border-top: 1px solid var(--section-border);
}
.section-head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3.5rem;
}
.section-head h2 {
  margin: 1rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.section-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.timeline {
  position: relative;
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.timeline__track {
  position: absolute;
  top: 1.5rem; left: 0; right: 0;
  height: 2px;
  background: var(--track);
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
  padding: 0;
  max-width: 7.5rem;
}
.timeline-step__node {
  position: relative;
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  background: var(--node-bg);
  border: 2px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-3);
  transition: border-color .3s, color .3s, box-shadow .3s, background .3s;
  overflow: visible;
}
.timeline-step__pulse {
  display: none;
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid var(--teal);
  background: transparent;
  box-shadow: 0 0 0 0 var(--pulse-ring);
  animation: pulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.92); opacity: 0.9; box-shadow: 0 0 0 0 var(--pulse-ring); }
  70% { transform: scale(1.25); opacity: 0; box-shadow: 0 0 0 10px transparent; }
  100% { transform: scale(0.92); opacity: 0; }
}
.timeline-step__label {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.timeline-step__sub {
  font-size: 0.625rem;
  color: #64748B;
}
.timeline-step.is-active .timeline-step__node {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 0 0 4px var(--pulse-ring), 0 0 20px var(--accent-glow);
}
.timeline-step.is-active .timeline-step__pulse { display: block; }
.timeline-step.is-active .timeline-step__label { color: var(--text); font-weight: 700; }
.timeline-step.is-done .timeline-step__node {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.timeline-step.is-done .timeline-step__label { color: var(--text-soft); }

/* Mobile vertical timeline */
.timeline-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 0.25rem;
}
.timeline-mobile::before {
  content: '';
  position: absolute;
  left: 1.4rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: var(--track);
}
.tm-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
  text-align: left;
  width: 100%;
  position: relative;
  z-index: 1;
}
.tm-step__node {
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  background: var(--node-bg);
  border: 2px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-3);
  flex-shrink: 0;
  transition: border-color .3s, color .3s, background .3s, box-shadow .3s;
}
.tm-step__label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-3);
}
.tm-step__sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.tm-step.is-active .tm-step__node {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 0 0 3px var(--pulse-ring);
}
.tm-step.is-active .tm-step__label { color: var(--text); }
.tm-step.is-done .tm-step__node {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

/* Fixed stage frame: height = tallest panel (step 05 deal-card) + padding.
   Measured unlocked: ~850px mobile / ~780 tablet / ~562 desktop → no jump between steps. */
.stage {
  height: 58rem;
  min-height: 58rem;
  max-height: 58rem;
  padding: 1.75rem;
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.step-panel {
  display: none;
  opacity: 0;
  transform: translateX(10px);
  width: 100%;
}
.step-panel.is-active {
  display: block;
  opacity: 1;
  animation: panelCrossfade var(--transition-panel) ease forwards;
}
@keyframes panelCrossfade {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.step-copy { display: flex; flex-direction: column; gap: 1rem; }
.step-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.step-num {
  padding: 0.15rem 0.6rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--ok-bg);
  color: var(--cyan-bright);
  border: 1px solid var(--hairline-strong);
}
.step-cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.step-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step-copy > p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.viz-card {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--inset-bg);
  border: 1px solid var(--inset-border);
}
.viz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  gap: 0.75rem;
}
.viz-head-left { display: flex; align-items: center; gap: 0.75rem; }
.viz-ico {
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.viz-ico--end {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: var(--risk-fg);
}
.viz-ico svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.viz-status {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--risk-fg);
}
/* Theme-aware mono hash under upload orb */
.pipe-hash {
  font-size: 0.75rem;
  color: var(--cyan-bright);
  margin-top: 0.25rem;
}
.viz-title { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.viz-time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }

.waveform {
  margin: 1.25rem 0;
}
.waveform__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}
.waveform__meta .size { color: var(--cyan); font-weight: 700; }
.waveform__bars {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--wave-bg);
  border: 1px solid var(--hairline);
}
.wave-bar {
  width: 6px;
  border-radius: 9999px;
  background: var(--teal);
  height: 40%;
  animation: waveAnim 1.2s ease-in-out infinite alternate;
}
.wave-bar:nth-child(odd) { background: var(--cyan); }
.wave-bar:nth-child(3n) { background: #5EEAD4; }
@keyframes waveAnim {
  0% { height: 20%; }
  100% { height: 95%; }
}
.viz-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--section-border);
  font-size: 0.75rem;
  color: var(--text-3);
}
.viz-foot__ok {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.viz-foot__ok::before {
  content: '';
  width: 0.5rem; height: 0.5rem;
  border-radius: 9999px;
  background: var(--cyan);
}

.fact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: var(--warn-bg);
  border: 1px solid var(--warn-bd);
  color: var(--warn-text);
  text-align: left;
}
.fact-badge__ico {
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  background: var(--warn-bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--warn);
  flex-shrink: 0;
}
.fact-badge__t { font-weight: 700; font-size: 0.875rem; color: var(--text); }
.fact-badge__p { font-size: 0.75rem; color: var(--text-muted); }

.progress-block { display: flex; flex-direction: column; gap: 0.5rem; }
.progress-block__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.progress-block__bar {
  height: 0.75rem;
  border-radius: 9999px;
  background: var(--track);
  border: 1px solid var(--hairline);
  padding: 2px;
  overflow: hidden;
}
.progress-block__fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #22D3EE, #2DD4BF, #00B79E);
  width: 100%;
}
.progress-block__sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-3);
}

.upload-orb {
  width: 7rem; height: 7rem;
  border-radius: 9999px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(20, 184, 166, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px -3px rgba(30, 172, 187, 0.4);
  position: relative;
}
.upload-orb__ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1px solid rgba(34, 211, 238, 0.6);
  animation: pulseDot 2s ease-in-out infinite;
  opacity: 0.35;
}
.upload-orb svg { width: 3rem; height: 3rem; color: var(--teal); }
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
  text-align: left;
}
.mini-cell {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: var(--meta-bg);
  border: 1px solid var(--meta-bd);
}
.mini-cell__lbl {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.mini-cell__val {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}
.mini-cell__val--ok { color: var(--ok-soft); display: inline-flex; align-items: center; gap: 0.35rem; }
.mini-cell__val--ok::before {
  content: '';
  width: 0.35rem; height: 0.35rem;
  border-radius: 9999px;
  background: var(--ok-soft);
}
.mini-cell--badge {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}
.mini-cell--badge .mini-cell__val {
  margin-top: 0;
  line-height: 1.35;
}

.lane {
  padding: 0.85rem;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lane--mgr {
  background: rgba(30, 172, 187, 0.08);
  border: 1px solid rgba(30, 172, 187, 0.28);
}
.lane--cli {
  background: rgba(0, 183, 158, 0.08);
  border: 1px solid rgba(0, 183, 158, 0.28);
}
.lane__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.lane__name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lane--mgr .lane__name { color: var(--cyan-bright); }
.lane--cli .lane__name { color: #5EEAD4; }
.lane__dot {
  width: 0.6rem; height: 0.6rem;
  border-radius: 9999px;
}
.lane--mgr .lane__dot { background: var(--cyan); }
.lane--cli .lane__dot { background: var(--teal); }
.lane__conf { font-family: var(--font-mono); font-size: 0.625rem; color: var(--text-3); }
.lane__bars { height: 2.5rem; display: flex; align-items: center; gap: 3px; }
.lane__bars span {
  width: 4px;
  border-radius: 2px;
  display: block;
}
.lane--mgr .lane__bars span { background: var(--cyan); }
.lane--cli .lane__bars span { background: var(--teal); }
.lane__bars span.is-silent { background: var(--silent) !important; height: 8px !important; }
.lane__quote {
  font-size: 0.6875rem;
  font-style: italic;
  color: var(--text-soft);
}
.diarize-sep {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}
.talk-ratio__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  gap: 0.5rem;
}
.talk-ratio__bar {
  height: 0.5rem;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  background: var(--track);
}
.talk-ratio__bar .mgr { width: 42%; background: var(--cyan); }
.talk-ratio__bar .cli { width: 58%; background: var(--teal); }

.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
}
.check-list__head span:first-child {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
}
.check-item--ok {
  background: var(--ok-bg);
  border: 1px solid var(--ok-bd);
}
.check-item--bad {
  background: var(--danger-bg);
  border: 1px solid var(--danger-bd);
}
.check-item__left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.check-item__ico {
  width: 1.5rem; height: 1.5rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.check-item--ok .check-item__ico {
  background: var(--ok-bg);
  color: var(--ok-soft);
}
.check-item--bad .check-item__ico {
  background: var(--danger-bg);
  color: var(--risk-fg);
}
.check-item__t { font-size: 0.75rem; font-weight: 700; color: var(--text); }
.check-item--bad .check-item__t { color: var(--risk-fg); }
.check-item__p { font-size: 0.625rem; color: var(--text-3); }
.check-item--bad .check-item__p { color: var(--risk-fg); }
.check-item__pts {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
}
.check-item--ok .check-item__pts { color: var(--ok-soft); }
.check-item--bad .check-item__pts { color: var(--risk-fg); }

.model-box {
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: var(--meta-bg);
  border: 1px solid var(--meta-bd);
}
.model-box__t { font-size: 0.75rem; font-weight: 700; color: var(--text); }
.model-box__p { font-size: 0.6875rem; color: var(--text-3); margin-top: 0.25rem; }

.tg-note {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: var(--rec-bg);
  border: 1px solid var(--rec-bd);
}
.tg-note__t { font-size: 0.75rem; font-weight: 700; color: var(--rec-lbl); }
.tg-note__p { font-size: 0.6875rem; color: var(--text-soft); margin-top: 0.25rem; }

.growth-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: var(--meta-bg);
  border: 1px solid var(--meta-bd);
}
.growth-stat__ico {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--ok-bg);
  color: var(--ok-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.growth-stat__t { font-size: 0.75rem; font-weight: 700; color: var(--text); }
.growth-stat__p { font-size: 0.6875rem; color: var(--text-3); }

.chart-box {
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--chart-bg);
  border: 1px solid var(--meta-bd);
}
.chart-box__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}
.chart-box__head span:first-child { font-weight: 700; color: var(--text); }
.chart-box__head span:last-child { font-family: var(--font-mono); font-weight: 700; color: var(--teal); }
.chart-box svg { width: 100%; height: 6rem; overflow: visible; }
.chart-box__axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.chart-box__axis .now { color: var(--cyan); font-weight: 700; }

.fix-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.fix-list__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}
.fix-list__head strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
}
.fix-list__head strong::before {
  content: '';
  width: 0.5rem; height: 0.5rem;
  border-radius: 9999px;
  background: var(--warn);
}
.fix-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  background: var(--meta-bg);
  border: 1px solid var(--meta-bd);
  font-size: 0.75rem;
}
.fix-row span:first-child { color: var(--text-soft); }
.fix-row .mono { font-size: 0.6875rem; }
.fix-row .bad { color: var(--risk-fg); }
.fix-row .warn { color: var(--warn); }
.fix-row .ok { color: var(--cyan); }

.stage-nav {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.stage-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: border-color .2s, color .2s;
}
.stage-nav__btn:hover {
  border-color: var(--hairline-strong);
  color: var(--text);
}
.stage-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stage-dots button {
  width: 0.625rem; height: 0.625rem;
  border-radius: 9999px;
  background: var(--silent);
  padding: 0;
  transition: background .2s, transform .2s;
}
.stage-dots button.is-active {
  width: 0.75rem; height: 0.75rem;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ========== Spec ========== */
.spec {
  position: relative;
  z-index: 10;
  padding: 4rem 0;
  border-top: 1px solid var(--section-border);
}
.spec__card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}
.spec__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.spec__ico {
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  background: var(--ok-bg);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
}
.spec__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.spec__head p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-3);
}
.spec__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.spec__item {
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--meta-bg);
  border: 1px solid var(--meta-bd);
}
.spec__item h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--spec-accent);
}
.spec__item p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-3);
}
.spec__item code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--spec-code);
}

/* ========== Security / CRM ========== */
.duo {
  position: relative;
  z-index: 10;
  padding: 2rem 0 4rem;
}
.duo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.info-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--info-shadow);
}
.info-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.info-card__lead {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.info-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.info-card li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.info-card li::before {
  content: '';
  width: 0.5rem; height: 0.5rem;
  margin-top: 0.45rem;
  border-radius: 9999px;
  background: var(--teal);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}
.info-card li b {
  color: var(--text);
  font-weight: 600;
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--footer-fg);
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.site-footer__brand .logo__word { font-size: 1rem; color: var(--text-soft); }
.site-footer__brand p { margin: 0; color: var(--text-2); }
.site-footer__links a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__links a:hover { color: var(--text); }
.site-footer__copy { color: var(--footer-fg); }
.site-footer__trust {
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.5;
}

/* ========== Desktop ========== */
@media (min-width: 768px) {
  .nav { display: flex; }
  .timeline-mobile { display: none; }
  .timeline { display: flex; }
  .spec__grid { grid-template-columns: repeat(3, 1fr); }
  .duo__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .site-footer__brand { align-items: flex-start; }
  .stage {
    height: 50rem;
    min-height: 50rem;
    max-height: 50rem;
  }
}

@media (min-width: 1024px) {
  .hero { padding: 6rem 0 8rem; }
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .step-grid {
    grid-template-columns: 5fr 7fr;
    gap: 2rem;
  }
  .stage {
    padding: 2.5rem;
    height: 36rem;
    min-height: 36rem;
    max-height: 36rem;
  }
}

/* ========== Mobile (<768px) — nothing may be wider than the viewport ========== */
@media (max-width: 767px) {
  :root { --gutter: 1rem; }

  /* Header: row 1 = logo · «Пример →» · theme · RU/RO; auth links (index.html) wrap to row 2 */
  .site-header__inner {
    height: auto;
    min-height: 4rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
  .site-header .logo { gap: 0.5rem; margin-right: auto; min-width: 0; }
  .site-header .logo__mark { width: 2rem; height: 2rem; padding: 0.3rem; }
  .site-header .logo__word { font-size: 1.125rem; }
  .header-actions { display: contents; }
  .header-examples {
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .header-examples span:not(.arrow),
  .header-examples .arrow { display: none; }
  .header-examples::before { content: attr(data-short); }
  .theme-toggle { flex-shrink: 0; }
  .lang-switch-l { flex-shrink: 0; }
  .header-auth.is-on {
    order: 10;
    flex: 1 0 100%;
    display: flex;
    gap: 0.5rem;
    margin-left: 0;
    padding-left: 0;
    padding-top: 0.5rem;
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
  .header-auth .btn-ghost,
  .header-auth .btn-auth-primary {
    flex: 1 1 0;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line);
  }
  .header-auth .btn-auth-primary { border-color: transparent; }

  /* Hero */
  .hero { padding: 1.5rem 0 2.5rem; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero__copy { gap: 1.25rem; min-width: 0; }
  .hero__copy .eyebrow {
    align-self: flex-start;
    max-width: 100%;
    padding: 0.3rem 0.75rem;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
  }
  .hero h1 {
    font-size: clamp(1.875rem, 9vw, 2.375rem); /* 30 → 38px, ~35px @390 */
    line-height: 1.15;
    letter-spacing: -0.025em;
    overflow-wrap: break-word;
  }
  .hero__sub { font-size: 0.9375rem; line-height: 1.6; }
  .hero__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--hairline);
    border-radius: 0.75rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    text-align: center;
  }
  .hero__metric-val {
    font-size: clamp(1.25rem, 6vw, 1.5rem); /* 20 → 24px */
    white-space: nowrap;
  }
  .hero__metric-lbl { margin-top: 0.25rem; font-size: 0.6875rem; line-height: 1.3; }
  .hero__cta-row { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero__cta-row .btn-primary { width: 100%; justify-content: center; }
  .hero__cta-note { justify-content: center; }

  /* AI deal card (hero + step 05) */
  .hero__visual { min-width: 0; }
  .hero__visual-glow { inset: 0; }
  .deal-card { max-width: none; padding: 1.1rem 1rem 1.6rem; }
  .deal-card__head { flex-wrap: wrap; gap: 0.6rem; padding-bottom: 0.9rem; }
  .deal-card__head-left { flex: 1 1 11rem; align-items: flex-start; }
  .deal-card__head-left > div { min-width: 0; }
  .deal-card__tag { font-size: 0.6875rem; letter-spacing: 0.04em; }
  .badge-risk { flex-shrink: 0; white-space: nowrap; }
  .deal-card__body {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem 0;
  }
  .score-wrap { gap: 0.35rem; }
  .score-ring { width: 5.5rem; height: 5.5rem; }
  .score-ring__label { padding: 0.6rem; }
  .score-ring__pct { font-size: 1.25rem; }
  .deal-meta { gap: 0.45rem; }
  .deal-meta__row { flex-wrap: wrap; gap: 0.1rem 0.5rem; padding: 0.4rem 0.5rem; }
  .deal-meta__row > span { min-width: 0; overflow-wrap: anywhere; }
  .deal-card__foot { padding-top: 0.9rem; gap: 0.65rem; }
  .deal-risk, .deal-rec { padding: 0.7rem; }
  .deal-pill {
    left: 0.75rem;
    bottom: -0.85rem;
    max-width: calc(100% - 1.5rem);
    font-size: 0.6875rem;
  }

  /* Pipeline */
  .pipeline { padding: 3rem 0; }
  .section-head { margin-bottom: 1.75rem; text-align: left; }
  .section-head h2 {
    font-size: clamp(1.625rem, 7.5vw, 2rem); /* 26 → 32px */
    line-height: 1.2;
    overflow-wrap: break-word;
  }
  .section-head p { font-size: 0.9375rem; line-height: 1.6; }
  .timeline-mobile { margin-bottom: 1.25rem; }
  .tm-step { padding-top: 0.35rem; padding-bottom: 0.35rem; }

  /* All panels share one grid cell: stage height = tallest panel, no clipping and no jump between steps */
  .stage {
    display: grid;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 1rem;
    align-items: start;
  }
  .step-panel {
    display: block;
    grid-area: 1 / 1;
    min-width: 0;
    visibility: hidden;
    transform: none;
  }
  .step-panel.is-active { visibility: visible; }
  .step-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .step-copy { min-width: 0; }
  .step-grid > div { min-width: 0; }
  .viz-card { max-width: none; padding: 1rem; }
  .viz-head { flex-wrap: wrap; }
  .viz-head-left { min-width: 0; }
  .fact-badge { display: flex; }
  .waveform { margin: 1rem 0; }
  .waveform__bars { height: 4rem; padding: 0.5rem; gap: 2px; }
  .upload-orb { width: 5.5rem; height: 5.5rem; margin-bottom: 1rem; }
  .upload-orb svg { width: 2.4rem; height: 2.4rem; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-top: 1rem; }
  .progress-block__meta,
  .progress-block__sub,
  .talk-ratio__meta,
  .check-list__head,
  .fix-list__head,
  .chart-box__head,
  .viz-foot { flex-wrap: wrap; gap: 0.25rem 0.75rem; }
  .check-item { padding: 0.65rem; gap: 0.5rem; }
  .check-item__left { gap: 0.5rem; }
  .check-item__left > div { min-width: 0; }
  .viz-title,
  .check-item__t,
  .check-item__p,
  .lane__quote,
  .tg-note__p,
  .fix-row span { overflow-wrap: anywhere; }
  .chart-box { padding: 0.75rem; }
  .chart-box__axis { gap: 0.25rem; font-size: 0.5625rem; }
  .fix-row { flex-wrap: wrap; }
  .stage-nav { flex-wrap: wrap; gap: 0.75rem 0.5rem; margin-top: 1.25rem; }
  .stage-dots { order: -1; flex: 1 0 100%; justify-content: center; }
  .stage-nav__btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.55rem 0.65rem;
    font-size: 0.75rem;
  }

  /* Spec / Security / CRM: stacked cards */
  .spec { padding: 2.5rem 0; }
  .spec__card { padding: 1.25rem 1rem; }
  .spec__head { align-items: flex-start; }
  .spec__ico { flex-shrink: 0; }
  .spec__grid { gap: 0.75rem; }
  .spec__item p { font-size: 0.8125rem; }
  .duo { padding: 0.5rem 0 2.5rem; }
  .duo__grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .info-card { min-width: 0; padding: 1.25rem 1rem; }
  .info-card h2 { font-size: 1.5rem; }
  .info-card__lead { margin-bottom: 1rem; }
  .info-card li {
    display: block;
    position: relative;
    padding-left: 1.25rem;
    overflow-wrap: break-word;
  }
  .info-card li::before { position: absolute; left: 0; top: 0; }

  /* Footer */
  .site-footer { padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  .site-footer__inner { gap: 0.75rem; }
  .site-footer__trust { font-size: 0.6875rem; }
}

@media (max-width: 374px) {
  .site-header .logo__word { display: none; }
}


/* ========== Theme toggle ========== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  transition: color .2s, background .2s, border-color .2s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--hairline-strong);
  background: var(--meta-bg);
}
.theme-toggle svg { width: 1.1rem; height: 1.1rem; display: block; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* ========== Scroll reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .deal-card,
  .badge-live,
  .logo__dot,
  .badge-risk__dot,
  .deal-pill__dot,
  .timeline-step__pulse,
  .wave-bar,
  .upload-orb__ring {
    animation: none !important;
  }
  .step-panel.is-active { animation: none; opacity: 1; transform: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
