:root {
  --bg: #060b13;
  --surface: #0c1522;
  --surface-2: #18273b;
  --text: #e4eff7;
  --text-secondary: #a9bdd0;
  --brand: #77f0d6;
  --brand-dark: #9bf7e4;
  --accent: #b9a9ff;
  --cockpit-border: #2e4057;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

body { background: radial-gradient(ellipse at 83% 16%, #112638 0, transparent 40%), var(--bg); }
[hidden] { display: none !important; }
.site-header { background: rgba(7, 14, 25, .94); }
.site-header .logo { display: inline-flex; align-items: center; letter-spacing: .035em; }
.logo-orbit {
  display: inline-block;
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin-inline-end: 9px;
  border: 1px solid #3b6072;
  border-radius: 9px;
  background: radial-gradient(circle, #9ef7e2 0 11%, #1c424c 12% 24%, #101d2a 56%);
}
.logo-orbit::before, .logo-orbit::after {
  content: "";
  position: absolute;
  inset: 10px 4px;
  border: 1px solid #79d9da;
  transform: rotate(-35deg);
  border-radius: 50%;
}
.logo-orbit::after { transform: rotate(45deg); border-color: #b9a9ff; }
.site-mobile-menu { display: none; }

.hero {
  padding: 126px 0 76px;
  background: radial-gradient(ellipse at 68% 35%, rgba(42, 84, 123, .29), transparent 58%);
}
.hero::before { opacity: .23; }
.hero .container {
  width: min(94%, 1370px);
  grid-template-columns: minmax(250px, .9fr) minmax(650px, 2.35fr);
  gap: clamp(24px, 3.2vw, 52px);
}
.hero-product { margin: 0 0 18px; color: var(--brand); font-weight: 700; font-size: .86rem; }
.hero h1 { font-size: clamp(2.45rem, 3.65vw, 3.8rem); line-height: 1.06; letter-spacing: -.055em; }
.hero h1 span { color: #a1f2e1; background: none; }
.hero p.lead { font-size: 1rem; line-height: 1.75; margin-bottom: 24px; }
.hero-note { font-size: .78rem; margin-top: 14px; }
.hero .cta-row { gap: 9px; }
.hero .btn { font-size: .89rem; min-height: 45px; padding: 10px 14px; }
.hero .btn-primary { background: #91f3df; box-shadow: 0 8px 24px rgba(119, 240, 214, .17); }

.demo-board {
  position: relative;
  isolation: isolate;
  align-self: center;
  border: 1px solid #365169;
  border-radius: 19px;
  padding: clamp(10px, 1.2vw, 17px);
  background: linear-gradient(151deg, #162735, #0a1321 52%, #0d1928);
  box-shadow: 0 24px 64px #02060e99, inset 0 1px #82b9d322;
  font-size: .8rem;
  color: var(--text);
}
.demo-board:focus-visible,
.demo-btn:focus-visible,
.orbit-node:focus-visible {
  outline: 2px solid #9df4df;
  outline-offset: 3px;
}
.demo-command { padding: 2px 1px 12px; }
.demo-command h2 { margin: 0; font-size: 1.06rem; line-height: 1.25; }
.demo-disclosure { margin: 3px 0 0; color: var(--text-secondary); font-size: .74rem; }
.demo-controls { row-gap: 6px; }
.demo-btn {
  padding: 6px 9px;
  border: 1px solid #344b61;
  border-radius: 7px;
  background: #132236;
  color: #e4eff7;
  font: 600 .73rem/1.25 Inter, system-ui, sans-serif;
  cursor: pointer;
  min-height: 32px;
}
.demo-btn:hover { background: #1a334a; border-color: #77c2c7; }
.demo-btn[aria-pressed="true"], .demo-btn-start {
  color: #97f3df;
  border-color: #518a8b;
  background: #193844;
}
.demo-btn:disabled { opacity: .62; cursor: default; }
.demo-layout {
  display: grid;
  grid-template-columns: minmax(125px, .86fr) minmax(285px, 2.55fr) minmax(138px, 1.03fr);
  gap: 9px;
  align-items: stretch;
}
.demo-panel, .demo-orbital, .demo-journal {
  min-width: 0;
  border: 1px solid var(--cockpit-border);
  border-radius: 11px;
  background: #0d1827;
}
.demo-metrics { display: grid; gap: 8px; align-content: start; min-width: 0; }
.demo-panel { padding: 10px; }
.demo-panel p { color: var(--text-secondary); font-size: .69rem; margin: 0 0 4px; }
.demo-panel strong { display: block; color: #edfff9; font: 600 .95rem/1.3 var(--mono); overflow-wrap: anywhere; }
.demo-equity-panel strong { font-size: clamp(.9rem, 1.4vw, 1.27rem); }
.demo-panel .demo-unit { color: #a6bbd2; font: 500 .61rem/1.2 var(--mono); }
.demo-chart { display: block; width: 100%; height: 54px; border-radius: 4px; margin-top: 8px; background: #0a1422; }
.demo-orbital { padding: 8px; }
.demo-orbital-head { margin: 0 0 7px; }
.demo-orbital-head h3, .demo-journal h3 { font-size: .8rem; line-height: 1.3; margin: 0; }
.demo-view .demo-btn { min-height: 27px; padding: 4px 8px; }
.demo-field {
  position: relative;
  height: clamp(212px, 19vw, 280px);
  border: 1px solid #2a4561;
  background: radial-gradient(ellipse at 50% 45%, #162941, #0b1526 70%);
  border-radius: 9px;
  overflow: hidden;
}
.demo-field > canvas { display: block; width: 100%; height: 100%; }
.orbit-node {
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #edfcff;
  cursor: pointer;
  font: 650 .67rem/1.15 Inter, system-ui, sans-serif;
  touch-action: manipulation;
}
.orbit-node .planet-disc { display: block; width: 40px; height: 40px; border-radius: 50%; }
.orbit-node span {
  background: #080f1cdd;
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
}
.orbit-node[aria-pressed="true"] .planet-disc { outline: 1px solid #b9a9ff; outline-offset: 3px; }
.demo-assets { margin-top: 7px; }
.demo-inspector {
  min-height: 79px;
  margin-top: 7px;
  padding: 8px 9px;
  background: #122130;
  border: 1px solid #26425a;
  border-radius: 7px;
}
.demo-inspector strong { color: #b1f4e6; font-size: .73rem; }
.demo-inspector p { color: #c3d0df; margin: 2px 0 0; line-height: 1.42; font-size: .72rem; }
.demo-journal { padding: 10px 9px; }
.demo-state { color: #a9e9dc; font-weight: 650; font-size: .72rem; margin: 7px 0; }
.demo-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.demo-log li { border-top: 1px solid #27384c; padding: 5px 0 0; }
.demo-log time { display: block; font: 500 .6rem/1.5 var(--mono); color: #b3c8dc; }
.demo-log strong { display: block; font-size: .68rem; line-height: 1.3; overflow-wrap: anywhere; }
.demo-log small { display: block; color: #b2c4d6; font-size: .65rem; line-height: 1.32; }
.demo-log li[data-tone="warning"] strong { color: #ffd491; }
.demo-log li[data-tone="success"] strong { color: #96f5d9; }

[data-demo-rocket] {
  position: absolute;
  z-index: 5;
  width: 14px;
  height: 26px;
  border: 1px solid #dffdf5;
  border-radius: 55% 55% 37% 37%;
  background: radial-gradient(circle at 50% 44%, #4c758d 0 17%, #a6ffea 18% 24%, transparent 26%), linear-gradient(90deg, #c0d7fa, #f6ffff 56%, #9be9dc);
  box-shadow: 0 0 12px #8cffe2a0;
  pointer-events: none;
}
[data-demo-rocket]::after {
  content: "";
  position: absolute;
  inset: 100% 2px auto;
  height: 20px;
  background: linear-gradient(#fff2a4, #77f0d6 39%, transparent);
  border-radius: 20% 20% 50% 50%;
}
[data-demo-rocket].is-flying { animation: demo-launch 1.12s cubic-bezier(.28, .1, .2, 1) both; }
@keyframes demo-launch {
  from { transform: translate(-50%, -50%) scale(.56) rotate(var(--flight-angle, -56deg)); opacity: 0; }
  17% { opacity: 1; }
  86% { opacity: .85; }
  to { transform: translate(calc(var(--flight-x, -150px) - 50%), calc(var(--flight-y, -60px) - 50%)) scale(.45) rotate(var(--flight-angle, -56deg)); opacity: 0; }
}

.lab-section { padding-top: 66px; }
.lab-heading h2 { margin-top: 0; }
.lab-card h3 { margin-top: 0; }
.lab-number { font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); width: min(92%, 850px); }
  .hero-copy { max-width: 650px; }
  .hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.65rem); }
  .hero { padding: 106px 0 51px; }
}
@media (max-width: 930px) {
  .site-header .container { width: 94%; }
  .site-header nav { gap: 8px; }
  .site-header nav .nav-links { display: none; }
  .site-mobile-menu { display: block; position: relative; }
  .site-mobile-menu summary {
    list-style: none;
    min-height: 38px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    color: #e4eff7;
    background: #162538;
    border: 1px solid #334d63;
    border-radius: 7px;
    font-size: .76rem;
    cursor: pointer;
  }
  .site-mobile-menu summary::-webkit-details-marker { display: none; }
  .site-mobile-menu div {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 168px;
    padding: 5px;
    border: 1px solid #3d5d74;
    border-radius: 9px;
    background: #101e30;
    box-shadow: 0 14px 32px #030a1499;
  }
  .site-mobile-menu a { display: block; padding: 7px 9px; border-radius: 5px; color: #e4eff7; }
  .site-mobile-menu a:hover { background: #1d3349; }
}
@media (max-width: 650px) {
  .hero { padding: 94px 0 45px; }
  .hero .container { gap: 21px; }
  .hero-product { margin-bottom: 9px; }
  .hero h1 { font-size: clamp(2.18rem, 9.5vw, 3rem); margin-bottom: 10px; }
  .hero p.lead { font-size: .93rem; line-height: 1.55; margin-bottom: 15px; }
  .hero-note { margin-top: 8px; }
  .hero .cta-row .btn { width: auto; }
  .hero .cta-row { gap: 7px; }
  .site-header .logo { font-size: .82rem; }
  .logo-orbit { display: none; }
  .site-header .auth-buttons { gap: 4px; }
  .site-header .btn-sm { padding: 7px 8px; }
  .demo-layout { grid-template-columns: minmax(0, 1fr); }
  .demo-orbital { grid-row: 1; }
  .demo-field { height: 207px; }
  .demo-controls .demo-btn { min-height: 38px; }
  .demo-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo-panel { padding: 8px 6px; }
  .demo-panel p { min-height: 29px; }
  .demo-panel strong { font-size: .78rem; }
  .demo-journal { padding: 10px; }
  .demo-chart { height: 39px; }
  .demo-inspector { min-height: 61px; }
  .profiles, .features, .pricing { grid-template-columns: minmax(0, 1fr); }
  .lab-note { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .site-header nav { gap: 4px; }
  .site-mobile-menu summary { padding-inline: 6px; }
  .hero .cta-row .btn { padding-inline: 10px; font-size: .8rem; }
}
.cockpit-preview {
  margin: 0 0 24px;
  padding: clamp(8px, 1.35vw, 16px);
  border: 1px solid #2f475d;
  border-radius: 16px;
  background: #0b1725;
}
.cockpit-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #07121f;
}
.cockpit-preview figcaption {
  padding: 10px 2px 0;
  color: var(--text-secondary);
  font-size: .81rem;
}
