/* ============================================================
   ddos-sim.com marketing — dark theme aligned with the portal
   Palette mirrors cmd/portal/static/portal.css
   ============================================================ */
:root {
  --bg: #08111f;
  --bg-2: #0a1526;
  --surface: #111e31;
  --surface-2: #17283e;
  --line: #2c405c;
  --line-soft: #1e2f47;
  --text: #edf5ff;
  --muted: #9db1c9;
  --muted-dim: #6f849e;
  --accent: #64d8b4;
  --accent-strong: #7ff0cb;
  --accent-ink: #06251f;
  --cyan: #5bb4ff;
  --danger: #ffb5c3;
  --warn: #f2c879;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --container: 1200px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .75);
  --glow: 0 0 0 1px rgba(100, 216, 180, .35), 0 20px 60px -20px rgba(100, 216, 180, .35);
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "Cascadia Code", "Fira Code", Menlo,
    Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.sprite { position: absolute; }
.ico { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: middle; flex: none; }

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

h1, h2, h3, h4, p { margin: 0; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

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

/* ---------- buttons ---------- */
.button, .button-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink);
  font: 700 15px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 12px 30px -12px rgba(100, 216, 180, .6); }
.button .ico { width: 1.05em; height: 1.05em; }
.button-secondary { background: transparent; border-color: var(--line); color: var(--text); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-1px); }
.button-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-strong); font-weight: 650;
}
.text-link .ico { transition: transform .18s ease; }
.text-link:hover .ico { transform: translateX(3px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px; color: var(--accent);
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(100, 216, 180, .18); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 17, 31, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header[data-scrolled] { border-bottom-color: var(--line-soft); background: rgba(8, 17, 31, .9); }
.header-inner {
  width: min(100% - 48px, 1320px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0;
  font-size: 19px; font-weight: 850; letter-spacing: -.01em; color: var(--text);
}
.brand span { color: var(--accent); }
.brand-mark {
  width: 22px; height: 22px; margin-right: 9px; color: var(--accent);
}

.primary-nav { display: flex; gap: 4px; margin-left: 12px; }
.primary-nav a {
  padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14.5px; font-weight: 550;
  transition: color .15s ease, background .15s ease;
}
.primary-nav a:hover { color: var(--text); background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-signin { font-size: 14.5px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; padding: 0; border: 1px solid var(--line);
  border-radius: 9px; background: var(--surface); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin-inline: auto; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 22px; border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 17, 31, .96);
}
.mobile-nav a { padding: 12px 10px; border-radius: 9px; color: var(--muted); font-weight: 600; }
.mobile-nav a:hover { background: var(--surface); color: var(--text); }
.mobile-nav .button { margin-top: 8px; color: var(--accent-ink); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 780px; height: 780px;
  background: radial-gradient(circle at 70% 30%, rgba(100, 216, 180, .22), transparent 62%);
  filter: blur(6px);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(148, 178, 214, .09) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(120% 90% at 60% 0%, #000 35%, transparent 75%);
}
.ring {
  position: absolute; top: 32%; right: -6%; border-radius: 50%;
  border: 1px solid rgba(100, 216, 180, .16);
}
.ring-1 { width: 320px; height: 320px; margin: -160px; animation: pulse-ring 6s ease-out infinite; }
.ring-2 { width: 320px; height: 320px; margin: -160px; animation: pulse-ring 6s ease-out infinite 2s; }
.ring-3 { width: 320px; height: 320px; margin: -160px; animation: pulse-ring 6s ease-out infinite 4s; }
@keyframes pulse-ring {
  0% { transform: scale(.6); opacity: .8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-grid {
  position: relative; z-index: 1;
  width: min(100% - 48px, var(--container)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 90px); align-items: center;
  padding: clamp(56px, 9vw, 120px) 0 clamp(60px, 8vw, 100px);
}
.hero-copy h1 {
  font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 820;
  margin-bottom: 22px;
}
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.lede { max-width: 560px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.lede strong { color: var(--text); font-weight: 650; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin: 34px 0 40px; flex-wrap: wrap; }

.hero-facts {
  display: grid; grid-template-columns: repeat(4, auto); gap: 30px;
  margin: 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line-soft);
  justify-content: start;
}
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.hero-facts span { color: var(--muted-dim); font-size: 12.5px; }

/* ---------- portal card base ---------- */
.portal-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- hero live mock ---------- */
.hero-visual { position: relative; }
.live-mock { overflow: hidden; }
.pc-top {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015);
}
.pc-dots { display: inline-flex; gap: 6px; }
.pc-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c405c; }
.pc-url { color: var(--muted-dim); font: 12px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status {
  margin-left: auto; padding: 4px 10px; border-radius: 999px;
  background: #253a55; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: capitalize;
}
.status-running { background: rgba(100, 216, 180, .16); color: var(--accent-strong); }
.pc-body { padding: 20px; display: grid; gap: 18px; }
.pc-eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.pc-head h3 { font-size: 19px; letter-spacing: -.02em; }
.pc-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pc-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pc-metrics article { padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-soft); }
.pc-metrics span { display: block; color: var(--muted-dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.pc-metrics strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }

.pc-progress-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.track span { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width .4s ease; }

.pc-chart { display: grid; gap: 8px; }
.pc-chart-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.latency-svg { width: 100%; height: 90px; display: block; }
.lat-grid { stroke: var(--line-soft); stroke-width: 1; }
.lat-area { fill: rgba(100, 216, 180, .14); }
.lat-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }

.pc-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.code { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--muted); }
.code b { color: var(--text); font-family: var(--mono); font-size: 12px; }
.code-2xx { color: var(--accent-strong); }
.code-5xx { color: var(--danger); }

.visual-badge {
  position: absolute; left: -12px; bottom: -16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--accent-strong); font-size: 12.5px; font-weight: 650;
  box-shadow: var(--shadow);
}
.visual-badge .ico { width: 16px; height: 16px; }

/* ============================================================
   Guardrail strip
   ============================================================ */
.strip { border-block: 1px solid var(--line-soft); background: var(--bg-2); }
.strip-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; padding: 22px 0; }
.strip-lead { color: var(--muted); font-size: 14px; font-weight: 600; }
.strip-stats { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.strip-stats li { display: inline-flex; align-items: baseline; gap: 8px; }
.strip-stats strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-strong); font-family: var(--mono); }
.strip-stats span { color: var(--muted-dim); font-size: 13px; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 17px; }
.section-head.split { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 30px; align-items: end; max-width: none; }
.section-head.split .section-sub { margin-top: 0; }

