/* Almenara — commercial site
   Style reference: BBM Intelligent (dark canvas, Geist, oversized type, mint accent).
   Brand: near-black, mint #00e6a8, magenta #ec6cff. */

:root {
  --bg: #050807;
  --bg-soft: #08100c;
  --panel: #0a1410;
  --panel-2: #0d1a14;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f3f8f5;
  --muted: #9bb0a6;
  --dim: #6f857b;
  --mint: #00e6a8;
  --mint-deep: #00b380;
  --mint-soft: rgba(0, 230, 168, 0.12);
  --magenta: #ec6cff;
  --magenta-soft: rgba(236, 108, 255, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(0, 230, 168, 0.14), transparent 60%),
    radial-gradient(700px 460px at 8% 8%, rgba(236, 108, 255, 0.07), transparent 65%),
    linear-gradient(180deg, #050807 0%, #050807 60%, #060b09 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--mint); color: #03110b; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--mint); color: #04120c; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* ---------- eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mint);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--mint); opacity: 0.8;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(3.1rem, 7.4vw, 6.6rem); line-height: 0.94; letter-spacing: -0.05em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: -0.025em; }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.65; }
.accent {
  background: linear-gradient(100deg, var(--mint) 10%, #bfffe8 48%, var(--mint-deep) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.magenta { color: var(--magenta); }
.section { padding: clamp(84px, 10vw, 132px) 0; position: relative; }
[id] { scroll-margin-top: calc(var(--nav-h) + 18px); }
.section-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { max-width: 620px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 14.5px;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: #03130c; box-shadow: 0 10px 34px rgba(0, 230, 168, 0.22); }
.btn-primary:hover { background: #2af0bc; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(0, 230, 168, 0.55); background: var(--mint-soft); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 13px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(5, 8, 7, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 13.5px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
  transition: transform 0.25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero { padding: calc(var(--nav-h) + 70px) 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-grid > *, .split > *, .problem-grid > *, .cta-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: rgba(255, 255, 255, 0.02);
}
.chip b { color: var(--mint); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: 0.02em; }

/* hero visual */
.hero-visual { position: relative; min-height: 580px; padding-top: 128px; min-width: 0; }
.glow {
  position: absolute; inset: 8% -10% -8% 6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 230, 168, 0.22), transparent 72%);
  filter: blur(10px);
}
.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 26, 20, 0.95), rgba(7, 14, 11, 0.95));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--dim);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #1f332b; }
.dot.live { background: var(--mint); box-shadow: 0 0 0 4px rgba(0, 230, 168, 0.12); }
.panel-title { margin-left: 4px; color: var(--muted); }
.panel-tag { margin-left: auto; color: var(--mint); letter-spacing: 0.08em; }
.hero-console { position: relative; z-index: 2; transform: rotate(-1.2deg); min-width: 0; }
.console-body { padding: 14px 16px 18px; font-family: var(--mono); font-size: 12px; line-height: 1.9; }
.console-line { display: flex; gap: 10px; white-space: nowrap; overflow: hidden; }
.console-line .prompt { color: var(--mint); }
.console-line .ok { color: var(--mint); }
.console-line .warn { color: var(--magenta); }
.console-line .dim { color: var(--dim); }
.decision-card {
  position: absolute; z-index: 3; right: -14px; bottom: -64px; width: min(330px, 82%);
  padding: 14px; border-radius: 14px; border: 1px solid rgba(0, 230, 168, 0.3);
  background: rgba(8, 20, 15, 0.94); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}
.decision-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.decision-ip { font-family: var(--mono); font-size: 13px; }
.badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(0, 230, 168, 0.4);
  color: var(--mint); background: rgba(0, 230, 168, 0.08); white-space: nowrap;
}
.badge.magenta { color: var(--magenta); border-color: rgba(236, 108, 255, 0.4); background: rgba(236, 108, 255, 0.08); }
.decision-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-top: 6px; }
.decision-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); margin-top: 12px; overflow: hidden; }
.decision-bar span { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--mint-deep), var(--mint)); }
.floating {
  position: absolute; z-index: 3; left: 0; top: 0; width: 200px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(9, 18, 14, 0.92); backdrop-filter: blur(8px);
}
.floating .kpi { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.floating .kpi small { font-size: 11px; color: var(--mint); font-weight: 500; margin-left: 4px; }
.floating .label { font-family: var(--mono); font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 10px; }
.spark i { flex: 1; background: rgba(0, 230, 168, 0.28); border-radius: 2px; }
.spark i:nth-child(3n) { background: rgba(0, 230, 168, 0.6); }

/* ---------- marquee ---------- */
.marquee-wrap { border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee span {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); padding: 18px 28px; border-right: 1px solid var(--line); white-space: nowrap;
}
.marquee span b { color: var(--muted); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stat band ---------- */
.stat-band { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(0,230,168,.05), rgba(255,255,255,.015) 45%, rgba(236,108,255,.04)); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-v { font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.stat-v span { color: var(--mint); }
.stat p { color: var(--muted); font-size: 12.5px; margin-top: 8px; line-height: 1.45; }
.stat a { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .03em; }
.stat a:hover { color: var(--mint); }

/* ---------- pain ---------- */
.pain-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.pain-list { display: grid; gap: 12px; }
.pain-item {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 20px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.015);
}
.pain-item .num { font-family: var(--mono); color: var(--magenta); font-size: 12px; padding-top: 3px; }
.pain-item h3 { font-size: 1.02rem; margin-bottom: 5px; letter-spacing: -0.015em; }
.pain-item p { color: var(--muted); font-size: 13.5px; }
.pain-item b { color: var(--ink); font-weight: 500; }
.pain-callout {
  border: 1px solid rgba(0,230,168,.28); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(0,230,168,.1), rgba(0,230,168,.02));
  padding: 30px; display: grid; gap: 16px;
}
.pain-callout .quote { font-size: clamp(1.35rem, 2.1vw, 1.8rem); line-height: 1.28; letter-spacing: -0.03em; }
.pain-callout .quote em { color: var(--mint); font-style: normal; }
.pain-callout .lead { font-size: 13.5px; }
.sources { margin-top: 22px; font-family: var(--mono); font-size: 10.5px; color: var(--dim); line-height: 1.9; }
.sources a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.sources a:hover { color: var(--mint); }

/* ---------- metrics dashboard ---------- */
.metrics-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.dash { border: 1px solid var(--line); border-radius: var(--radius); background: #07100c; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.dash-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: .05em; text-transform: uppercase; }
.dash-head .badge { margin-left: auto; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.kpi-tile { background: var(--panel); padding: 16px 15px; }
.kpi-tile .v { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.kpi-tile .v small { font-size: 10px; color: var(--mint); margin-left: 3px; font-weight: 500; }
.kpi-tile .l { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin-top: 6px; line-height: 1.4; }
.dash-body { padding: 18px 16px 20px; display: grid; gap: 18px; }
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 98px 1fr 40px; gap: 10px; align-items: center; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.bar-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mint-deep), var(--mint)); }
.bar-row.magenta .bar-fill { background: linear-gradient(90deg, #9b3bd6, var(--magenta)); }
.bar-row .pct { text-align: right; color: var(--dim); }
.dash-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.dash-table th { text-align: left; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 0 0 7px; border-bottom: 1px solid var(--line); font-weight: 500; }
.dash-table td { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--muted); }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table td:first-child { font-family: var(--mono); color: var(--ink); }
.dash-table .ok { color: var(--mint); }
.metric-explain { display: grid; gap: 14px; }
.metric-explain .item { padding: 16px 17px; border-left: 2px solid rgba(0,230,168,.35); background: linear-gradient(90deg, rgba(0,230,168,.05), transparent 70%); }
.metric-explain h3 { font-size: .98rem; margin-bottom: 4px; }
.metric-explain p { color: var(--muted); font-size: 13px; }
.dash-note { font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 10px; }

/* ---------- ROI ---------- */
.roi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(24px, 4vw, 44px); background: linear-gradient(140deg, rgba(255,255,255,.03), rgba(0,230,168,.04)); }
.roi-form { display: grid; gap: 14px; align-content: start; }
.roi-form .field input { background: rgba(0,0,0,.35); }
.roi-result { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 6px; }
.roi-cell { background: #08110d; padding: 16px; }
.roi-cell .v { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.roi-cell .v span { color: var(--mint); }
.roi-cell .l { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin-top: 7px; line-height: 1.45; }
.roi-cell.wide { grid-column: span 2; }
.roi-cell.wide .v { color: var(--mint); }

/* section bridging */
.solution-intro { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.solution-intro .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; padding-block: 34px; }
.solution-intro h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.solution-intro p { color: var(--muted); font-size: 13.5px; max-width: 420px; }

/* ---------- generic grids/cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
  overflow: hidden;
}
.card:hover { border-color: rgba(0, 230, 168, 0.32); transform: translateY(-3px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--mint-soft); color: var(--mint); margin-bottom: 20px;
}
.card .icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .metric { margin-top: 18px; font-family: var(--mono); font-size: 11px; color: var(--mint); letter-spacing: 0.06em; }
.card .metric::before { content: "→ "; color: var(--dim); }
.card.magenta .icon { background: var(--magenta-soft); color: var(--magenta); }
.card.magenta:hover { border-color: rgba(236, 108, 255, 0.32); }

/* problem */
.problem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.problem-list { display: grid; gap: 12px; }
.problem-item {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 18px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.015);
}
.problem-item .num { font-family: var(--mono); color: var(--magenta); font-size: 12px; padding-top: 3px; }
.problem-item h3 { font-size: 1rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.problem-item p { color: var(--muted); font-size: 13.5px; }
.problem-callout {
  border: 1px solid rgba(0, 230, 168, 0.25); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(0, 230, 168, 0.09), rgba(0, 230, 168, 0.02));
  padding: 28px; display: grid; gap: 14px;
}
.problem-callout .quote { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.3; letter-spacing: -0.03em; }
.problem-callout .quote em { color: var(--mint); font-style: normal; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 26px 22px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); position: relative; }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--mono); font-size: 11px; color: var(--mint); letter-spacing: 0.1em; }
.step h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 13px; }
.step .line { position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: linear-gradient(90deg, var(--mint), transparent); opacity: 0.5; }

