/* Over Traking · landing
   Concepto: sala de control nocturna. Tinta azul profundo, acento menta (el mismo de la web de operadores),
   ámbar y rojo solo para estados. Titulares en Archivo expandida, datos en mono. */
:root {
  --bg: #0a0e13;
  --surface: #111821;
  --surface-2: #17202b;
  --line: #233041;
  --fg: #e6ecf2;
  --muted: #8a98a8;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, .12);
  --accent-ink: #032a25;
  --warn: #f5a524;
  --warn-soft: rgba(245, 165, 36, .14);
  --crit: #f04444;
  --crit-soft: rgba(240, 68, 68, .14);
  --ok: #22c55e;
  --map-street: #1c2633;
  --map-street-2: #243244;
  --map-water: #0f2130;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem);

  --radius: 10px;
  --wrap: 1180px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f7f6; --surface: #ffffff; --surface-2: #eef2f1; --line: #dbe2e0;
    --fg: #0e1620; --muted: #56636f; --accent: #0f766e; --accent-soft: rgba(15, 118, 110, .1);
    --accent-ink: #ffffff; --warn: #b45309; --warn-soft: rgba(180, 83, 9, .1);
    --crit: #d42828; --crit-soft: rgba(212, 40, 40, .09); --ok: #15803d;
    --map-street: #dfe6e4; --map-street-2: #cfd9d6; --map-water: #d6e6ee;
    --shadow: 0 24px 50px -28px rgba(14, 22, 32, .35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f7f6; --surface: #ffffff; --surface-2: #eef2f1; --line: #dbe2e0;
  --fg: #0e1620; --muted: #56636f; --accent: #0f766e; --accent-soft: rgba(15, 118, 110, .1);
  --accent-ink: #ffffff; --warn: #b45309; --warn-soft: rgba(180, 83, 9, .1);
  --crit: #d42828; --crit-soft: rgba(212, 40, 40, .09); --ok: #15803d;
  --map-street: #dfe6e4; --map-street-2: #cfd9d6; --map-water: #d6e6ee;
  --shadow: 0 24px 50px -28px rgba(14, 22, 32, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.08; }
h2 { font-size: var(--step-3); font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; }
h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 105%; line-height: 1.25; }
p { margin: 0; }
code, pre, .mono { font-family: var(--f-mono); font-size: .875em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.eyebrow {
  font: 600 var(--step--1)/1 var(--f-mono);
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
}
.lead { color: var(--muted); font-size: var(--step-1); max-width: 62ch; }
.muted { color: var(--muted); }
.section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }

/* ---------- barra superior ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 800 1.125rem/1 var(--f-display); font-stretch: 110%; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--accent);
  display: grid; place-items: center;
}
.brand-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .9375rem; }
.nav a:hover { color: var(--fg); background: var(--surface-2); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

.btn {
  appearance: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 600 .9375rem/1 var(--f-body); text-decoration: none;
  padding: 13px 18px; border-radius: 9px; border: 1px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 13px; font-size: .875rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 {
  font-size: clamp(2.2rem, 1rem + 3vw, 3.4rem); font-weight: 850; font-stretch: 110%; letter-spacing: -.025em; line-height: 1.02;
  margin-block: 18px 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--muted); font-size: .9375rem; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* consola en vivo */
.console {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; min-width: 0;
}
.console-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.console-bar .tabs { display: flex; gap: 2px; background: var(--surface-2); border-radius: 8px; padding: 3px; }
.console-bar .tabs span { padding: 4px 10px; border-radius: 6px; color: var(--muted); }
.console-bar .tabs span.on { background: var(--bg); color: var(--fg); }
.console-bar .tabs .badge { color: #fff; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--crit); color: #fff; font: 700 .6875rem/1 var(--f-mono); margin-left: 4px; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; min-width: 0; }
.kpi small { display: block; font: 600 .625rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { display: block; font: 700 1.5rem/1.2 var(--f-mono); font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi.crit { border-left: 3px solid var(--crit); }
.kpi.crit b { color: var(--crit); }
.kpi.okk b { color: var(--ok); }

.console-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.map-wrap { position: relative; min-height: 300px; background: var(--bg); border-right: 1px solid var(--line); }
#mapa { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-tag {
  position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; gap: 10px; align-items: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: .75rem;
}
.map-tag b { font-family: var(--f-mono); }
.map-tag .links { margin-left: auto; display: flex; gap: 10px; }
.alert-list { list-style: none; margin: 0; padding: 0; font-size: .8125rem; overflow: hidden; }
.alert-list li { padding: 10px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; display: grid; gap: 2px; }
.alert-list li.crit { border-left-color: var(--crit); }
.alert-list li.alta { border-left-color: var(--warn); }
.alert-list li.media { border-left-color: #eab308; }
.alert-list li.new { animation: slidein .5s ease-out; background: var(--accent-soft); }
@keyframes slidein { from { transform: translateY(-8px); opacity: .3; } to { transform: none; opacity: 1; } }
.alert-list .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.alert-list .t time { color: var(--muted); font: 400 .6875rem/1.6 var(--f-mono); white-space: nowrap; }
.alert-list .s { color: var(--muted); font-size: .75rem; }
.alert-list .s b { font-family: var(--f-mono); color: var(--fg); font-weight: 600; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); font-size: .8125rem; color: var(--fg); white-space: nowrap;
}
.chip.crit { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 45%, transparent); background: var(--crit-soft); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); }
.chip.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.chip.soon { color: var(--muted); border-style: dashed; background: transparent; }
.chip i { font-style: normal; font-family: var(--f-mono); font-size: .75rem; color: var(--fg); }

/* ---------- franja de cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: 28px 20px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 800 clamp(1.8rem, 1.2rem + 2vw, 2.6rem)/1 var(--f-display); font-stretch: 115%; font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--muted); font-size: .9375rem; margin-top: 8px; }

/* ---------- beneficios por público ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aud { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.aud .who { font: 600 .75rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.aud ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }
.aud ul li::marker { color: var(--accent); }

/* ---------- bloques de función ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.feature.flip > :first-child { order: 2; }
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); }
.feature-text { display: grid; gap: 16px; min-width: 0; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.checks li::before {
  content: ""; width: 14px; height: 14px; margin-top: 5px; border-radius: 4px;
  border: 2px solid var(--accent); background: var(--accent-soft);
}
.checks li.soon::before { border-style: dashed; border-color: var(--muted); background: transparent; }
.checks b { font-weight: 600; }
.checks span { color: var(--muted); }
.soon-tag { font: 600 .6875rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--warn); border: 1px dashed currentColor; border-radius: 4px; padding: 2px 5px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-title h3 { font-size: 1rem; }
.panel-title small { color: var(--muted); font-size: .75rem; }
.note { font-size: .75rem; color: var(--muted); margin-top: 12px; }

/* simulador de bloqueo */
.speed { display: grid; gap: 14px; }
.speed-row { display: flex; align-items: center; gap: 16px; }
.speed-val { font: 700 2.4rem/1 var(--f-mono); font-variant-numeric: tabular-nums; min-width: 4ch; }
.speed-val small { font-size: .875rem; color: var(--muted); margin-left: 4px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.lock-state { border-radius: 9px; padding: 14px; border: 1px solid var(--line); display: grid; gap: 4px; }
.lock-state b { font-family: var(--f-display); font-stretch: 108%; font-size: 1.05rem; }
.lock-state.go { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.lock-state.go b { color: var(--accent); }
.lock-state.wait { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.lock-state.wait b { color: var(--warn); }
.lock-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: .875rem; }
.lock-steps li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.lock-steps li span:first-child { font-family: var(--f-mono); color: var(--muted); font-size: .75rem; padding-top: 2px; }

/* tarjeta de mantenimiento */
.mant { display: grid; gap: 0; }
.mant-item { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.mant-item:first-child { border-top: 0; padding-top: 0; }
.mant-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mant-head h4 { margin: 0; font-size: .9375rem; font-weight: 600; }
.mant-sub { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sliders { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.slider { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 4px 12px; align-items: center; font-size: .8125rem; }
.slider label { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--muted); }
.slider output { font-family: var(--f-mono); color: var(--fg); }
.slider input { grid-column: 1 / -1; }

/* grilla de capacidades */
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cap { background: var(--surface); padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.cap .k { font: 600 .6875rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cap p { color: var(--muted); font-size: .9375rem; }

/* severidades */
.sev-table { display: grid; gap: 10px; }
.sev-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; }
.sev-row > span:first-child { font: 600 .75rem/1.9 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.sev-row.c > span:first-child { color: var(--crit); }
.sev-row.a > span:first-child { color: var(--warn); }
.sev-row.m > span:first-child { color: #ca8a04; }
.sev-row.b > span:first-child { color: var(--muted); }

/* IA */
.ai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ai-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); display: grid; gap: 10px; align-content: start; min-width: 0; }
.ai-card.soon { border-style: dashed; background: transparent; }
.ai-card .meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.ai-card .meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* desarrolladores */
.dev { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.auth-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.auth-table th, .auth-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.auth-table th { font: 600 .6875rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.auth-table td:first-child { white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.code {
  background: #070a0e; color: #d6e2ee; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0;
}
.code-bar { display: flex; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid #1d2733; overflow-x: auto; }
.code-bar button {
  appearance: none; background: transparent; border: 0; color: #8696a8; font: 500 .8125rem/1 var(--f-mono);
  padding: 8px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.code-bar button[aria-selected="true"] { background: #141c26; color: #e6ecf2; }
.code-bar .copy { margin-left: auto; color: #2dd4bf; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font-size: .8125rem; line-height: 1.6; max-height: 420px; }
.code .k1 { color: #7dd3fc; } .code .k2 { color: #fcd34d; } .code .k3 { color: #86efac; } .code .k4 { color: #8696a8; }
.events { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.events button {
  appearance: none; cursor: pointer; font: 500 .75rem/1 var(--f-mono); padding: 7px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
}
.events button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.events-desc { font-size: .875rem; color: var(--muted); margin-bottom: 12px; min-height: 2.8em; }
.dev-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.dev-points div { border-top: 2px solid var(--accent); padding-top: 14px; display: grid; gap: 6px; }
.dev-points p { color: var(--muted); font-size: .9375rem; }

/* arquitectura */
.diagram { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.diagram svg { min-width: 760px; width: 100%; height: auto; }
.diagram .box { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.diagram .box.hl { stroke: var(--accent); fill: var(--accent-soft); }
.diagram text { fill: var(--fg); font: 600 13px var(--f-body); }
.diagram text.s { fill: var(--muted); font: 400 11px var(--f-mono); }
.diagram .arr { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.diagram .flow { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 4 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.diagram marker path { fill: var(--muted); }

/* hoja de ruta */
.roadmap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.road { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.road .state { font: 600 .6875rem/1.8 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.road .state.done { color: var(--accent); }
.road .state.next { color: var(--warn); }
.road .state.later { color: var(--muted); }
.road p { color: var(--muted); font-size: .9375rem; margin-top: 4px; }

/* contacto */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.cta h2 { font-size: var(--step-4); font-stretch: 118%; line-height: 1; }
form { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .8125rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%;
}
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.contact-mail { font-size: var(--step-1); display: grid; gap: 2px; }
.contact-mail a { font-weight: 600; overflow-wrap: anywhere; }
.form-msg { font-size: .875rem; min-height: 1.4em; }

footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: .875rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer .brand { font-size: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .feature, .dev, .cta { grid-template-columns: minmax(0, 1fr); }
  .feature.flip > :first-child { order: 0; }
  .audiences, .grid-cards, .dev-points { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .roadmap { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .nav.open {
    display: grid; position: absolute; top: 62px; left: 0; right: 0; padding: 12px 20px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .menu-btn { display: grid; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .audiences, .grid-cards, .dev-points, .ai, .field-row { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-body { grid-template-columns: minmax(0, 1fr); }
  .map-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
  .road { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .top-actions .btn { display: none; }
  .map-tag .links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
