:root {
  color-scheme: dark;
  --bg: #03060d;
  --bg-soft: #07101d;
  --ink: #f5f8ff;
  --muted: #9aa8bb;
  --line: rgba(162, 197, 255, 0.18);
  --panel: rgba(8, 18, 32, 0.74);
  --panel-strong: rgba(13, 28, 50, 0.92);
  --blue: #51c6ff;
  --cyan: #56f0ff;
  --violet: #9b7bff;
  --green: #7cffc4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(81, 198, 255, 0.13), transparent 34rem),
    radial-gradient(circle at 84% 10%, rgba(155, 123, 255, 0.16), transparent 31rem),
    linear-gradient(180deg, #03050a 0%, #060b13 44%, #02040a 100%);
  color: var(--ink);
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(3, 6, 13, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.nav-cta {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  width: max-content;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(86, 240, 255, 0.9);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(86, 240, 255, 0.2), rgba(155, 123, 255, 0.05)),
    #06111f;
  box-shadow: 0 0 22px rgba(86, 240, 255, 0.3);
}

.site-nav {
  gap: 22px;
  justify-self: center;
  color: rgba(245, 248, 255, 0.74);
  font-size: 13px;
  font-weight: 620;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  justify-self: end;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(245, 248, 255, 0.18);
  border-radius: 999px;
  background: rgba(245, 248, 255, 0.06);
  font-size: 13px;
  font-weight: 720;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 4vw, 56px) 80px;
  isolation: isolate;
}

.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  z-index: -3;
  width: 100%;
  height: 100%;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 6, 13, 0.96) 0%, rgba(3, 6, 13, 0.74) 44%, rgba(3, 6, 13, 0.22) 100%),
    linear-gradient(180deg, rgba(3, 6, 13, 0.25) 0%, rgba(3, 6, 13, 0.76) 100%);
}

.hero-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(245, 248, 255, 0.78);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(245, 248, 255, 0.18);
  font-size: 14px;
  font-weight: 780;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(86, 240, 255, 0.55);
  background: linear-gradient(135deg, rgba(81, 198, 255, 0.94), rgba(155, 123, 255, 0.86));
  color: #02050a;
  box-shadow: 0 16px 46px rgba(81, 198, 255, 0.28);
}

.button.secondary {
  background: rgba(245, 248, 255, 0.07);
  color: var(--ink);
}

.runtime-panel {
  justify-self: end;
  width: min(420px, 100%);
  min-width: 0;
  border: 1px solid rgba(162, 197, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(14, 31, 55, 0.8), rgba(5, 12, 22, 0.72)),
    rgba(5, 12, 22, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  padding: 22px;
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(245, 248, 255, 0.78);
  font-size: 13px;
  font-weight: 760;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(124, 255, 196, 0.8);
}

.routing-map {
  display: grid;
  grid-template-columns: 1fr 38px 1fr 38px 1fr;
  align-items: center;
  margin: 34px 0;
}

.node {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(162, 197, 255, 0.22);
  border-radius: 8px;
  background: rgba(245, 248, 255, 0.05);
  color: rgba(245, 248, 255, 0.78);
  font-size: 12px;
  font-weight: 760;
}

.core-node {
  border-color: rgba(86, 240, 255, 0.55);
  background: rgba(86, 240, 255, 0.12);
  color: var(--cyan);
}

.route-line {
  height: 1px;
  background: rgba(162, 197, 255, 0.24);
}

.route-line.active {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(86, 240, 255, 0.55);
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(162, 197, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
}

.signal-list strong {
  color: var(--ink);
}

section:not(.hero) {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 4vw, 56px);
}

.intro-section,
.runtime-section,
.architecture-section,
.roadmap-section {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 86px);
  border-top: 1px solid var(--line);
}

.intro-copy {
  min-width: 0;
  display: grid;
  gap: 18px;
  color: rgba(245, 248, 255, 0.72);
  font-size: 18px;
  line-height: 1.85;
}

