/* ============================================================
   SuperReall — design system
   Dark creator-energy theme. Single vibrant accent (violet).
   System font stack — no external font dependencies.
   ============================================================ */

:root {
  --bg: #0a0a12;
  --bg-soft: #101018;
  --bg-card: #14141e;
  --bg-card-2: #1a1a28;
  --border: #26263a;
  --border-soft: #1d1d2c;
  --text: #f2f2f7;
  --text-muted: #a7a7bd;
  --text-dim: #71718a;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --accent-glow: rgba(139, 92, 246, 0.35);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 68px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: #fff; }

/* Focus visibility for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 40px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #5b21b6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
  flex: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 9px 13px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(139,92,246,0.12); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { display: block; margin: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 340px at 12% 8%, rgba(139,92,246,0.22), transparent 60%),
    radial-gradient(720px 380px at 88% 18%, rgba(139,92,246,0.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(139,92,246,0.35);
  color: #d6c6ff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}
.hero p.sub {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-stats .stat b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; }
.hero-stats .stat span { color: var(--text-dim); font-size: 0.88rem; }

/* Product visual: app mock built with pure CSS/SVG */
.app-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(139,92,246,0.12);
  overflow: hidden;
}
.app-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.app-mock-bar i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--border);
  display: block;
}
.app-mock-body { padding: 18px; display: grid; gap: 14px; }
.prompt-line {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.prompt-line b { color: var(--text); font-weight: 600; }
.format-row { display: flex; gap: 10px; }
.format-chip {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--bg-soft);
}
.format-chip.active {
  border-color: var(--accent);
  color: #d9ccff;
  background: var(--accent-soft);
}
.video-frames { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.frame {
  border-radius: 10px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(139,92,246,0.5), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(139,92,246,0.28), transparent 55%),
    linear-gradient(160deg, #1c1c30, #12121e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame.r916 { aspect-ratio: 9/16; }
.frame.r11 { aspect-ratio: 1/1; }
.frame.r169 { aspect-ratio: 16/9; grid-column: span 1; align-self: end; }
.frame .play {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(10,10,18,0.7);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.frame small {
  position: absolute;
  bottom: 6px; left: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #cfc2f5;
  background: rgba(10,10,18,0.65);
  padding: 2px 8px;
  border-radius: 999px;
}
.queue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.pill.done { background: rgba(52,211,153,0.15); color: var(--success); }
.pill.working { background: var(--accent-soft); color: #cdb6ff; }
.pill.queued { background: rgba(251,191,36,0.13); color: var(--warning); }

/* ---------- Logo / social proof strip ---------- */
.proof-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 30px 0;
  background: var(--bg-soft);
}
.proof-strip p {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.platforms {
  display: flex;
  justify-content: center;
  gap: 14px 34px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.platforms li {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.platforms li svg { opacity: 0.7; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid rgba(139,92,246,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.97rem; margin: 0; }

/* ---------- How it works ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: 30px 26px 30px 96px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 26px; top: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

/* ---------- Format showcase ---------- */
.format-card { text-align: center; padding: 34px 22px; }
.format-visual {
  margin: 0 auto 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 35% 30%, rgba(139,92,246,0.55), transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(139,92,246,0.25), transparent 55%),
    linear-gradient(160deg, #1e1e32, #12121e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d9ccff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.format-visual.fv-916 { width: 108px; aspect-ratio: 9/16; }
.format-visual.fv-11 { width: 150px; aspect-ratio: 1/1; }
.format-visual.fv-169 { width: 210px; aspect-ratio: 16/9; max-width: 100%; }
.use-tags {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin-top: 14px;
  list-style: none; padding: 0;
}
.use-tags li {
  font-size: 0.78rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- Templates strip ---------- */
.templates {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
}
.template-card {
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.template-art {
  aspect-ratio: 9/14;
  background:
    radial-gradient(circle at 40% 20%, rgba(139,92,246,0.5), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(139,92,246,0.22), transparent 55%),
    linear-gradient(165deg, #20203a, #101018);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.template-art span {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.template-card .template-body { padding: 16px 18px; }
.template-card .template-body b { display: block; margin-bottom: 4px; }
.template-card .template-body small { color: var(--text-dim); }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 40px;
  font-weight: 600;
  color: var(--text-muted);
}
.switch {
  position: relative;
  width: 60px; height: 32px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}
.switch .knob {
  position: absolute;
  top: 3px; left: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease;
}
.switch[aria-checked="true"] .knob { transform: translateX(27px); }
.save-badge {
  background: rgba(52,211,153,0.14);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(139,92,246,0.1), var(--bg-card) 45%);
  box-shadow: 0 0 50px rgba(139,92,246,0.18);
}
.price-card .tier { font-weight: 800; font-size: 1.1rem; }
.price-card .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--text-dim); }
.price-card .per { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 18px; }
.price-card ul {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: grid; gap: 11px;
  color: var(--text-muted); font-size: 0.95rem;
  flex: 1;
}
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; }
.price-card ul li svg { flex: none; margin-top: 4px; }
.ribbon {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
  background: var(--bg-card);
}
table.compare th, table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
table.compare thead th {
  background: var(--bg-soft);
  font-weight: 700;
}
table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td { color: var(--text-muted); }
table.compare td.yes { color: var(--success); font-weight: 700; }
table.compare td.no { color: var(--text-dim); }

/* ---------- Testimonials ---------- */
.testimonial { display: flex; flex-direction: column; gap: 14px; }
.testimonial blockquote {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text);
  flex: 1;
}
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #4c1d95);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; flex: none;
}
.testimonial .who b { display: block; font-size: 0.95rem; }
.testimonial .who small { color: var(--text-dim); }
.stars { color: var(--warning); letter-spacing: 2px; font-size: 0.9rem; }

/* ---------- Accordion / FAQ ---------- */
.accordion { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.acc-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  text-align: left;
  padding: 19px 22px;
  cursor: pointer;
}
.acc-btn:hover { color: #fff; }
.acc-btn .chev {
  flex: none;
  transition: transform 0.22s ease;
  color: var(--accent);
}
.acc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-panel { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.acc-panel p { color: var(--text-muted); margin: 0 0 20px; }
.acc-panel a { font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.95rem; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  padding: 13px 15px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.22);
}
.field .error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.86rem;
  margin-top: 6px;
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }
.form-note { color: var(--text-dim); font-size: 0.88rem; }
.form-success {
  display: none;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.4);
  color: #bdf3dd;
  border-radius: var(--radius-sm);
  padding: 22px;
}
.form-success.show { display: block; }
.form-success h3 { color: var(--success); margin-bottom: 6px; }
.form-success p { margin: 0; }

/* ---------- Auth page ---------- */
.auth-wrap {
  max-width: 460px;
  margin: 0 auto;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 38px 34px;
  box-shadow: var(--shadow-lg);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 26px;
}
.auth-tabs button {
  border: none;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  padding: 11px;
  border-radius: 999px;
  cursor: pointer;
}
.auth-tabs button[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
}
.auth-note {
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding: 64px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.94rem; max-width: 300px; }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--text); }
.newsletter p { color: var(--text-dim); font-size: 0.92rem; }
.newsletter-row { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-row input {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  padding: 11px 14px;
}
.newsletter-msg { font-size: 0.86rem; margin-top: 8px; min-height: 1.4em; }
.newsletter-msg.ok { color: var(--success); }
.newsletter-msg.err { color: var(--danger); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.socials a:hover { color: #fff; border-color: var(--accent); background: var(--accent-soft); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.footer-bottom ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 18px; right: 18px; bottom: 18px;
  z-index: 150;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.cookie-banner p a { font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 140;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.5);
  background: var(--bg-card);
  color: var(--accent);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}
.back-to-top.show { display: inline-flex; }
.back-to-top:hover { background: var(--accent); color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Misc sections ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(139,92,246,0.16), rgba(139,92,246,0.04));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 22px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { margin: 0 auto 30px; }
.page-hero { padding: 72px 0 40px; text-align: center; }
.page-hero .lead { margin: 0 auto; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.checklist svg { flex: none; margin-top: 3px; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.kbd {
  font-family: var(--font-mono);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.86em;
}
.code-block {
  background: #0d0d16;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #c9b8f5;
  overflow-x: auto;
  line-height: 1.7;
}
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.12rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--text); }
.updated { color: var(--text-dim); font-size: 0.88rem; }
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-band .stat {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 16px;
}
.stat-band .stat b { display: block; font-size: 2rem; letter-spacing: -0.02em; color: var(--accent); }
.stat-band .stat span { color: var(--text-dim); font-size: 0.9rem; }

/* 404 */
.notfound { text-align: center; padding: 110px 0; }
.notfound .big {
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand, .newsletter { grid-column: span 3; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 14px 22px 22px;
    gap: 2px;
  }
  .site-header.menu-open .nav-links a {
    padding: 13px 10px;
    font-size: 1.05rem;
  }
  .site-header.menu-open .nav-cta .btn-primary { display: inline-flex; margin-top: 10px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand, .newsletter { grid-column: span 1; }
  .hero { padding: 64px 0 52px; }
  .hero-ctas .btn { flex: 1; }
  .cta-band { padding: 44px 24px; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}

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