/* ==========================================================================
   kbaze — sitio público
   Tokens según la guía de estilos (espacio kbaze / "kbaze — Guía de estilos")
   ========================================================================== */

:root {
  /* superficies y texto */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;

  /* marca */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --accent: #0d9488;
  --accent-soft: #f0fdfa;
  --ring: #6366f1;

  /* logo (colores físicos del SVG inline) */
  --logo-stroke: #4f46e5;
  --logo-accent: #14b8a6;
  --logo-ink: #0f172a;

  /* grafo del hero */
  --edge: #cbd5e1;
  --edge-active: #4f46e5;
  --node-fill: #ffffff;
  --node-stroke: #6366f1;
  --node-accent: #14b8a6;

  /* radios y sombras */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-2: 0 4px 12px rgba(15, 23, 42, .08);
  --shadow-3: 0 12px 32px rgba(15, 23, 42, .12);

  /* tipografías */
  --font-display: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-muted: #334155;
  --border: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;

  --primary: #818cf8;
  --primary-hover: #a5b4fc;
  --primary-soft: rgba(99, 102, 241, .14);
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, .10);
  --ring: #818cf8;

  --logo-stroke: #818cf8;
  --logo-accent: #2dd4bf;
  --logo-ink: #f8fafc;

  --edge: #475569;
  --edge-active: #818cf8;
  --node-fill: #1e293b;
  --node-stroke: #818cf8;
  --node-accent: #2dd4bf;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, .35);
  --shadow-3: 0 12px 32px rgba(0, 0, 0, .45);
}

/* ==========================================================================
   base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
}

p { margin: 0; }

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

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

code, pre { font-family: var(--font-mono); }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--primary-soft); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 112px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  flex: none;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 18px;
  line-height: 1.66;
  color: var(--text-muted);
}

/* ==========================================================================
   botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
[data-theme="dark"] .btn--primary { color: #0f172a; }

.btn--secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--secondary:hover { background: var(--surface-muted); }

.btn--ghost { background: transparent; color: var(--text-muted); }
.btn--ghost:hover { background: var(--surface-muted); color: var(--text); }

.btn--lg { padding: 16px 26px; font-size: 16px; border-radius: var(--radius-md); }

/* ==========================================================================
   header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo-link { display: inline-flex; align-items: center; flex: none; }
.logo-link:hover { text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.site-nav a:hover {
  color: var(--text);
  background: var(--surface-muted);
  text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 0 10px;
  height: 36px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-muted);
  cursor: pointer;
}
.lang-switch button + button { border-left: 1px solid var(--border); }
.lang-switch button:hover { color: var(--text); background: var(--surface-muted); }
.lang-switch button.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-muted); color: var(--text); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   hero
   ========================================================================== */

