/* NetMind design system — tokens, base, marketing and auth components. */

:root {
  --bg: #07090b;
  --bg-raise: #0b0e11;
  --surface: #0e1215;
  --surface-2: #13181c;
  --surface-3: #1a2025;
  --line: #1f272d;
  --line-strong: #2c363d;
  --text: #e8edef;
  --text-2: #a3aeb4;
  --text-3: #7d8a91;

  --brand-grad: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --signal: #2f6bff;
  --signal-hover: #4a80ff;
  --on-signal: #ffffff;
  --signal-ink: #5fb4ff;
  --signal-soft: rgba(47, 107, 255, 0.14);
  --signal-line: rgba(95, 180, 255, 0.35);

  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.12);
  --warn: #f5a524;
  --warn-soft: rgba(245, 165, 36, 0.12);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.12);
  --info: #5cc8ff;
  --info-soft: rgba(92, 200, 255, 0.12);
  --violet: #a78bfa;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 150ms;
  --t: 240ms;
  --nav-h: 64px;
  --wrap: 1180px;
  color-scheme: dark;

  /* Legacy names still used by page scripts and inline styles */
  --primary: var(--signal-ink);
  --cyan: var(--info);
  --purple: var(--violet);
  --green: var(--ok);
  --orange: var(--warn);
  --yellow: #facc15;
  --red: var(--danger);
  --dark: var(--bg-raise);
  --dark-2: var(--surface-2);
  --light: var(--bg);
  --light-2: var(--surface-2);
  --border: var(--line);
  --text-dark: var(--text);
  --text-light: var(--text-2);
  --text-muted: var(--text-3);
}

html.nm-light {
  --bg: #f5f6f3;
  --bg-raise: #eef0ec;
  --surface: #ffffff;
  --surface-2: #f3f5f1;
  --surface-3: #e9ece6;
  --line: #e1e5de;
  --line-strong: #cdd3c9;
  --text: #0d1114;
  --text-2: #4a555b;
  --text-3: #5f6b71;
  --signal-ink: #1f5be6;
  --signal-soft: rgba(47, 107, 255, 0.1);
  --signal-line: rgba(47, 107, 255, 0.35);
  --ok: #15803d;
  --ok-soft: rgba(21, 128, 61, 0.1);
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, 0.1);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --info: #0369a1;
  --info-soft: rgba(3, 105, 161, 0.08);
  --violet: #6d28d9;
  --shadow: 0 1px 2px rgba(13, 17, 20, 0.05), 0 8px 24px -12px rgba(13, 17, 20, 0.12);
  color-scheme: light;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
