:root {
  --bg: #07080c;
  --bg-2: #0b0d13;
  --panel: #10131b;
  --panel-2: #161a24;
  --line: rgba(232, 236, 244, 0.09);
  --line-strong: rgba(232, 236, 244, 0.16);
  --text: #eef1f6;
  --muted: #8b93a5;
  --dim: #5c6474;
  --accent: #3dffc8;
  --accent-dim: rgba(61, 255, 200, 0.14);
  --internal: #6ea8ff;
  --untrusted: #ff8a4c;
  --drop: #ff5d73;
  --vxlan: #c4b5fd;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --header: 64px;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Syne", "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(61, 255, 200, 0.06), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(110, 168, 255, 0.05), transparent 50%);
}

::selection {
  background: var(--accent);
  color: #04140f;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--accent);
  color: #04140f;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-mark {
  color: var(--accent);
}

.brand-word {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.brand-word span {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  color: #04140f !important;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.nav-cta:hover {
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: fixed;
  top: var(--header);
  left: 0;
  right: 0;
  z-index: 9;
  padding: 8px 20px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(16px);
}

.mobile-nav a {
  padding: 12px 8px;
  color: var(--text);
}

.hero {
  padding: 20px clamp(20px, 4vw, 40px) 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-copy {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  flex: 0 0 auto;
}

.hero-copy h1 {
  max-width: none;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(61, 255, 200, 0.7);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #04140f;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.stage-wrap {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  height: min(64vh, 680px);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0e121b, #0a0c12);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stage-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.chrome-left,
.chrome-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.chrome-stats em {
  font-style: normal;
  color: var(--text);
  margin-right: 4px;
}

.pill {
  border: 1px solid var(--line-strong);
  padding: 4px 8px;
  border-radius: 999px;
}

.pill-live {
  color: var(--accent);
  border-color: rgba(61, 255, 200, 0.35);
  background: var(--accent-dim);
}

.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
}

.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.node[data-node="ids0"] {
  --x: 26%;
  --y: 26%;
}

.node[data-node="ids1"] {
  --x: 50%;
  --y: 15%;
}

.node[data-node="ids2"] {
  --x: 74%;
  --y: 26%;
}

.node[data-node="internal"] {
  --x: 11%;
  --y: 68%;
}

.node[data-node="tapgw"] {
  --x: 50%;
  --y: 66%;
}

.node[data-node="untrusted"] {
  --x: 89%;
  --y: 68%;
}

.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 2;
  min-width: 128px;
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.node strong {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.node-kicker,
.node-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.node-kicker {
  margin-bottom: 4px;
  color: var(--dim);
}

.node-sub {
  margin-top: 4px;
}

.node-ids {
  min-width: 118px;
  border-color: rgba(196, 181, 253, 0.35);
}

.node-ids .node-kicker {
  color: var(--vxlan);
}

.node-internal {
  border-color: rgba(110, 168, 255, 0.4);
}

.node-internal .node-kicker {
  color: var(--internal);
}

.node-untrusted {
  border-color: rgba(255, 138, 76, 0.4);
}

.node-untrusted .node-kicker {
  color: var(--untrusted);
}

.node-tapgw {
  min-width: 196px;
  padding: 12px 14px 12px;
  background: linear-gradient(180deg, #171c28, #10141d);
  border-color: rgba(61, 255, 200, 0.45);
  box-shadow:
    0 0 0 1px rgba(61, 255, 200, 0.08),
    0 20px 50px rgba(61, 255, 200, 0.08);
}

.tapgw-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tapgw-head strong {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.leds {
  display: flex;
  gap: 5px;
}

.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a3140;
}

.led-fw {
  background: #86efac;
  box-shadow: 0 0 8px #86efac;
}

.led-nat {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.led-tap {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.45;
  }
}

.flow-label {
  --x: 50%;
  --y: 40%;
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vxlan);
  pointer-events: none;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px dashed rgba(196, 181, 253, 0.35);
  background: rgba(12, 14, 22, 0.55);
}

.tooltip {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -120%);
  background: #0c1018;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: pre;
  pointer-events: none;
}

.stage-footer {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.caption {
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1 1 260px;
  min-width: 0;
}

.mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-bar button {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.mode-bar button[aria-selected="true"] {
  color: #04140f;
  background: var(--accent);
  border-color: var(--accent);
}

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  margin-right: 6px;
  box-shadow: 0 0 8px var(--c);
}

.legend li:nth-child(1) i {
  --c: #5eead4;
}

.legend li:nth-child(2) i {
  --c: #fbbf24;
}

.legend li:nth-child(3) i {
  --c: #c4b5fd;
}

.legend li:nth-child(4) i {
  --c: #7dd3fc;
}

.legend li:nth-child(5) i {
  --c: #fb7185;
}

.strip {
  border-block: 1px solid var(--line);
  padding: 28px clamp(20px, 4vw, 40px);
  text-align: center;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: -0.02em;
}

.strip em {
  color: var(--text);
  font-style: normal;
  font-family: var(--display);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px clamp(20px, 4vw, 40px);
}

.section-alt {
  max-width: none;
  padding-inline: 0;
}

.section-alt .section-head,
.section-alt .cards,
.section-alt .arch,
.section-alt .arch-note {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section-alt .cards,
.section-alt .arch,
.section-alt .arch-note {
  padding-inline: clamp(20px, 4vw, 40px);
}

.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 14px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.steps li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
}

.step-num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.steps h3 {
  margin: 10px 0 8px;
}

.steps p,
.card p,
.split-card li {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.card h3 {
  margin-bottom: 10px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.split-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.split-sec {
  border-color: rgba(61, 255, 200, 0.22);
}

.split-card ul {
  margin: 16px 0 0;
  padding: 0 0 0 18px;
}

.split-card li + li {
  margin-top: 8px;
}

.split-card h3 {
  margin-top: 6px;
}

.arch-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arch-hub {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1040px, 100%);
  gap: 12px;
}

.arch-hub .arch-core {
  grid-column: 2;
}

.arch-hub .arch-tap {
  grid-column: 3;
  justify-self: start;
  white-space: nowrap;
}

.arch-spine {
  width: 2px;
  height: 28px;
  background: linear-gradient(var(--internal), var(--accent), var(--untrusted));
}

.arch-box {
  min-width: 220px;
  text-align: center;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-family: var(--display);
  font-weight: 700;
}

.arch-box small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.arch-core {
  border-color: rgba(61, 255, 200, 0.45);
  color: var(--accent);
}

.arch-bad {
  border-color: rgba(255, 138, 76, 0.4);
}

.arch-tap {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--vxlan);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arch-tap::before {
  content: "";
  width: 48px;
  height: 2px;
  background: var(--vxlan);
}

.arch-ids {
  display: flex;
  gap: 8px;
}

.arch-ids i {
  font-style: normal;
  border: 1px solid rgba(196, 181, 253, 0.4);
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
}

.arch-note {
  color: var(--muted);
  max-width: 62ch;
  margin-top: 28px;
}

@media (max-width: 720px) {
  .arch-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "int  ."
      "s1   ."
      "core tap"
      "s2   tap"
      "untr .";
    justify-items: stretch;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .arch-stack > .arch-net:not(.arch-bad) {
    grid-area: int;
  }

  .arch-spine-in {
    grid-area: s1;
    justify-self: center;
  }

  .arch-hub {
    display: contents;
    width: auto;
  }

  .arch-hub .arch-core {
    grid-area: core;
    grid-column: auto;
    min-width: 0;
    width: 100%;
  }

  .arch-hub .arch-tap {
    grid-area: tap;
    grid-column: auto;
    justify-self: start;
    align-self: center;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    white-space: nowrap;
    border-left: 2px solid var(--vxlan);
    padding: 4px 0 4px 10px;
  }

  .arch-tap::before {
    display: none;
  }

  .arch-ids {
    flex-direction: column;
    gap: 6px;
  }

  .arch-ids i {
    text-align: center;
    min-width: 3.2em;
    padding: 6px 8px;
  }

  .arch-spine-out {
    grid-area: s2;
    justify-self: center;
  }

  .arch-bad {
    grid-area: untr;
  }

  .arch-box {
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .arch-box {
    padding: 12px 10px;
    font-size: 0.92rem;
  }

  .arch-box small {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
  }

  .arch-tap {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    padding-left: 8px;
  }
}

.cta {
  text-align: center;
}

.cta .lede {
  margin: 14px auto 28px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px clamp(20px, 4vw, 40px);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.88rem;
}

.foot-brand {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.page-404 {
  min-height: calc(100vh - var(--header) - 90px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.page-404 p {
  color: var(--muted);
  margin: 14px 0 24px;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .steps,
  .cards,
  .split {
    grid-template-columns: 1fr;
  }

  .node {
    min-width: 96px;
    padding: 8px 9px;
  }

  .node-tapgw {
    min-width: 132px;
  }

  .node-sub {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    height: auto;
    min-height: 0;
    padding-top: 16px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .stage-wrap {
    height: 500px;
    min-height: 460px;
  }

  .chrome-stats {
    display: none;
  }

  .node-kicker {
    display: none;
  }

  .node strong {
    font-size: 0.78rem;
  }

  .hero-copy .lede {
    font-size: 0.98rem;
  }

  .flow-label {
    font-size: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .live-dot,
  .led-tap {
    animation: none;
  }
}

@media (max-width: 900px) {
  .node-ids[data-node="ids0"] {
    --x: 20%;
    --y: 24%;
  }
  .node-ids[data-node="ids1"] {
    --x: 50%;
    --y: 13%;
  }
  .node-ids[data-node="ids2"] {
    --x: 80%;
    --y: 24%;
  }
  .node-internal {
    --x: 14%;
    --y: 72%;
  }
  .node-tapgw {
    --x: 50%;
    --y: 70%;
  }
  .node-untrusted {
    --x: 86%;
    --y: 72%;
  }
}