/* ---------- motion graphic: how it works ---------- */
.motion-card {
  margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #07110d; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.mg-scenarios {
  display: flex; align-items: center; gap: 4px; padding: 9px 14px;
  border-bottom: 1px solid var(--line); overflow-x: auto;
}
.mg-scenarios-label,
.mg-agents-label {
  font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: var(--dim);
  text-transform: uppercase; margin-right: 6px; white-space: nowrap;
}
.mg-scenarios button {
  border: 1px solid transparent; border-radius: 999px; background: transparent;
  color: var(--dim); font-family: var(--mono); font-size: 8.5px; letter-spacing: .03em;
  padding: 5px 9px; white-space: nowrap; cursor: pointer; transition: color .2s, background .2s, border-color .2s;
}
.mg-scenarios button:hover { color: var(--muted); border-color: var(--line); }
.mg-scenarios button.active { color: var(--mint); background: rgba(0,230,168,.08); border-color: rgba(0,230,168,.3); }
.mg-checks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.mg-checks span {
  font-family: var(--mono); font-size: 7.5px; color: var(--dim);
  border: 1px solid rgba(255,255,255,.08); border-radius: 4px; padding: 2px 4px;
}
.mg-verdict[data-verdict-kind="allow"] { border-color: rgba(0,230,168,.4); background: rgba(0,230,168,.09); color: var(--mint); }
.mg-verdict[data-verdict-kind="escalate"] { border-color: rgba(255,212,121,.45); background: rgba(255,212,121,.08); color: #ffd479; }
.mg-agents {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 9px 14px; border-top: 1px solid var(--line); background: rgba(255,255,255,.012);
}
.mg-agent {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px;
  border: 1px solid var(--line); border-radius: 5px; color: var(--dim);
  font-family: var(--mono); font-size: 8px; letter-spacing: .04em;
  opacity: .45; transition: opacity .35s, border-color .35s, color .35s, background .35s;
}
.mg-agent i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.mg-agent.active { opacity: 1; color: var(--mint); border-color: rgba(0,230,168,.4); background: rgba(0,230,168,.07); }
.mg-agent.done { opacity: .8; color: var(--muted); border-color: rgba(255,255,255,.15); }
.mg-agent.skipped { opacity: .2; text-decoration: line-through; }
.mg-stage[data-kind="allow"][data-step="4"] .mg-edge { opacity: .22; }
.mg-stage {
  position: relative; aspect-ratio: 16 / 8.1; min-height: 450px; overflow: hidden;
  background:
    radial-gradient(ellipse at 48% 48%, rgba(0,230,168,.08), transparent 38%),
    linear-gradient(135deg, rgba(0,230,168,.035), transparent 45%, rgba(236,108,255,.03));
}
.mg-grid {
  position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
}
.mg-scan {
  position: absolute; inset: -30%; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 50%, transparent 0 70%, rgba(0,230,168,.055) 82%, transparent 92%);
  animation: mg-scan 9s linear infinite;
}
.mg-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mg-wires .wire {
  fill: none; stroke: rgba(0,230,168,.32); stroke-width: 1.2;
  stroke-dasharray: 3 9; animation: mg-dash 7s linear infinite;
}
.mg-wires .w3, .mg-wires .w5 { stroke: rgba(236,108,255,.25); animation-duration: 9s; }
.mg-top {
  position: absolute; inset: 14px 18px auto; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--dim);
  text-transform: uppercase; z-index: 5;
}
.mg-live { display: inline-flex; align-items: center; gap: 7px; }
.mg-live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(0,230,168,.5); animation: mg-ping 1.8s ease-out infinite;
}
.mg-node {
  position: absolute; z-index: 4; padding: 12px 13px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.11); background: rgba(8,17,13,.82);
  backdrop-filter: blur(12px); box-shadow: 0 12px 32px rgba(0,0,0,.28);
  opacity: .24; transform: translateY(7px);
  transition: opacity .65s var(--ease), transform .65s var(--ease), border-color .65s, box-shadow .65s;
}
.mg-kicker {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .13em;
  color: var(--dim); text-transform: uppercase; margin-bottom: 8px;
}
.mg-logs { left: 2.2%; top: 21%; width: 24%; }
.mg-scenario { left: 39.5%; top: 5%; width: 23%; }
.mg-decision { right: 2.4%; top: 16%; width: 24%; }
.mg-edge { right: 3.2%; bottom: 9%; width: 21%; }
.mg-evidence { left: 39%; bottom: 4%; width: 31%; }
.mg-log {
  display: grid; grid-template-columns: 1fr auto; gap: 3px 6px; align-items: center;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: var(--mono); font-size: 9px; color: var(--muted);
}
.mg-log:last-of-type { border-bottom: 0; }
.mg-log .mg-ip { color: var(--mint); }
.mg-log span:nth-child(2) { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-log b { color: var(--magenta); font-weight: 500; }
.mg-source { margin-top: 8px; font-family: var(--mono); font-size: 8px; color: var(--dim); }
.mg-core {
  position: absolute; z-index: 5; left: 42%; top: 32%; width: 132px; height: 132px;
  display: grid; place-items: center; margin-left: -66px;
}
.mg-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(0,230,168,.28);
  animation: mg-ring 3.6s ease-out infinite;
}
.mg-ring.r2 { inset: 13px; animation-delay: 1.2s; border-color: rgba(236,108,255,.2); }
.mg-core-inner {
  position: relative; z-index: 2; width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 1px;
  border: 1px solid rgba(0,230,168,.55); background: radial-gradient(circle, rgba(0,230,168,.18), rgba(7,17,13,.95));
  box-shadow: 0 0 38px rgba(0,230,168,.18), inset 0 0 24px rgba(0,230,168,.07);
  transition: transform .6s var(--ease), box-shadow .6s;
}
.mg-core-kicker { font-family: var(--mono); font-size: 7px; letter-spacing: .16em; color: var(--dim); }
.mg-score { font-size: 28px; line-height: 1; font-weight: 650; letter-spacing: -.06em; color: var(--ink); }
.mg-core-sub { font-family: var(--mono); font-size: 7px; letter-spacing: .12em; color: var(--mint); text-transform: uppercase; }
.mg-orbit {
  position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(0,230,168,.18);
  animation: mg-spin 18s linear infinite;
}
.mg-orbit::before {
  content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); transform: translateX(-50%);
}
.mg-tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; color: var(--mint);
  border: 1px solid rgba(0,230,168,.35); background: rgba(0,230,168,.08);
  border-radius: 999px; padding: 3px 8px;
}
.mg-meter { height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); margin-top: 10px; overflow: hidden; }
.mg-meter i { display: block; height: 100%; width: 8%; background: linear-gradient(90deg, var(--mint), var(--magenta)); transition: width 1.2s var(--ease); }
.mg-meter span { display: block; margin-top: 5px; text-align: right; font-family: var(--mono); font-size: 8px; color: var(--dim); }
.mg-scenario-line { margin-top: 8px; font-family: var(--mono); font-size: 8px; color: var(--dim); }
.mg-row {
  display: flex; justify-content: space-between; gap: 10px; padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.06); font-family: var(--mono); font-size: 9px; color: var(--muted);
}
.mg-row b { color: var(--ink); font-weight: 500; }
.mg-verdict {
  margin-top: 10px; display: flex; justify-content: space-between; align-items: center;
  padding: 7px 9px; border-radius: 7px; border: 1px solid rgba(236,108,255,.35);
  background: rgba(236,108,255,.09); color: var(--magenta);
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em;
}
.mg-verdict span { color: var(--ink); }
.mg-decision-note { margin-top: 7px; font-family: var(--mono); font-size: 8px; color: var(--dim); }
.mg-edge-row { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 9px; color: var(--muted); padding: 3px 0; }
.mg-edge-row .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.mg-shield {
  position: absolute; right: 10px; top: 9px; width: 25px; height: 25px; color: var(--mint);
  opacity: .35; transition: opacity .5s, transform .5s;
}
.mg-shield svg { width: 100%; height: 100%; }
.mg-chain { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9px; color: var(--mint); }
.mg-chain span { padding: 3px 5px; border: 1px solid rgba(0,230,168,.25); border-radius: 4px; background: rgba(0,230,168,.06); }
.mg-chain i { color: var(--dim); font-style: normal; }
.mg-hash { margin-top: 8px; font-family: var(--mono); font-size: 8px; color: var(--dim); }
.mg-packet {
  position: absolute; z-index: 6; left: 23%; top: 43%; width: 9px; height: 9px;
  border-radius: 50%; background: var(--mint); box-shadow: 0 0 16px var(--mint), 0 0 40px rgba(0,230,168,.45);
  transition: left 1.25s var(--ease), top 1.25s var(--ease);
}
.mg-packet span {
  position: absolute; right: 100%; top: 50%; width: 42px; height: 1px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(0,230,168,.65));
}
.mg-caption {
  position: absolute; left: 18px; right: 18px; bottom: 14px; margin: 0; z-index: 7;
  font-family: var(--mono); font-size: 9px; color: var(--dim); text-align: center;
  transition: opacity .3s;
}
.mg-stage[data-step="1"] .mg-logs,
.mg-stage[data-step="2"] .mg-logs,
.mg-stage[data-step="2"] .mg-scenario,
.mg-stage[data-step="3"] .mg-scenario,
.mg-stage[data-step="3"] .mg-decision,
.mg-stage[data-step="4"] .mg-decision,
.mg-stage[data-step="4"] .mg-edge,
.mg-stage[data-step="5"] .mg-edge,
.mg-stage[data-step="5"] .mg-evidence { opacity: 1; transform: translateY(0); border-color: rgba(0,230,168,.25); }
.mg-stage[data-step="3"] .mg-core-inner,
.mg-stage[data-step="4"] .mg-core-inner { transform: scale(1.06); box-shadow: 0 0 58px rgba(0,230,168,.28), inset 0 0 28px rgba(0,230,168,.1); }
.mg-stage[data-step="2"] .mg-meter i { width: 100%; }
.mg-stage[data-step="4"] .mg-shield { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(0,230,168,.6)); }
.mg-stage[data-step="1"] .mg-packet { left: 24%; top: 43%; }
.mg-stage[data-step="2"] .mg-packet { left: 44%; top: 44%; }
.mg-stage[data-step="3"] .mg-packet { left: 60%; top: 39%; }
.mg-stage[data-step="4"] .mg-packet { left: 83%; top: 61%; }
.mg-stage[data-step="5"] .mg-packet { left: 67%; top: 79%; }
.mg-stage[data-step="3"] .mg-verdict { animation: mg-verdict .7s var(--ease); }
.mg-stage[data-step="4"] .mg-edge { box-shadow: 0 0 40px rgba(0,230,168,.1); }
.mg-stage[data-step="5"] .mg-chain span { animation: mg-chain .6s var(--ease) both; }
.mg-stage[data-step="5"] .mg-chain span:nth-of-type(2) { animation-delay: .15s; }
.mg-stage[data-step="5"] .mg-chain span:nth-of-type(3) { animation-delay: .3s; }

