:root {
  color-scheme:dark;
  --bg:#0c0e14;
  --panel:#141925;
  --line:#252d40;
  --text:#edf2fb;
  --muted:#aebbd2;
  --red:#ff385a;
  --blue:#6bcfff;
  --gutter:clamp(1rem,5vw,5rem);
  font-family:"Segoe UI",system-ui,sans-serif;
  background:var(--bg);
  color:var(--text);
}

*,*::before,*::after {
  box-sizing:border-box;
}

body {
  margin:0;
}

a {
  color:inherit;
}

button,input,select {
  font:inherit;
}

button {
  cursor:pointer;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible {
  outline:2px solid var(--blue);
  outline-offset:3px;
}

.wrap {
  max-width:94rem;
  margin:auto;
  padding-inline:var(--gutter);
}

.site-header,footer {
  background:#111521;
  border-bottom:1px solid var(--line);
}

.header-row,.footer-row,.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}

.header-row {
  min-height:4.5rem;
  padding-block:.7rem;
}

.brand {
  font-size:1.65rem;
  letter-spacing:-.05em;
  text-decoration:none;
  white-space:nowrap;
}

.brand strong,.studio-top strong span {
  color:var(--red);
  font-weight:900;
}

nav {
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}

nav>a {
  text-decoration:none;
  color:var(--muted);
}

.button,.tab,.map-choice,.tool {
  border:1px solid #394463;
  border-radius:.45rem;
  color:var(--text);
  background:#1a2030;
  padding:.65rem .95rem;
  min-height:2.65rem;
  text-decoration:none;
  font-weight:650;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.button:hover,.tab:hover,.map-choice:hover,.tool:hover {
  background:#28334c;
}

.primary {
  background:var(--red);
  color:#16060c;
  border-color:var(--red);
}

.primary:hover {
  background:#ff6780;
}

.button:disabled {
  opacity:.6;
  cursor:wait;
}

.hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#100f17;
}

.hero-image,.hero::after {
  position:absolute;
  inset:0;
  z-index:-1;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 58%;
}

