/* ============================================================
   Аврора — ИИ-сотрудники для 1С
   Статический сайт без сборки. Системные шрифты, офлайн.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  --violet: #7c3aed;
  --cyan: #22d3ee;
  --mint: #34d399;
  --grad: linear-gradient(100deg, var(--violet), var(--cyan) 55%, var(--mint));
  --radius: 20px;
  --radius-lg: 24px;
  --header-h: 68px;
  --font: -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-2: #0f172a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(148, 163, 184, 0.17);
  --border-strong: rgba(34, 211, 238, 0.45);
  --text: #e8edf8;
  --muted: #a6b3cf;
  --accent: #22d3ee;
  --grad-text: linear-gradient(92deg, #a78bfa, #22d3ee 55%, #34d399);
  --header-bg: rgba(11, 16, 32, 0.78);
  --grid-line: rgba(148, 163, 184, 0.065);
  --glow-opacity: 0.5;
  --shadow: 0 18px 50px rgba(2, 6, 23, 0.55);
  --shadow-hover: 0 16px 44px rgba(34, 211, 238, 0.14);
  --btn-text: #06121f;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fc;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.13);
  --border-strong: rgba(8, 145, 178, 0.5);
  --text: #0f172a;
  --muted: #44546e;
  --accent: #0e7490;
  --grad-text: linear-gradient(92deg, #6d28d9, #0891b2 55%, #047857);
  --header-bg: rgba(244, 247, 252, 0.82);
  --grid-line: rgba(15, 23, 42, 0.055);
  --glow-opacity: 0.28;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  --shadow-hover: 0 14px 36px rgba(8, 145, 178, 0.16);
  --btn-text: #06121f;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
}

/* Тонкая сетка на фоне */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Мягкое свечение авроры сверху */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52rem 30rem at 78% -8%, rgba(124, 58, 237, 0.22), transparent 62%),
    radial-gradient(46rem 28rem at 12% -6%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(40rem 26rem at 55% -10%, rgba(52, 211, 153, 0.12), transparent 60%);
  opacity: var(--glow-opacity);
  pointer-events: none;
}

img, svg { display: inline-block; vertical-align: middle; max-width: 100%; }

h1, h2, h3 { line-height: 1.14; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }

::selection { background: rgba(34, 211, 238, 0.35); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.container-narrow { width: min(860px, 100% - 48px); }

.section {
  padding-block: clamp(64px, 9vw, 112px);
  scroll-margin-top: calc(var(--header-h) + 16px);
  position: relative;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Типографика секций ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }

.section-lead {
  margin-top: 16px;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

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

/* ---------- Стеклянные карточки ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.card {
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.card-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid { display: grid; gap: 18px; margin-top: 40px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(100deg, var(--cyan), var(--mint));
  color: var(--btn-text);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(52, 211, 153, 0.32); }

/* Градиентный блик */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%);
  transform: translateX(-130%);
  animation: sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 55% { transform: translateX(-130%); }
  75%, 100% { transform: translateX(130%); }
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.btn-lg { min-height: 54px; padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: 9px 20px; font-size: 0.93rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.icon-btn:hover { border-color: var(--border-strong); }

html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-mark { border-radius: 9px; flex-shrink: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current="true"] { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.nav-toggle { display: none; }

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 20px;
}
.nav-toggle-box span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(72px, 12vh, 140px);
  padding-bottom: clamp(64px, 9vw, 110px);
  text-align: center;
  overflow: clip;
}
.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: 480px;
  background:
    radial-gradient(30rem 18rem at 30% 40%, rgba(124, 58, 237, 0.35), transparent 65%),
    radial-gradient(28rem 17rem at 70% 35%, rgba(34, 211, 238, 0.28), transparent 65%),
    radial-gradient(24rem 15rem at 52% 60%, rgba(52, 211, 153, 0.22), transparent 65%);
  filter: blur(46px);
  opacity: var(--glow-opacity);
  pointer-events: none;
}
.hero-inner { position: relative; }

.hero-title {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 920px;
  margin-inline: auto;
}

.hero .lead {
  margin: 24px auto 0;
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin-top: 56px;
}
.metric { padding: 24px 20px; text-align: center; }
.metric-value {
  display: block;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.metric-label { display: block; margin-top: 6px; color: var(--muted); font-size: 0.93rem; }

/* ---------- Сценарии ---------- */
.grid-features { grid-template-columns: repeat(6, 1fr); }
.grid-features .card { grid-column: span 2; }
.grid-features .card:nth-child(4),
.grid-features .card:nth-child(5) { grid-column: span 3; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--border);
}

/* ---------- Архитектура ---------- */
.arch {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  margin: 44px auto 0;
}
.arch-node { padding: 20px 24px; text-align: center; border-radius: 18px; }
.arch-title { font-size: 1.12rem; font-weight: 750; }
.arch-sub { margin-top: 6px; color: var(--muted); font-size: 0.93rem; }
.arch-node-accent {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.25), 0 14px 40px rgba(124, 58, 237, 0.18);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin-top: 12px;
}
.chips li {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.arch-link {
  position: relative;
  width: 2px;
  height: 42px;
  margin-inline: auto;
  background: linear-gradient(180deg, var(--violet), var(--cyan));
}
.arch-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--cyan);
}

