/* =========================================================
   PROJECT DARKPOE — Shared Stylesheet
   ========================================================= */

:root {
  --bg-void:       #03060d;
  --bg-deep:       #060a16;
  --bg-panel:      #0a1124;
  --bg-elevated:   #0e1830;
  --line:          #142149;
  --line-bright:   #1f3270;

  --ink:           #e7ecf5;
  --ink-dim:       #8a98b8;
  --ink-mute:      #4f5e80;

  --poe:           #00e5ff;
  --poe-soft:      #00e5ff33;
  --poe-glow:      #00e5ff80;
  --neon:          #ff2d6f;
  --neon-soft:     #ff2d6f22;
  --amber:         #ffb547;

  --font-display:  "Space Grotesk", system-ui, sans-serif;
  --font-body:     "Manrope", system-ui, sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-void);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.012) 0px,
      rgba(255,255,255,0.012) 1px,
      transparent 1px,
      transparent 3px
    );
  z-index: 100;
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  z-index: 99;
}

::selection { background: var(--poe); color: var(--bg-void); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
}

/* ---------- TOP STATUS BAR ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(3, 6, 13, 0.72);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
}
.topbar-left { display: flex; align-items: center; gap: 14px; color: var(--ink-dim); }
.topbar-right { display: flex; align-items: center; gap: 22px; color: var(--ink-dim); }
.topbar a { transition: color 0.15s ease; }
.topbar a:hover, .topbar a.active { color: var(--poe); }

.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--poe);
  box-shadow: 0 0 12px var(--poe-glow);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}

@media (max-width: 720px) {
  .topbar-right .nav-link { display: none; }
  .topbar-right .nav-link.engage { display: inline; }
  .topbar-inner { padding: 12px 20px; }
}

/* ---------- HERO (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: 20%; left: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.10), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(8vw, -4vw); }
}

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 64px; width: 100%; position: relative; z-index: 2; }
.hero-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 36px;
  opacity: 0; animation: rise 0.7s ease forwards; animation-delay: 0.1s;
}
.hero-meta .bar { width: 40px; height: 1px; background: var(--poe); box-shadow: 0 0 8px var(--poe-glow); }
.hero-meta .blink {
  display: inline-block; width: 8px; height: 16px;
  background: var(--poe); margin-left: 4px;
  animation: blink 1s steps(2) infinite;
  vertical-align: -3px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
  opacity: 0; animation: rise 0.9s ease forwards; animation-delay: 0.25s;
}
.hero h1 .line { display: block; }
.hero h1 .glitch { position: relative; display: inline-block; color: var(--ink); }
.hero h1 .glitch::before, .hero h1 .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; width: 100%; pointer-events: none;
}
.hero h1 .glitch::before {
  color: var(--poe); transform: translate(-2px, 0);
  mix-blend-mode: screen;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitch-a 4s infinite steps(1);
}
.hero h1 .glitch::after {
  color: var(--neon); transform: translate(2px, 0);
  mix-blend-mode: screen;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: glitch-b 4s infinite steps(1);
}
@keyframes glitch-a {
  0%, 92%, 100% { transform: translate(-1px, 0); opacity: 0.85; }
  93% { transform: translate(-4px, 1px); opacity: 1; }
  94% { transform: translate(2px, -1px); opacity: 1; }
  96% { transform: translate(-3px, 0); opacity: 1; }
}
@keyframes glitch-b {
  0%, 90%, 100% { transform: translate(1px, 0); opacity: 0.85; }
  91% { transform: translate(3px, -1px); opacity: 1; }
  93% { transform: translate(-2px, 1px); opacity: 1; }
  95% { transform: translate(4px, 0); opacity: 1; }
}

.hero p.lede {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--ink-dim);
  max-width: 640px;
  line-height: 1.55;
  margin: 0 0 48px;
  opacity: 0; animation: rise 0.9s ease forwards; animation-delay: 0.45s;
}
.hero p.lede em { color: var(--poe); font-style: normal; }

.cta-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: rise 0.9s ease forwards; animation-delay: 0.6s;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 18px 26px;
  border: 1px solid var(--poe); color: var(--bg-void); background: var(--poe);
  transition: all 0.2s ease;
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn:hover {
  background: transparent; color: var(--poe);
  box-shadow: 0 0 24px var(--poe-soft), inset 0 0 24px var(--poe-soft);
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-bright); }
.btn.ghost:hover { color: var(--poe); border-color: var(--poe); box-shadow: none; }

/* hero vitals */
.hero-vitals {
  margin-top: 80px;
  border: 1px solid var(--line);
  background: rgba(10, 17, 36, 0.5);
  backdrop-filter: blur(8px);
  padding: 24px 28px;
  max-width: 720px;
  opacity: 0; animation: rise 0.9s ease forwards; animation-delay: 0.8s;
  position: relative;
}
.hero-vitals::before { content: ""; position: absolute; top: -1px; left: -1px; width: 16px; height: 16px; border-top: 1px solid var(--poe); border-left: 1px solid var(--poe); }
.hero-vitals::after  { content: ""; position: absolute; bottom: -1px; right: -1px; width: 16px; height: 16px; border-bottom: 1px solid var(--poe); border-right: 1px solid var(--poe); }
.vitals-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
}
.vital-label { color: var(--ink-mute); margin-bottom: 6px; }
.vital-value { color: var(--poe); font-size: 15px; }
@media (max-width: 600px) { .vitals-grid { grid-template-columns: 1fr; gap: 14px; } }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Section foundation ---------- */
section { padding: 120px 0; position: relative; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--poe);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.section-tag .num { color: var(--ink-mute); }
.section-tag .bar { width: 32px; height: 1px; background: var(--poe); box-shadow: 0 0 6px var(--poe-glow); }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}
.section-lede {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 640px;
  line-height: 1.6;
  margin: 0 0 64px;
}