/* ---------- simulations ---------- */
.sim-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: 600 13.5px var(--sans); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.chip:hover { color: var(--text); border-color: var(--muted-dim); }
.chip.active { background: rgba(100, 216, 180, .14); border-color: rgba(100, 216, 180, .5); color: var(--accent-strong); }

.sim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sim-card {
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); display: grid; gap: 8px; align-content: start;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .3s ease;
}
.sim-card:hover { transform: translateY(-4px); border-color: rgba(100, 216, 180, .5); background: var(--surface-2); }
.sim-card.is-hidden { display: none; }
.sim-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sim-top .ico { width: 24px; height: 24px; color: var(--accent); }
.sim-top .tag { padding: 3px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font: 700 11px var(--mono); }
.sim-card h3 { font-size: 18px; letter-spacing: -.02em; }
.sim-card code { justify-self: start; font: 12px var(--mono); color: var(--cyan); background: rgba(91, 180, 255, .1); padding: 2px 8px; border-radius: 6px; }
.sim-card p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.sim-card .sim-gate {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  margin-top: 2px; padding: 4px 9px; border-radius: 999px;
  background: rgba(100, 216, 180, .08); border: 1px solid rgba(100, 216, 180, .28);
  color: var(--accent); font-size: 12px; font-weight: 700;
}
.sim-card .sim-gate .ico { width: 14px; height: 14px; color: var(--accent); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step-num { font: 800 13px var(--mono); color: var(--accent); letter-spacing: .1em; }
.step-ico { display: grid; place-items: center; width: 44px; height: 44px; margin: 14px 0 16px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); }
.step-ico .ico { width: 22px; height: 22px; }
.steps h3 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; }

