/* Boxman Studio — landing styles. No build step. */

:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1c2029;
  --line: #262b36;
  --line-strong: #323847;
  --text: #e6e9ef;
  --text-2: #a3abbb;
  --text-3: #828b9d;
  --accent: #7c5cff;
  --accent-2: #9b84ff;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, 0.12);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1120px;
  --gutter: 20px;
  --header-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

.mono { font-family: var(--mono); font-variant-ligatures: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(15, 17, 21, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand .logo { width: 26px; height: 26px; }
.brand-beta {
  margin-left: 4px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #8a6dff; border-color: #8a6dff; color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: #4a5266; background: rgba(255, 255, 255, 0.03); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 48px;
  overflow: hidden;
}
.hero::before {
  /* fine grid, fades out downward */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 70%);
}
.hero .container { position: relative; }

.hero-copy { max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
h1 .muted { color: var(--text-3); }

.lead {
  margin: 0;
  max-width: 600px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- Studio mock ---------- */

.mock-wrap { margin-top: 56px; }

.mock {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 30px 80px -30px rgba(0,0,0,0.8),
    0 0 120px -40px rgba(124, 92, 255, 0.35);
  overflow: hidden;
  font-size: 12px;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mock-titlebar .dots { display: flex; gap: 6px; }
.mock-titlebar .dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-strong);
}
.mock-url {
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11.5px;
  max-width: 420px;
}
.mock-titlebar .job {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  color: var(--ok);
  font-size: 11.5px;
}
.mock-titlebar .job::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
}

.mock-body {
  display: grid;
  grid-template-columns: 148px 1fr 220px;
  min-height: 420px;
}

.mock-side {
  border-right: 1px solid var(--line);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-side .proj {
  padding: 6px 10px 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mock-side .proj small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--text-3);
  font-size: 11px;
  margin-top: 2px;
}
.mock-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-2);
}
.mock-tab svg { width: 14px; height: 14px; color: var(--text-3); }
.mock-tab.is-active { background: var(--accent-soft); color: var(--text); }
.mock-tab.is-active svg { color: var(--accent-2); }
.mock-tab .k {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}

.mock-main { padding: 18px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mock-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg);
}
.chip.is-active { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.chip.ok { color: var(--ok); border-color: rgba(61, 220, 151, 0.35); background: var(--ok-soft); }
.mock-toolbar .spacer { flex: 1; }
.mock-run {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}
.mock-run svg { width: 11px; height: 11px; }

.board {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 10px;
}
.reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.cell {
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  position: relative;
}
.cell svg { width: 44%; height: 44%; }
.cell.win { border-color: rgba(124, 92, 255, 0.6); background: rgba(124, 92, 255, 0.08); color: var(--accent-2); }
.cell.wild { color: var(--ok); }
.cell .tag {
  position: absolute;
  right: 5px;
  bottom: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-3);
}
.cell.win .tag { color: var(--accent-2); }
.reels-wrap { position: relative; }
.paylines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.board-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}
.board-legend b { color: var(--accent-2); font-weight: 500; }

.timeline {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px 14px;
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}
.timeline-head span:first-child { color: var(--text-2); }
.events {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow: hidden;
}
.event {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding-right: 10px;
}
.event .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line-strong);
  margin-bottom: 8px;
}
.event .bar.acc { background: var(--accent); }
.event .bar.ok { background: var(--ok); }
.event .name {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event .meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  white-space: nowrap;
}

.mock-panel {
  border-left: 1px solid var(--line);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mock-panel h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
}
.stat:last-of-type { border-bottom: 0; }
.stat b { font-weight: 500; color: var(--text); font-size: 13px; }
.stat b.ok { color: var(--ok); }
.stat small { color: var(--text-3); margin-left: 6px; }
.dist {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 100%;
  align-items: end;
  gap: 3px;
  height: 56px;
  padding-top: 4px;
}
.dist i {
  display: block;
  background: var(--line-strong);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}
