:root {
  color-scheme: dark;
  --bg: #0b0e13;
  --bg-2: #121722;
  --paper: #fbf2df;
  --text: #f5f8fb;
  --muted: #9aa8b6;
  --line: rgba(255, 255, 255, 0.13);
  --glass: rgba(18, 23, 34, 0.76);
  --glass-strong: rgba(26, 34, 48, 0.92);
  --copper: #f28a55;
  --cyan: #79dcff;
  --violet: #8d7cff;
  --mint: #8df0ce;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 138, 85, 0.20), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(121, 220, 255, 0.18), transparent 30rem),
    linear-gradient(135deg, #080a0e 0%, var(--bg) 42%, #11131c 100%);
  color: var(--text);
  font-family: "Aptos", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

#signalCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  opacity: 0.72;
}

.site-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(11, 14, 19, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.brand,
.topbar nav,
.hero-actions,
.status-strip,
.theatre-top,
.prompt-options {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(251, 242, 223, 0.24);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--paper), var(--copper));
  color: #11131a;
  font: 800 0.76rem/1 "Cascadia Mono", Consolas, monospace;
  text-transform: uppercase;
}

.topbar nav {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

a {
  color: inherit;
}

.topbar nav a,
.secondary-action {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.topbar nav a:hover,
.secondary-action:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  min-height: min(700px, calc(100svh - 122px));
}

.hero-copy,
.command-theatre,
.proof-card,
.lab-grid,
.deploy-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-copy {
  position: relative;
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(28px, 5vw, 62px);
}

.hero-copy::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(121, 220, 255, 0.22);
  border-radius: 50%;
  content: "";
  box-shadow: inset 0 0 80px rgba(121, 220, 255, 0.08);
  animation: slowSpin 22s linear infinite;
}

.kicker,
.section-label {
  margin: 0 0 12px;
  color: var(--cyan);
  font: 800 0.73rem/1 "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

p,
li {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 700px;
  margin-bottom: 28px;
  color: #d7e3ea;
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

button {
  font: inherit;
}

.primary-action {
  border: 0;
  border-radius: 6px;
  padding: 13px 17px;
  background: linear-gradient(135deg, var(--paper), var(--copper));
  color: #11131a;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 16px 34px rgba(242, 138, 85, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(242, 138, 85, 0.28);
}

.status-strip {
  gap: 8px;
  flex-wrap: wrap;
}

.status-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.86rem;
}

.status-strip strong {
  color: var(--paper);
}

.command-theatre {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  overflow: hidden;
  background: rgba(8, 10, 14, 0.88);
}

.theatre-top {
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--muted);
  font: 0.82rem/1.2 "Cascadia Mono", Consolas, monospace;
}

.theatre-top strong {
  margin-left: auto;
  color: var(--mint);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(141, 240, 206, 0.55);
  animation: pulse 1.8s infinite;
}

.trace-stage {
  position: relative;
  display: grid;
  min-height: 310px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(121, 220, 255, 0.16), transparent 32%),
    radial-gradient(circle at 68% 34%, rgba(141, 124, 255, 0.18), transparent 26%);
}

.trace-stage::before,
.trace-stage::after {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(251, 242, 223, 0.13);
  border-radius: 50%;
  content: "";
}

.trace-stage::after {
  inset: 74px;
  border-color: rgba(121, 220, 255, 0.22);
  animation: slowSpin 18s linear infinite reverse;
}

.trace-orbit {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px dashed rgba(121, 220, 255, 0.32);
  border-radius: 50%;
  animation: slowSpin 16s linear infinite;
}

.orbit-two {
  width: 178px;
  height: 178px;
  border-color: rgba(242, 138, 85, 0.36);
  animation-duration: 11s;
  animation-direction: reverse;
}

.core-badge {
  position: relative;
  z-index: 1;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 1px solid rgba(251, 242, 223, 0.24);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(251, 242, 223, 0.96), rgba(121, 220, 255, 0.88));
  color: #10131a;
  text-align: center;
  box-shadow: 0 24px 80px rgba(121, 220, 255, 0.22);
}

.core-badge span,
.core-badge strong {
  display: block;
}

.core-badge span {
  align-self: end;
  font: 800 0.72rem/1 "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.core-badge strong {
  align-self: start;
  max-width: 80px;
  font-size: 1.08rem;
  line-height: 1.05;
}

pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  font: 0.9rem/1.6 "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.command-theatre pre,
.lab-panel pre {
  color: #dff9ff;
}

.command-theatre pre {
  flex: 1;
  min-height: 180px;
  padding: 18px;
}

.proof-deck {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.proof-card {
  min-height: 238px;
  padding: 22px;
}

.proof-feature {
  background:
    linear-gradient(145deg, rgba(242, 138, 85, 0.16), rgba(18, 23, 34, 0.86)),
    var(--glass-strong);
}

.proof-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--paper);
  font: 800 0.8rem/1 "Cascadia Mono", Consolas, monospace;
}

.lab-grid,
.deploy-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  margin-top: 14px;
  padding: clamp(22px, 4vw, 34px);
}

.lab-copy p {
  max-width: 520px;
}

.lab-panel {
  display: grid;
  gap: 12px;
}

.prompt-options {
  gap: 10px;
  flex-wrap: wrap;
}

.prompt-options button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.prompt-options button:hover,
.prompt-options button.active {
  border-color: rgba(121, 220, 255, 0.72);
  background: rgba(121, 220, 255, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

.lab-panel pre {
  min-height: 236px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(4, 6, 10, 0.68);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal].visible {
  opacity: 1;
  transform: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(141, 240, 206, 0); }
  100% { box-shadow: 0 0 0 0 rgba(141, 240, 206, 0); }
}

@media (max-width: 980px) {
  .hero,
  .proof-deck,
  .lab-grid,
  .deploy-band {
    grid-template-columns: 1fr;
  }

  .proof-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 10px;
  }

  .topbar {
    position: relative;
    top: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .command-theatre {
    min-height: auto;
  }

  .proof-deck,
  .capability-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