/* ---------- Page hero (used by sub-pages) ---------- */
.page-hero {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% 30%, rgba(0,229,255,0.06), transparent 55%),
    var(--bg-void);
  position: relative;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
}
.page-hero p {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--ink-dim);
  max-width: 720px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- MANIFESTO strip ---------- */
.manifesto {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.02), transparent);
}
.manifesto-grid { display: grid; grid-template-columns: 0.8fr 2fr; gap: 80px; align-items: start; }
@media (max-width: 900px) { .manifesto-grid { grid-template-columns: 1fr; gap: 32px; } }
.manifesto .label {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute);
}
.manifesto blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.manifesto blockquote span.hi { color: var(--poe); font-weight: 400; }
.manifesto .source {
  margin-top: 32px;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute);
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--bg-deep);
  padding: 36px 30px;
  transition: background 0.25s ease;
  position: relative;
}
.service-card:hover { background: var(--bg-panel); }
.service-card .icon {
  width: 48px; height: 48px;
  margin-bottom: 28px;
  color: var(--poe);
  filter: drop-shadow(0 0 6px var(--poe-soft));
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.service-card p { font-size: 14px; color: var(--ink-dim); line-height: 1.6; margin: 0; }
.service-card .num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.1em;
}
.service-card ul.bullets {
  list-style: none; padding: 0; margin: 16px 0 0;
}
.service-card ul.bullets li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  padding: 4px 0 4px 14px;
  position: relative;
  letter-spacing: 0.04em;
}
.service-card ul.bullets li::before {
  content: "›"; position: absolute; left: 0; color: var(--poe);
}

