:root {
  color-scheme: dark;
  --bg: #030713;
  --bg-deep: #01030a;
  --panel: rgba(7, 18, 38, 0.72);
  --panel-strong: rgba(10, 28, 58, 0.9);
  --line: rgba(112, 240, 255, 0.22);
  --line-strong: rgba(112, 240, 255, 0.48);
  --ink: #f4fbff;
  --ink-2: #b8c9dc;
  --muted: #6f849a;
  --cyan: #22f4ff;
  --mint: #58ff95;
  --lime: #c9ff4d;
  --magenta: #ff4fd8;
  --violet: #7b61ff;
  --shadow-cyan: 0 0 28px rgba(34, 244, 255, 0.32);
  --shadow-mint: 0 0 34px rgba(88, 255, 149, 0.25);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 244, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 78% 18%, rgba(88, 255, 149, 0.12), transparent 22rem),
    linear-gradient(180deg, #030713 0%, #020814 48%, #01030a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(88, 255, 149, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 244, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

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

button {
  font: inherit;
}

.mobile-only {
  display: none;
}

.noise,
.scanline,
.aurora {
  position: fixed;
  pointer-events: none;
}

.noise {
  inset: 0;
  z-index: 4;
  opacity: 0.08;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
}

.scanline {
  inset: 0;
  z-index: 3;
  opacity: 0.12;
  background: repeating-linear-gradient(to bottom, transparent 0 8px, rgba(34, 244, 255, 0.16) 9px);
}

.aurora {
  width: 420px;
  height: 420px;
  z-index: -3;
  border-radius: 999px;
  filter: blur(58px);
  opacity: 0.55;
}

.aurora-a {
  top: 120px;
  left: -160px;
  background: rgba(34, 244, 255, 0.34);
}

.aurora-b {
  right: -150px;
  bottom: 12%;
  background: rgba(255, 79, 216, 0.22);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(112, 240, 255, 0.14);
  background: rgba(3, 7, 19, 0.78);
  backdrop-filter: blur(20px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-color: rgba(88, 255, 149, 0.32);
  background: rgba(1, 3, 10, 0.9);
}

.brand,
.header-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), transparent 0 4px, transparent 5px),
    conic-gradient(from 140deg, var(--cyan), var(--mint), var(--magenta), var(--violet), var(--cyan));
  box-shadow: var(--shadow-cyan);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 999px;
  background: var(--bg-deep);
  box-shadow: inset 0 0 12px rgba(34, 244, 255, 0.36);
}

img.brand-mark {
  display: block;
  background: transparent;
}

img.brand-mark::after {
  display: none;
}

.nav-links {
  gap: 8px;
  color: var(--ink-2);
  font-size: 14px;
}

.nav-links a {
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(34, 244, 255, 0.06);
}

.header-actions {
  position: relative;
  gap: 12px;
}

.live-pill,
.language-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  font-size: 13px;
}

.live-pill {
  gap: 8px;
  padding: 0 12px;
  color: var(--mint);
  border: 1px solid rgba(88, 255, 149, 0.22);
  background: rgba(88, 255, 149, 0.07);
}

.live-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 16px var(--mint);
}

.language-switcher {
  position: relative;
}

