/* ============================================================
   CipherSense v3 — "Operations Console"
   Dark NOC aesthetic · Space Grotesk + JetBrains Mono
   ============================================================ */

:root {
  --bg: #05080d;
  --bg2: #0a1018;
  --panel: #0c131d;
  --panel2: #101a28;
  --panel3: #14202f;
  --border: rgba(145, 172, 202, 0.14);
  --border2: rgba(145, 172, 202, 0.24);
  --text: #e7eef7;
  --muted: #8fa0b5;
  --dim: #5a6b80;
  --cyan: #3ce573;
  --cyan-soft: rgba(60, 229, 115, 0.12);
  --cyan-border: rgba(60, 229, 115, 0.32);
  --green: #3ce573;
  --green-soft: rgba(60, 229, 115, 0.12);
  --amber: #ffb547;
  --amber-soft: rgba(255, 181, 71, 0.12);
  --red: #ff6b6b;
  --radius: 10px;
  --radius-lg: 14px;
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --max: 1160px;
  --glow: 0 0 40px rgba(60, 229, 115, 0.07);
}

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--cyan-soft); color: var(--cyan); }

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

/* Backdrop: fine grid + faint glow */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.backdrop-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(60, 229, 115, 0.07), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(255, 181, 71, 0.05), transparent 60%),
    var(--bg);
}
.backdrop-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(145, 172, 202, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 172, 202, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--text); letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; color: var(--muted); }
.lead { font-size: 1.12rem; line-height: 1.7; max-width: 640px; }
.mono { font-family: var(--mono); }
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--cyan); opacity: 0.6; }

/* CLI-style section label: $ ciphersense --section */
.cmd {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.cmd::before { content: '$'; color: var(--green); flex-shrink: 0; }
.cmd .cmd-name { color: var(--text); opacity: 0.75; }
.cmd .cmd-flag { color: var(--muted); }
.cmd .cmd-caret {
  width: 8px; height: 15px; background: var(--cyan);
  animation: blink 1.1s steps(2, start) infinite;
  flex-shrink: 0;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--panel2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
  min-height: 44px;
}
.btn:hover { border-color: var(--cyan-border); background: var(--panel3); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #03130a;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(60, 229, 115, 0.25);
}
.btn-primary:hover { background: #5ce98d; border-color: #5ce98d; color: #03130a; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--border2); background: var(--panel); }
.btn-block { width: 100%; }

/* ---------- Panels & device tiles ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: border-color .2s, transform .15s;
}
.card:hover { border-color: var(--border2); }
.card.soft { background: var(--bg2); border-color: rgba(145, 172, 202, 0.1); }

/* Rack device front-panel card */
.device {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.device::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(42, 212, 244, 0.05), transparent 45%);
  pointer-events: none;
}
.device:hover { border-color: var(--cyan-border); transform: translateY(-2px); box-shadow: var(--glow); }
.device-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.device-model { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--text); letter-spacing: 0.06em; }
.device-sub { font-family: var(--mono); font-size: 0.68rem; color: var(--dim); margin-top: 2px; letter-spacing: 0.08em; }
.device-status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.7rem; color: var(--green); letter-spacing: 0.08em; }
.device-body { padding: 20px 18px 22px; }
.device-title { font-size: 1.25rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.device-desc { font-size: 0.92rem; color: var(--muted); margin-top: 8px; line-height: 1.65; }
.device-ports {
  display: flex; gap: 5px; padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}
.port {
  width: 9px; height: 9px; border-radius: 2px;
  background: rgba(145, 172, 202, 0.16);
}
.port.lit { background: var(--green); box-shadow: 0 0 6px rgba(61, 220, 151, 0.5); }
.port.act { background: var(--cyan); box-shadow: 0 0 6px rgba(42, 212, 244, 0.5); }
.port.off { background: rgba(145, 172, 202, 0.07); }

/* Status LED */
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.led.on { background: var(--green); animation: pulse 2.2s ease-in-out infinite; }
.led.cyan { background: var(--cyan); animation: pulse 2.2s ease-in-out infinite; }
.led.amber { background: var(--amber); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(61,220,151,.45); } 50% { opacity: .65; box-shadow: 0 0 0 5px rgba(61,220,151,0); } }

