/* CommsWatch marketing site — styles */
:root {
  --bg: #0B0D10;
  --surface-1: #12161B;
  --surface-2: #1A2027;
  --border: #262E38;
  --text: #E8ECF1;
  --text-2: #9AA5B1;
  --text-3: #6B7682;
  --accent: #FFB020;
  --accent-ink: #1A1200;
  --accent-soft: rgba(255, 176, 32, 0.12);
  --critical: #FF4D4F;
  --critical-soft: rgba(255, 77, 79, 0.12);
  --warning: #F59E0B;
  --healthy: #22C55E;
  --info: #3B82F6;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1200px;
  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--accent); }
p a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-2); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #FFC14D; }
.btn-secondary { background: transparent; color: var(--text); border-color: #3A4450; }
.btn-secondary:hover { border-color: var(--text-2); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { color: var(--accent); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: rgba(11, 13, 16, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38, 46, 56, .7);
}
.nav .container { display: flex; align-items: center; height: 100%; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--text-2); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav-right .login { color: var(--text-2); }
.nav-right .login:hover { color: var(--text); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }
.mobile-menu { display: none; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.band { background: var(--surface-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-2); }
.page-hero { padding: 96px 0 56px; }
.page-hero .lead { max-width: 680px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(255,176,32,.10), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 45fr 55fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; font-size: clamp(2.25rem, 4.4vw, 3.6rem); }
.hero .lead { margin-bottom: 32px; }
.trust-line { margin-top: 22px; font-size: 14px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--healthy); }

/* Product window */
.window {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.window-bar .show { font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; border: 1px solid var(--border); color: var(--text-2); }
.pill.onair { color: #fff; background: var(--critical); border-color: var(--critical); }
.pill.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--healthy); }
.window-bar .tc { margin-left: auto; font-family: var(--font-mono); color: var(--text-2); }
.window-body { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 380px; }
.stream { padding: 14px 16px; border-right: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; overflow: hidden; position: relative; }
.stream-head, .rail-head { font-family: var(--font-body); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 10px; display: flex; justify-content: space-between; }
.stream-lines { display: flex; flex-direction: column; gap: 7px; }
.line { display: grid; grid-template-columns: 62px 1fr; gap: 8px; color: var(--text-3); animation: lineIn .35s var(--ease); line-height: 1.45; }
.line .ch { color: var(--text-2); }
.line.flag { color: var(--accent); }
.line.flag .ch { color: var(--accent); }
.line.fresh { color: var(--text); }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rail { padding: 14px; display: flex; flex-direction: column; gap: 10px; background: rgba(0,0,0,.15); }
.count { font-family: var(--font-mono); color: var(--text-2); }

/* Alert card */
.alert {
  position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 12px 12px 16px; font-size: 13px; overflow: hidden;
}
.alert::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.alert.critical::before { background: var(--critical); }
.alert.info::before { background: var(--info); }
.alert.new { animation: slideIn .45s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.alert-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.alert-title { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.alert-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.alert-quote { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }
.alert-quote mark { background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.alert.critical .alert-quote mark { color: var(--critical); }
.alert-actions { display: flex; gap: 6px; margin-top: 10px; }
.mini-btn { font-size: 11.5px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text-2); font-family: var(--font-body); }
.mini-btn.play { color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--text-2); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--healthy); }
.chip.warn::before { background: var(--accent); }
.chip.crit::before { background: var(--critical); }
.chip.off::before { background: var(--text-3); }
.tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }
.tag.crit { background: var(--critical-soft); color: var(--critical); }
.tag.info { background: rgba(59,130,246,.14); color: #7FB0FF; }
.tag.ok { background: rgba(34,197,94,.13); color: #5BDB8C; }

/* ---------- Problem ---------- */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-col { border-top: 1px solid var(--border); padding-top: 22px; }
.problem-col .k { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; display: block; }

/* ---------- Stepper ---------- */
.stepper { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.stepper::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 2px; background: var(--border); }
.stepper::after { content: ""; position: absolute; top: 19px; left: 20px; height: 2px; width: 0; background: var(--accent); transition: width 1.4s var(--ease); }
.stepper.in::after { width: calc(100% - 40px); }
.stepper li { position: relative; }
.step-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--border); font-family: var(--font-mono); font-size: 14px; position: relative; z-index: 1; margin-bottom: 18px; transition: border-color .4s, color .4s; }
.stepper.in .step-num { border-color: var(--accent); color: var(--accent); }
.stepper h3 { margin-bottom: 8px; }
.stepper p { color: var(--text-2); font-size: 15.5px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s var(--ease); }
.card:hover { border-color: #34404D; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15.5px; margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 20px; height: 20px; }
.card .demo { margin-top: 18px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.tab { background: none; border: none; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 500; padding: 12px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.tab-panel[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -30px rgba(255,176,32,.35); }
.price-card .badge { position: absolute; top: -12px; left: 30px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price-card .fit { color: var(--text-2); font-size: 15px; min-height: 48px; }
.price { font-family: var(--font-head); font-size: 44px; font-weight: 600; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price small { font-size: 15px; color: var(--text-2); font-weight: 400; letter-spacing: 0; }
.price-note { font-size: 13.5px; color: var(--text-3); margin-bottom: 22px; min-height: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; font-size: 15px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; color: var(--text-2); }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.toggle { display: inline-flex; background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 4px; gap: 4px; }
.toggle button { background: none; border: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 7px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.toggle .save { color: var(--accent); font-weight: 500; }
.toggles { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-1); font-family: var(--font-head); font-size: 15px; }
tbody tr:hover { background: rgba(255,255,255,.015); }
tbody tr:last-child td { border-bottom: none; }
td:first-child { color: var(--text); }
td { color: var(--text-2); }
.group-row td { background: var(--surface-1); color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.yes { color: var(--accent); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 12px 0 0; }

/* ---------- Feature rows ---------- */
.feature-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.feature-index { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.feature-index a { color: var(--text-2); padding: 7px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.feature-index a:hover { color: var(--text); background: var(--surface-1); }
.feature-index a.active { color: var(--text); border-left-color: var(--accent); background: var(--surface-1); }
.feature-group { padding-bottom: 72px; scroll-margin-top: 96px; }
.feature-group > h2 { font-size: 1.1rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 32px 0; border-top: 1px solid var(--border); }
.feature-row:nth-child(odd) .feature-visual { order: -1; }
.feature-row h3 { font-size: 1.5rem; }
.feature-row .kicker { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; display: block; }
.feature-row p { color: var(--text-2); }
.feature-visual { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; min-height: 180px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.mini-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mini-list .row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; }
.switch { width: 32px; height: 18px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-ink); }
.switch.off { background: var(--border); }
.switch.off::after { left: 2px; right: auto; background: var(--text-3); }
.slack { background: #1A1D21; border: 1px solid var(--border); border-radius: 10px; padding: 14px; font-size: 14px; }
.slack .who { font-weight: 700; }
.slack .who span { font-weight: 400; color: var(--text-3); font-size: 12px; margin-left: 6px; }
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.searchbar svg { width: 16px; height: 16px; color: var(--text-3); }
.slider { height: 6px; border-radius: 999px; background: var(--border); position: relative; }
.slider::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 70%; background: var(--accent); border-radius: inherit; }
.slider::after { content: ""; position: absolute; left: 70%; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); background: var(--text); border-radius: 50%; }

/* Waveform */
.wave { display: flex; align-items: center; gap: 2px; height: 46px; }
.wave i { flex: 1; background: #3A4450; border-radius: 2px; min-width: 2px; }
.wave i.hot { background: var(--accent); }
.wave.live i { animation: pulse 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* Transcript */
.transcript { font-family: var(--font-mono); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.transcript .t { display: grid; grid-template-columns: 70px 70px 1fr; gap: 10px; color: var(--text-2); }
.transcript .t .time { color: var(--text-3); }
.transcript .t.hit { color: var(--text); }
.transcript u { text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* ---------- Pipeline ---------- */
.pipeline-figure { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.stage { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; border-top: 1px solid var(--border); }
.stage .num { font-family: var(--font-mono); color: var(--accent); font-size: 13px; letter-spacing: .08em; margin-bottom: 10px; display: block; }
.stage p { color: var(--text-2); }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-strip > div { background: var(--surface-1); padding: 22px; }
.stat-strip .v { font-family: var(--font-mono); font-size: 22px; color: var(--text); }
.stat-strip .l { font-size: 13.5px; color: var(--text-2); }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-tile { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.logo-tile strong { font-family: var(--font-head); font-size: 18px; }
.logo-tile span { color: var(--text-2); font-size: 14px; }
.logo-tile:hover { border-color: #34404D; }

/* ---------- Tour / dashboard ---------- */
.app { display: grid; grid-template-columns: 56px 1fr; background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; min-height: 520px; }
.app-rail { border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; }
.app-rail span { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); }
.app-rail span.on { background: var(--accent-soft); color: var(--accent); }
.app-rail svg { width: 18px; height: 18px; }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-content { padding: 18px; flex: 1; min-width: 0; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.counter { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.counter .v { font-family: var(--font-mono); font-size: 20px; }
.counter .l { font-size: 12px; color: var(--text-2); }
.feed-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.feed-col { display: flex; flex-direction: column; gap: 10px; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 12px; }
.tile .name { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.tile .sys { color: var(--text-3); font-size: 11px; margin-bottom: 8px; }
.tile.warn { border-color: rgba(255,176,32,.5); }
.tile.crit { border-color: rgba(255,77,79,.6); }
.tile .last { color: var(--text-3); font-size: 11px; margin-top: 6px; }
.spark { width: 100%; height: 28px; }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--healthy); display: inline-block; }
.sdot.warn { background: var(--accent); } .sdot.crit { background: var(--critical); } .sdot.off { background: var(--text-3); }
.lanes { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; }
.lane { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; }
.lane .track { position: relative; height: 26px; background: var(--surface-2); border-radius: 6px; }
.lane .seg { position: absolute; top: 5px; bottom: 5px; background: #3A4450; border-radius: 4px; }
.lane .seg.hot { background: var(--accent); }
.lane .mark { position: absolute; top: -6px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: var(--critical); border-radius: 2px; }
.lane .mark.warn { background: var(--accent); }
.range { position: absolute; top: 0; bottom: 0; background: rgba(255,176,32,.08); border-left: 1px dashed var(--accent); border-right: 1px dashed var(--accent); }
.axis { display: grid; grid-template-columns: 90px 1fr; gap: 10px; color: var(--text-3); font-family: var(--font-mono); font-size: 11px; }
.axis .ticks { display: flex; justify-content: space-between; }
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.panel h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-family: var(--font-body); font-weight: 600; margin-bottom: 10px; }
.why { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--text); font-size: 14px; }

/* ---------- Security ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.compliance { display: flex; flex-wrap: wrap; gap: 12px; }
.compliance span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; color: var(--text-2); background: var(--surface-1); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #2A333E, #1A2027); border: 1px solid var(--border); margin-bottom: 14px; display: grid; place-items: center; font-family: var(--font-head); color: var(--text-2); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  font: inherit; font-size: 15px; padding: 11px 13px; min-height: 46px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
fieldset.field { border: none; padding: 0; margin: 0 0 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-weight: 400; font-size: 14px; cursor: pointer; }
.checks input { accent-color: var(--accent); min-height: auto; }
.form-note { font-size: 13px; color: var(--text-3); margin-top: 12px; }
.form-success { display: none; padding: 16px; border-radius: 10px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.4); color: #8BE5AE; margin-top: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); }
.checklist li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; text-align: center; padding: 120px 0; }
.final-cta .bg-wave { position: absolute; inset: auto 0 0 0; height: 140px; opacity: .25; display: flex; align-items: flex-end; gap: 3px; padding: 0 12px; }
.final-cta .bg-wave i { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; animation: pulse 2.4s ease-in-out infinite; transform-origin: bottom; }
.final-cta .container { position: relative; }
.final-cta .lead { max-width: 560px; margin: 0 auto 32px; }
.final-cta .cta-row { justify-content: center; }
.micro { font-size: 13.5px; color: var(--text-3); margin-top: 18px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 64px 0 40px; font-size: 14.5px; color: var(--text-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a:hover { color: var(--text); }
.newsletter { display: flex; gap: 8px; margin-top: 14px; max-width: 360px; }
.newsletter input { flex: 1; min-width: 0; background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 0 12px; min-height: 42px; font: inherit; font-size: 14px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px; font-size: 13.5px; color: var(--text-3); }
.foot-bottom a:hover { color: var(--text); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--healthy); }

/* Sticky mobile CTA */
.sticky-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .split, .stage, .tab-panel { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .grid-3, .principles, .team { grid-template-columns: repeat(2, 1fr); }
  .stepper { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .stepper::before, .stepper::after { display: none; }
  .feature-layout { grid-template-columns: 1fr; }
  .feature-index { position: sticky; top: 64px; z-index: 5; flex-direction: row; overflow-x: auto; background: var(--bg); padding: 10px 0; margin: 0 -24px; padding-left: 24px; border-bottom: 1px solid var(--border); }
  .feature-index a { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; border-radius: 0; }
  .feature-index a.active { border-bottom-color: var(--accent); background: none; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .board { grid-template-columns: repeat(3, 1fr); }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .stage .stage-visual { order: 2; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .mobile-menu { position: fixed; inset: 64px 0 0 0; background: var(--bg); z-index: 49; padding: 24px; flex-direction: column; gap: 4px; overflow-y: auto; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 14px 4px; font-size: 19px; border-bottom: 1px solid var(--border); }
  .mobile-menu .btn { margin-top: 20px; border: none; font-size: 16px; }
  .three, .price-grid, .feature-row, .grid-2, .detail, .feed-split { grid-template-columns: 1fr; }
  .feature-row:nth-child(odd) .feature-visual { order: 0; }
  .price-card.featured { order: -1; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: repeat(2, 1fr); }
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; transform: translateY(140%); transition: transform .3s var(--ease); }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
  footer { padding-bottom: 96px; }

}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .feature-index { margin: 0 -20px; padding-left: 20px; }
  section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .grid-3, .principles, .team, .stepper, .logo-grid { grid-template-columns: 1fr; }
  .window-body { grid-template-columns: 1fr; min-height: 0; }
  .stream { border-right: none; border-bottom: 1px solid var(--border); max-height: 190px; }
  .hero { padding-top: 48px; }
  .cta-row .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
  .app-rail { display: none; }
  .lane, .axis { grid-template-columns: 64px 1fr; }
  th, td { padding: 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