/* ---------- PRICING / TIERS ---------- */
.pricing { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 36px 32px 32px;
  position: relative;
  transition: all 0.25s ease;
}
.tier:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.tier.featured {
  border-color: var(--poe);
  background: linear-gradient(180deg, rgba(0,229,255,0.04), var(--bg-panel) 60%);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.08);
}
.tier .stripe {
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px; background: var(--poe);
  box-shadow: 0 0 14px var(--poe-glow);
  display: none;
}
.tier.featured .stripe { display: block; }
.tier .tier-tag {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 8px;
}
.tier.featured .tier-tag { color: var(--poe); }
.tier h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 32px; letter-spacing: -0.02em; margin: 0 0 16px;
}
.tier .desc { font-size: 14px; color: var(--ink-dim); margin: 0 0 28px; line-height: 1.55; min-height: 44px; }
.tier .price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.tier .price .currency { font-family: var(--font-mono); font-size: 14px; color: var(--ink-dim); }
.tier .price .amount { font-family: var(--font-display); font-weight: 600; font-size: 44px; letter-spacing: -0.02em; }
.tier .price .unit { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.tier .timing { font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 28px; }
.tier hr { border: none; border-top: 1px solid var(--line); margin: 0 0 24px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 32px; }
.tier ul li {
  font-size: 14px; color: var(--ink);
  padding: 10px 0 10px 26px; position: relative;
  border-bottom: 1px solid var(--line); line-height: 1.4;
}
.tier ul li:last-child { border-bottom: none; }
.tier ul li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 12px; height: 1px; background: var(--poe);
}
.tier .pick {
  width: 100%; background: transparent;
  border: 1px solid var(--line-bright); color: var(--ink);
  padding: 16px;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: all 0.2s ease;
}
.tier .pick:hover { border-color: var(--poe); color: var(--poe); box-shadow: 0 0 18px var(--poe-soft); }
.tier.featured .pick { background: var(--poe); color: var(--bg-void); border-color: var(--poe); }
.tier.featured .pick:hover { background: transparent; color: var(--poe); }

.founders-note {
  margin-top: 48px;
  padding: 22px 28px;
  border: 1px dashed var(--neon);
  background: var(--neon-soft);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.founders-note .badge {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--neon);
  padding: 4px 10px; border: 1px solid var(--neon);
}
.founders-note p { margin: 0; font-size: 14px; color: var(--ink); }
.founders-note strong { color: var(--neon); font-weight: 600; }

/* ---------- COMPARISON TABLE ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: 14px;
  margin-top: 32px;
}
.compare th, .compare td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.compare th:last-child, .compare td:last-child { border-right: none; }
.compare thead th {
  background: var(--bg-panel);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.compare thead th.featured-col { color: var(--poe); }
.compare tbody td:first-child {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.compare tbody td .yes { color: var(--poe); }
.compare tbody td .no { color: var(--ink-mute); }
@media (max-width: 720px) {
  .compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tr { border: 1px solid var(--line); margin-bottom: 12px; }
  .compare td { border: none; border-bottom: 1px solid var(--line); }
  .compare td:first-child { background: var(--bg-panel); color: var(--poe); }
}

/* ---------- PROCESS / DEPLOYMENT ---------- */
.protocol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .protocol { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .protocol { grid-template-columns: 1fr; } }
.step {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 28px 40px;
  position: relative;
}
.protocol > .step:last-child { border-right: none; }
@media (max-width: 900px) { .step:nth-child(2n) { border-right: none; } }
@media (max-width: 600px) { .step { border-right: none; } }
.step .marker { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.step .marker .dot { width: 8px; height: 8px; background: var(--poe); box-shadow: 0 0 8px var(--poe-glow); }
.step .marker .code { font-family: var(--font-mono); font-size: 13px; color: var(--poe); letter-spacing: 0.18em; }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0 0 12px; letter-spacing: -0.01em; }
.step p { font-size: 14px; color: var(--ink-dim); line-height: 1.6; margin: 0; }
.step .terminal {
  margin-top: 20px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-mute); letter-spacing: 0.05em;
}
.step .terminal::before { content: "› "; color: var(--poe); }

/* expanded protocol step (process page) */
.step-expanded {
  border-bottom: 1px solid var(--line);
  padding: 60px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 800px) { .step-expanded { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; } }