/* ---------- Terminal window ---------- */
.term {
  background: #070d15;
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), var(--glow);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: var(--panel2);
  border-bottom: 1px solid var(--border);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; } .term-dot.y { background: #febc2e; } .term-dot.g { background: #28c840; }
.term-title { margin-left: 10px; font-family: var(--mono); font-size: 0.7rem; color: var(--dim); letter-spacing: 0.06em; }
.term-body { padding: 18px 18px 20px; font-family: var(--mono); font-size: 0.8rem; line-height: 1.85; }
.term-line { display: flex; gap: 10px; white-space: pre-wrap; }
.term-prompt { color: var(--green); flex-shrink: 0; }
.term-cmd { color: var(--text); }
.term-out { color: var(--muted); }
.term-out b { color: var(--text); font-weight: 500; }
.term-out .ok { color: var(--green); }
.term-out .warn { color: var(--amber); }
.term-cursor {
  display: inline-block; width: 8px; height: 15px; background: var(--cyan);
  vertical-align: text-bottom; animation: blink 1.1s steps(2, start) infinite;
}

/* ---------- Topology ---------- */
.topo-wrap {
  background: linear-gradient(180deg, #081019, #060b12);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glow);
}
.topo-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.72rem; color: var(--dim); letter-spacing: 0.08em;
}
.topo-head .live { color: var(--green); display: inline-flex; align-items: center; gap: 7px; }
.topo svg { display: block; width: 100%; height: auto; }
.topo .node-label { font-family: var(--mono); font-size: 11px; fill: var(--muted); letter-spacing: 0.05em; }
.topo .node-name { font-family: var(--mono); font-size: 12.5px; font-weight: 600; fill: var(--text); }
.topo .node-meta { font-family: var(--mono); font-size: 10px; fill: var(--dim); }
.topo .link { stroke: rgba(145, 172, 202, 0.35); stroke-width: 1.4; }
.topo .link-core { stroke: rgba(60, 229, 115, 0.5); stroke-width: 1.6; }
.topo .pulse { fill: var(--cyan); animation: flowPulse 2.6s ease-in-out infinite; }
.topo .pulse.g { fill: var(--amber); animation-duration: 3.2s; }
@keyframes flowPulse {
  0% { opacity: 0; r: 2.5; }
  30% { opacity: 1; }
  100% { opacity: 0; r: 6.5; }
}

/* ---------- Stats / readouts ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border: 1px solid var(--border);
  background: rgba(12, 19, 29, 0.7);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.stat-value { font-family: var(--mono); font-size: 1.35rem; font-weight: 600; color: var(--text); margin-top: 6px; letter-spacing: -0.01em; }
.stat-value em { font-style: normal; color: var(--cyan); }
.stat-note { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cols-12 { grid-template-columns: repeat(12, 1fr); }
.col-7 { grid-column: span 7; } .col-5 { grid-column: span 5; }
.col-8 { grid-column: span 8; } .col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; } .col-12 { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: 1 / -1; }
}

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: start; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Lists & tags ---------- */
.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li { display: flex; gap: 11px; align-items: flex-start; padding: 5px 0; color: var(--muted); font-size: 0.92rem; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-top: 8px; flex-shrink: 0; opacity: 0.8; }
.bullet-2col { column-count: 2; column-gap: 26px; }
.bullet-2col li { break-inside: avoid; }
@media (max-width: 640px) { .bullet-2col { column-count: 1; } }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--cyan-border);
  background: var(--cyan-soft);
  color: var(--cyan);
  letter-spacing: 0.03em;
}
.tag.g { border-color: rgba(61,220,151,.3); background: var(--green-soft); color: var(--green); }
.tag.a { border-color: rgba(255,181,71,.3); background: var(--amber-soft); color: var(--amber); }