.language-button {
  gap: 8px;
  padding: 0 13px;
  color: var(--mint);
  border: 1px solid rgba(88, 255, 149, 0.24);
  background: rgba(88, 255, 149, 0.07);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.language-button:hover,
.language-switcher.is-open .language-button {
  border-color: rgba(88, 255, 149, 0.52);
  background: rgba(88, 255, 149, 0.12);
  box-shadow: 0 0 22px rgba(88, 255, 149, 0.16);
}

.language-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 16px var(--mint);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  min-width: 142px;
  padding: 8px;
  border: 1px solid rgba(112, 240, 255, 0.22);
  border-radius: 16px;
  background: rgba(3, 7, 19, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36), var(--shadow-cyan);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.language-switcher.is-open .language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-menu button {
  width: 100%;
  padding: 9px 10px;
  color: var(--ink-2);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button[aria-checked="true"] {
  color: var(--ink);
  border-color: rgba(88, 255, 149, 0.24);
  background: rgba(88, 255, 149, 0.09);
}

.ghost-link {
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-section,
.section-block,
.split-section,
.console-section,
.deploy-band,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-section {
  min-height: calc(100vh - 74px);
  padding: 86px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 58px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 98px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(92deg, var(--cyan), var(--mint) 45%, var(--lime) 86%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 34px rgba(88, 255, 149, 0.18);
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.8;
}

.endpoint-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(2, 13, 28, 0.95), rgba(7, 28, 52, 0.84));
  box-shadow: var(--shadow-cyan), inset 0 0 30px rgba(34, 244, 255, 0.07);
  overflow: hidden;
}

.endpoint-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, transparent, rgba(88, 255, 149, 0.22), transparent);
  transform: translateX(-100%);
  animation: endpointSweep 4.8s linear infinite;
}

.endpoint-meta,
.endpoint-card code,
.copy-btn {
  position: relative;
  z-index: 1;
}

.endpoint-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 18px var(--mint);
}

.endpoint-card code {
  overflow: hidden;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn,
.primary-cta,
.secondary-cta {
  cursor: pointer;
  border: 0;
}

.copy-btn {
  min-height: 38px;
  padding: 0 16px;
  color: #04120c;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--mint), var(--lime));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 850;
}

.primary-cta {
  gap: 10px;
  padding: 0 24px;
  color: #03110b;
  background: linear-gradient(135deg, var(--cyan), var(--mint) 55%, var(--lime));
  box-shadow: var(--shadow-mint);
}

.secondary-cta {
  padding: 0 22px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.play-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #04120c;
  clip-path: polygon(24% 12%, 88% 50%, 24% 88%);
}

.hero-panel,
.cyber-card,
.console-window,
.deploy-band {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 28, 58, 0.75), rgba(3, 9, 20, 0.86)),
    radial-gradient(circle at 50% 0%, rgba(34, 244, 255, 0.14), transparent 28rem);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36), inset 0 0 30px rgba(34, 244, 255, 0.04);
}

.hero-panel {
  position: relative;
  min-height: 550px;
  padding: 20px;
  border-radius: 26px;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 56px 26px 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 255, 149, 0.18), transparent 62%);
  filter: blur(4px);
}

.panel-topbar,
.window-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.panel-topbar span,
.window-head span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 12px currentColor;
}

.panel-topbar span:nth-child(2),
.window-head span:nth-child(2) {
  background: var(--mint);
}

.panel-topbar span:nth-child(3),
.window-head span:nth-child(3) {
  background: var(--magenta);
}

.panel-topbar strong,
.window-head strong {
  margin-left: auto;
  font-weight: 600;
}

.radar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  height: 320px;
}

.radar-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #04120c;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 0 58px rgba(34, 244, 255, 0.42);
}

.radar-core strong {
  font-size: 34px;
  letter-spacing: 0;
}

.orbit {
  position: absolute;
  inset: -44px;
  border: 1px solid rgba(34, 244, 255, 0.28);
  border-radius: 50%;
}

.orbit-two {
  inset: -92px;
  border-color: rgba(88, 255, 149, 0.18);
}

.orbit-three {
  inset: -138px;
  border-color: rgba(255, 79, 216, 0.14);
}