.step-expanded .num-block {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 88px;
  line-height: 1;
  color: var(--poe);
  text-shadow: 0 0 24px var(--poe-soft);
  letter-spacing: -0.04em;
}
.step-expanded .num-block .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin-top: 8px;
  text-shadow: none;
}
.step-expanded h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.step-expanded > div > p {
  font-size: 16px;
  color: var(--ink-dim);
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 680px;
}
.step-expanded ul.deliverables {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
@media (max-width: 600px) { .step-expanded ul.deliverables { grid-template-columns: 1fr; } }
.step-expanded ul.deliverables li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  padding: 8px 0 8px 18px;
  position: relative;
  letter-spacing: 0.02em;
}
.step-expanded ul.deliverables li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--poe);
}

/* ---------- OPERATOR ---------- */
.operator {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0,229,255,0.06), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,45,111,0.04), transparent 60%);
}
.operator-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .operator-grid { grid-template-columns: 1fr; gap: 48px; } }
.operator-quote p { font-size: 17px; color: var(--ink-dim); line-height: 1.7; margin: 0 0 20px; }
.operator-quote p strong { color: var(--ink); font-weight: 600; }

.stack-vis {
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin-left: auto;
  position: relative;
  display: grid; place-items: center;
}
.stack-vis .ring {
  position: absolute;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
}
.stack-vis .ring-1 { inset: 0;   animation: spin 30s linear infinite; }
.stack-vis .ring-2 { inset: 12%; animation: spin 22s linear infinite reverse; border-color: var(--poe-soft); }
.stack-vis .ring-3 { inset: 26%; animation: spin 14s linear infinite; border-style: dashed; }
.stack-vis .core {
  position: absolute;
  inset: 38%;
  background: radial-gradient(circle, var(--poe), transparent 70%);
  filter: blur(8px);
  border-radius: 50%;
}
.stack-vis .core::after {
  content: ""; position: absolute; inset: 30%;
  background: var(--poe); border-radius: 50%;
  box-shadow: 0 0 28px var(--poe-glow);
}
.stack-vis .ring::before {
  content: ""; position: absolute;
  width: 6px; height: 6px;
  background: var(--poe); border-radius: 50%;
  box-shadow: 0 0 10px var(--poe-glow);
  top: -3px; left: 50%; transform: translateX(-50%);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- TENETS / DOCTRINE GRID ---------- */
.tenets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 64px;
}
@media (max-width: 720px) { .tenets { grid-template-columns: 1fr; } }
.tenet {
  background: var(--bg-deep);
  padding: 36px 32px;
}
.tenet .num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--poe);
  margin-bottom: 14px;
}
.tenet h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.tenet p {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.65;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 32px; }
.faq-item { background: var(--bg-deep); padding: 28px 32px; }
.faq-item h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq-item p { margin: 0; color: var(--ink-dim); font-size: 15px; line-height: 1.65; }
.faq-item h4::before {
  content: "Q. ";
  color: var(--poe);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ---------- CONTACT ---------- */
.contact { background: var(--bg-deep); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-form {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 40px;
  position: relative;
}
.contact-form::before { content: ""; position: absolute; top: -1px; left: -1px; width: 14px; height: 14px; border-top: 1px solid var(--poe); border-left: 1px solid var(--poe); }
.contact-form::after  { content: ""; position: absolute; bottom: -1px; right: -1px; width: 14px; height: 14px; border-bottom: 1px solid var(--poe); border-right: 1px solid var(--poe); }
.contact-form label {
  display: block;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 10px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  background: var(--bg-void);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  font-family: var(--font-mono); font-size: 13px;
  margin-bottom: 22px;
  transition: border-color 0.2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--poe);
  box-shadow: 0 0 0 3px var(--poe-soft);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .submit {
  width: 100%;
  background: var(--poe);
  color: var(--bg-void);
  border: none;
  padding: 16px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  transition: all 0.2s ease;
}
.contact-form .submit:hover {
  background: transparent;
  color: var(--poe);
  box-shadow: 0 0 0 1px var(--poe), 0 0 24px var(--poe-soft);
}
.contact-side h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.contact-side > p { font-size: 16px; color: var(--ink-dim); line-height: 1.65; margin: 0 0 36px; }
.contact-channels { display: grid; gap: 14px; font-family: var(--font-mono); font-size: 12px; }
.channel { display: flex; justify-content: space-between; padding: 14px 18px; border: 1px solid var(--line); background: var(--bg-panel); }
.channel .k { color: var(--ink-mute); letter-spacing: 0.14em; text-transform: uppercase; }
.channel .v { color: var(--poe); }

/* ---------- CTA STRIP ---------- */
.cta-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(0,229,255,0.03), transparent);
  text-align: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip .row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.footer-mark span { color: var(--poe); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.8;
}
.footer-meta .quote {
  margin-top: 24px;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  max-width: 360px;
}
.footer-meta .quote::before { content: "// "; color: var(--poe); }

.footer-nav {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 28px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.footer-nav a:hover { color: var(--poe); }

/* ---------- LEGAL PAGES (terms / privacy) ---------- */
.legal-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.legal-block > h2,
.legal-block > p {
  grid-column: 2;
}
.legal-block:last-child { border-bottom: none; }
@media (max-width: 720px) {
  .legal-block { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .legal-block > h2,
  .legal-block > p { grid-column: 1; }
}
.legal-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  color: var(--poe);
  text-shadow: 0 0 18px var(--poe-soft);
  letter-spacing: -0.02em;
}
.legal-block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
}
.legal-block p {
  font-size: 16px;
  color: var(--ink-dim);
  line-height: 1.7;
  margin: 0 0 14px;
}
.legal-block p:last-child { margin-bottom: 0; }
.legal-block p em {
  color: var(--ink);
  font-style: italic;
}

/* ---------- STICKY ENGAGE CTA ---------- */
.sticky-engage {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  background: var(--poe);
  color: var(--bg-void);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--poe);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 24px var(--poe-soft);
  transition: all 0.2s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  animation: stickyRise 0.5s ease forwards;
  animation-delay: 1.5s;
}
.sticky-engage.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-engage:hover {
  background: var(--bg-void);
  color: var(--poe);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 32px var(--poe-glow);
}
.sticky-engage .pulse-dot {
  width: 7px; height: 7px;
  background: var(--bg-void);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}