.badge {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border2); color: var(--muted);
}

/* ---------- Pipeline / phases ---------- */
.phase {
  position: relative;
  padding: 26px 26px 26px 30px;
  border-left: 2px solid var(--border2);
  margin-left: 8px;
}
.phase::before {
  content: '';
  position: absolute; left: -6.5px; top: 30px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan);
}
.phase:hover::before { box-shadow: 0 0 12px rgba(42,212,244,.5); }
.phase-num { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--cyan); }
.phase h3 { margin-top: 10px; }
.phase .tdesc { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.phase .deliver {
  margin-top: 16px;
  font-family: var(--mono); font-size: 0.74rem; color: var(--green);
  border: 1px dashed rgba(61, 220, 151, 0.3);
  background: var(--green-soft);
  border-radius: 8px;
  padding: 10px 14px;
}
.phase .deliver b { color: var(--green); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.66rem; }

/* Pipeline row (engagement model) */
.pipe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--mono); }
.pipe .step {
  padding: 9px 16px; border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--panel2);
  color: var(--text); font-size: 0.8rem;
}
.pipe .arrow { color: var(--cyan); font-size: 1rem; }

/* ---------- FAQ (CLI style) ---------- */
.faqstack { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--cyan-border); }
.faq-qbar {
  display: flex; gap: 12px; align-items: baseline;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600; font-size: 1rem; color: var(--text);
}
.faq-qbar .prompt { font-family: var(--mono); color: var(--cyan); font-size: 0.82rem; flex-shrink: 0; }
.faq-a {
  display: none;
  padding: 0 20px 18px 20px;
  color: var(--muted); font-size: 0.95rem; line-height: 1.7;
}
.faq-a .prompt { font-family: var(--mono); color: var(--green); font-size: 0.82rem; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-qbar::after { transform: rotate(180deg); }
.faq-qbar::after {
  content: '▾';
  margin-left: auto;
  color: var(--dim);
  font-size: 0.8rem;
  transition: transform .2s;
  flex-shrink: 0;
}

/* ---------- Forms ---------- */
label { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 16px; }
label:first-child { margin-top: 0; }
/* Inside a grid, spacing comes from the grid gap — never add per-label top margins (breaks side-by-side alignment) */
.formgrid label { margin-top: 0; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 7px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: rgba(5, 8, 13, 0.7);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.formgrid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .formgrid { grid-template-columns: 1fr; } .formgrid .full { grid-column: auto; } }
.note { font-size: 0.8rem; color: var(--dim); }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border2); background: var(--panel2); border-radius: 999px; padding: 10px 16px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); cursor: pointer; }
.pill input { width: auto; margin: 0; accent-color: var(--cyan); min-height: auto; }