html.nm-light :focus-visible { outline-color: var(--signal-ink); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.9em; }
code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); }
.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; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 2000; background: var(--signal); color: var(--on-signal); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; transition: top var(--t-fast); }
.skip-link:focus { top: 12px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* ── Logo ─────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--brand-grad); display: grid; place-items: center; }
.logo-mark svg { width: 16px; height: 16px; }
.logo-mark path { fill: #fff; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--signal); color: var(--on-signal); font-weight: 600; }
.btn-primary:hover { background: var(--signal-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-quiet { background: transparent; color: var(--text-2); }
.btn-quiet:hover { color: var(--text); background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 107, 107, 0.3); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; border-radius: var(--r); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }

.link { color: var(--signal-ink); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--signal-ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.link-arrow svg { width: 14px; height: 14px; }

/* ── Labels, chips ───────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--signal); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.4;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
}
.chip-signal { background: var(--signal-soft); border-color: var(--signal-line); color: var(--signal-ink); }
.chip-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.chip-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.chip-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.dot-live { position: relative; }
.dot-live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ── Site nav ─────────────────────────────────────────── */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.site-nav.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.site-nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin-right: auto; }
.nav-links a { display: inline-block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-size: 14px; transition: color var(--t-fast), background var(--t-fast); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: var(--r-sm); background: transparent; border: 1px solid var(--line-strong); align-items: center; justify-content: center; color: var(--text); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--bg); padding: 16px 24px 32px; overflow-y: auto; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a.m-link { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .m-actions { display: grid; gap: 10px; margin-top: 24px; }
.nav-simple .wrap { justify-content: space-between; }

@media (max-width: 900px) {
  .site-nav .nav-links, .site-nav .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-simple .nav-actions { display: flex; }
}

/* ── Sections ─────────────────────────────────────────── */
.section { padding: 112px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); margin: 16px 0 16px; }
.section-head p { font-size: 18px; color: var(--text-2); line-height: 1.65; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.hl { color: var(--signal-ink); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; padding: calc(var(--nav-h) + 88px) 0 96px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.55;
}
.hero-glow { position: absolute; top: -240px; left: 50%; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(47, 107, 255, 0.2), rgba(124, 58, 237, 0.08) 60%, transparent); pointer-events: none; }
html.nm-light .hero-glow { background: radial-gradient(closest-side, rgba(47, 107, 255, 0.14), transparent); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; margin: 22px 0 22px; }
.hero h1 .hl { color: var(--signal-ink); background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: 0.08em; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 540px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--signal-ink); }

/* Console panel (hero visual) */
.console {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden; font-family: var(--font-mono); font-size: 13px;
}
.console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-raise); color: var(--text-3); font-size: 12px; }
.console-bar .lights { display: flex; gap: 6px; }
.console-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.console-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--signal-ink); }
.console-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.console-kpis div { padding: 16px; border-right: 1px solid var(--line); }
.console-kpis div:last-child { border-right: 0; }
.console-kpis b { display: block; font-size: 22px; font-weight: 500; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.console-kpis small { color: var(--text-3); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.console-rows { padding: 6px 0; }
.console-row { display: grid; grid-template-columns: 1.3fr 1.4fr auto; gap: 16px; align-items: center; padding: 10px 16px; }
.console-row + .console-row { border-top: 1px dashed var(--line); }
.console-row .name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-row .name small { display: block; color: var(--text-3); font-size: 11px; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--signal); transition: width 1.2s var(--ease); }
.meter.warn i { background: var(--warn); }
.meter.muted i { background: var(--text-3); }
.console-foot { border-top: 1px solid var(--line); padding: 12px 16px; color: var(--text-3); font-size: 12px; display: flex; gap: 8px; align-items: baseline; }
.console-foot .prompt { color: var(--signal-ink); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--signal); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Stat strip ───────────────────────────────────────── */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-top: 72px; }
.stat-strip > div { padding: 24px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-strip span { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Cards / grids ────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.tile:hover { border-color: var(--line-strong); }
.tile h3 { font-size: 18px; margin: 18px 0 8px; }
.tile p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.tile .idx { position: absolute; top: 24px; right: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.icon-box { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--signal-ink); }
.icon-box svg { width: 20px; height: 20px; }
.tile-feature { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.tile-feature > div:first-child { max-width: 460px; }
.list-check { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.list-check li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--signal-ink); }
.list-check li.off { color: var(--text-3); }
.list-check li.off svg { color: var(--text-3); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.step { padding: 28px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step-n { font-family: var(--font-mono); font-size: 12px; color: var(--signal-ink); display: flex; align-items: center; gap: 10px; }
.step-n::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.step h3 { font-size: 20px; margin: 20px 0 8px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ── Pricing ──────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; }
.price.featured { border-color: var(--signal-line); background: linear-gradient(180deg, var(--signal-soft), transparent 40%), var(--surface); }
.price-top { display: flex; justify-content: space-between; align-items: center; }
.price-name { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.price-amt { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 6px; }
.price-amt b { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.price-amt span { color: var(--text-3); }
.price-local { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.price-desc { color: var(--text-2); font-size: 15px; margin: 16px 0 4px; }
.price .list-check { margin: 20px 0 28px; flex: 1; align-content: start; }
.price-note { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 12px; }

/* ── Tables ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg-raise); }
.table td { padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--text); }
.table .c { text-align: center; }
.table .yes { color: var(--signal-ink); }
.table .no { color: var(--text-3); }
.table svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--text-3); transition: transform var(--t) var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--signal-ink); }
.faq details > div { padding: 0 0 22px; color: var(--text-2); line-height: 1.7; max-width: 680px; }

/* ── Callouts ─────────────────────────────────────────── */
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--text-2); line-height: 1.65; }
.callout svg { width: 20px; height: 20px; margin-top: 1px; }
.callout strong { color: var(--text); }
.callout-warn { border-color: rgba(245, 165, 36, 0.35); background: var(--warn-soft); }
.callout-warn > svg { color: var(--warn); }
.callout-danger { border-color: rgba(255, 107, 107, 0.35); background: var(--danger-soft); }
.callout-danger > svg { color: var(--danger); }
.callout-info { border-color: rgba(92, 200, 255, 0.3); background: var(--info-soft); }
.callout-info > svg { color: var(--info); }
.callout-ok { border-color: rgba(74, 222, 128, 0.3); background: var(--ok-soft); }
.callout-ok > svg { color: var(--ok); }

/* ── CTA band ─────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; padding: 72px 32px; text-align: center; background: var(--surface); }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); opacity: 0.6; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 52px); letter-spacing: -0.035em; margin-bottom: 14px; }
.cta-band p { color: var(--text-2); font-size: 18px; margin-bottom: 32px; }
.cta-band .hero-ctas { justify-content: center; margin-top: 0; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: var(--text-3); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 14px; display: inline-block; padding: 4px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.footer-bottom .sys { font-family: var(--font-mono); display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); text-decoration: none; }
.footer-bottom .sys .dot { color: var(--ok); }
.social { display: flex; gap: 8px; }
.social a { width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); }
.social a:hover { color: var(--text); border-color: var(--line-strong); }
.social svg { width: 16px; height: 16px; }

/* ── Content pages (about, legal, docs…) ──────────────── */
.page-head { padding: calc(var(--nav-h) + 72px) 0 48px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head .hero-grid-bg { opacity: 0.4; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; margin: 18px 0 14px; }
.page-head p.lead { font-size: 19px; color: var(--text-2); max-width: 640px; line-height: 1.6; }
.page-head .meta { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); margin-top: 18px; }
.page-body { padding: 56px 0 96px; }

.prose { max-width: 720px; color: var(--text-2); font-size: 16px; line-height: 1.75; }
.prose > * + * { margin-top: 16px; }
.prose h2 { color: var(--text); font-size: 24px; margin-top: 48px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h3 { color: var(--text); font-size: 18px; margin-top: 32px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--signal-ink); text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--text-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-raise); color: var(--text); font-weight: 600; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--text); }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose blockquote { border-left: 2px solid var(--signal); padding-left: 16px; color: var(--text); }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); font-size: 14px; }
.toc h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 12px; }
.toc ul { list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); border-left-color: var(--text-3); }
.toc a.active { color: var(--signal-ink); border-left-color: var(--signal); }
.toc a.link-arrow { display: inline-flex; padding: 0; margin: 0; border: 0; color: var(--signal-ink); }