.mg-controls {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-top: 1px solid var(--line); background: rgba(255,255,255,.015);
}
.mg-btn {
  min-height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--muted); font-family: var(--mono); font-size: 9px;
  letter-spacing: .04em; cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.mg-btn:hover { border-color: rgba(0,230,168,.5); color: var(--mint); background: var(--mint-soft); }
.mg-timeline { position: relative; display: flex; align-items: center; gap: 2px; flex: 1; padding-bottom: 8px; overflow-x: auto; }
.mg-timeline button {
  border: 0; background: transparent; color: var(--dim); font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .04em; padding: 5px 7px; border-radius: 5px; white-space: nowrap; cursor: pointer;
  transition: color .2s, background .2s;
}
.mg-timeline button:hover { color: var(--muted); background: rgba(255,255,255,.04); }
.mg-timeline button.active { color: var(--mint); background: rgba(0,230,168,.08); }
.mg-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.mg-progress i { display: block; width: 20%; height: 100%; background: linear-gradient(90deg, var(--mint), var(--magenta)); transition: width .5s var(--ease); }

@keyframes mg-scan { to { transform: rotate(360deg); } }
@keyframes mg-dash { to { stroke-dashoffset: -120; } }
@keyframes mg-ring { 0% { transform: scale(.65); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes mg-spin { to { transform: rotate(360deg); } }
@keyframes mg-ping { 0% { box-shadow: 0 0 0 0 rgba(0,230,168,.45); } 100% { box-shadow: 0 0 0 10px rgba(0,230,168,0); } }
@keyframes mg-verdict { 0% { transform: scale(.94); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }
@keyframes mg-chain { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (max-width: 1020px) {
  .mg-stage { aspect-ratio: auto; min-height: 560px; }
  .mg-logs { width: 31%; }
  .mg-scenario { left: auto; right: 3%; top: 5%; width: 30%; }
  .mg-core { left: 48%; top: 39%; }
  .mg-decision { top: 33%; width: 30%; }
  .mg-edge { width: 28%; }
  .mg-evidence { left: 8%; width: 46%; }
  .mg-wires { opacity: .55; }
}
@media (max-width: 760px) {
  .mg-stage { min-height: 760px; }
  .mg-logs { left: 4%; top: 7%; width: 44%; }
  .mg-scenario { right: 4%; top: 7%; width: 44%; }
  .mg-core { left: 50%; top: 38%; width: 106px; height: 106px; margin-left: -53px; }
  .mg-core-inner { width: 72px; height: 72px; }
  .mg-score { font-size: 23px; }
  .mg-decision { right: 4%; top: 54%; width: 44%; }
  .mg-edge { left: 4%; right: auto; bottom: 6%; width: 44%; }
  .mg-evidence { left: auto; right: 4%; bottom: 6%; width: 44%; }
  .mg-wires { display: none; }
  .mg-caption { bottom: 12px; font-size: 8px; }
  .mg-timeline { order: 3; flex-basis: 100%; }
  .mg-controls { flex-wrap: wrap; }
  .mg-packet { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .mg-scan,
  html:not(.force-motion) .mg-wires .wire,
  html:not(.force-motion) .mg-ring,
  html:not(.force-motion) .mg-orbit,
  html:not(.force-motion) .mg-live i { animation: none; }
  html:not(.force-motion) .mg-packet { transition: none; }
}

/* product split */
.split { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.checklist { display: grid; gap: 14px; margin-top: 24px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check .tick {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint-soft); color: var(--mint); font-size: 11px; border: 1px solid rgba(0, 230, 168, 0.3);
}
.check b { display: block; font-size: 14px; margin-bottom: 2px; }
.check span { color: var(--muted); font-size: 13px; }

.code-card { border: 1px solid var(--line); border-radius: var(--radius); background: #07100c; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.code-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--dim); }
.copy-btn { margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; border-radius: 6px; padding: 3px 7px; cursor: pointer; }
.copy-btn:hover { color: var(--mint); border-color: rgba(0,230,168,.4); }
pre { margin: 0; padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: #cfe6db; }
.tok-k { color: var(--mint); }
.tok-s { color: #ffd479; }
.tok-c { color: var(--dim); }
.tok-v { color: var(--magenta); }

/* enterprise */
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.compare-row:last-child { border-bottom: 0; }
.compare-row > div { padding: 15px 18px; font-size: 13.5px; border-right: 1px solid var(--line); }
.compare-row > div:last-child { border-right: 0; }
.compare-head { background: rgba(255, 255, 255, 0.03); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.compare-row .yes { color: var(--mint); }
.compare-row .no { color: var(--dim); }
.compare-row .feat { color: var(--ink); }
.compare-row .feat small { display: block; color: var(--dim); font-size: 11.5px; margin-top: 2px; }

.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.price-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.015); display: grid; gap: 14px; align-content: start; }
.price-card.featured { border-color: rgba(0,230,168,.35); background: linear-gradient(160deg, rgba(0,230,168,.08), rgba(0,230,168,.01)); }
.price-card .price { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; }
.price-card .price small { font-size: 12px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.price-card li { font-size: 13px; color: var(--muted); padding-left: 18px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-size: 11px; }
.price-card .btn { width: 100%; }

/* metrics */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.metric-cell { padding: 30px 22px; border-right: 1px solid var(--line); }
.metric-cell:last-child { border-right: 0; }
.metric-cell .v { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; }
.metric-cell .v span { color: var(--mint); }
.metric-cell .l { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-top: 6px; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
details {
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.015);
  padding: 0 18px; transition: border-color .25s;
}
details[open] { border-color: rgba(0,230,168,.3); background: rgba(0,230,168,.03); }
details summary {
  list-style: none; cursor: pointer; padding: 17px 26px 17px 0; position: relative;
  font-weight: 500; font-size: 14.5px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); color: var(--mint); transition: transform .25s;
}
details[open] summary::after { content: "−"; }
details p { color: var(--muted); font-size: 13.5px; padding: 0 0 18px; max-width: 720px; }

/* CTA + form */
.cta { position: relative; border: 1px solid rgba(0,230,168,.25); border-radius: 24px; overflow: hidden; background: linear-gradient(140deg, rgba(0,230,168,.1), rgba(5,8,7,.4) 45%, rgba(236,108,255,.06)); padding: clamp(28px, 5vw, 54px); }
.cta::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
  background: radial-gradient(closest-side, rgba(0,230,168,.22), transparent); pointer-events: none;
}
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.contact-form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(0,0,0,.28); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 11px 13px; font-size: 14px; color: var(--ink); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--mint); background: rgba(0,0,0,.4); outline: none; }
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 11.5px; color: var(--dim); }
.form-status { font-family: var(--mono); font-size: 11.5px; color: var(--mint); min-height: 18px; }
.form-status:empty { display: none; }
.form-status[data-state="error"],
.contact-form[data-state="error"] .form-status { color: #ff8f9a; }
.form-status[data-state="loading"] { color: var(--muted); }

.hp-field {
  position: absolute !important; left: -9999px !important; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.contact-form { position: relative; }
.contact-form[data-state="error"] { animation: form-shake .34s var(--ease); }
.contact-form.is-sending .btn-primary { cursor: progress; opacity: .85; }
.contact-form.is-success .btn-primary {
  background: var(--mint); animation: success-pulse .8s var(--ease);
}
.btn-spinner {
  display: none; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(3, 19, 12, .25); border-top-color: #03130c;
  animation: spin .7s linear infinite;
}
.contact-form.is-sending .btn-spinner { display: inline-block; }
.contact-form.is-sending .btn svg { display: none; }
.btn:active { transform: translateY(0) scale(.985); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  max-width: min(92vw, 440px); padding: 13px 18px; border-radius: 12px;
  background: #0b1a13; color: var(--ink); border: 1px solid rgba(0,230,168,.35);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  font-size: 13.5px; line-height: 1.45;
  transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  transition: transform .32s var(--ease), opacity .32s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast[data-kind="error"] { border-color: rgba(255,143,154,.5); color: #ffd9dd; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes form-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@keyframes success-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,230,168,.45); }
  100% { box-shadow: 0 0 0 18px rgba(0,230,168,0); }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .btn-spinner { animation: none; }
  html:not(.force-motion) .contact-form.is-success .btn-primary { animation: none; }
  html:not(.force-motion) .toast { transition: none; }
}

/* ---------- support chat ---------- */
.chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 180; }
.chat-launcher {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 15px;
  border: 1px solid rgba(0,230,168,.45); border-radius: 999px;
  background: rgba(7,17,13,.95); color: var(--ink); cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,.4), 0 0 0 0 rgba(0,230,168,.25);
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.chat-launcher:hover { background: rgba(0,230,168,.1); transform: translateY(-1px); box-shadow: 0 18px 42px rgba(0,0,0,.45), 0 0 0 5px rgba(0,230,168,.08); }
.chat-launcher-icon { width: 18px; height: 18px; color: var(--mint); }
.chat-launcher-icon svg { width: 100%; height: 100%; }
.chat-panel {
  position: fixed; right: 18px; bottom: 78px; width: min(370px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column;
  border: 1px solid rgba(0,230,168,.28); border-radius: 16px; overflow: hidden;
  background: #07110d; box-shadow: 0 28px 80px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.chat-panel.open { opacity: 1; transform: none; }
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(0,230,168,.09), transparent 70%);
}
.chat-identity { display: flex; align-items: center; gap: 9px; }
.chat-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: #03130c; font-weight: 700; font-size: 13px;
  box-shadow: 0 0 22px rgba(0,230,168,.2);
}
.chat-identity b { display: block; font-size: 12px; }
.chat-identity div span { display: block; font-family: var(--mono); font-size: 8px; color: var(--dim); margin-top: 2px; }
.chat-close { border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 3px 6px; }
.chat-close:hover { color: var(--ink); }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg {
  max-width: 88%; padding: 9px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.5;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); color: var(--muted);
}
.chat-msg.user { align-self: flex-end; color: #03130c; background: var(--mint); border-color: var(--mint); }
.chat-msg.typing { color: var(--dim); font-family: var(--mono); font-size: 10px; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 0; }
.chat-actions a {
  font-family: var(--mono); font-size: 9px; color: var(--mint); text-decoration: none;
  border: 1px solid rgba(0,230,168,.3); border-radius: 999px; padding: 4px 8px;
  background: rgba(0,230,168,.06);
}
.chat-actions a:hover { background: rgba(0,230,168,.14); }
.chat-quick { display: flex; flex-wrap: wrap; gap: 5px; }
.chat-quick button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 5px 8px; font-family: var(--mono); font-size: 8.5px; cursor: pointer;
}
.chat-quick button:hover { color: var(--mint); border-color: rgba(0,230,168,.4); }
.chat-form { display: flex; gap: 6px; padding: 9px 10px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; min-width: 0; background: rgba(0,0,0,.28); border: 1px solid var(--line-strong);
  border-radius: 8px; color: var(--ink); padding: 9px 10px; font-size: 12px;
}
.chat-form input:focus { outline: none; border-color: var(--mint); }
.chat-form button {
  width: 36px; border: 0; border-radius: 8px; background: var(--mint); color: #03130c;
  font-size: 18px; font-weight: 700; cursor: pointer;
}
.chat-form button:disabled { opacity: .5; cursor: wait; }
.chat-foot { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px 9px; border-top: 1px solid var(--line); }
.chat-foot a { color: var(--dim); font-family: var(--mono); font-size: 8px; text-decoration: none; }
.chat-foot a:hover { color: var(--mint); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .chat-widget { right: 12px; bottom: 12px; }
  .chat-panel { right: 12px; bottom: 68px; width: calc(100vw - 24px); height: min(72vh, 560px); }
  .chat-launcher-label { display: none; }
  .chat-launcher { width: 48px; height: 48px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .chat-panel { transition: none; }
}

/* footer */
footer { border-top: 1px solid var(--line); padding: 54px 0 30px; margin-top: 90px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; }
.foot-brand p { color: var(--muted); font-size: 13px; max-width: 300px; margin-top: 14px; }
.foot-col h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 13px; padding: 4px 0; transition: color .2s; }
.foot-col a:hover { color: var(--mint); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: .03em; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(0,230,168,.12); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1020px) {
  .hero-grid, .problem-grid, .split, .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .pain-grid, .metrics-layout, .roi { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-visual { min-height: 500px; max-width: 640px; padding-top: 128px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: grid; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(5,8,7,.97); border-bottom: 1px solid var(--line); padding: 18px 20px 22px;
    gap: 14px;
  }
  .nav.open .nav-links a { font-size: 15px; color: var(--ink); }
  .nav-cta .btn-ghost { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-cell:nth-child(2) { border-right: 0; }
  .metric-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .eyebrow { font-size: 10px; letter-spacing: 0.1em; gap: 8px; }
  .eyebrow::before { width: 14px; }
  .grid-3, .grid-2, .steps, .pricing { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roi-result { grid-template-columns: minmax(0, 1fr); }
  .roi-cell.wide { grid-column: span 1; }
  .bar-row { grid-template-columns: 86px 1fr 34px; }
  .solution-intro .wrap { align-items: start; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .compare-row { grid-template-columns: 1.2fr .9fr .9fr; }
  .compare-row > div { padding: 12px 12px; font-size: 12px; }
  .hero { padding-top: calc(var(--nav-h) + 46px); }
  .hero-visual { min-height: 0; padding-top: 0; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-console { transform: none; }
  .floating { position: static; width: auto; }
  .decision-card { position: static; width: auto; bottom: auto; right: auto; }
  .console-line { font-size: 10.5px; }
  .metrics { grid-template-columns: 1fr; }
  .metric-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
  .cta { border-radius: 18px; }
}

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

/* ---------- motion + frameworks ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--mint), #7dffd9 55%, var(--magenta));
  box-shadow: 0 0 18px rgba(0, 230, 168, .45);
  transition: width .08s linear;
  pointer-events: none;
}
.stat-v .count { font-variant-numeric: tabular-nums; }
.nav-links a.active { color: var(--mint); }
.nav-links a.active::after {
  content: ""; display: block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--mint); margin: 5px auto 0; box-shadow: 0 0 10px var(--mint);
}

.hero-copy > * { animation: rise-in .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-copy > :nth-child(6) { animation-delay: .3s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.frameworks { overflow: hidden; }
.frameworks::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 12% 18%, rgba(0,230,168,.08), transparent 65%),
    radial-gradient(520px 300px at 88% 72%, rgba(236,108,255,.06), transparent 65%);
}
.frameworks .wrap { position: relative; }
.frameworks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.framework-card {
  position: relative; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  overflow: hidden; isolation: isolate;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
  will-change: transform;
}
.framework-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(0,230,168,.14), transparent 65%);
  opacity: 0; transition: opacity .3s;
}
.framework-card > * { position: relative; z-index: 1; }
.framework-card:hover { border-color: rgba(0,230,168,.34); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.framework-card:hover::before { opacity: 1; }
.framework-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.framework-code { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.framework-card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.04em; margin-bottom: 8px; }
.framework-card p { color: var(--muted); font-size: 13.5px; max-width: 44ch; }
.coverage { display: flex; gap: 5px; margin: 20px 0 9px; }
.coverage i {
  display: block; flex: 1; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.09);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease), background .3s;
}
.framework-card.in .coverage i { transform: scaleX(1); }
.framework-card.in .coverage i:nth-child(2) { transition-delay: .04s; }
.framework-card.in .coverage i:nth-child(3) { transition-delay: .08s; }
.framework-card.in .coverage i:nth-child(4) { transition-delay: .12s; }
.framework-card.in .coverage i:nth-child(5) { transition-delay: .16s; }
.framework-card.in .coverage i:nth-child(6) { transition-delay: .2s; }
.framework-card.in .coverage i:nth-child(7) { transition-delay: .24s; }
.framework-card.in .coverage i:nth-child(8) { transition-delay: .28s; }
.framework-card.in .coverage i:nth-child(9) { transition-delay: .32s; }
.coverage i.covered { background: var(--mint); box-shadow: 0 0 12px rgba(0,230,168,.35); }
.coverage i.partial { background: repeating-linear-gradient(90deg, rgba(0,230,168,.75) 0 3px, rgba(0,230,168,.18) 3px 7px); }
.coverage i.gap { background: rgba(255,255,255,.1); }
.coverage-legend { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.coverage-legend b { color: var(--ink); font-weight: 500; }
.framework-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 7px; }
.framework-list li { position: relative; padding-left: 14px; color: var(--muted); font-size: 12px; }
.framework-list li::before { content: "→"; position: absolute; left: 0; color: var(--mint); }
.framework-list li.is-gap { color: var(--dim); }
.framework-list li.is-gap::before { content: "×"; color: var(--magenta); }

.evidence-flow {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.015); overflow: hidden;
}
.flow-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-right: 1px solid var(--line); }
.flow-step:last-child { border-right: 0; }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); color: var(--mint); font-size: 12px; background: var(--bg); z-index: 2; padding: 0 2px; }
.flow-n { font-family: var(--mono); font-size: 10px; color: var(--mint); }
.flow-step b { display: block; font-size: 13px; letter-spacing: -.01em; }
.flow-step small { display: block; font-family: var(--mono); font-size: 9px; color: var(--dim); margin-top: 3px; white-space: nowrap; }
.frameworks-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.frameworks-note { color: var(--muted); font-size: 13px; max-width: 540px; margin-top: 6px; }
.frameworks-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.frameworks-disclaimer { color: var(--dim); font-family: var(--mono); font-size: 10px; line-height: 1.6; margin-top: 18px; max-width: 760px; }

@media (max-width: 1020px) {
  .frameworks-grid { grid-template-columns: minmax(0, 1fr); }
  .evidence-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(2n) { border-right: 0; }
  .flow-step:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .flow-step:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  .framework-card { padding: 21px; }
  .coverage-legend { gap: 10px; }
  .evidence-flow { grid-template-columns: minmax(0, 1fr); }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }
  .frameworks-cta { align-items: start; }
  .frameworks-actions { width: 100%; }
  .frameworks-actions .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .scroll-progress { transition: none; }
  html:not(.force-motion) .hero-copy > * { animation: none; }
  html:not(.force-motion) .framework-card,
  html:not(.force-motion) .framework-card:hover { transform: none !important; }
  html:not(.force-motion) .framework-card .coverage i,
  html:not(.force-motion) .framework-card.in .coverage i { transform: none; transition: none; }
}

/* ---------- pricing v2 ---------- */
.compare { overflow-x: auto; }
.compare-row {
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  min-width: 760px;
}
.compare-row > div { padding: 13px 14px; font-size: 12.5px; }
.pricing { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.price-card { padding: 22px; }
.price-card .price { font-size: clamp(1.8rem, 2.2vw, 2.3rem); }
.price-card .price small { display: block; margin-top: 6px; }
.price-card.featured { box-shadow: 0 20px 60px rgba(0, 230, 168, .08); }
.price-card .btn { margin-top: auto; }
.addons {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 16px;
}
.addon { background: #08110d; padding: 18px; display: grid; gap: 5px; }
.addon span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.addon strong { font-size: 16px; letter-spacing: -.02em; color: var(--mint); }
.addon small { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.pricing-note { color: var(--dim); font-family: var(--mono); font-size: 10.5px; line-height: 1.7; margin-top: 16px; max-width: 900px; }
@media (max-width: 1020px) {
  .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .addons { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .compare-row { grid-template-columns: 1.2fr repeat(4, minmax(0, .8fr)); min-width: 700px; }
  .compare-row > div { padding: 11px 10px; font-size: 11px; }
  .compare-row .feat small { display: none; }
}