.dist i.acc { background: var(--accent); }
.dist-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  margin-top: 4px;
}

/* ---------- Built-on strip ---------- */

.strip {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.strip p { margin: 0; font-size: 13.5px; color: var(--text-3); }
.strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
}
.strip li { display: inline-flex; align-items: center; gap: 8px; }
.strip li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.8;
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .kicker {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.section-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
  text-wrap: pretty;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step {
  background: var(--panel);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 160ms ease;
}
.step:hover { background: var(--panel-2); }
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid rgba(124, 92, 255, 0.25);
}
.step-icon svg { width: 17px; height: 17px; }
.step h3 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.step .tags {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-mono {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
}

/* Why */
.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.why-card:hover { border-color: var(--line-strong); }
.why-card .glyph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ok);
}
.why-card .glyph svg { width: 18px; height: 18px; }
.why-card h3 { margin: 6px 0 0; font-size: 17px; letter-spacing: -0.01em; font-weight: 600; }
.why-card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.why-card code { font-size: 12.5px; color: var(--text); }

.code-block {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.code-block header {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.code-block .d { color: var(--text-3); }
.code-block .f { color: var(--text); }
.code-block .c { color: var(--text-3); font-style: italic; }
.code-block .a { color: var(--accent-2); }
.code-block .g { color: var(--ok); }

/* Math types */
.types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.type {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  transition: border-color 160ms ease;
}
.type:hover { border-color: var(--line-strong); }
.type-vis {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 7px;
}
.type-vis svg { width: 100%; height: 100%; }
.type h3 { margin: 2px 0 6px; font-size: 16.5px; letter-spacing: -0.01em; font-weight: 600; }
.type h3 code {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11.5px;
  color: var(--text-3);
  margin-left: 8px;
}
.type p { margin: 0; color: var(--text-2); font-size: 14px; }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, background-color 160ms ease;
}
.faq summary .plus svg { width: 10px; height: 10px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent-2); border-color: transparent; }
.faq summary:hover { color: var(--accent-2); }
.faq .answer { padding: 0 4px 22px; color: var(--text-2); font-size: 15px; max-width: 60ch; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(155, 132, 255, 0.4); }
.faq .answer code {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
}

/* CTA band */
.cta-band {
  padding: 0 0 96px;
}
.cta-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 56px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-box::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.28), transparent);
  pointer-events: none;
}
.cta-box h2 { margin-bottom: 8px; font-size: clamp(24px, 3vw, 32px); }
.cta-box p { margin: 0; color: var(--text-2); }
.cta-box .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--text-3);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
}
.footer-meta p { margin: 0; }

/* ---------- Reveal on scroll ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 70ms; }
html.js .reveal[data-delay="2"] { transition-delay: 140ms; }
html.js .reveal[data-delay="3"] { transition-delay: 210ms; }
html.js .reveal[data-delay="4"] { transition-delay: 280ms; }
html.js .reveal[data-delay="5"] { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .step, .why-card, .type, .faq summary .plus { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .mock-body { grid-template-columns: 136px 1fr 200px; }
}

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .types { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .mock-body { grid-template-columns: 1fr 200px; }
  .mock-side { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 58px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .header-cta .btn-docs { display: none; }
  .brand-beta { display: none; }

  .hero { padding: 56px 0 40px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .mock-wrap { margin-top: 40px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-panel { border-left: 0; border-top: 1px solid var(--line); }
  .mock-main { padding: 14px; }
  .mock-url { display: none; }
  .dist { height: 44px; }
  .cell .tag { display: none; }
  .event:nth-child(n+5) { display: none; }

  .steps { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr; }
  .type { padding: 18px; grid-template-columns: 48px 1fr; gap: 14px; }
  .type-vis { width: 48px; height: 48px; }

  .cta-box { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
  .cta-band { padding-bottom: 64px; }
  .cta-box .actions .btn { width: 100%; }
}

@media (max-width: 400px) {
  .hero-actions .btn { width: 100%; }
}