.hero { padding: 96px 0 112px; overflow: hidden; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero h1 .accent-word {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}

.hero__lead {
  font-size: 18px;
  line-height: 1.66;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.hero__note {
  font-size: 13.5px;
  color: var(--text-muted);
}
.hero__note strong { color: var(--text); font-weight: 600; }

/* grafo del hero */
.hero__graph { position: relative; }
.hero__graph svg { display: block; width: 100%; height: auto; }

.graph .edge {
  stroke: var(--edge);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke .2s ease, opacity .2s ease;
}
.graph .edge.is-active { stroke: var(--edge-active); }
.graph .edge.is-dim { opacity: .28; }

.graph .node { cursor: pointer; }
.graph .node circle {
  fill: var(--node-fill);
  stroke: var(--node-stroke);
  stroke-width: 3;
  transition: stroke .2s ease, opacity .2s ease;
}
.graph .node--center circle {
  stroke: var(--node-accent);
  stroke-width: 3.5;
}
.graph .node text {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  fill: var(--text-muted);
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 5px;
  stroke-linejoin: round;
  transition: fill .2s ease, opacity .2s ease;
}
.graph .node:hover circle,
.graph .node.is-active circle { stroke: var(--node-accent); }
.graph .node:hover text,
.graph .node.is-active text { fill: var(--text); }
.graph .node.is-dim { opacity: .35; }

@keyframes nodePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.graph .node--center circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 4.5s ease-in-out infinite;
}

@keyframes edgeDraw { to { stroke-dashoffset: 0; } }
.graph.graph--animate .edge {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: edgeDraw 1.4s ease-out forwards;
}

/* franja de confianza */
.trust {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.trust__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  justify-content: center;
  align-items: center;
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.trust__item svg { flex: none; color: var(--accent); }

/* ==========================================================================
   features
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-2); }

.feature-card::after {
  content: "";
  position: absolute;
  top: 18px; right: 18px;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  opacity: 0;
  transition: opacity .2s ease;
}
.feature-card:hover::after { opacity: 1; }

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   cómo funciona
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
  background: var(--surface);
}

.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-muted); }

/* conector entre pasos (desktop) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 45px;
  right: -24px;
  width: 24px;
  height: 3px;
  background: var(--border);
}

/* ==========================================================================
   sección IA (chat demo)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.split .section-head { margin-bottom: 0; }

.checklist {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}
.checklist li svg { flex: none; margin-top: 3px; color: var(--accent); }
.checklist li span strong { font-weight: 600; }
.checklist li span { color: var(--text-muted); }
.checklist li span strong { color: var(--text); }

/* ventana demo (chat / código) */
.demo-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.demo-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}
.demo-window__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.demo-window__title {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.chat { padding: 24px; display: grid; gap: 16px; }

.chat__msg { max-width: 85%; }

.chat__msg--user {
  justify-self: end;
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border-bottom-right-radius: 4px;
  font-size: 14.5px;
}
[data-theme="dark"] .chat__msg--user { color: #0f172a; }

.chat__msg--ai {
  justify-self: start;
  background: var(--surface-muted);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 4px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

.chat__cites {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
}
.cite::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

/* bloque de código (MCP) */
.code-block {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  overflow-x: auto;
  color: var(--text);
}
.code-block .c { color: var(--text-muted); }
.code-block .k { color: var(--primary); font-weight: 600; }
.code-block .s { color: var(--accent); }

/* ==========================================================================
   pricing
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}

.plan--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-2);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
[data-theme="dark"] .plan__badge { color: #0f172a; }

.plan__name { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.plan__desc { font-size: 13.5px; color: var(--text-muted); min-height: 42px; margin-bottom: 18px; }

.plan__price { font-family: var(--font-display); margin-bottom: 4px; }
.plan__price strong {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan__price span { font-size: 14px; color: var(--text-muted); }

.plan__cycle { font-size: 12.5px; color: var(--text-muted); margin-bottom: 22px; }

.plan__list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}
.plan__list li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}
.plan__list li svg { flex: none; margin-top: 3px; color: var(--accent); }

.plan .btn { width: 100%; }

.pricing-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 28px;
}

/* ==========================================================================
   comparativa
   ========================================================================== */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare tr:last-child td { border-bottom: none; }

.compare thead th {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-muted);
}

.compare tbody th {
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.compare .col-kbaze {
  background: var(--primary-soft);
  font-weight: 600;
  color: var(--text);
}
.compare thead .col-kbaze { color: var(--primary); }

.compare td { color: var(--text-muted); }

.compare-note { font-size: 12.5px; color: var(--text-muted); margin-top: 16px; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  flex: none;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 70ch;
}

/* ==========================================================================
   CTA final
   ========================================================================== */

.cta-final {
  text-align: center;
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}

.cta-final h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-final p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.cta-final__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   formulario de invitación
   ========================================================================== */

.invite-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-2);
}

.invite-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field label .optional { font-weight: 400; color: var(--text-muted); }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); opacity: .8; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.field input[aria-invalid="true"] { border-color: #dc2626; }
[data-theme="dark"] .field input[aria-invalid="true"] { border-color: #f87171; }

/* señuelo anti-spam: fuera de pantalla, nunca visible ni enfocable */
.invite-form__trap {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.invite-form button[type="submit"] { width: 100%; margin-top: 4px; }
.invite-form button[disabled] { opacity: .65; cursor: progress; }

.invite-form__status {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 14px;
  display: none;
}
.invite-form__status.is-visible { display: block; }
.invite-form__status.is-error { color: #dc2626; }
[data-theme="dark"] .invite-form__status.is-error { color: #f87171; }

.invite-form__note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

/* estado de éxito: reemplaza el formulario */
.invite-success {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-2);
}
.invite-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.invite-success h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.invite-success p { font-size: 15px; color: var(--text-muted); }

.cta-final__alt { margin-top: 24px; font-size: 14.5px; }
.cta-final__alt a { color: var(--text-muted); }
.cta-final__alt a:hover { color: var(--text); }

@media (max-width: 560px) {
  .invite-form { padding: 22px; }
  .invite-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 30ch;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .graph.graph--animate .edge { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .graph .node--center circle { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__graph { max-width: 560px; margin: 0 auto; }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    gap: 2px;
    box-shadow: var(--shadow-2);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
