:root {
  color-scheme: dark;
  --bg: #080d0a;
  --surface: rgba(238, 233, 216, 0.075);
  --surface-strong: rgba(238, 233, 216, 0.13);
  --line: rgba(238, 233, 216, 0.16);
  --line-strong: rgba(238, 233, 216, 0.28);
  --text: #f2edde;
  --muted: #a9b3a2;
  --muted-strong: #c9d0bd;
  --acid: #eaff76;
  --green: #9dff7a;
  --blue: #72b9ff;
  --gold: #d7aa52;
  --orange: #ffbd69;
  --shadow: 0 26px 100px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 7% 20%, rgba(100, 173, 83, 0.28), transparent 28rem),
    radial-gradient(circle at 88% 66%, rgba(215, 170, 82, 0.22), transparent 30rem),
    linear-gradient(116deg, #0d190f 0%, #080d0a 42%, #12110b 100%);
  color: var(--text);
  font-family: "IBM Plex Sans SC", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(238, 233, 216, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 233, 216, 0.038) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  opacity: 0.13;
  background-image: radial-gradient(rgba(238, 233, 216, 0.6) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

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

.orb {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.18;
  pointer-events: none;
}

.orb-left {
  top: 10rem;
  left: -8rem;
  background: var(--green);
}

.orb-right {
  right: -7rem;
  bottom: 8rem;
  background: var(--gold);
}

.nav-shell {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1260px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(8, 13, 10, 0.76);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.micro-points,
.demo-top,
.demo-top div,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.06rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--acid), var(--gold));
  color: #12180f;
  font-size: 0.88rem;
}

.nav-links {
  gap: 30px;
  color: var(--muted-strong);
  font-weight: 700;
}

.nav-links a {
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-button,
.button {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-button {
  padding: 12px 18px;
  background: rgba(238, 233, 216, 0.1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
}

.nav-button:hover,
.button:hover,
.node:hover,
.info-card:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: transparent;
  background: var(--text);
  color: #11170e;
}

.button.ghost {
  background: rgba(238, 233, 216, 0.07);
  color: var(--text);
}

.hero,
.proof-strip,
.section,
.footer {
  width: min(1260px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  padding: 92px 0 64px;
}

.hero-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  font-weight: 700;
}

.badge span,
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(114, 185, 255, 0.13);
}

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

h1,
h2 {
  font-family: "Noto Serif SC", "IBM Plex Sans SC", serif;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 960px;
  margin: 0 auto;
  font-size: clamp(3.2rem, 6.2vw, 6.8rem);
  font-weight: 900;
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 3.8vw, 4.2rem);
  line-height: 1.06;
  text-wrap: balance;
}

h3 {
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 780px;
  margin: 26px auto 0;
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.86;
}

.hero-actions {
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.micro-points {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.micro-points span,
.assistant-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(238, 233, 216, 0.06);
  color: var(--muted-strong);
}

.micro-points span {
  padding: 8px 13px;
  font-size: 0.88rem;
}

.routing-demo {
  overflow: hidden;
  max-width: 1080px;
  margin: 68px auto 0;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(238, 233, 216, 0.12), rgba(238, 233, 216, 0.05)),
    rgba(10, 14, 11, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.demo-top {
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted-strong);
}

.demo-top div {
  gap: 12px;
}

.demo-top strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
}

.flow-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px 32px;
}

.flow-board::before,
.flow-board::after {
  position: absolute;
  top: 50%;
  width: 29%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(157, 255, 122, 0.55), transparent);
}

.flow-board::before {
  left: 24%;
}

.flow-board::after {
  right: 24%;
}

.lane {
  display: grid;
  gap: 10px;
}

.lane-label,
.code-card span,
.proof-strip span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(238, 233, 216, 0.14);
  border-radius: 16px;
  background: rgba(8, 13, 10, 0.68);
  color: var(--muted-strong);
  font-family: "JetBrains Mono", monospace;
  transition: transform 180ms ease, border-color 180ms ease;
}

.node i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(238, 233, 216, 0.36);
}

.node strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.node.selected,
.node.healthy {
  border-color: rgba(157, 255, 122, 0.46);
}

.node.selected i,
.node.healthy i {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(157, 255, 122, 0.1), 0 0 16px rgba(157, 255, 122, 0.2);
}

.node.standby i {
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 189, 105, 0.1);
}

.gateway {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 154px;
  place-items: center;
  padding: 20px;
  border: 1px solid rgba(234, 255, 118, 0.24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 18%, rgba(234, 255, 118, 0.22), transparent 58%),
    rgba(8, 13, 10, 0.92);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(238, 233, 216, 0.05), 0 22px 64px rgba(0, 0, 0, 0.42);
}

.gateway-ring {
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(234, 255, 118, 0.25);
  border-radius: 23px;
}

.gateway b {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.18rem;
}

.gateway small {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(238, 233, 216, 0.08);
}

.demo-metrics article {
  padding: 20px 24px;
}

.demo-metrics article + article {
  border-left: 1px solid var(--line);
}

.demo-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.demo-metrics strong {
  display: block;
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.18rem;
}

pre {
  margin: 0;
  overflow-x: auto;
  color: #d7ffd2;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.7;
}

.routing-demo pre {
  padding: 20px 24px;
  background: rgba(8, 13, 10, 0.64);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 22px;
  margin-bottom: 110px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.proof-strip article {
  padding: 24px;
  background: rgba(8, 13, 10, 0.78);
}

.proof-strip strong {
  display: block;
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.05rem;
}

.section {
  padding-bottom: 120px;
}

.two-col {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
}

.section-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.section-copy.compact {
  position: static;
  max-width: 740px;
  margin-bottom: 28px;
}

.card-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card,
.code-card,
.faq-grid details,
.assistant-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.info-card {
  min-height: 220px;
  padding: 26px;
  border-radius: 28px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.info-card span {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.info-card p,
.assistant-panel p,
.faq-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.assistant-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(157, 255, 122, 0.11), transparent 42%),
    rgba(238, 233, 216, 0.08);
}

.assistant-panel p {
  margin-top: 18px;
}

.assistant-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.assistant-tags span {
  padding: 12px 16px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.code-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 16px;
}

.code-card {
  padding: 24px;
  border-radius: 28px;
}

.code-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
}

.faq-grid {
  grid-template-columns: repeat(3, 1fr);
}

.faq-grid details {
  padding: 22px;
  border-radius: 24px;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-grid p {
  margin-top: 12px;
}

.footer {
  justify-content: space-between;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer span:first-child {
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

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

  .hero {
    padding-top: 70px;
  }

  .flow-board,
  .two-col,
  .assistant-panel,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .flow-board::before,
  .flow-board::after {
    display: none;
  }

  .gateway {
    order: -1;
  }

  .proof-strip,
  .card-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

  .assistant-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .hero,
  .proof-strip,
  .section,
  .footer {
    width: min(100% - 22px, 1260px);
  }

  .nav-button {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.3rem);
    line-height: 1.02;
  }

  .lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .routing-demo {
    margin-top: 46px;
    border-radius: 24px;
  }

  .flow-board {
    padding: 24px 18px;
  }

  .demo-metrics {
    grid-template-columns: 1fr;
  }

  .demo-metrics article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .proof-strip {
    margin-bottom: 82px;
  }

  .section {
    padding-bottom: 86px;
  }

  .assistant-panel {
    padding: 26px;
    border-radius: 24px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
