:root {
  color-scheme: dark;
  --background: #080b17;
  --panel: #11182a;
  --line: #2a3551;
  --white: #f3f6ff;
  --muted: #b2bfd7;
  --green: #9af363;
  --mono: "Consolas", "Liberation Mono", monospace;
  --sans: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 86% 9%, #222b70 0, transparent 34rem),
    radial-gradient(ellipse at 9% 52%, #152445 0, transparent 31rem),
    var(--background);
  color: var(--white);
  font: 1rem/1.5 var(--sans);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #d5c9ff; outline-offset: 4px; }
h1, h2, p, figure { margin: 0; }
.frame { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.site-header, footer {
  display: flex;
  min-height: 82px;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 11px; align-items: center; font-weight: 750; white-space: nowrap; }
.brand img { border-radius: 50%; }
.brand b { margin-inline-start: 5px; color: var(--green); font: 700 .75rem var(--mono); }
nav, .actions, .links, .row, .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
nav { gap: clamp(12px, 2.4vw, 30px); color: var(--muted); font-size: .91rem; }
nav > a:not(.key):hover, footer .brand:hover { color: var(--green); }
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid #3b4869;
  border-radius: 8px;
  background: #192237;
  color: var(--white);
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.key:hover:not(:disabled) { background: #263656; border-color: #8999c9; }
.key.primary { background: var(--green); border-color: var(--green); color: #0c1908; }
.key.primary:hover:not(:disabled) { background: #c6ff9e; border-color: #c6ff9e; }
.key:disabled { opacity: .63; cursor: default; }
.site-header .key { min-height: 40px; font: 700 .75rem var(--mono); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 85px);
  padding-block: clamp(42px, 7vw, 96px);
}
.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--green);
  font: 700 .78rem/1.4 var(--mono);
  letter-spacing: .12em;
}
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
h1 {
  margin-block: 16px 21px;
  font-size: clamp(4.5rem, 11vw, 10rem);
  line-height: .80;
  font-weight: 850;
  letter-spacing: -.085em;
}
h1 em { color: var(--green); font-style: normal; }
.pitch { font-weight: 750; font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
.lede { color: var(--muted); max-width: 34ch; margin-top: 8px; }
.actions { margin-top: 25px; }
.workstation { min-width: 0; }
.panel {
  overflow: hidden;
  border: 1px solid #455386;
  border-radius: 16px;
  background: #0c1225;
  box-shadow: 0 22px 65px #03051078;
}
.scene-wrap {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: radial-gradient(ellipse, #1d2852, #0b1021 77%);
}
.scene-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
figcaption {
  padding: 11px 15px;
  border-top: 1px solid #384469;
  color: #c1cbea;
  font: 700 .75rem/1.4 var(--mono);
}
.controls {
  justify-content: space-between;
  padding-top: 12px;
  gap: 8px 13px;
}
.screen { flex: 1 1 165px; color: var(--muted); font-size: .86rem; }
.controls .key { border-color: #597444; }
.contract, .portal { margin-bottom: 20px; scroll-margin-top: 18px; }
.contract-card, .portal-card {
  padding: clamp(20px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(130deg, #161f36, #101627 73%);
}
h2 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.045em; margin-top: 8px; }
.row { margin-block: 19px 13px; }
code {
  flex: 0 1 auto;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: #dce5fe;
  font: .9rem/1.5 var(--mono);
  background: #0b1020;
  overflow-wrap: anywhere;
}
#copy-status { display: inline-block; margin-left: 6px; color: var(--muted); font-size: .9rem; }
.portal-card { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
footer {
  min-height: 77px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
}
footer span { color: var(--green); font: 700 .8rem var(--mono); }

@media (max-width: 760px) {
  .frame { width: calc(100% - 36px); }
  .site-header { padding-block: 13px; flex-wrap: wrap; gap: 11px 20px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 34px 42px; }
  h1 { font-size: clamp(4.5rem, 14vw, 7rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .key { transition: none; }
}