/* ---------- timeline builder ---------- */
.builder { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.builder-presets { display: grid; gap: 8px; align-content: start; }
.mini-label { color: var(--muted-dim); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.preset { text-align: left; display: grid; gap: 2px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.preset:hover { transform: translateX(2px); border-color: var(--muted-dim); }
.preset strong { font-size: 15px; }
.preset small { color: var(--muted); font-size: 12.5px; }
.preset.active { border-color: rgba(100, 216, 180, .55); background: rgba(100, 216, 180, .08); }
.preset.active strong { color: var(--accent-strong); }

.builder-canvas { padding: 22px; }
.canvas-top { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.canvas-top strong { display: block; margin-top: 4px; font-size: 14.5px; }
.verified-pill { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent); background: rgba(100, 216, 180, .14); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.canvas-timeline { display: grid; gap: 8px; padding: 20px 0; }
.tl-row {
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  background: var(--surface-2);
  animation: row-in .35s ease both;
}
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tl-layer { font: 700 11px var(--mono); text-align: center; padding: 4px 0; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.tl-row[data-layer="network"] .tl-layer { color: var(--cyan); border-color: rgba(91, 180, 255, .4); }
.tl-row[data-layer="application"] .tl-layer { color: var(--accent-strong); border-color: rgba(100, 216, 180, .4); }
.tl-main strong { font-size: 14.5px; }
.tl-main code { display: block; font: 11.5px var(--mono); color: var(--muted-dim); margin-top: 2px; }
.tl-dur { font: 700 13px var(--mono); color: var(--muted); white-space: nowrap; }
.tl-bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--surface); overflow: hidden; margin-top: 2px; }
.tl-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.canvas-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }

/* ---------- live monitoring console ---------- */
.console { overflow: hidden; }
.console-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); font-size: 13px; }
.console-bar strong { color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-dim); display: inline-block; }
.dot-live { background: var(--accent); box-shadow: 0 0 0 0 rgba(100, 216, 180, .55); animation: blip 2s ease-out infinite; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(100, 216, 180, .5); } 100% { box-shadow: 0 0 0 8px rgba(100, 216, 180, 0); } }
.console-grid { display: grid; grid-template-columns: 1.4fr 1fr; }
.console-card { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.console-card.wide { grid-column: auto; }
.console-card:nth-child(2n) { border-right: 0; }
.console-card:nth-last-child(-n+2) { border-bottom: 0; }
.cc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cc-head span { color: var(--muted-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.cc-head strong { font-size: 22px; letter-spacing: -.03em; }
.mon-svg { width: 100%; height: 150px; display: block; }
.mon-area { fill: rgba(100, 216, 180, .12); }
.mon-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.mon-marker { stroke: var(--cyan); stroke-width: 1; stroke-dasharray: 3 4; opacity: .5; }
.cc-axis { display: flex; justify-content: space-between; color: var(--muted-dim); font-size: 11px; margin-top: 8px; }
.avail-track { height: 16px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 18px; }
.avail-track span { display: block; height: 100%; width: 99.98%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.cc-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; }
.cc-list .ok { color: var(--accent); width: 18px; height: 18px; margin-right: 6px; }
.codebar { display: grid; gap: 12px; }
.code-row { display: grid; grid-template-columns: 34px 1fr 46px; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.code-row .bar { height: 8px; border-radius: 999px; display: block; }
.code-row b { text-align: right; color: var(--text); font-family: var(--mono); font-size: 12px; }
.b2 { background: var(--accent); } .b3 { background: var(--cyan); } .b4 { background: var(--warn); } .b5 { background: var(--danger); }
.code-row i.bar { background: var(--surface-2); position: relative; }
.worker-row { display: grid; gap: 8px; }
.worker { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 13.5px; }
.worker small { margin-left: auto; color: var(--muted); }

/* ---------- safety ---------- */
.safety-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.safety-copy h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 18px; }
.safety-copy p { color: var(--muted); max-width: 420px; margin-bottom: 22px; }
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.safety-grid article { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.safety-grid .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.safety-grid h3 { font-size: 16.5px; letter-spacing: -.02em; margin-bottom: 6px; }
.safety-grid p { color: var(--muted); font-size: 13.5px; max-width: none; margin: 0; }

/* ---------- pricing ---------- */
.pricing-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .42fr); gap: clamp(28px, 5vw, 70px); align-items: end; margin-bottom: 36px; }
.pricing-intro .section-head { max-width: 780px; margin: 0; }
.pricing-estimate { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17, 30, 49, .7); }
.pricing-estimate > span { color: var(--muted-dim); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.pricing-estimate strong { color: var(--accent-strong); font: 800 26px/1.3 var(--mono); letter-spacing: -.04em; }
.pricing-estimate small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.pricing-path { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pricing-tier { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 430px; padding: clamp(26px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.pricing-tier::after { position: absolute; width: 260px; height: 260px; border: 1px solid rgba(91, 180, 255, .12); border-radius: 50%; content: ""; pointer-events: none; right: -130px; top: -145px; }
.pricing-tier-free { border-color: rgba(100, 216, 180, .48); background: radial-gradient(circle at 0 0, rgba(100, 216, 180, .15), transparent 42%), linear-gradient(145deg, var(--surface-2), var(--surface)); box-shadow: var(--glow); }
.pricing-tier-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.pricing-tier-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(100, 216, 180, .26); border-radius: 12px; background: rgba(100, 216, 180, .1); color: var(--accent); }
.pricing-tier-paid .pricing-tier-icon { border-color: rgba(91, 180, 255, .28); background: rgba(91, 180, 255, .1); color: var(--cyan); }
.pricing-tier-badge { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.pricing-tier-free .pricing-tier-badge { border-color: rgba(100, 216, 180, .28); color: var(--accent-strong); }
.pricing-tier-kicker { color: var(--muted); font-size: 13px; font-weight: 700; }
.pricing-tier-value { display: flex; align-items: baseline; gap: 9px; margin: 3px 0 0; font-size: 24px; font-weight: 750; }
.pricing-tier-value strong { color: var(--accent-strong); font-size: clamp(60px, 7vw, 82px); font-weight: 850; letter-spacing: -.07em; line-height: 1; }
.pricing-tier-period { margin-top: -4px; color: var(--muted); }
.pricing-tier h3 { max-width: 570px; margin: 6px 0 12px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.08; }
.pricing-tier h3 + p { color: var(--muted); font-size: 14px; }
.pricing-tier-list { display: grid; gap: 9px; margin: 26px 0; padding: 20px 0; border-block: 1px solid var(--line); list-style: none; }
.pricing-tier-list li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; }
.pricing-tier-list .ico { width: 17px; height: 17px; color: var(--accent); }
.pricing-tier > .button, .pricing-tier > .button-secondary { align-self: flex-start; margin-top: auto; }
.pricing-approval-path { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.pricing-approval-path li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.pricing-approval-path li > span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(91, 180, 255, .28); border-radius: 50%; background: rgba(91, 180, 255, .1); color: var(--cyan); font: 800 11px var(--mono); }
.pricing-approval-path strong, .pricing-approval-path small { display: block; }
.pricing-approval-path strong { font-size: 13px; }
.pricing-approval-path small { margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }

.pricing-scale { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.pricing-scale-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 28px 30px; }
.pricing-scale-head .eyebrow { margin-bottom: 8px; }
.pricing-scale-head h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.pricing-scale-head > p { color: var(--muted); font-size: 14px; text-align: right; }
.pricing-packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.pricing-packs article { position: relative; display: grid; gap: 13px; min-width: 0; padding: 25px 28px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 40, 62, .72), rgba(17, 30, 49, .35)); }
.pricing-packs article:last-child { border-right: 0; }
.pricing-packs article > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.pricing-packs mark { padding: 4px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.pricing-packs strong { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.045em; line-height: 1; }
.pricing-packs strong small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.pricing-packs p { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--accent-strong); font-size: 20px; font-weight: 800; }
.pricing-packs p small { color: var(--muted-dim); font-size: 10.5px; font-weight: 500; text-align: right; }
.pricing-pack-popular { box-shadow: inset 0 3px 0 var(--accent); }
.pricing-scale-foot { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px 30px; }
.pricing-scale-foot p { max-width: 850px; color: var(--muted); font-size: 12.5px; }
.pricing-scale-foot .text-link { flex: none; font-size: 14px; }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.feature-grid article:hover { border-color: rgba(100, 216, 180, .4); transform: translateY(-3px); }
.feature-grid .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.feature-grid h3 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 6px; }
.feature-grid p { color: var(--muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta { padding: clamp(70px, 10vw, 130px) 0; position: relative; overflow: hidden; border-top: 1px solid var(--line-soft); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 130% at 50% 0%, rgba(100, 216, 180, .16), transparent 60%); pointer-events: none; }
.cta-inner { position: relative; text-align: center; max-width: 720px; }
.cta-inner .eyebrow { justify-content: center; }
.cta h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.03; letter-spacing: -.035em; font-weight: 820; margin-bottom: 16px; }
.cta p { color: var(--muted); font-size: 18px; max-width: 560px; margin-inline: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: 60px 0 30px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; margin-top: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.footer-links a:hover { color: var(--accent-strong); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; color: var(--muted-dim); font-size: 13px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted-dim); }
.footer-legal a:hover { color: var(--accent-strong); }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .primary-nav, .header-signin { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 520px; }
  .section-head.split { grid-template-columns: 1fr; align-items: start; }
  .sim-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .builder { grid-template-columns: 1fr; }
  .builder-presets { grid-template-columns: repeat(3, 1fr); }
  .safety-layout { grid-template-columns: 1fr; }
  .pricing-intro, .pricing-path { grid-template-columns: 1fr; }
  .pricing-estimate { max-width: 430px; }
  .pricing-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-packs article:nth-child(2) { border-right: 0; }
  .pricing-packs article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .console-grid { grid-template-columns: 1fr; }
  .console-card, .console-card:nth-child(2n) { border-right: 0; }
  .console-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .console-card:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 32px, var(--container)); }
  .hero-facts { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
  .sim-grid, .feature-grid, .safety-grid, .steps { grid-template-columns: 1fr; }
  .builder-presets { grid-template-columns: 1fr; }
  .pricing-tier { min-height: 0; padding: 24px; }
  .pricing-scale-head, .pricing-scale-foot { align-items: flex-start; flex-direction: column; padding: 24px; }
  .pricing-scale-head > p { text-align: left; }
  .pricing-packs { grid-template-columns: 1fr; }
  .pricing-packs article, .pricing-packs article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .pricing-packs article:last-child { border-bottom: 0; }
  .strip-inner { gap: 16px; }
  .strip-stats { margin-left: 0; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .price-card, .enterprise-card, .builder-canvas { padding: 22px; }
  /* Align header edges with page content and drop the redundant header CTA
     (it already lives in the mobile menu) so brand + toggle never overflow. */
  .header-inner { width: min(100% - 32px, 1320px); }
  .header-actions .button { display: none; }
  .builder-canvas { padding: 22px; }
}

/* ============================================================
   Motion / accessibility preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

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

/* ============================================================
   Error pages
   ============================================================ */
.error-body { display: grid; min-height: 100vh; grid-template-rows: auto 1fr auto; }
.error-main { display: grid; place-items: center; padding: clamp(48px, 10vw, 120px) 0; position: relative; overflow: hidden; }
.error-main::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 0%, rgba(100, 216, 180, .12), transparent 60%); pointer-events: none; }
.error-card { position: relative; width: min(100% - 48px, 640px); text-align: center; }
.error-code { font: 850 clamp(88px, 20vw, 160px)/0.9 var(--mono); letter-spacing: -.06em; background: linear-gradient(180deg, var(--accent-strong), rgba(100, 216, 180, .25)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.error-card h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.03em; margin-bottom: 16px; }
.error-card p { color: var(--muted); font-size: 17px; max-width: 460px; margin: 0 auto 28px; }
.error-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.error-header { display: flex; align-items: center; justify-content: space-between; height: 68px; }

/* ============================================================
   Legal pages (Terms, AUP, Privacy, DPA)
   ============================================================ */
.legal-main { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 100px); }
.legal-head { max-width: 820px; margin-bottom: 34px; }
.legal-head h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 820; margin-bottom: 14px; }
.legal-head .lede { color: var(--muted); font-size: 17px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted-dim); font-size: 13px; }
.legal-meta b { color: var(--muted); font-weight: 650; }