/* ---------- Legal & thank-you (kept from v2) ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 64px 0; }
.legal h1 { margin-bottom: 10px; }
.legal-date { color: var(--dim); font-size: 0.82rem; font-family: var(--mono); margin-bottom: 40px; }
.legal h2 { font-size: 1.15rem; margin-top: 36px; margin-bottom: 10px; }
.legal p { margin-bottom: 10px; font-size: 0.95rem; color: var(--muted); }
.legal ul { color: var(--muted); font-size: 0.95rem; }
.thank-you { text-align: center; padding: 110px 24px; }
.thank-you h1 { margin-bottom: 14px; }
.thank-you p { max-width: 460px; margin: 0 auto; }
.thank-you .btn { margin-top: 36px; }

/* ---------- Navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 8, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #0d2230, #081019);
  border: 1px solid var(--cyan-border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(42, 212, 244, 0.15);
}
.brand-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-name em { font-style: normal; color: var(--cyan); }
.brand-tag { font-family: var(--mono); font-size: 0.62rem; color: var(--dim); letter-spacing: 0.14em; display: block; margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a.active { color: var(--cyan); background: var(--cyan-soft); }
.nav-links .btn { padding: 9px 16px; font-size: 0.8rem; min-height: auto; margin-left: 10px; }
@media (max-width: 900px) { .nav-links { display: none; } }

.hamburger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 9px;
  border: 1px solid var(--border2);
  background: var(--panel2);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 900px) { .hamburger { display: flex; } }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 10px 24px 18px;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 11px 0; color: var(--muted); font-size: 1rem; border-bottom: 1px solid rgba(145,172,202,.08); }
.mobile-menu a.active { color: var(--cyan); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--bg2); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand { font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.footer-brand .mono { color: var(--cyan); font-size: 0.7rem; letter-spacing: 0.14em; }
.footer-desc { color: var(--dim); font-size: 0.88rem; margin-top: 10px; max-width: 340px; }
.footer-col h4 { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-family: var(--mono); font-size: 0.74rem; color: var(--dim); }
.footer-bottom p b { color: var(--green); font-weight: 500; }
.footer-bottom .links a { color: var(--dim); font-size: 0.8rem; margin-left: 18px; }
.footer-bottom .links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; }
.hero h1 { margin-top: 22px; max-width: 15ch; }
.hero h1 .accent { color: var(--cyan); }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero .stats { margin-top: 48px; }

.cta-band {
  border: 1px solid var(--cyan-border);
  background: linear-gradient(135deg, rgba(42, 212, 244, 0.08), rgba(12, 19, 29, 0.6) 55%);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.5rem; }
.cta-band p { margin-top: 8px; max-width: 60ch; }

.console-note {
  border: 1px dashed var(--border2);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  background: rgba(12, 19, 29, 0.5);
}
.console-note .note-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }

.sep { border: 0; height: 1px; background: var(--border); margin: 26px 0; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 10px; } .mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 22px; } .mt-5 { margin-top: 28px; } .mt-6 { margin-top: 36px; }
.mt-7 { margin-top: 44px; } .mt-8 { margin-top: 52px; } .mt-10 { margin-top: 64px; }
.p-6 { padding: 20px; } .p-7 { padding: 24px; } .p-8 { padding: 28px; } .p-9 { padding: 32px; } .p-10 { padding: 38px; }

/* Calculator */
.calc { display: grid; gap: 24px; grid-template-columns: 1.2fr 0.8fr; align-items: start; }
@media (max-width: 980px) { .calc { grid-template-columns: 1fr; } }
.kv { display: grid; gap: 8px; }
.kv .row { display: flex; justify-content: space-between; gap: 14px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.kv .row b { color: var(--text); font-weight: 500; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.price { font-family: var(--mono); font-size: 2rem; font-weight: 600; color: var(--cyan); }
.per { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--border2); border-radius: var(--radius-lg); background: var(--panel); padding: 26px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.plan.featured { border-color: var(--cyan-border); box-shadow: 0 0 0 1px var(--cyan-soft), var(--glow); }
.plan .plan-tag { position: absolute; top: 14px; right: 14px; }
.plan .price { font-size: 1.7rem; margin-top: 10px; }
.plan ul { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Scoping configurator ---------- */
.scope-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 22px; align-items: start; }
@media (max-width: 980px) { .scope-grid { grid-template-columns: 1fr; } }

.summary-panel {
  position: sticky; top: 86px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  padding: 26px;
  box-shadow: var(--glow);
}
.sum-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sum-title { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.sum-row {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(145, 172, 202, 0.12);
}
.sum-row span {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim);
}
.sum-row b {
  font-family: var(--font); font-size: 1.02rem; font-weight: 600; color: var(--text);
}
.sum-tier { font-size: 1.2rem !important; color: var(--cyan) !important; }
.sum-price { font-size: 1.5rem !important; }
.sum-check { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.sum-check .row {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .72rem; color: var(--dim); letter-spacing: .06em;
}
.sum-check .row .led { width: 7px; height: 7px; }
.sum-check .row.done { color: var(--muted); }

.opt-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  margin-top: 14px;
  overflow: hidden;
}
.opt-group summary {
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 11px;
  user-select: none;
}
.opt-group summary::-webkit-details-marker { display: none; }
.opt-group summary::before { content: '▸'; color: var(--cyan); transition: transform .15s; flex-shrink: 0; }
.opt-group[open] summary::before { transform: rotate(90deg); }
.opt-group summary:hover { color: var(--text); background: rgba(255,255,255,.02); }
.opt-group .opt-body { padding: 2px 16px 16px; }

.plan.active { border-color: var(--cyan-border); box-shadow: 0 0 0 1px var(--cyan-soft), var(--glow); }
.plan-your { display: none; position: absolute; top: 14px; right: 14px; }
.plan.active .plan-your { display: inline-block; }

/* ---------- Audit / health check ---------- */
.audit-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 22px; align-items: start; }
@media (max-width: 980px) { .audit-grid { grid-template-columns: 1fr; } }
.q-card { padding: 24px 28px; border-bottom: 1px solid var(--border); }
.q-card:last-child { border-bottom: none; }
.q-num { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; color: var(--cyan); }
.q-title { font-weight: 600; font-size: 1.05rem; color: var(--text); margin-top: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.opts .pill { cursor: pointer; }
.opts .pill:has(input:checked) { border-color: var(--cyan-border); background: var(--cyan-soft); color: var(--text); }
.score-num { font-family: var(--mono); font-size: 3.6rem; font-weight: 600; line-height: 1; color: var(--cyan); }
.score-scale { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; color: var(--dim); margin-top: 6px; }
.score-band { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; color: var(--muted); }

/* ---------- Docs / schema blocks ---------- */
.schema-block { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: rgba(5,8,13,.6); }
.schema-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  font-family: var(--mono); font-size: .74rem;
  border-bottom: 1px solid var(--border);
}
.schema-row:last-child { border-bottom: none; }
.s-vlan { color: var(--cyan); min-width: 110px; font-weight: 500; }
.s-name { color: var(--text); min-width: 90px; }
.s-net { color: var(--dim); flex: 1; text-align: right; }
.s-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.s-dot.on { background: var(--green); box-shadow: 0 0 6px rgba(61,220,151,.5); }
@media (max-width: 520px) {
  .s-vlan { min-width: 80px; } .s-name { min-width: 64px; } .s-net { font-size: .66rem; }
}

/* ---------- Ops notes ---------- */
.note-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  transition: border-color .2s, transform .15s;
}
.note-card:hover { border-color: var(--cyan-border); transform: translateY(-1px); }
.note-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.note-card-title { font-weight: 600; font-size: 1.15rem; color: var(--text); margin-top: 10px; letter-spacing: -0.01em; }
.note-card-desc { color: var(--muted); font-size: .92rem; margin-top: 6px; }

.article-wrap { max-width: 760px; margin: 0 auto; }
.article { font-size: 1rem; line-height: 1.75; color: var(--muted); }
.article h2 { font-size: 1.35rem; margin-top: 40px; margin-bottom: 12px; color: var(--text); }
.article h3 { font-size: 1.1rem; margin-top: 30px; margin-bottom: 8px; color: var(--text); }
.article p { margin: 14px 0; }
.article ul, .article ol { margin: 14px 0; padding-left: 22px; }
.article li { margin: 6px 0; }
.article a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article strong { color: var(--text); }
.article code {
  font-family: var(--mono); font-size: .85em;
  background: var(--panel2); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 5px; color: var(--green);
}
.article pre {
  background: var(--panel2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; overflow-x: auto;
  font-family: var(--mono); font-size: .82rem; color: var(--text);
}
.article pre code { background: none; border: none; padding: 0; color: inherit; }
.article blockquote {
  border-left: 2px solid var(--cyan-border);
  margin: 18px 0; padding: 4px 0 4px 18px;
  color: var(--text); font-style: normal;
}
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .9rem; }
.article th, .article td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.article th { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--dim); }
.article td { color: var(--muted); }