.hero::after {
  content:"";
  background:linear-gradient(90deg,#0c0e14 2%,#0c0e14ee 25%,#0c0e1480 47%,transparent 75%),linear-gradient(0deg,#0c0e14 0%,transparent 20%);
}

.hero .wrap {
  min-height:clamp(31rem,61vh,45rem);
  display:grid;
  align-items:center;
}

.hero-copy {
  padding-block:3.5rem;
  max-width:39rem;
}

.status {
  margin:0 0 1.15rem;
  color:#ff90a3;
  font-size:.88rem;
  font-weight:750;
  letter-spacing:.14em;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  gap:.64rem;
}

.status span {
  width:.65rem;
  height:.2rem;
  background:currentColor;
}

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

h1 {
  font-size:clamp(3rem,6.5vw,7.1rem);
  line-height:.93;
  letter-spacing:-.065em;
  margin-bottom:1.1rem;
}

.lead {
  max-width:29rem;
  line-height:1.65;
  font-size:1.1rem;
  color:#dae2f3;
  margin-bottom:1.25rem;
}

.demo,.beta {
  padding-block:clamp(2rem,5vw,4.5rem);
  scroll-margin-top:1rem;
}

.section-heading {
  margin-bottom:1.15rem;
}

h2 {
  font-size:clamp(2rem,4vw,3.6rem);
  line-height:1;
  letter-spacing:-.05em;
  margin-bottom:.55rem;
}

.section-heading p,.beta-copy>p:last-child {
  color:var(--muted);
  line-height:1.6;
  margin-bottom:0;
}

.mode {
  color:var(--blue);
  font-size:.87rem;
  border:1px solid #3c6d83;
  background:#172738;
  border-radius:.35rem;
  padding:.36rem .65rem;
}

.studio {
  border:1px solid var(--line);
  border-radius:.65rem;
  overflow:hidden;
  background:var(--panel);
  box-shadow:0 1.2rem 3.5rem #0006;
}

.studio-top,.studio-status {
  display:flex;
  justify-content:space-between;
  gap:.6rem;
  align-items:center;
  flex-wrap:wrap;
  padding:.65rem .9rem;
  background:#101420;
  color:var(--muted);
  font-size:.83rem;
}

.studio-top strong {
  font-size:1.1rem;
  color:var(--text);
}

.tabs {
  padding:.4rem;
  display:flex;
  gap:.35rem;
  overflow-x:auto;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.tab {
  white-space:nowrap;
  min-height:2.35rem;
  padding:.38rem .7rem;
  font-size:.9rem;
}

.tab[aria-selected="true"] {
  background:var(--red);
  border-color:var(--red);
  color:#190710;
}

.studio-body {
  display:grid;
  grid-template-columns:minmax(10.5rem,17rem) minmax(0,1fr);
  min-height:30rem;
}

.map-sidebar {
  padding:.9rem;
  border-right:1px solid var(--line);
  background:#151a28;
}

.map-sidebar h3 {
  color:var(--blue);
  font-size:1rem;
  margin-bottom:.65rem;
}

#map-choices {
  display:grid;
  gap:.45rem;
}

.map-choice {
  justify-content:start;
  text-align:left;
  font-size:.86rem;
  min-height:2.35rem;
  padding:.48rem .65rem;
}

.map-choice[aria-pressed="true"] {
  background:#1a3249;
  color:#a5deff;
  border-color:#386988;
}

.view {
  background:#0c1019;
  padding:clamp(.55rem,1.6vw,1.15rem);
  min-width:0;
}

.view h3 {
  margin-bottom:.42rem;
  color:var(--blue);
  font-size:1.1rem;
}

.view p,.view li {
  color:var(--muted);
  line-height:1.55;
}

.view p {
  margin-bottom:.7rem;
}

.view .tools {
  display:flex;
  gap:.5rem;
  align-items:center;
  flex-wrap:wrap;
  margin:.5rem 0;
}

.tool {
  min-height:2.3rem;
  padding:.35rem .65rem;
  font-size:.875rem;
}

.table-wrap {
  overflow:auto;
  max-height:29rem;
  margin-top:.75rem;
}

.view table {
  border-collapse:collapse;
  width:100%;
  font-family:Consolas,monospace;
  font-size:.9rem;
  color:#e7edf8;
}

.view td,.view th {
  border:1px solid var(--line);
  padding:.5rem .55rem;
  text-align:right;
  white-space:nowrap;
}

.view th {
  background:#172135;
  color:#93d9ff;
}

.view tr:nth-child(even) td {
  background:#141b2a;
}

.plot {
  display:block;
  width:100%;
  height:clamp(16rem,36vw,25rem);
  background:#101728;
  border:1px solid var(--line);
  border-radius:.35rem;
}

.plot.interactive {
  touch-action:none;
  cursor:grab;
}

.plot.interactive:active {
  cursor:grabbing;
}

.legend {
  display:flex;
  gap:1.1rem;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.9rem;
  margin:.7rem 0;
}

.studio-status {
  border-top:1px solid var(--line);
  min-height:2.45rem;
  color:#89d6fb;
}

.boot {
  display:block;
  width:min(100%,43rem);
  margin:1.75rem auto;
}

.evidence {
  white-space:pre-line;
}

.beta {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(1.25rem,5vw,5rem);
  border-top:1px solid var(--line);
}

.beta-copy {
  padding-top:1rem;
}

.form {
  background:#151a28;
  border:1px solid var(--line);
  padding:clamp(1rem,3vw,1.6rem);
  border-radius:.65rem;
  display:grid;
  gap:.65rem;
}

.form input:not([type=checkbox]) {
  width:100%;
  border:1px solid #43516e;
  background:#101522;
  border-radius:.35rem;
  min-height:2.75rem;
  color:var(--text);
  padding:.55rem .7rem;
}

.form label {
  font-weight:650;
}

.form .privacy {
  display:flex;
  gap:.55rem;
  align-items:start;
  font-weight:400;
  color:#d1daee;
  line-height:1.5;
  margin-top:.35rem;
}

.privacy input {
  margin-top:.3rem;
  accent-color:var(--red);
}

.privacy-note {
  color:var(--muted);
  line-height:1.5;
  font-size:.9rem;
  margin:0;
}

.trap {
  position:absolute;
  left:-10000px;
  width:1px;
  height:1px;
  overflow:hidden;
}

#beta-status {
  margin:.25rem 0 0;
  color:var(--blue);
  line-height:1.45;
}

#beta-status.error {
  color:#ff9cae;
}

footer {
  border-bottom:0;
  border-top:1px solid var(--line);
  color:var(--muted);
}

.footer-row {
  min-height:4rem;
  padding-block:1rem;
  font-size:.875rem;
}

@media(max-width:48rem) {
  .hero .wrap {
    min-height:auto;
  }
  .hero-copy {
    padding-block:2.4rem clamp(12rem,45vw,20rem);
  }
  .hero-image {
    inset:auto 0 0;
    height:65%;
    object-position:88% center;
  }
  .hero::after {
    background:linear-gradient(180deg,#0c0e14 35%,#0c0e14ad 52%,transparent 72%,#0c0e14 100%);
  }
  .studio-body,.beta {
    grid-template-columns:1fr;
  }
  .map-sidebar {
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:.6rem;
  }
  .map-sidebar h3 {
    margin-bottom:.4rem;
  }
  #map-choices {
    display:flex;
    overflow-x:auto;
  }
  .map-choice {
    flex:none;
  }
  .header-row nav {
    gap:.65rem;
  }
  .header-row nav a {
    font-size:.85rem;
  }
  .plot {
    height:19rem;
  }
}

.view details {
  border-bottom:1px solid var(--line);
  padding:.55rem .25rem;
}

.view summary {
  cursor:pointer;
  color:var(--blue);
}

.view details p {
  padding:.55rem 0 0 1rem;
}

.power-key {
  color:#65ccff;
}

.torque-key {
  color:#ff6682;
}

.admin-title {
  font-size:clamp(2rem,4vw,3.6rem);
}

.admin-pagination {
  display:flex;
  gap:.5rem;
  margin-block:1rem;
}

.demo-actions {
  display:flex;
  align-items:center;
  gap:.6rem;
  flex-wrap:wrap;
}