.telemetry {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.telemetry div,
.route {
  border: 1px solid rgba(112, 240, 255, 0.18);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.telemetry div {
  padding: 14px;
}

.telemetry span,
.route-stack {
  color: var(--muted);
  font-size: 12px;
}

.telemetry strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 22px;
}

.route-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.route {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.route::after {
  content: "READY";
  color: var(--muted);
}

.route.active {
  color: var(--mint);
  border-color: rgba(88, 255, 149, 0.42);
  box-shadow: inset 0 0 22px rgba(88, 255, 149, 0.08);
}

.route.active::after {
  content: "ACTIVE";
  color: var(--mint);
}

.model-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 58px;
  color: var(--ink-2);
}

.model-strip span,
.model-strip strong {
  min-width: 92px;
  padding: 14px 16px;
  text-align: center;
  border: 1px solid rgba(112, 240, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.model-strip strong {
  color: var(--mint);
}

.section-block,
.split-section,
.console-section {
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.52fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow,
.console-copy .eyebrow,
.deploy-band .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.console-copy h2,
.deploy-band h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.console-copy p {
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.compact {
  grid-template-columns: minmax(0, 0.74fr) minmax(280px, 0.42fr);
}

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

.cyber-card {
  position: relative;
  min-height: 230px;
  padding: 26px;
  border-radius: var(--radius);
  overflow: hidden;
}

.cyber-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(88, 255, 149, 0.24);
  border-radius: 50%;
}

.card-index {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.cyber-card h3 {
  margin: 42px 0 16px;
  font-size: 24px;
}

.cyber-card p {
  color: var(--ink-2);
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.split-section .section-heading {
  display: block;
  margin: 0;
}

.split-section .section-heading h2 {
  margin: 18px 0;
}

.route-visual {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(3, 12, 26, 0.72);
  overflow: hidden;
}

.route-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-visual path {
  fill: none;
  stroke: url("#line");
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-dasharray: 12 16;
  animation: dash 2.8s linear infinite;
  filter: drop-shadow(0 0 8px rgba(34, 244, 255, 0.7));
}

.node {
  position: absolute;
  z-index: 1;
  min-width: 104px;
  padding: 14px 16px;
  text-align: center;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(3, 7, 19, 0.94);
  box-shadow: var(--shadow-cyan);
}

.source {
  left: 34px;
  top: 154px;
}

.gateway {
  left: 50%;
  top: 154px;
  transform: translateX(-50%);
  color: #04120c;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.upstream {
  right: 34px;
}

.one {
  top: 70px;
}

.two {
  top: 154px;
}

.three {
  top: 238px;
}

.console-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.78fr;
  gap: 40px;
  align-items: center;
}

.console-window {
  border-radius: 22px;
  overflow: hidden;
}

.window-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  color: #d9f5ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.8;
}

code {
  font-family: inherit;
}

.console-copy ul {
  display: grid;
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.console-copy li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  line-height: 1.7;
}

.console-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 18px var(--mint);
}

.deploy-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 76px;
  padding: 34px;
  border-radius: 28px;
}

.deploy-band h2 {
  margin-top: 12px;
}

.deploy-metrics {
  display: flex;
  gap: 12px;
}

.deploy-metrics div {
  min-width: 112px;
  padding: 16px;
  border: 1px solid rgba(112, 240, 255, 0.18);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.deploy-metrics strong {
  display: block;
  color: var(--cyan);
  font-size: 24px;
}

.deploy-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid rgba(112, 240, 255, 0.14);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes endpointSweep {
  to {
    transform: translateX(100%);
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -56;
  }
}

@media (max-width: 980px) {
  .site-header {
    gap: 16px;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .section-heading,
  .split-section,
  .console-section,
  .deploy-band {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 480px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .deploy-metrics {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 20px;
  }

  .live-pill {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .hero-section,
  .section-block,
  .split-section,
  .console-section,
  .deploy-band,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero-section {
    padding-top: 56px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(38px, 10.8vw, 48px);
    line-height: 1.08;
  }

  .endpoint-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .endpoint-card code {
    white-space: normal;
    word-break: break-all;
  }

  .telemetry {
    grid-template-columns: 1fr;
  }

  .route-visual .node {
    min-width: 94px;
    padding: 12px 10px;
    font-size: 12px;
  }

  .source {
    left: 18px;
    top: 154px;
    transform: none;
  }

  .gateway {
    left: 50%;
    top: 154px;
    transform: translateX(-50%);
  }

  .upstream {
    left: auto;
    right: 18px;
    transform: none;
  }

  .one {
    top: 70px;
  }

  .two {
    top: 154px;
  }

  .three {
    top: 238px;
  }

  .route-visual path {
    opacity: 0.9;
  }

  .site-footer {
    flex-direction: column;
  }
}