.doc-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.doc-switch a {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 600;
  transition: color .15s, border-color .15s, background .15s;
}
.doc-switch a:hover { color: var(--text); border-color: var(--muted-dim); }
.doc-switch a[aria-current="page"] { background: rgba(100, 216, 180, .14); border-color: rgba(100, 216, 180, .5); color: var(--accent-strong); }

.legal-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.legal-toc { position: sticky; top: 90px; align-self: start; }
.legal-toc p { color: var(--muted-dim); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line-soft); color: var(--muted); font-size: 13px; line-height: 1.4; transition: color .15s, border-color .15s; }
.legal-toc a:hover { color: var(--accent-strong); border-left-color: var(--accent); }

.legal-doc { max-width: 760px; counter-reset: sec; }
.legal-doc > section { padding-top: 12px; margin-bottom: 30px; scroll-margin-top: 88px; }
.legal-doc h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; padding-top: 10px; }
.legal-doc h2::before { counter-increment: sec; content: counter(sec) ". "; color: var(--accent); font-family: var(--mono); font-weight: 700; }
.legal-doc h2.no-num::before { content: none; }
.legal-doc h3 { font-size: 16.5px; letter-spacing: -.01em; margin: 22px 0 8px; color: var(--text); }
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 15.5px; line-height: 1.72; }
.legal-doc p { margin-bottom: 14px; }
.legal-doc strong { color: var(--text); font-weight: 650; }
.legal-doc a:not(.button) { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(100, 216, 180, .4); }
.legal-doc a:not(.button):hover { text-decoration-color: var(--accent); }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 7px; }
.legal-doc li { padding-left: 4px; }
.legal-doc li::marker { color: var(--muted-dim); }
.legal-doc dl { margin: 0 0 16px; display: grid; gap: 10px; }
.legal-doc dt { color: var(--text); font-weight: 650; font-size: 15px; }
.legal-doc dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.legal-doc .lead-in { color: var(--muted); }