.sticky-engage:hover .pulse-dot {
  background: var(--poe);
  box-shadow: 0 0 8px var(--poe-glow);
}
@keyframes stickyRise {
  to { opacity: 1; transform: translateY(0); pointer-events: auto; }
}
@media (max-width: 720px) {
  .sticky-engage {
    bottom: 16px; right: 16px;
    font-size: 11px;
    padding: 12px 18px;
  }
}

/* ---------- ENGAGE FORM SECTIONS ---------- */
.form-section {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
  padding-bottom: 0;
}
.form-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.form-section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--poe);
  letter-spacing: 0.18em;
}
.form-section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.form-section-bar {
  flex: 1;
  height: 1px;
  background: var(--line-bright);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- LIVE PRICING CALCULATOR ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; gap: 24px; }
}

.calc-inputs, .calc-output {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 36px 32px;
  position: relative;
}
.calc-output {
  border-color: var(--poe-soft);
  background: linear-gradient(180deg, rgba(0,229,255,0.04), var(--bg-panel) 60%);
}
.calc-output::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: var(--poe);
  box-shadow: 0 0 14px var(--poe-glow);
}

.calc-section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
}

.calc-inputs label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 10px;
  margin-top: 22px;
}
.calc-inputs label:first-of-type { margin-top: 0; }

.calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.calc-prefix {
  position: absolute;
  left: 14px;
  font-family: var(--font-mono);
  color: var(--ink-mute);
  font-size: 14px;
}
.calc-inputs input[type="number"],
.calc-inputs input[type="text"] {
  width: 100%;
  background: var(--bg-void);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color 0.2s ease;
  margin-bottom: 6px;
}
.calc-inputs input[type="number"]:focus,
.calc-inputs input[type="text"]:focus {
  outline: none;
  border-color: var(--poe);
  box-shadow: 0 0 0 3px var(--poe-soft);
}
#calc-budget { padding-left: 28px; }

.calc-hint {
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 4px 0 0;
}

.calc-place-results {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line-bright);
  margin-bottom: 14px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 5;
}
.calc-place-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.calc-place-item:hover, .calc-place-item:focus {
  background: var(--bg-panel);
  outline: none;
}
.calc-place-item:last-child { border-bottom: none; }
.calc-place-name {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}
.calc-place-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--poe);
  letter-spacing: 0.04em;
}

.calc-empty {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  padding: 80px 0;
  text-align: center;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.calc-row-build { padding: 4px 0 22px; border-bottom: 1px solid var(--line-bright); }
.calc-row-total { padding: 22px 0 6px; border-bottom: none; }

.calc-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.calc-sublabel {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-top: 4px;
  line-height: 1.4;
  max-width: 220px;
}
.calc-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  color: var(--poe);
  line-height: 1;
  text-shadow: 0 0 18px var(--poe-soft);
}
.calc-value-secondary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.calc-value-total {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.calc-includes {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.calc-includes-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--poe);
  margin-bottom: 16px;
}
.calc-includes ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.calc-includes li {
  font-size: 14px;
  color: var(--ink);
  padding: 7px 0 7px 18px;
  position: relative;
  line-height: 1.5;
}
.calc-includes li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--poe);
}

.calc-disclaimer {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- FIELD MANUAL HOME PROMO ---------- */
@media (max-width: 800px) {
  .fm-promo-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* ---------- NETWORK SYNC SECTION ---------- */
.netsync-diagram {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.netsync-node {
  background: var(--bg-panel);
  border: 1px solid var(--line-bright);
  padding: 28px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  text-align: center;
}
.netsync-state {
  border-color: var(--poe);
  background: linear-gradient(180deg, rgba(0,229,255,0.06), var(--bg-panel) 60%);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.12);
}
.netsync-state::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: var(--poe);
  box-shadow: 0 0 14px var(--poe-glow);
}
.netsync-down {
  flex: 1;
  max-width: none;
}

.netsync-node-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--poe);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.netsync-node-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.netsync-node-desc {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
  font-style: italic;
}

.netsync-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 6px;
}
.netsync-arrow {
  width: 1px;
  height: 18px;
  background: linear-gradient(to bottom, var(--poe), transparent);
}
.netsync-arrow:nth-child(3) {
  background: linear-gradient(to bottom, transparent, var(--poe));
}
.netsync-arrow-pulse {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--poe);
  text-shadow: 0 0 8px var(--poe-glow);
  padding: 6px 14px;
  border: 1px solid var(--poe);
  background: var(--bg-deep);
  animation: pulse 1.6s ease-in-out infinite;
}

.netsync-downstream {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .netsync-downstream { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .netsync-usecase-grid { grid-template-columns: 1fr !important; }
}

/* ---------- DUAL SPECIALTY PROMO CARDS (home) ---------- */
.promo-card { transition: all 0.25s ease; }
.promo-card:hover {
  border-color: var(--poe) !important;
  background: var(--bg-elevated) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.08);
}
@media (max-width: 800px) {
  .dual-promo-grid { grid-template-columns: 1fr !important; }
}

/* ---------- ALLIED PROGRAM FLAGSHIP PROMO (home) ---------- */
@media (max-width: 900px) {
  .allied-promo-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}
@media (max-width: 800px) {
  .fm-secondary-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
}

/* ---------- FIT CHECK GRID ---------- */
@media (max-width: 720px) {
  .fit-grid { grid-template-columns: 1fr !important; }
}