.section-heading {
  margin-bottom: clamp(34px, 5vw, 64px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 290px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(4, 11, 21, 0.78);
}

.feature-index {
  display: block;
  margin-bottom: 42px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 820;
}

.feature-card p,
.terminal-copy p,
.preview-section p,
.timeline p {
  color: rgba(245, 248, 255, 0.68);
  line-height: 1.72;
}

.terminal-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
  background:
    radial-gradient(circle at 28% 50%, rgba(86, 240, 255, 0.14), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  border-block: 1px solid var(--line);
}

.terminal-visual,
.terminal-copy {
  width: min(560px, 100%);
  min-width: 0;
}

.terminal-visual {
  justify-self: end;
}

.terminal-window {
  border: 1px solid rgba(162, 197, 255, 0.2);
  border-radius: 8px;
  background: #06101c;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(245, 248, 255, 0.26);
}

.session-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.session-tile {
  min-height: 114px;
  padding: 14px;
  border: 1px solid rgba(162, 197, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.session-tile b,
.session-tile span {
  display: block;
}

.session-tile b {
  margin-bottom: 18px;
  color: var(--ink);
}

.session-tile span {
  color: var(--muted);
  font-size: 13px;
}

.session-tile.running {
  border-color: rgba(86, 240, 255, 0.36);
  background: rgba(86, 240, 255, 0.08);
}

.session-tile.waiting {
  border-color: rgba(155, 123, 255, 0.36);
  background: rgba(155, 123, 255, 0.08);
}

.event-stream {
  display: grid;
  gap: 8px;
  padding: 0 14px 16px;
  color: rgba(245, 248, 255, 0.55);
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.terminal-copy {
  justify-self: start;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(245, 248, 255, 0.78);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--cyan);
}

.node-lanes {
  display: grid;
  gap: 12px;
}

.node-lane {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.node-lane span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 820;
}

.node-lane strong {
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.25;
}

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

.timeline article {
  padding: 24px;
  border-left: 1px solid rgba(86, 240, 255, 0.5);
  background: linear-gradient(90deg, rgba(86, 240, 255, 0.08), transparent);
}

.timeline span {
  display: block;
  margin-bottom: 28px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 820;
}

.preview-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 34px;
  align-items: end;
  border: 1px solid rgba(86, 240, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(86, 240, 255, 0.18), transparent 28rem),
    var(--panel-strong);
}

.preview-section h2 {
  font-size: clamp(34px, 5vw, 62px);
}

.preview-contact {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.preview-status {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(162, 197, 255, 0.2);
  border-radius: 8px;
  background: rgba(3, 6, 13, 0.56);
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 820;
  line-height: 1.15;
}

.preview-contact p {
  max-width: 360px;
  margin: 0;
  color: rgba(245, 248, 255, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: rgba(245, 248, 255, 0.58);
  font-size: 13px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 820;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .intro-section,
  .terminal-section,
  .preview-section {
    grid-template-columns: 1fr;
  }

  .runtime-panel,
  .terminal-visual,
  .terminal-copy {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .feature-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-cta {
    min-height: 34px;
    padding: 0 12px;
  }

  .hero {
    padding: 104px 18px 58px;
  }

  .hero-grid {
    width: calc(100vw - 36px);
  }

  h1 {
    font-size: clamp(40px, 12vw, 48px);
    line-height: 1;
    word-break: break-all;
  }

  h2 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.06;
    word-break: break-all;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .routing-map {
    grid-template-columns: 1fr 24px 1fr 24px 1fr;
    gap: 0;
    overflow: hidden;
  }

  .route-line {
    width: auto;
    height: 1px;
    justify-self: stretch;
  }

  .node {
    aspect-ratio: auto;
    min-height: 72px;
  }

  .feature-grid,
  .timeline,
  .session-grid {
    grid-template-columns: 1fr;
  }

  .node-lane {
    grid-template-columns: 1fr;
  }

  section:not(.hero) {
    padding-inline: 18px;
  }

  .preview-section {
    width: calc(100% - 36px);
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