.card-list { display: grid; gap: 12px; }
.row-card { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; text-decoration: none; transition: border-color var(--t) var(--ease); }
a.row-card:hover { border-color: var(--line-strong); }
.row-card h3 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.row-card p { color: var(--text-2); font-size: 14px; }
.row-card .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); white-space: nowrap; }

.timeline { position: relative; border-left: 1px solid var(--line); margin-left: 6px; }
.timeline-item { position: relative; padding: 0 0 40px 32px; }
.timeline-item::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 2px; background: var(--surface-3); border: 1px solid var(--line-strong); }
.timeline-item.current::before { background: var(--signal); border-color: var(--signal); }
.timeline-item h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.timeline-item .when { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin: 4px 0 12px; display: block; }

/* ── Forms ────────────────────────────────────────────── */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  background: var(--bg-raise); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--text); font-size: 15px; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal-ink); box-shadow: 0 0 0 3px var(--signal-soft); }
.field .hint { font-size: 12px; color: var(--text-3); }
.field .err { font-size: 12px; color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Auth shell ───────────────────────────────────────── */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-aside { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: var(--bg-raise); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside .hero-grid-bg { mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 20%, transparent 75%); }
.auth-aside > * { position: relative; }
.auth-aside h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.035em; max-width: 440px; }
.auth-aside .console { max-width: 460px; margin-top: 32px; }
.auth-aside .quote { font-size: 14px; color: var(--text-3); font-family: var(--font-mono); }
.auth-main { display: flex; flex-direction: column; padding: 32px 24px; }
.auth-main .auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 420px; width: 100%; margin: 0 auto; }
.auth-card { width: 100%; max-width: 420px; margin: auto; padding: 40px 0; }
.auth-card h1 { font-size: 30px; letter-spacing: -0.03em; margin-bottom: 8px; }
.auth-card .sub { color: var(--text-2); font-size: 15px; margin-bottom: 28px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--text-2); margin-top: 24px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-oauth { width: 100%; min-height: 44px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); border-radius: var(--r-sm); font-weight: 500; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: background var(--t-fast), border-color var(--t-fast); }
.btn-oauth:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-oauth svg { width: 18px; height: 18px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--signal); flex-shrink: 0; }
.alert-box { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 16px; display: none; line-height: 1.5; }
.alert-box.show { display: block; }
.alert-box.error { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(255, 107, 107, 0.3); }
.alert-box.success { background: var(--ok-soft); color: var(--ok); border: 1px solid rgba(74, 222, 128, 0.3); }
.alert-box.info { background: var(--info-soft); color: var(--info); border: 1px solid rgba(92, 200, 255, 0.3); }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* Auth form vocabulary used by the login/signup/password page scripts */
.auth-box { width: 100%; }
.auth-title { font-size: 30px; letter-spacing: -0.03em; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.auth-sub { color: var(--text-2); font-size: 15px; margin-bottom: 28px; line-height: 1.55; }
.auth-sub a, .auth-footer a { color: var(--signal-ink); font-weight: 500; text-decoration: none; }
.auth-sub a:hover, .auth-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-footer { text-align: center; font-size: 14px; color: var(--text-2); margin-top: 24px; }
.form-group { margin-bottom: 16px; position: relative; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; display: flex; }
.auth-box input[type="email"], .auth-box input[type="password"], .auth-box input[type="text"], .auth-box input[type="tel"], .auth-box select {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 15px; color: var(--text); background: var(--bg-raise); outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.auth-box .input-wrap input { padding-left: 42px; }
.auth-box .input-wrap input:has(+ .pw-toggle) { padding-right: 48px; }
.auth-box input::placeholder { color: var(--text-3); }
.auth-box input:focus, .auth-box select:focus { border-color: var(--signal-ink); box-shadow: 0 0 0 3px var(--signal-soft); }
.auth-box input.error { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.auth-box input.success { border-color: var(--ok); }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r-sm); color: var(--text-3); cursor: pointer; transition: color var(--t-fast); }
.pw-toggle:hover { color: var(--text); }
.field-error { font-size: 12px; color: var(--danger); margin-top: 6px; display: none; }
.field-error.show { display: block; }
.auth-box .form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.remember-me { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; min-height: 32px; }
.remember-me input { width: 18px; height: 18px; accent-color: var(--signal); cursor: pointer; }
.forgot-link { font-size: 14px; color: var(--signal-ink); text-decoration: none; font-weight: 500; }
.forgot-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-submit {
  width: 100%; min-height: 48px; padding: 0 16px; background: var(--signal); color: var(--on-signal); border: 0; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn-submit:hover:not(:disabled) { background: var(--signal-hover); }
.btn-submit:active:not(:disabled) { transform: translateY(1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-submit .spinner { width: 16px; height: 16px; border-width: 2px; }
.auth-box .divider span { white-space: nowrap; }
.btn-google { width: 100%; min-height: 46px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background var(--t-fast), border-color var(--t-fast); }
.btn-google:hover { background: var(--surface-2); border-color: var(--text-3); }
.alert { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.alert svg { margin-top: 2px; flex-shrink: 0; }
.alert-error { background: var(--danger-soft); border: 1px solid rgba(255, 107, 107, 0.3); color: var(--danger); }
.alert-success { background: var(--ok-soft); border: 1px solid rgba(74, 222, 128, 0.3); color: var(--ok); }
.alert-info { background: var(--info-soft); border: 1px solid rgba(92, 200, 255, 0.3); color: var(--info); }
.otp-input { text-align: center; letter-spacing: 0.5em; font-family: var(--font-mono) !important; font-size: 22px !important; }

.auth-points { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.auth-points li svg { width: 18px; height: 18px; color: var(--signal-ink); margin-top: 2px; }

/* Simple centered card (404, verify, etc.) */
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--nav-h) + 24px) 24px 48px; position: relative; overflow: hidden; }
.center-card { position: relative; width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 32px; text-align: center; box-shadow: var(--shadow); }
.center-card .icon-box { width: 52px; height: 52px; margin: 0 auto 20px; }
.center-card .icon-box svg { width: 24px; height: 24px; }
.center-card h1 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 10px; }
.center-card p { color: var(--text-2); font-size: 15px; }

/* Spinner */
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Reveal on scroll ─────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Cookie notice (nm-notices.js) ────────────────────── */
#nm-cookie-banner { font-family: var(--font-sans) !important; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero .console { max-width: 620px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-feature { grid-column: span 2; grid-row: auto; }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 72px; }
  .grid-2, .grid-3, .grid-4, .price-grid { grid-template-columns: 1fr; }
  .tile-feature { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .console-row { grid-template-columns: 1fr 1fr; }
  .console-row .tag { display: none; }
  .row-card { flex-direction: column; gap: 8px; }
  .center-card { padding: 32px 20px; }
}

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