/* ============================================================
   NetDoctor - Marketing site
   Theme: matches the application UI (dark, JetBrains Mono, accent #5cb8ff)
   ============================================================ */

:root {
  --bg:        #0c0c0c;
  --bg-soft:   #141414;
  --bg-card:   #1a1a1a;
  --bg-hover:  #222222;
  --border:    #2a2a2a;
  --border-soft:#1f1f1f;
  --text:      #f5f5f5;
  --text-dim:  #c0c0c0;
  --text-off:  #808080;
  --accent:    #5cb8ff;
  --accent-soft: rgba(92,184,255,.10);
  --accent-edge: rgba(92,184,255,.35);
  --green:     #6ee7b7;
  --amber:     #fbbf24;
  --red:       #f87171;
  --max-width: 1280px;
  --max-narrow: 880px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-off); }

/* Selection */
::selection { background: var(--accent); color: #000; }

/* Focus */
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* Links / buttons */
a { color: var(--accent); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; }

code {
  font-family: inherit;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.88em;
  color: var(--accent);
}

.accent { color: var(--accent); }
.muted  { color: var(--text-dim); }
.small  { font-size: 12px; }

/* Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: var(--max-narrow); }

/* ============================== NAV ============================== */
.nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  backdrop-filter: blur(12px);
  border-bottom: none;
}
.nav-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px clamp(18px, 3vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}
.brand-mark {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(92, 184, 255, .18));
}
.brand-name { letter-spacing: .5px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-links .cta {
  color: var(--accent);
  border: 1px solid var(--accent-edge);
  padding: 7px 14px;
  border-radius: 3px;
  background: var(--accent-soft);
  font-weight: 600;
}
.nav-links .cta:hover { background: rgba(92,184,255,.18); opacity: 1; }

@media (max-width: 720px) {
  .nav-links a:not(.cta) { display: none; }
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  opacity: .6;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-edge);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 28px;
}
.lead {
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.4vw, 17px);
}