.callout {
  margin: 4px 0 18px; padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid rgba(100, 216, 180, .4); background: rgba(100, 216, 180, .07);
}
.callout.warn { border-color: rgba(242, 200, 121, .45); background: rgba(242, 200, 121, .07); }
.callout p { margin: 0; color: var(--text); font-size: 15px; }
.callout p + p { margin-top: 10px; }
.callout .callout-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.callout.warn .callout-label { color: var(--warn); }

.legal-table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.legal-doc th, .legal-doc td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); color: var(--muted); vertical-align: top; }
.legal-doc th { color: var(--text); font-weight: 650; background: var(--surface); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.legal-doc tr:last-child td { border-bottom: 0; }

.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; color: var(--accent-strong); font-weight: 650; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}

/* ============================================================
   Cookie notice — informational only (strictly-necessary cookies
   don't require opt-in consent under ePrivacy Art. 5(3)), but we
   disclose them anyway. Small, corner-anchored, never blocks content.
   ============================================================ */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  width: min(380px, calc(100vw - 32px));
  padding: 16px 34px 16px 18px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  box-shadow: var(--shadow);
  display: grid; gap: 12px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.cookie-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.cookie-banner p a { color: var(--accent-strong); }
.cookie-banner-actions { display: flex; justify-content: flex-end; }
.cookie-banner-actions button { min-height: 34px; padding: 0 15px; font-size: 13px; }
.cookie-banner-close {
  position: absolute; top: 10px; right: 10px; width: 24px; height: 24px;
  display: grid; place-items: center; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted-dim); font-size: 15px; line-height: 1; cursor: pointer;
}
.cookie-banner-close:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; width: auto; bottom: 12px; }
}
