:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-secondary: #131313;
  --card: #1a1a1a;
  --ink: #ffffff;
  --muted: #a0a0a0;
  --line: #2a2a2a;
  --panel: rgba(19, 19, 19, 0.86);
  --blue: #00d9ff;
  --green: #00ff41;
  --pink: #9d4edd;
  --amber: #ffd166;
  --orange: #ff0040;
  --glow-green: rgba(0, 255, 65, 0.4);
  --glow-cyan: rgba(0, 217, 255, 0.4);
  --glow-red: rgba(255, 0, 64, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(600px circle at 12% 8%, rgba(0, 255, 65, 0.10), transparent 60%),
    radial-gradient(700px circle at 88% 20%, rgba(0, 217, 255, 0.08), transparent 60%),
    radial-gradient(800px circle at 50% 110%, rgba(157, 78, 221, 0.08), transparent 60%),
    var(--bg);
}

body.launching main > *:not(.labs) {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

body.launching .lab-card:not(.selected) {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 260ms ease, transform 260ms ease;
}

body.launching .lab-card.selected {
  transform: scale(1.035);
  transition: transform 360ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  to { transform: translate(50px, 50px); }
}

a {
  color: inherit;
}

main {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
  padding: 10px 0;
}

.brand,
.tiny-link,
.eyebrow,
.type,
code,
pre {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

.brand {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
  text-shadow: 0 0 18px var(--glow-green);
}

.brand::before {
  content: "> ";
  color: var(--blue);
}

.tiny-link {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.tiny-link:hover {
  color: var(--green);
}

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 34px;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 44px;
  align-items: center;
}

.eyebrow,
.type {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 750px;
  margin-bottom: 18px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px var(--glow-green);
}

h2,
h3 {
  font-family: "Orbitron", sans-serif;
}

.subline {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 22px 0 26px;
}

.hero-metrics div {
  padding: 14px;
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 12px;
  background: rgba(0, 217, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--green);
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-metrics span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.hero-cta,
.launch-pill,
.disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.hero-cta {
  position: relative;
  overflow: hidden;
  color: var(--green);
  background: transparent;
  border: 2px solid var(--green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.18);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: translateX(-101%);
  transition: transform 0.35s ease;
}

.hero-cta:hover {
  color: var(--bg);
  box-shadow: 0 0 30px var(--glow-green), 0 0 50px var(--glow-cyan);
}

.hero-cta:hover::before {
  transform: translateX(0);
}

.hero-cta:hover,
.launch-pill:hover {
  transform: translateY(-2px);
}

.machine {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d0d0d;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 217, 255, 0.14);
}

.machine-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #181818;
}

.machine-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.machine-top span:nth-child(2) { background: #ffbd2e; }
.machine-top span:nth-child(3) { background: #28c840; }

.machine-top strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

pre {
  margin: 0;
  padding: 22px;
  color: #d8d8d8;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 22px;
}

.proof-row span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8d8d8;
  text-align: center;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(14px);
}

.impact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: stretch;
  margin: 0 0 34px;
  padding: 22px;
  border: 1px solid rgba(0, 255, 65, 0.25);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(0, 255, 65, 0.06), rgba(0, 217, 255, 0.04), rgba(26, 26, 26, 0.6));
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.08);
}

.impact-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(0, 217, 255, 0.2);
}

.impact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(260px, 1.3fr);
  gap: 12px;
}

.impact-grid div {
  padding: 16px;
  border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.impact-grid strong,
.impact-grid span {
  display: block;
}

.impact-grid strong {
  color: var(--green);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(25px, 2.8vw, 34px);
  line-height: 1;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}

.impact-grid span {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 13px;
}

.labs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 14px 0 72px;
}

.lab-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(26, 26, 26, 0.55);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(6px);
}

a.lab-card {
  cursor: pointer;
}

a.lab-card:hover {
  transform: translateY(-8px);
  border-color: currentColor;
  box-shadow: 0 0 26px color-mix(in srgb, currentColor 35%, transparent), 0 12px 36px rgba(0, 0, 0, 0.45);
}

.lab-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background: radial-gradient(circle at 70% 0%, currentColor, transparent 42%);
}

.bluewall {
  color: var(--blue);
}

.shadowshell {
  color: var(--green);
}

.soon {
  color: var(--pink);
  border-style: dashed;
}

.lab-art {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  position: relative;
}

.ascii-logo {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 8px;
  color: #d8d8d8;
  background:
    linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(0, 255, 65, 0.035)),
    rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 42px color-mix(in srgb, currentColor 22%, transparent);
  font-size: 13px;
  line-height: 1.35;
  white-space: pre;
}

code {
  width: fit-content;
  max-width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 6px;
  color: var(--blue);
  background: rgba(0, 0, 0, 0.32);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lab-content {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.lab-content h2 {
  margin-bottom: 10px;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lab-content p:not(.type) {
  min-height: 58px;
  color: var(--muted);
  line-height: 1.5;
}

.launch-pill {
  margin-top: 18px;
  color: #00120a;
  background: currentColor;
}

.bluewall .launch-pill {
  color: var(--blue);
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.34);
}

.shadowshell .launch-pill {
  color: var(--green);
  background: rgba(0, 255, 65, 0.08);
  border: 1px solid rgba(0, 255, 65, 0.34);
}

.disabled {
  margin-top: 18px;
  color: var(--pink);
  border: 1px solid rgba(157, 78, 221, 0.35);
  background: rgba(157, 78, 221, 0.10);
}

.study {
  padding-bottom: 56px;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(26, 26, 26, 0.55);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary span {
  color: #ffffff;
  font-weight: 850;
}

summary small {
  color: var(--muted);
}

summary::after {
  content: "+";
  color: var(--green);
  font-size: 26px;
  font-weight: 900;
}

details[open] summary::after {
  content: "−";
}

.study-body {
  padding: 0 26px 28px;
  border-top: 1px solid var(--line);
}

.study-body p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 1080px;
}

.study-section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.study-section:last-child {
  border-bottom: 0;
}

.study-section h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 24px;
  letter-spacing: -0.035em;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
}

.numbers div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 217, 255, 0.04);
}

.numbers strong,
.numbers span {
  display: block;
}

.numbers strong {
  color: var(--green);
  font-family: "Orbitron", sans-serif;
  font-size: 26px;
  letter-spacing: -0.05em;
}

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

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: #ffffff;
  background: rgba(0, 217, 255, 0.08);
}

td {
  color: #dce8f5;
}

tr:last-child td {
  border-bottom: 0;
}

.note {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: rgba(0, 255, 65, 0.06);
}

.source-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.source-list li {
  margin: 9px 0;
}

.source-list a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 217, 255, 0.35);
}

.source-list a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1000px) {
  .hero-stage,
  .labs,
  .proof-row,
  .numbers,
  .hero-metrics,
  .impact,
  .impact-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 28px;
  }

  .proof-row {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  nav,
  summary {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 54px;
  }

  .machine {
    display: none;
  }

  .lab-card {
    min-height: 430px;
  }
}