.hero-cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { opacity: .85; }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.btn-topology {
  color: #d7f0ff;
  border-color: rgba(92,184,255,.46);
  background:
    radial-gradient(circle at 14% 50%, rgba(92,184,255,.22), transparent 34%),
    linear-gradient(180deg, rgba(92,184,255,.16), rgba(92,184,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 26px rgba(0,0,0,.18);
}
.btn-topology::before {
  display: none;
}
.btn-topology:hover {
  color: #ffffff;
  border-color: rgba(92,184,255,.74);
  background:
    radial-gradient(circle at 14% 50%, rgba(92,184,255,.30), transparent 36%),
    linear-gradient(180deg, rgba(92,184,255,.22), rgba(92,184,255,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 15px 30px rgba(0,0,0,.22);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 880px;
  margin: 0 auto;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.stat {
  background: var(--bg-card);
  padding: 24px 16px;
  text-align: center;
}
.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.5px;
}
.stat-label {
  font-size: 11px;
  color: var(--text-off);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================== SECTIONS ============================== */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.section-tight { padding: 60px 0; }
.section-alt { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-top: 18px;
  margin-bottom: 14px;
}

/* ============================== PRINCIPLES ============================== */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.principle {
  background: var(--bg);
  padding: 28px 24px;
  transition: background .15s;
}
.principle:hover { background: var(--bg-card); }
.principle-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 14px;
}
.principle h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.principle p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================== FEATURES ============================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: minmax(132px, auto);
  gap: 8px;
  align-items: stretch;
}
.feature {
  background:
    linear-gradient(180deg, rgba(92,184,255,.035), rgba(92,184,255,0) 44%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 10px;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.feature:hover {
  border-color: var(--accent-edge);
  transform: translateY(-2px);
}
.feature-tag {
  display: inline-block;
  width: fit-content;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-edge);
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 8px;
}
.feature h3 {
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature p {
  color: var(--text-dim);
  font-size: 10.5px;
  line-height: 1.35;
  margin-bottom: 0;
}
.feature ul {
  display: none;
}
.feature li {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-dim);
  padding: 3px 0 3px 16px;
  position: relative;
}
.feature li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 1180px) {
  .features-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 920px) {
  .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(122px, auto);
    gap: 8px;
  }
}
.features-grid:not(.is-expanded) .feature:nth-child(n+7) {
  display: none;
}
.feature-more {
  display: none;
  margin: 14px auto 0;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--accent-edge);
  border-radius: 6px;
  background: rgba(92,184,255,.10);
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 680px) {
  .feature-more {
    display: flex;
  }
}
@media (min-width: 681px) {
  .features-grid:not(.is-expanded) .feature:nth-child(n+7) {
    display: flex;
  }
}

/* ============================== FEATURE CARDS - FINAL SURFACE ============================== */
#what .container {
  max-width: 1520px;
}
.features-grid {
  --feature-gap: 12px;
  align-items: stretch;
  counter-reset: feature;
  display: flex;
  flex-wrap: wrap;
  gap: var(--feature-gap);
  justify-content: center;
}
.feature {
  --feature-accent: #5cb8ff;
  --feature-soft: rgba(92, 184, 255, .10);
  --feature-border: rgba(92, 184, 255, .34);
  --feature-glow: rgba(92, 184, 255, .12);
  background:
    radial-gradient(circle at 12% 0%, var(--feature-glow), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012)),
    rgba(20, 21, 22, .94);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 18px 34px rgba(0,0,0,.16);
  display: flex;
  flex: 0 1 calc((100% - (5 * var(--feature-gap))) / 6);
  flex-direction: column;
  min-height: 148px;
  min-width: 0;
  overflow: hidden;
  padding: 16px 15px 14px;
  position: relative;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.feature::before {
  background: linear-gradient(90deg, var(--feature-accent), transparent 68%);
  content: '';
  height: 2px;
  inset: 0 auto auto 0;
  opacity: .88;
  position: absolute;
  width: 100%;
}
.feature::after {
  color: rgba(255,255,255,.13);
  content: counter(feature, decimal-leading-zero);
  counter-increment: feature;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 13px;
}
.feature:hover {
  border-color: var(--feature-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 22px 38px rgba(0,0,0,.22);
  transform: translateY(-3px);
}
.feature-tag {
  background: var(--feature-soft);
  border: 1px solid var(--feature-border);
  border-radius: 5px;
  color: var(--feature-accent);
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 14px;
  padding: 3px 8px;
  text-transform: uppercase;
  width: fit-content;
}
.feature h3 {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 10px;
  padding-right: 34px;
}
.feature p {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.38;
  margin-bottom: 0;
  max-width: 94%;
  overflow: visible;
}
.feature ul {
  display: none;
}
.feature-ingest { --feature-accent: #5cb8ff; --feature-soft: rgba(92,184,255,.10); --feature-border: rgba(92,184,255,.34); --feature-glow: rgba(92,184,255,.12); }
.feature-engine { --feature-accent: #33d6c2; --feature-soft: rgba(51,214,194,.10); --feature-border: rgba(51,214,194,.32); --feature-glow: rgba(51,214,194,.11); }
.feature-rules { --feature-accent: #ffbf5a; --feature-soft: rgba(255,191,90,.11); --feature-border: rgba(255,191,90,.34); --feature-glow: rgba(255,191,90,.12); }
.feature-evidence { --feature-accent: #a893ff; --feature-soft: rgba(168,147,255,.11); --feature-border: rgba(168,147,255,.34); --feature-glow: rgba(168,147,255,.12); }
.feature-ui { --feature-accent: #7ee071; --feature-soft: rgba(126,224,113,.10); --feature-border: rgba(126,224,113,.30); --feature-glow: rgba(126,224,113,.10); }
.feature-ai { --feature-accent: #de7fff; --feature-soft: rgba(222,127,255,.10); --feature-border: rgba(222,127,255,.32); --feature-glow: rgba(222,127,255,.11); }
.feature-ops { --feature-accent: #ff875f; --feature-soft: rgba(255,135,95,.10); --feature-border: rgba(255,135,95,.34); --feature-glow: rgba(255,135,95,.11); }
.feature-quality { --feature-accent: #a9c7ff; --feature-soft: rgba(169,199,255,.10); --feature-border: rgba(169,199,255,.32); --feature-glow: rgba(169,199,255,.11); }
@media (max-width: 1380px) {
  .feature {
    flex-basis: calc((100% - (4 * var(--feature-gap))) / 5);
  }
}
@media (max-width: 1180px) {
  .feature {
    flex-basis: calc((100% - (3 * var(--feature-gap))) / 4);
  }
}
@media (max-width: 920px) {
  .feature {
    flex-basis: calc((100% - (2 * var(--feature-gap))) / 3);
  }
}
@media (max-width: 680px) {
  .features-grid {
    --feature-gap: 10px;
  }
  .feature {
    flex-basis: calc((100% - var(--feature-gap)) / 2);
    min-height: 136px;
    padding: 13px 12px 12px;
  }
  .feature::after {
    font-size: 18px;
    right: 12px;
    top: 12px;
  }
  .feature-tag {
    font-size: 8px;
    margin-bottom: 11px;
    padding: 2px 7px;
  }
  .feature h3 {
    font-size: 13px;
    margin-bottom: 8px;
  }
  .feature p {
    font-size: 11px;
    line-height: 1.34;
  }
  .features-grid:not(.is-expanded) .feature:nth-child(n+7) {
    display: none;
  }
  .feature-more {
    display: flex;
  }
}
@media (min-width: 681px) {
  .features-grid:not(.is-expanded) .feature:nth-child(n+7) {
    display: flex;
  }
}

/* Four-column feature grid keeps the 16 diagnostics symmetric. */
#what .container {
  max-width: 1520px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(218px, auto);
  gap: 12px;
  justify-content: initial;
}
.feature {
  min-height: 218px;
  height: 218px;
}
.feature h3,
.feature p {
  overflow-wrap: break-word;
}
.feature p {
  font-size: 12.5px;
  line-height: 1.42;
  max-width: 98%;
}
@media (max-width: 1180px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .features-grid {
    grid-auto-rows: minmax(190px, auto);
    gap: 10px;
  }
  .feature {
    min-height: 190px;
    height: auto;
  }
  .feature p {
    font-size: 10.6px;
    line-height: 1.34;
  }
}

/* ============================== PIPELINE ============================== */
.pipeline {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 12px;
}
.pipe-step {
  flex: 1 1 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px 20px;
}
.pipe-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}
.pipe-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pipe-step p {
  font-size: 12.5px;
  color: var(--text-dim);
}
.pipe-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}
@media (max-width: 1100px) {
  .pipeline { flex-direction: column; overflow-x: visible; }
  .pipe-arrow { transform: rotate(90deg); margin: 0 auto; }
}

/* ============================== SECURITY ============================== */
.sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sec-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}
.sec-deny {
  border-top: 2px solid rgba(248,113,113,.55);
  background: linear-gradient(155deg, rgba(248,113,113,.055) 0%, transparent 50%), var(--bg-card);
}
.sec-allow {
  border-top: 2px solid rgba(110,231,183,.55);
  background: linear-gradient(155deg, rgba(110,231,183,.055) 0%, transparent 50%), var(--bg-card);
}
.sec-redact {
  grid-column: 1 / -1;
  border-top: 2px solid rgba(92,184,255,.45);
  background: linear-gradient(155deg, rgba(92,184,255,.05) 0%, transparent 50%), var(--bg-card);
}
/* Card header — colored label with LED dot */
.sec-card h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin: 0;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-deny  h3 { color: var(--red); }
.sec-allow h3 { color: var(--green); }
.sec-redact h3 { color: var(--accent); }
.sec-card h3::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.sec-deny  h3::before { background: var(--red);    box-shadow: 0 0 5px rgba(248,113,113,.7); }
.sec-allow h3::before { background: var(--green);  box-shadow: 0 0 5px rgba(110,231,183,.7); }
.sec-redact h3::before { background: var(--accent); box-shadow: 0 0 5px rgba(92,184,255,.7); }
/* List */
.sec-card ul { list-style: none; padding: 10px 16px 14px; }
.sec-card li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.4;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.sec-card li:last-child { border-bottom: 0; }
.sec-deny li::before {
  content: '✕';
  position: absolute; left: 0; top: 6px;
  color: var(--red); font-size: 10px; font-weight: 700;
}
.sec-allow li::before {
  content: '✓';
  position: absolute; left: 0; top: 6px;
  color: var(--green); font-size: 10px; font-weight: 700;
}
/* Redact card body */
.sec-redact p {
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 12px 16px 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 16px;
}
.chip {
  background: rgba(92,184,255,.07);
  border: 1px solid rgba(92,184,255,.18);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--accent);
  font-family: inherit;
}
@media (max-width: 720px) {
  .sec-grid { grid-template-columns: 1fr; gap: 4px; }
  .sec-card { border-radius: 4px; }
  .sec-card h3 { font-size: 9px; padding: 6px 10px; letter-spacing: .5px; gap: 5px; }
  .sec-card h3::before { width: 4px; height: 4px; }
  .sec-card ul { padding: 4px 10px 6px; }
  .sec-card li { font-size: 10px; padding: 2px 0 2px 12px; line-height: 1.35; border-bottom: 0; }
  .sec-deny li::before, .sec-allow li::before { font-size: 8px; top: 3px; }
  .sec-redact p { font-size: 10px; padding: 6px 10px 0; line-height: 1.4; }
  .chips { padding: 4px 10px 8px; gap: 3px; }
  .chip { font-size: 9px; padding: 2px 6px; }
  .sec-deny, .sec-allow, .sec-redact { border-top-width: 1px; }
}

/* ============================== ROADMAP ============================== */

/* Progress bar */
.rm-progress-track {
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin-bottom: 32px;
  overflow: hidden;
}
.rm-progress-fill {
  position: absolute;
  inset: 0;
  width: var(--rm-pct, 0%);
  background: linear-gradient(90deg, var(--green), var(--accent), var(--amber));
  border-radius: 99px;
  transition: width .15s ease-out;
}
.rm-progress-label {
  position: absolute;
  right: 0;
  top: 10px;
  font-size: 10px;
  color: var(--text-off);
  letter-spacing: .5px;
}

/* Scroll container */
.roadmap-scroll {
  overflow-x: auto;
  padding-bottom: 12px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(92,184,255,.18) transparent;
}
.roadmap-scroll::-webkit-scrollbar { height: 4px; }
.roadmap-scroll::-webkit-scrollbar-thumb { background: rgba(92,184,255,.18); border-radius: 99px; }
.roadmap-scroll::-webkit-scrollbar-track { background: transparent; }

.roadmap {
  display: flex;
  gap: 16px;
  min-width: max-content;
  padding-bottom: 4px;
}
.roadmap::after {
  content: "";
  flex: 0 0 20px;
}

/* ---- Card ---- */
.rm-card {
  flex: 0 0 240px;
  position: relative;
  background: rgba(26,26,26,.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.rm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

/* Gradient top edge per status */
.rm-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: var(--border);
}
.rm-done::before    { background: linear-gradient(90deg, #34d399, #6ee7b7); }
.rm-active::before  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.rm-next::before    { background: linear-gradient(90deg, #3b82f6, #5cb8ff); }
.rm-planned::before { background: linear-gradient(90deg, #555, #666); }
.rm-future::before  { background: linear-gradient(90deg, #a855f7, #d8b4fe); }

/* Hover border glow */
.rm-done:hover    { border-color: rgba(110,231,183,.3); }
.rm-active:hover  { border-color: rgba(251,191,36,.3); }
.rm-next:hover    { border-color: rgba(92,184,255,.3); }
.rm-planned:hover { border-color: rgba(128,128,128,.3); }
.rm-future:hover  { border-color: rgba(168,85,247,.34); }

/* Phase number */
.rm-number {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,.04);
  letter-spacing: -2px;
  pointer-events: none;
  user-select: none;
}

/* Badge */
.rm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
  width: fit-content;
}
.rm-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rm-badge-done {
  color: var(--green);
  background: rgba(110,231,183,.08);
}
.rm-badge-done::before { background: var(--green); }
.rm-badge-active {
  color: var(--amber);
  background: rgba(251,191,36,.08);
}
.rm-badge-active::before {
  background: var(--amber);
  box-shadow: 0 0 6px rgba(251,191,36,.6);
  animation: rmPulse 2s ease-in-out infinite;
}
.rm-badge-next {
  color: var(--accent);
  background: rgba(92,184,255,.08);
}
.rm-badge-next::before { background: var(--accent); }
.rm-badge-planned {
  color: var(--text-off);
  background: rgba(128,128,128,.08);
}
.rm-badge-planned::before { background: var(--text-off); }
.rm-badge-future {
  color: #d8b4fe;
  background: rgba(168,85,247,.10);
}
.rm-badge-future::before { background: #c084fc; }

@keyframes rmPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* Title */
.rm-card h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
}

/* List */
.rm-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.rm-card li {
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.45;
}
.rm-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 1px;
}
.rm-done li::before    { background: var(--green); opacity: .5; }
.rm-active li::before  { background: var(--amber); opacity: .5; }
.rm-next li::before    { background: var(--accent); opacity: .4; }
.rm-planned li::before { background: var(--text-off); opacity: .3; }
.rm-future li::before  { background: #c084fc; opacity: .42; }

/* Subtle corner glow per card */
.rm-glow {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0;
  transition: opacity .35s;
}
.rm-card:hover .rm-glow { opacity: 1; }
.rm-done .rm-glow    { background: rgba(110,231,183,.12); }
.rm-active .rm-glow  { background: rgba(251,191,36,.10); }
.rm-next .rm-glow    { background: rgba(92,184,255,.10); }
.rm-planned .rm-glow { background: rgba(128,128,128,.06); }
.rm-future .rm-glow  { background: rgba(168,85,247,.12); }

/* Hint */
.rm-hint {
  text-align: center;
  margin-top: 20px;
  color: var(--text-off);
  font-size: 11px;
  letter-spacing: .5px;
}

/* ---- Mobile tweaks ---- */
@media (max-width: 720px) {
  .rm-card {
    flex: 0 0 200px;
    padding: 20px 16px 16px;
    border-radius: 10px;
  }
  .rm-card h3 { font-size: 12.5px; }
  .rm-card li { font-size: 10.5px; padding: 3px 0 3px 14px; }
  .rm-number { font-size: 28px; top: 12px; right: 12px; }
  .rm-badge { font-size: 8px; padding: 2px 8px; }
  .rm-progress-label { font-size: 9px; }
  .roadmap { gap: 10px; }
  .roadmap::after { flex: 0 0 10px; }
}

/* ============================== TECH ============================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tech-grid { grid-template-columns: 1fr; }
}
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
}
.tech-card h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.tech-card p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ============================== FAQ ============================== */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 22px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s;
}
.faq details:hover { border-color: var(--accent-edge); }
.faq summary {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  margin-left: 12px;
  transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { margin-bottom: 12px; }
.faq p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================== FOOTER ============================== */
.footer {
  background: var(--bg-soft);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-grid a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0;
}
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-off);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================== HERO SPLIT + TOPOLOGY MOCK ============================== */
.hero { padding: 90px 0 80px; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  text-align: left;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { font-size: clamp(34px, 4.6vw, 60px); }
.hero-copy .lead { margin: 0 0 28px; max-width: 560px; }
.hero-copy .hero-cta { margin-bottom: 36px; justify-content: flex-start; }
.hero-copy .hero-stats {
  grid-template-columns: repeat(4, 1fr);
  max-width: none;
}
.hero-copy .stat { padding: 18px 10px; }
.hero-copy .stat-num { font-size: 26px; }

@media (max-width: 1100px) {
  .hero-split { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy .hero-cta { justify-content: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
}

/* --- Topology frame (used in hero + dedicated section) --- */
.topo-frame {
  background: #0a0e14;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(92,184,255,.05) inset;
}
.topo-frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: #0d1219;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.topo-frame-title {
  margin-left: 10px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: .4px;
}
.topo-frame-meta {
  margin-left: auto;
  font-size: 10px;
  color: var(--accent);
  background: rgba(92,184,255,.08);
  border: 1px solid rgba(92,184,255,.25);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.topo-svg { display: block; width: 100%; height: auto; }
.topo-svg-lg { min-height: 460px; }
.topo-frame-foot {
  display: flex; gap: 14px; align-items: center;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--text-off);
  background: #0a0e14;
  flex-wrap: wrap;
}
.swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: middle; }
.sw-core { background: #ff6b35; }
.sw-dist { background: #ffd60a; }
.sw-acc  { background: #5cb8ff; }
.sw-end  { background: #6c7a89; }
.frame-foot-right { margin-left: auto; opacity: .7; }

/* --- SVG node styling --- */
.n-rect { stroke-width: 1; }
.n-internet-rect { fill: rgba(255,255,255,.04); stroke: #4a5568; }
.n-fw-rect      { fill: rgba(255,107,53,.10); stroke: #ff6b35; }
.n-core-rect    { fill: rgba(255,107,53,.10); stroke: #ff6b35; }
.n-dist-rect    { fill: rgba(255,214,10,.08); stroke: #ffd60a; }
.n-acc-rect     { fill: rgba(92,184,255,.08); stroke: #5cb8ff; }
.n-end-rect     { fill: rgba(108,122,137,.10); stroke: #6c7a89; }

.n-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; fill: #f5f5f5; text-anchor: middle; }
.n-sub   { font-family: 'JetBrains Mono', monospace; font-size: 8px;  fill: #8a96a6;   text-anchor: middle; }
.n-end-label { font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 600; fill: #cfd6df; text-anchor: middle; }
.cluster-sub { fill: #5cb8ff; }

.tag-rect { fill: rgba(255,69,58,.12); stroke: #ff453a; stroke-width: 1; }
.tag-text { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; font-weight: 700; fill: #ff453a; text-anchor: middle; }

/* --- Animations: pulse along 3 links + cluster expand/collapse --- */
@keyframes pulseLink {
  0%   { stroke-dashoffset: 0;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: -260; opacity: 0; }
}
.pulse {
  stroke-dasharray: 18 240;
  animation: pulseLink 2.6s linear infinite;
  filter: url(#glow);
}
.pulse.p1 { animation-delay: 0s; }
.pulse.p2 { animation-delay: .55s; }
.pulse.p3 { animation-delay: 1.1s; }
.pulse.p4 { animation-delay: .15s; }
.pulse.p5 { animation-delay: .85s; }
.pulse.p6 { animation-delay: 1.4s; }

@keyframes nodeBlink {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50%      { filter: drop-shadow(0 0 6px rgba(92,184,255,.55)); }
}
.blink rect { animation: nodeBlink 2.8s ease-in-out infinite; }

/* cluster expand/collapse on the access switch + endpoint group */
@keyframes clusterFade {
  0%   { opacity: 0; transform: translateY(-6px) scale(.96); }
  18%  { opacity: 1; transform: translateY(0)   scale(1); }
  82%  { opacity: 1; transform: translateY(0)   scale(1); }
  100% { opacity: 0; transform: translateY(-6px) scale(.96); }
}
.endpoints {
  transform-origin: 320px 410px;
  animation: clusterFade 6s ease-in-out infinite;
}
@keyframes clusterPulse {
  0%, 100% { stroke: #5cb8ff; }
  50%      { stroke: #5cb8ff; filter: drop-shadow(0 0 6px rgba(92,184,255,.7)); }
}
.cluster .n-acc-rect { animation: clusterPulse 6s ease-in-out infinite; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pulse, .blink rect, .endpoints, .cluster .n-acc-rect { animation: none; }
}

/* ============================== TOPOLOGY DEDICATED SECTION ============================== */
.topo-feature {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}
.topo-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; max-width: 820px; margin: 0 auto; }
.topo-tick {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  background: rgba(92,184,255,.08);
  border: 1px solid rgba(92,184,255,.3);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}
.topo-points h4 { font-size: 11.5px; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.topo-points p  { font-size: 10.5px; color: var(--text-dim); line-height: 1.4; }
.section-sub { color: var(--text-dim); font-size: 14px; max-width: 700px; margin: 16px auto 0; }

@media (max-width: 1000px) {
  .topo-feature { gap: 24px; }
}
@media (max-width: 640px) {
  .topo-points h4 { font-size: 10px; }
  .topo-points p  { font-size: 9.5px; }
  .tp-icon, .topo-tick { width: 22px; height: 22px; font-size: 8.5px; }
}

/* ============================== FOOTER CREDIT ============================== */
.footer-credit { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.credit-sep { opacity: .35; }
.credit { opacity: .9; }
.credit .accent { font-weight: 600; }


/* ============================== HERO CINEMATIC MAP -> TOPOLOGY ============================== */

/* Stage holds two stacked layers (map + topology) and crossfades them */
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 540;
  perspective: 1400px;
}
.hero-map-layer,
.hero-topo-layer {
  position: absolute;
  inset: 0;
  transform-origin: 60% 52%;
  will-change: transform, opacity, filter;
}

/* === Map intro: visible at start, then zooms into the focused pin and fades === */
.hero-map-layer {
  opacity: 1;
  transform: scale(1);
  animation: mapZoom 4.4s cubic-bezier(.6,.05,.25,1) 0.4s forwards;
}
@keyframes mapZoom {
  0%   { opacity: 1; transform: scale(1)    translate3d(0,0,0); filter: blur(0); }
  55%  { opacity: 1; transform: scale(1.6)  translate3d(-8%,-2%,0); filter: blur(0); }
  88%  { opacity: 0.35; transform: scale(3.4) translate3d(-14%,-3%,0); filter: blur(2px); }
  100% { opacity: 0;    transform: scale(4.6) translate3d(-16%,-3%,0); filter: blur(8px); pointer-events: none; }
}

/* === Topology layer: hidden, scales in from a tiny dot to fill === */
.hero-topo-layer {
  opacity: 0;
  transform: scale(0.18);
  filter: blur(4px);
  animation: topoEmerge 2.4s cubic-bezier(.2,.7,.2,1) 2.6s forwards;
}
@keyframes topoEmerge {
  0%   { opacity: 0;   transform: scale(0.18); filter: blur(6px); }
  35%  { opacity: 0.55; transform: scale(0.55); filter: blur(3px); }
  100% { opacity: 1;   transform: scale(1);    filter: blur(0); }
}

/* === Map canvas (inside frame) === */
.map-canvas {
  position: relative;
  width: 100%;
  background: #06101e;
  overflow: hidden;
}
.map-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 460;
}

/* === Site pin styling (matches platform: blue ring + pulse + JetBrains Mono number) === */
.sites .site .ring {
  fill: rgba(13, 32, 68, 0.9);
  stroke: rgba(59, 130, 246, 0.6);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.35));
}
.sites .site .dot {
  fill: rgba(59, 130, 246, 0.25);
  transform-origin: center;
  animation: sitePulse 2.5s ease-in-out infinite;
}
.sites .site .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  fill: #93c5fd;
  text-anchor: middle;
}
.sites .site .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 600;
  fill: #5b7a99;
  text-anchor: middle;
  letter-spacing: 0.4px;
}
@keyframes sitePulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0.4; }
}

/* Focus reticle (drawn around the target pin, expands then fades) */
.focus-reticle .reticle-out,
.focus-reticle .reticle-mid {
  fill: none;
  stroke: #5cb8ff;
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: reticleFire 2s ease-out 1.6s forwards;
}
.focus-reticle .reticle-mid { animation-delay: 1.8s; stroke: #93c5fd; }
@keyframes reticleFire {
  0%   { opacity: 0; transform: scale(0.4) rotate(0deg); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.8) rotate(120deg); }
}

/* Continents glow softly */
.continents { filter: drop-shadow(0 0 14px rgba(92, 184, 255, 0.06)); }

/* The hero-topo-layer reuses .topo-frame already styled earlier */

/* Reduce motion: skip the cinematic, just show topology */
@media (prefers-reduced-motion: reduce) {
  .hero-map-layer  { animation: none; opacity: 0; pointer-events: none; }
  .hero-topo-layer { animation: none; opacity: 1; transform: none; filter: none; }
  .sites .site .dot, .focus-reticle * { animation: none; }
}

/* On small screens collapse the perspective and reduce stage height */
@media (max-width: 1100px) {
  .hero-stage { aspect-ratio: 640 / 460; max-width: 640px; margin: 0 auto; }
}

/* === Hero v2 overrides (legacy hero-topo / topo-frame / n-rect rules now unused) === */
.hero-topo { display: none !important; }