.arch-cross {
  margin-top: 30px;
  padding: 14px 20px;
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Экономика ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 40px;
  align-items: stretch;
}
.pricing-main { padding: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.pricing-main h3 { font-size: 1.05rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.price { margin-top: 14px; }
.price-value {
  display: block;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-period { display: block; margin-top: 4px; color: var(--muted); }

.check-list { list-style: none; margin: 22px 0 28px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text); font-size: 0.98rem; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--mint);
  font-weight: 800;
}
html[data-theme="light"] .check-list li::before { color: #047857; }
.pricing-main .btn { margin-top: auto; }

.pricing-side { display: grid; gap: 18px; }
.stat { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.stat-value { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; }
.stat-label { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Пилот ---------- */
.pilot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 26px;
}
.chip-lg {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 650;
}

.timeline {
  position: relative;
  list-style: none;
  margin-top: 40px;
  padding-left: 56px;
  display: grid;
  gap: 14px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--violet), var(--cyan) 55%, var(--mint));
  opacity: 0.65;
}
.timeline-step { position: relative; padding: 20px 24px; border-radius: 18px; }
.timeline-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.timeline-step p { color: var(--muted); font-size: 0.95rem; }
.timeline-num {
  position: absolute;
  left: -56px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  color: var(--btn-text);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.3);
}

.demo { margin-top: 30px; padding: 26px 28px; }
.demo-title { font-size: 1.05rem; font-weight: 750; margin-bottom: 16px; }
.demo-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.demo-flow li {
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.92rem;
  font-weight: 600;
}
.demo-flow li + li { position: relative; margin-left: 18px; }
.demo-flow li + li::before {
  content: "→";
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
}

.roadmap { margin-top: 30px; }
.roadmap-title { font-size: 1.05rem; font-weight: 750; margin-bottom: 14px; }
.roadmap-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.roadmap-flow li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--muted);
}
.roadmap-flow li + li { position: relative; margin-left: 16px; }
.roadmap-flow li + li::before {
  content: "→";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
}
.roadmap-note { margin-top: 14px; color: var(--muted); font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; display: grid; gap: 12px; }
.faq-item { border-radius: 16px; overflow: hidden; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 22px;
  font-weight: 650;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon { position: relative; flex-shrink: 0; width: 22px; height: 22px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-body p { max-width: 68ch; }

/* ---------- Финальный CTA ---------- */
.section-cta { padding-bottom: clamp(72px, 10vw, 120px); }
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 68px);
  text-align: center;
}
.cta-panel .section-lead { margin-inline: auto; }
.cta-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(34rem 20rem at 25% 20%, rgba(124, 58, 237, 0.28), transparent 65%),
    radial-gradient(30rem 18rem at 78% 30%, rgba(34, 211, 238, 0.22), transparent 65%),
    radial-gradient(26rem 16rem at 55% 80%, rgba(52, 211, 153, 0.18), transparent 65%);
  filter: blur(40px);
  opacity: var(--glow-opacity);
  pointer-events: none;
}
.cta-panel > * { position: relative; }

/* ---------- Футер ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 48px 0 26px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}
.footer-tag { margin-top: 12px; color: var(--muted); font-size: 0.93rem; max-width: 30ch; }
.footer-nav, .footer-contacts { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav a, .footer-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-nav a:hover, .footer-contacts a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Появление секций ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .grid .reveal:nth-child(2), .js .pricing-side .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .grid .reveal:nth-child(3), .js .pricing-side .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.js .hero-metrics .reveal { transition-delay: 0.1s; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav-link { padding: 8px 9px; font-size: 0.89rem; }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 49;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 0;
    padding: 14px 24px 22px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(2, 6, 23, 0.35);
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; min-height: 48px; padding: 10px 14px; font-size: 1rem; }
  .nav-cta { margin-top: 10px; width: 100%; }
  .header-actions { margin-left: auto; }

  .grid-features .card { grid-column: span 3; }
  .grid-features .card:nth-child(5) { grid-column: span 6; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-side { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container, .container-narrow { width: min(1180px, 100% - 40px); }
  .hero-metrics { grid-template-columns: 1fr; gap: 12px; margin-top: 44px; }
  .metric { padding: 20px; }
  .grid-features .card,
  .grid-features .card:nth-child(4),
  .grid-features .card:nth-child(5) { grid-column: span 6; }
  .hero-cta .btn { width: 100%; }
  .cta-panel .hero-cta .btn { width: 100%; }
  .timeline { padding-left: 50px; }
  .timeline::before { left: 16px; }
  .timeline-num { left: -50px; width: 34px; height: 34px; font-size: 0.9rem; top: 20px; }
  .demo-flow li + li { margin-left: 0; }
  .demo-flow li + li::before { content: none; }
  .demo-flow { flex-direction: column; align-items: stretch; }
  .demo-flow li { text-align: center; }
  .roadmap-flow li + li { margin-left: 0; }
  .roadmap-flow li + li::before { content: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 22px; }
  .pricing-main { padding: 26px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .btn-primary::after { display: none; }
  .card:hover, .btn:hover { transform: none; }
}