:root {
  --ink: #111510;
  --ink-soft: #252a24;
  --paper: #f1efe7;
  --paper-bright: #fbfaf5;
  --line: rgba(17, 21, 16, 0.17);
  --muted: #6f756e;
  --acid: #c9ff62;
  --acid-dark: #48720d;
  --signal: #ff6a3d;
  --blue: #89c8ff;
  --danger: #c7422f;
  --shadow: 0 28px 70px rgba(17, 21, 16, 0.13);
  --radius-lg: 30px;
  --radius-md: 20px;
  --sans: "Avenir Next", "Century Gothic", "Gill Sans", sans-serif;
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 21, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 21, 16, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: var(--sans);
  overflow-x: hidden;
}

body.setup-open { overflow: hidden; }

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 48vw;
  height: 48vw;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}

.ambient-one { top: -22vw; right: -15vw; background: var(--acid); }
.ambient-two { top: 44vh; left: -28vw; background: var(--blue); opacity: 0.16; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(241, 239, 231, 0.84);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand > span:last-child span { color: var(--signal); }

.brand-mark {
  position: relative;
  display: block;
  width: 31px;
  height: 31px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.brand-mark i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.brand-mark i:nth-child(1) { top: 5px; left: 12px; }
.brand-mark i:nth-child(2) { bottom: 6px; left: 6px; }
.brand-mark i:nth-child(3) { right: 5px; bottom: 7px; background: var(--signal); }

nav { display: flex; gap: 30px; }
nav a { color: var(--ink-soft); font-size: 13px; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--signal); }

.outline-button {
  justify-self: end;
  padding: 11px 17px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.outline-button:hover { color: var(--paper-bright); background: var(--ink); }

main { width: min(1460px, 100%); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  min-height: 720px;
  padding: 92px 5vw 70px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--acid-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 7vw, 108px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.hero h1 em { color: var(--signal); font-weight: 500; }

.hero-lede {
  max-width: 690px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
}

.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 38px; }
.hero-trial-note { display: grid; grid-template-columns: 24px minmax(0, 520px); gap: 11px; align-items: start; margin: 25px 0 0; color: #758885; font-family: var(--mono); font-size: 9px; line-height: 1.65; }
.hero-trial-note span { display: grid; width: 22px; height: 22px; place-items: center; color: var(--acid); border: 1px solid #355156; border-radius: 50%; font-size: 7px; }

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  color: var(--paper-bright);
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--acid);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--acid); }

.text-button {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.text-button span { color: var(--signal); }

.hero-orbit {
  position: relative;
  justify-self: center;
  width: min(36vw, 480px);
  aspect-ratio: 1;
}

.orbit-ring { position: absolute; border: 1px solid rgba(17, 21, 16, 0.25); border-radius: 50%; }
.orbit-ring-outer { inset: 0; animation: rotate 35s linear infinite; }
.orbit-ring-outer::after { content: ""; position: absolute; top: 12%; left: 10%; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 8px rgba(255, 106, 61, 0.15); }
.orbit-ring-inner { inset: 19%; border-style: dashed; animation: rotate 22s linear infinite reverse; }

.orbit-core {
  position: absolute;
  inset: 31%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--paper-bright);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.orbit-core span { color: var(--acid); font-size: 10px; font-weight: 900; letter-spacing: 0.2em; }
.orbit-core strong { margin: 4px 0 -2px; font-family: var(--display); font-size: clamp(44px, 5vw, 76px); font-weight: 500; }
.orbit-core small { color: #aeb5ad; font-size: 10px; }

.orbit-node {
  position: absolute;
  z-index: 2;
  padding: 9px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-bright);
  box-shadow: 4px 4px 0 rgba(17, 21, 16, 0.12);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.node-space { top: 9%; right: 5%; }
.node-person { left: -2%; top: 48%; }
.node-policy { right: 4%; bottom: 7%; }

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

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 5vw 115px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-bright);
  box-shadow: 10px 10px 0 rgba(17, 21, 16, 0.08);
}

.metric-strip article { min-height: 142px; padding: 24px 26px; border-right: 1px solid var(--line); }
.metric-strip article:last-child { border-right: 0; }
.metric-strip span, .metric-strip small { display: block; }
.metric-strip span { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.metric-strip strong { display: block; margin: 12px 0 4px; font-family: var(--display); font-size: 39px; font-weight: 500; }
.metric-strip small { color: var(--muted); }
.metric-strip .safe-text { color: var(--acid-dark); font-family: var(--sans); font-size: 26px; font-weight: 900; }

.workspace { padding: 0 5vw 120px; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  align-items: end;
  gap: 50px;
  margin-bottom: 38px;
}

.section-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(42px, 5vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 0.98; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.map-shell {
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper-bright);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.map-toolbar > div { display: grid; grid-template-columns: 11px auto; column-gap: 10px; align-items: center; }
.map-toolbar strong { font-size: 15px; }
.map-toolbar small { grid-column: 2; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acid-dark); box-shadow: 0 0 0 5px rgba(72, 114, 13, 0.12); }

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(470px, 55%);
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.search-field span { font-size: 22px; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; }

.map-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr); min-height: 620px; }

.floor-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, 1fr);
  gap: 11px;
  padding: 22px;
  background: #dcded4;
}

.room {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(17, 21, 16, 0.38);
  background:
    radial-gradient(circle at 80% 15%, rgba(201, 255, 98, 0.24), transparent 30%),
    var(--paper-bright);
  overflow: hidden;
}

.room:nth-child(1) { border-radius: 28px 8px 8px 8px; }
.room:nth-child(2) { border-radius: 8px 28px 8px 8px; }
.room:nth-child(3) { border-radius: 8px 8px 8px 28px; }
.room:nth-child(4) { border-radius: 8px 8px 28px 8px; }
.room::before { content: attr(data-type); position: absolute; right: 18px; top: 18px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.room h3 { margin: 0 0 5px; font-family: var(--display); font-size: 25px; font-weight: 500; }
.room-count { color: var(--muted); font-size: 11px; }

.device-cloud { position: absolute; inset: 80px 15px 15px; }
.device-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 48%;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-bright);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease;
}

.device-node:nth-child(1) { top: 7%; left: 3%; }
.device-node:nth-child(2) { top: 34%; right: 2%; }
.device-node:nth-child(3) { bottom: 11%; left: 20%; }
.device-node:nth-child(4) { top: 3%; right: 4%; }
.device-node:nth-child(5) { bottom: 3%; right: 5%; }
.device-node:hover, .device-node.highlighted { color: var(--paper-bright); background: var(--ink); transform: translateY(-3px); }
.device-node.offline { border-color: var(--signal); border-style: dashed; }
.device-node i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--acid-dark); }
.device-node.offline i { background: var(--signal); }

.context-panel { padding: 28px; border-left: 1px solid var(--line); background: #f7f5ee; }
.context-empty { display: flex; min-height: 100%; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.context-symbol { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 34px; }
.context-empty h3 { margin: 20px 0 9px; font-family: var(--display); font-size: 28px; font-weight: 500; }
.context-empty p { max-width: 270px; margin: 0; color: var(--muted); line-height: 1.6; }

.search-results h3 { margin: 0 0 5px; font-family: var(--display); font-size: 30px; font-weight: 500; }
.search-results > p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.result-card { padding: 17px 0; border-top: 1px solid var(--line); }
.result-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result-card strong { font-size: 14px; }
.result-card header span { padding: 4px 7px; border-radius: 999px; background: var(--acid); font-size: 9px; font-weight: 900; }
.result-card p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.result-card small { color: var(--acid-dark); font-weight: 800; }

.compiler-section { padding-top: 20px; }
.compiler-grid { display: grid; grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr); gap: 20px; }
.command-card, .policy-card { min-height: 560px; border: 1px solid var(--ink); border-radius: var(--radius-lg); background: var(--paper-bright); }
.command-card { padding: clamp(26px, 4vw, 48px); background: var(--ink); color: var(--paper-bright); }
.card-kicker { display: inline-flex; padding: 7px 10px; color: var(--ink); border-radius: 999px; background: var(--acid); font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.command-card label { display: block; margin: 35px 0 16px; font-family: var(--display); font-size: 35px; line-height: 1.1; }
.command-card textarea { width: 100%; padding: 18px; color: var(--paper-bright); border: 1px solid #60675e; border-radius: 15px; outline: 0; background: #20251f; resize: vertical; font-size: 16px; line-height: 1.5; }
.command-card textarea:focus { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(201, 255, 98, 0.12); }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 27px; }
.suggestions button { padding: 8px 11px; color: #c9cec7; border: 1px solid #555b53; border-radius: 999px; background: transparent; cursor: pointer; font-size: 11px; }
.suggestions button:hover { color: var(--ink); border-color: var(--acid); background: var(--acid); }
.full-button { width: 100%; box-shadow: 6px 6px 0 var(--signal); }
.full-button:hover { box-shadow: 9px 9px 0 var(--signal); }
.inline-error { margin: 20px 0 0; color: #ff9c80; line-height: 1.5; }

.policy-card { padding: clamp(26px, 4vw, 44px); }
.policy-placeholder { display: flex; min-height: 470px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.policy-glyph { color: var(--signal); font-family: var(--display); font-size: 70px; }
.policy-placeholder h3 { margin: 8px 0; font-family: var(--display); font-size: 32px; font-weight: 500; }
.policy-placeholder p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.6; }
.policy-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.status-pill, .mode-pill { display: inline-block; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: 0.1em; }
.status-pill { color: var(--paper-bright); background: var(--ink); }
.mode-pill { color: var(--acid-dark); border: 1px solid var(--acid-dark); }
.policy-header h3 { margin: 13px 0 0; font-family: var(--display); font-size: 38px; font-weight: 500; }
.policy-meta { display: flex; gap: 18px; margin: 21px 0; padding-bottom: 18px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.action-list { max-height: 315px; margin: 0; padding: 0; list-style: none; overflow: auto; }
.action-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.action-index { display: grid; width: 28px; height: 28px; place-items: center; color: var(--paper-bright); border-radius: 50%; background: var(--ink); font-size: 10px; font-weight: 900; }
.action-copy strong, .action-copy small { display: block; }
.action-copy strong { font-size: 13px; }
.action-copy small { margin-top: 3px; color: var(--muted); }
.risk-badge { padding: 5px 8px; border-radius: 999px; background: #e7e6de; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.risk-badge.medium, .risk-badge.high { color: #7e4b00; background: #ffe3a8; }
.risk-badge.critical { color: #8c2014; background: #ffd2ca; }
.simulation-button { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 22px; padding: 15px 18px; color: var(--paper-bright); border: 0; border-radius: 12px; background: var(--signal); cursor: pointer; font-weight: 900; }
.simulation-button:hover { background: #e9582e; }

.assurance-section { padding-top: 20px; }
.compact-heading { align-items: center; }
.assurance-state { display: flex; align-items: center; justify-self: end; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-bright); font-size: 12px; font-weight: 800; }
.assurance-state span { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.assurance-state.ready span { background: var(--acid-dark); }
.assurance-state.review span { background: #d68900; }
.assurance-state.blocked span { background: var(--danger); }
.assurance-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 20px; }
.audit-panel, .simulation-panel { min-height: 380px; padding: 30px; border: 1px solid var(--ink); border-radius: var(--radius-md); background: var(--paper-bright); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 500; }
.panel-heading span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 0.09em; }
.empty-panel { display: flex; min-height: 255px; align-items: center; justify-content: center; color: var(--muted); text-align: center; line-height: 1.7; }
.audit-summary { display: flex; align-items: center; gap: 13px; padding: 18px 0; }
.audit-summary strong { font-family: var(--display); font-size: 24px; font-weight: 500; }
.audit-summary span { padding: 5px 8px; border-radius: 999px; background: var(--acid); font-size: 9px; font-weight: 900; }
.finding, .transition { display: grid; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.finding { grid-template-columns: 10px 1fr; }
.finding i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--signal); }
.finding strong, .finding p { margin: 0; }
.finding strong { font-size: 12px; text-transform: uppercase; }
.finding p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.all-clear { display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.all-clear span { font-size: 48px; }
.all-clear strong { margin-top: 10px; font-family: var(--display); font-size: 26px; font-weight: 500; }
.all-clear p { max-width: 300px; color: var(--muted); line-height: 1.5; }
.transition { grid-template-columns: 1fr auto 1fr; align-items: center; }
.transition div { min-width: 0; }
.transition div:last-child { text-align: right; }
.transition strong, .transition small { display: block; }
.transition strong { font-size: 12px; }
.transition small { margin-top: 4px; color: var(--muted); }
.transition > span { color: var(--signal); font-size: 20px; }

.boundary-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin: 20px 5vw 120px;
  padding: clamp(35px, 6vw, 75px);
  color: var(--paper-bright);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 255, 98, 0.22), transparent 30%),
    var(--ink);
}
.boundary-section .eyebrow { color: var(--acid); }
.boundary-section h2 { margin: 0; font-family: var(--display); font-size: clamp(42px, 5vw, 70px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.boundary-lines p { display: flex; gap: 16px; margin: 0; padding: 18px 0; color: #d2d7d0; border-bottom: 1px solid #434940; line-height: 1.4; }
.boundary-lines span { color: var(--acid); font-size: 11px; font-weight: 900; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 5vw; color: #bcc1ba; background: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: 0.12em; }
footer p { margin: 0; font-weight: 500; letter-spacing: 0; }

.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: 360px; padding: 15px 18px; color: var(--paper-bright); border-radius: 12px; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: 180ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

.setup-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 21, 16, 0.64);
  backdrop-filter: blur(18px);
}

.setup-overlay[hidden] { display: none; }

.setup-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  border: 1px solid var(--ink);
  border-radius: 34px;
  background: var(--paper-bright);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
  overflow: auto;
}

.setup-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-bright);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.setup-copy {
  padding: clamp(38px, 6vw, 72px);
  color: var(--paper-bright);
  border-radius: 32px 0 0 32px;
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 255, 98, 0.24), transparent 28%),
    var(--ink);
}

.setup-copy .eyebrow { color: var(--acid); }
.setup-copy h2 { margin: 0; font-family: var(--display); font-size: clamp(52px, 6vw, 82px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; }
.setup-copy h2 em { color: var(--signal); font-weight: 500; }
.setup-copy > p:not(.eyebrow) { max-width: 470px; margin: 28px 0 0; color: #c9cec7; line-height: 1.65; }
.setup-steps { margin: 42px 0 0; padding: 0; list-style: none; }
.setup-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 13px; padding: 14px 0; border-top: 1px solid #3f463e; }
.setup-steps li > span { display: grid; grid-row: span 2; width: 30px; height: 30px; place-items: center; color: var(--ink); border-radius: 50%; background: var(--acid); font-size: 11px; font-weight: 900; }
.setup-steps strong { font-size: 14px; }
.setup-steps small { color: #9fa69d; }

.setup-form { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 5vw, 68px); }
.setup-mark { display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 34px; }
.setup-form h3 { margin: 24px 0 6px; font-family: var(--display); font-size: 36px; font-weight: 500; }
.setup-note { margin: 0 0 28px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.setup-form label { margin-bottom: 8px; font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.setup-form input { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: #fff; }
.setup-form input:focus { border-color: var(--acid-dark); box-shadow: 0 0 0 4px rgba(201, 255, 98, 0.22); }
.setup-primary { width: 100%; justify-content: space-between; margin-top: 14px; box-shadow: 6px 6px 0 var(--acid); }
.setup-primary:disabled { cursor: wait; opacity: 0.62; }
.setup-status { min-height: 38px; margin: 15px 0 0; color: var(--danger); font-size: 12px; line-height: 1.45; }
.setup-demo, .setup-disconnect { padding: 11px; border: 0; background: transparent; cursor: pointer; font-size: 12px; text-decoration: underline; }
.setup-disconnect { color: var(--danger); }
.advanced-setup { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.advanced-setup summary { cursor: pointer; font-weight: 800; }
.advanced-setup p { line-height: 1.45; }
.advanced-setup button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: transparent; cursor: pointer; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 70px; padding-top: 80px; }
  .hero-orbit { width: min(78vw, 460px); }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-strip article:nth-child(2) { border-right: 0; }
  .metric-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .map-layout, .compiler-grid, .assurance-grid, .boundary-section { grid-template-columns: 1fr; }
  .context-panel { min-height: 320px; border-top: 1px solid var(--line); border-left: 0; }
  .assurance-state { justify-self: start; }
  .setup-card { grid-template-columns: 1fr; }
  .setup-copy { padding: 28px 32px; border-radius: 32px 32px 0 0; }
  .setup-copy h2 { font-size: 50px; }
  .setup-copy > p:not(.eyebrow) { display: none; }
  .setup-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
  .setup-steps li { grid-template-columns: 30px 1fr; padding: 11px 0 0; }
  .setup-steps small { display: none; }
  .setup-form { padding: 28px 32px; }
  .setup-mark { display: none; }
  .setup-form h3 { margin-top: 0; }
}

@media (max-width: 680px) {
  .topbar { min-height: 68px; padding: 0 18px; }
  .outline-button { padding: 9px 12px; }
  .hero { padding: 65px 20px 55px; }
  .hero h1 { font-size: 57px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .metric-strip { margin: 0 20px 90px; }
  .metric-strip article { min-height: 125px; padding: 19px; }
  .metric-strip strong { font-size: 32px; }
  .workspace { padding: 0 20px 90px; }
  .section-heading h2 { font-size: 44px; }
  .map-toolbar { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .floor-plan { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .room { border-radius: 18px !important; }
  .command-card, .policy-card { min-height: 500px; }
  .policy-meta { flex-wrap: wrap; }
  .boundary-section { gap: 42px; margin: 0 20px 90px; padding: 34px 25px; }
  footer { align-items: flex-start; flex-direction: column; }
  .setup-overlay { padding: 10px; }
  .setup-card { max-height: calc(100vh - 20px); border-radius: 24px; }
  .setup-copy, .setup-form { padding: 24px 22px; }
  .setup-copy { border-radius: 23px 23px 0 0; }
  .setup-copy h2 { font-size: 44px; }
  .setup-steps { gap: 8px; }
  .setup-steps li { display: flex; align-items: center; gap: 7px; }
  .setup-steps li > span { flex: 0 0 auto; }
  .setup-form h3 { font-size: 31px; }
}

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

/* Spatial OS visual system v2: engineered, spatial and product-led. */
:root {
  --ink: #e9f3f1;
  --ink-soft: #b9c7c5;
  --paper: #070c0d;
  --paper-bright: #101719;
  --line: rgba(180, 218, 217, 0.18);
  --muted: #81918f;
  --acid: #b9ff63;
  --acid-dark: #b9ff63;
  --signal: #ff825d;
  --blue: #58e4ff;
  --danger: #ff715b;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --radius-lg: 18px;
  --radius-md: 14px;
  --sans: "Avenir Next", "Helvetica Neue", sans-serif;
  --display: "DIN Alternate", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", "IBM Plex Mono", "Menlo", monospace;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 3%, rgba(88, 228, 255, 0.085), transparent 26rem),
    radial-gradient(circle at 8% 35%, rgba(185, 255, 99, 0.055), transparent 30rem),
    linear-gradient(rgba(156, 200, 198, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 200, 198, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 12, 13, 0.8), transparent 24%, transparent 76%, rgba(7, 12, 13, 0.8));
}

.ambient { display: none; }

.topbar {
  min-height: 72px;
  border-bottom-color: rgba(180, 218, 217, 0.14);
  background: rgba(7, 12, 13, 0.82);
  backdrop-filter: blur(24px) saturate(140%);
}

.brand { color: #fff; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }
.brand > span:last-child span { color: var(--blue); }
.brand-mark { width: 27px; height: 27px; border-color: var(--blue); border-radius: 7px; transform: rotate(45deg); }
.brand-mark i { width: 4px; height: 4px; background: var(--blue); transform: rotate(-45deg); }
.brand-mark i:nth-child(1) { top: 5px; left: 11px; }
.brand-mark i:nth-child(2) { left: 5px; bottom: 5px; }
.brand-mark i:nth-child(3) { right: 5px; bottom: 5px; background: var(--acid); }
nav a { color: #91a3a0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
nav a:hover { color: var(--blue); }

.outline-button {
  color: var(--ink);
  border-color: rgba(185, 255, 99, 0.6);
  border-radius: 7px;
  background: rgba(185, 255, 99, 0.06);
  font-family: var(--mono);
  font-size: 10px;
}
.outline-button:hover { color: #07100b; background: var(--acid); }
.topbar-actions { display: flex; align-items: center; justify-self: end; gap: 12px; }
.billing-state { padding: 7px 10px; color: #71827f; border: 1px solid #30474a; border-radius: 999px; font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: 0.1em; }
.billing-state.active { color: var(--acid); border-color: rgba(185, 255, 99, 0.45); background: rgba(185, 255, 99, 0.06); }

main { width: min(1580px, 100%); }

.hero {
  grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.12fr);
  gap: clamp(42px, 6vw, 100px);
  min-height: 770px;
  padding-top: 72px;
  padding-bottom: 58px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
}
.eyebrow::after { content: ""; width: 54px; height: 1px; background: currentColor; opacity: 0.55; }
.eyebrow-index { color: var(--blue); }

.hero h1 {
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(58px, 6.7vw, 106px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.91;
}
.hero h1 span { color: #8fa09d; font-weight: 500; }

.hero-lede {
  max-width: 635px;
  margin-top: 30px;
  color: #a8b7b5;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.62;
}

.hero-actions { margin-top: 32px; }
.primary-button {
  min-height: 50px;
  gap: 28px;
  color: #07100b;
  border-color: var(--acid);
  border-radius: 7px;
  background: var(--acid);
  box-shadow: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(185, 255, 99, 0.22); }
.text-button {
  color: var(--ink);
  border-bottom-color: #425350;
  font-family: var(--mono);
  font-size: 11px;
}
.text-button span { color: var(--blue); }

.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 35px; color: #7f918e; font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-proof span { display: flex; align-items: center; gap: 7px; }
.hero-proof i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px rgba(185, 255, 99, 0.7); }

.hero-visual { min-width: 0; margin: 0; }
.visual-frame {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(180, 218, 217, 0.22);
  border-radius: 22px;
  background: rgba(12, 22, 24, 0.78);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  overflow: hidden;
}
.visual-frame::before, .visual-frame::after { content: ""; position: absolute; z-index: 2; width: 24px; height: 24px; pointer-events: none; }
.visual-frame::before { top: 0; left: 0; border-top: 2px solid var(--acid); border-left: 2px solid var(--acid); }
.visual-frame::after { right: 0; bottom: 0; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.visual-frame img { display: block; width: 100%; border-radius: 14px; }
.visual-readout { position: absolute; z-index: 3; bottom: 28px; padding: 10px 14px; border: 1px solid rgba(180, 218, 217, 0.25); border-radius: 8px; background: rgba(5, 13, 14, 0.86); backdrop-filter: blur(10px); }
.visual-readout small, .visual-readout strong { display: block; }
.visual-readout small { color: #728682; font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; }
.visual-readout strong { margin-top: 3px; color: #fff; font-family: var(--mono); font-size: 19px; }
.readout-entities { left: 28px; }
.readout-latency { right: 28px; }
.readout-latency strong { color: var(--acid); font-size: 13px; }
.hero-visual figcaption { display: flex; justify-content: space-between; padding: 12px 5px 0; color: #5f716e; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }

.metric-strip {
  margin-bottom: 135px;
  border-color: rgba(180, 218, 217, 0.2);
  border-radius: 0;
  background: rgba(11, 20, 22, 0.72);
  box-shadow: none;
}
.metric-strip article { min-height: 122px; border-color: var(--line); }
.metric-strip span { color: #71817f; font-family: var(--mono); font-size: 9px; }
.metric-strip strong { margin-top: 15px; color: #f4faf8; font-family: var(--mono); font-size: 32px; font-weight: 500; }
.metric-strip small { color: #657572; font-family: var(--mono); font-size: 9px; }
.metric-strip .safe-text { color: var(--acid); font-family: var(--mono); font-size: 21px; }

.usage-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(46px, 6vw, 94px);
  padding: 0 5vw 145px;
}
.usage-heading { align-self: center; }
.usage-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(44px, 4.5vw, 70px); font-weight: 650; letter-spacing: -0.05em; line-height: 0.96; }
.usage-heading > p:last-child { max-width: 430px; margin: 27px 0 0; color: #82928f; font-size: 15px; line-height: 1.7; }
.usage-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.usage-card { position: relative; min-width: 0; min-height: 390px; padding: 19px; border: 1px solid #2d4447; border-radius: 12px; background: linear-gradient(160deg, rgba(19, 32, 35, 0.94), rgba(9, 17, 19, 0.94)); overflow: hidden; }
.usage-card::after { content: ""; position: absolute; right: -45px; bottom: -45px; width: 130px; height: 130px; border: 1px solid rgba(88, 228, 255, 0.1); border-radius: 50%; }
.usage-meta { display: flex; align-items: center; justify-content: space-between; color: #58706d; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; }
.usage-meta span { color: var(--blue); }
.usage-card h3 { margin: 27px 0 8px; color: #f0f7f5; font-family: var(--display); font-size: 22px; font-weight: 650; }
.usage-card > p { margin: 0; color: #768986; font-size: 12px; line-height: 1.65; }
.mini-connect-ui, .mini-command-ui, .mini-policy-ui { min-height: 151px; margin-top: 28px; border: 1px solid #314b4e; border-radius: 8px; background: #081113; box-shadow: inset 0 0 30px rgba(88, 228, 255, 0.025); }
.mini-connect-ui { display: grid; grid-template-columns: 37px 1fr; gap: 10px; align-content: center; padding: 16px; }
.mini-connect-ui > i { display: grid; grid-row: span 2; width: 37px; height: 37px; place-items: center; color: #07100b; border-radius: 8px; background: var(--acid); font-family: var(--mono); font-style: normal; font-weight: 800; }
.mini-connect-ui strong, .mini-connect-ui small { display: block; }
.mini-connect-ui strong { font-size: 11px; }
.mini-connect-ui small { margin-top: 3px; color: #617572; font-family: var(--mono); font-size: 7px; }
.mini-connect-ui b { grid-column: 1 / -1; justify-self: stretch; margin-top: 14px; padding: 8px; color: var(--acid); border: 1px solid rgba(185, 255, 99, 0.25); border-radius: 5px; background: rgba(185, 255, 99, 0.06); font-family: var(--mono); font-size: 7px; letter-spacing: 0.12em; text-align: center; }
.mini-command-ui { display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 7px 9px; padding: 18px; }
.mini-command-ui > span { color: var(--acid); font-family: var(--mono); font-size: 18px; }
.mini-command-ui p { margin: 0; color: #e0ebe8; font-family: var(--mono); font-size: 10px; line-height: 1.55; }
.mini-command-ui i { grid-column: 2; width: 7px; height: 13px; background: var(--blue); animation: cursorPulse 1.2s steps(1) infinite; }
@keyframes cursorPulse { 50% { opacity: 0; } }
.mini-policy-ui { padding: 13px; }
.mini-policy-ui header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid #263c3f; color: #687c79; font-family: var(--mono); font-size: 7px; letter-spacing: 0.1em; }
.mini-policy-ui header b { color: var(--acid); }
.mini-policy-ui p { display: grid; grid-template-columns: 6px 1fr auto; gap: 7px; align-items: center; margin: 0; padding: 10px 0; color: #91a3a0; border-bottom: 1px solid #1c2e30; font-family: var(--mono); font-size: 7px; }
.mini-policy-ui p i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.mini-policy-ui p strong { color: #d9e5e2; font-size: 7px; }

.workspace { padding-bottom: 135px; }
.section-heading { align-items: start; margin-bottom: 42px; }
.section-heading h2 {
  font-family: var(--display);
  font-size: clamp(42px, 4.5vw, 69px);
  font-weight: 650;
  letter-spacing: -0.045em;
}
.section-heading > p { color: #81918f; font-size: 15px; }

.map-shell {
  border-color: rgba(180, 218, 217, 0.24);
  background: #0b1214;
  box-shadow: var(--shadow);
}
.map-toolbar { min-height: 76px; border-color: var(--line); background: #0a1113; }
.map-toolbar strong { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.map-toolbar small { color: #647673; font-family: var(--mono); font-size: 9px; }
.live-dot { background: var(--acid); box-shadow: 0 0 14px rgba(185, 255, 99, 0.65); }
.search-field { border-color: rgba(180, 218, 217, 0.2); border-radius: 7px; background: #111b1d; }
.search-field input { color: var(--ink); font-family: var(--mono); font-size: 11px; }
.search-field input::placeholder { color: #61716f; }
.search-field span { color: var(--blue); }

.floor-plan { gap: 8px; background: #071012; }
.room { border-color: #3a5558; border-radius: 4px !important; background: linear-gradient(145deg, #152528, #101b1e); }
.room::after { color: #637774; font-family: var(--mono); }
.room h3 { font-family: var(--display); font-size: 22px; font-weight: 600; }
.room-count { color: #637774; font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.device-node { color: #dce8e5; border-color: #526a6d; border-radius: 6px; background: #0a1416; font-family: var(--mono); font-size: 9px; }
.device-node:hover, .device-node.highlighted { color: #07100b; border-color: var(--acid); background: var(--acid); box-shadow: 0 0 24px rgba(185, 255, 99, 0.18); }
.device-node i { background: var(--blue); box-shadow: 0 0 8px rgba(88, 228, 255, 0.7); }
.device-node.offline { border-color: var(--signal); }
.context-panel { border-color: var(--line); background: #0d1719; }
.context-symbol { color: var(--blue); border-color: #426266; border-radius: 10px; font-family: var(--mono); }
.context-empty h3, .search-results h3 { font-family: var(--display); font-weight: 600; }
.context-empty p, .search-results > p, .result-card p { color: #7f908d; }
.result-card { border-color: var(--line); }
.result-card header span { color: #07100b; background: var(--acid); font-family: var(--mono); }
.result-card small { color: var(--blue); font-family: var(--mono); }

.compiler-section { padding-top: 0; }
.compiler-grid { gap: 12px; }
.command-card, .policy-card { min-height: 545px; border-color: rgba(180, 218, 217, 0.24); border-radius: var(--radius-lg); background: #0e1719; }
.command-card { background: linear-gradient(145deg, #101b1d, #081012); }
.card-kicker { color: var(--acid); border: 1px solid rgba(185, 255, 99, 0.35); border-radius: 5px; background: rgba(185, 255, 99, 0.07); font-family: var(--mono); }
.command-card label { font-family: var(--display); font-size: 34px; font-weight: 600; }
.command-card textarea { color: #e5efed; border-color: #354a4d; border-radius: 8px; background: #081012; font-family: var(--mono); font-size: 13px; }
.command-card textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(88, 228, 255, 0.08); }
.suggestions button { color: #829491; border-color: #314548; border-radius: 5px; font-family: var(--mono); }
.suggestions button:hover { color: #07100b; border-color: var(--blue); background: var(--blue); }
.full-button { box-shadow: none; }
.full-button:hover { box-shadow: 0 0 34px rgba(185, 255, 99, 0.2); }
.policy-placeholder h3, .policy-header h3 { font-family: var(--display); font-weight: 600; }
.policy-glyph { color: var(--blue); font-family: var(--mono); }
.policy-placeholder p { color: #7f908d; }
.status-pill { border-radius: 4px; background: #263639; font-family: var(--mono); }
.mode-pill { color: var(--acid); border-color: var(--acid); border-radius: 4px; font-family: var(--mono); }
.policy-meta { color: #6d807d; border-color: var(--line); font-family: var(--mono); }
.action-list li { border-color: var(--line); }
.action-index { color: var(--blue); border: 1px solid #3b5b60; border-radius: 5px; background: #0a1416; font-family: var(--mono); }
.action-copy small { color: #758683; }
.risk-badge { border-radius: 4px; background: #233033; font-family: var(--mono); }
.simulation-button { color: #07100b; border-radius: 7px; background: var(--blue); }
.simulation-button:hover { background: #8eedff; }

.live-run-gate { margin-top: 13px; padding: 15px; border: 1px solid #30474a; border-radius: 8px; background: #081113; }
.live-run-gate > div { display: flex; align-items: center; gap: 9px; }
.live-gate-dot { width: 7px; height: 7px; border-radius: 50%; background: #61716f; }
.live-run-gate.available { border-color: rgba(185, 255, 99, 0.38); background: rgba(185, 255, 99, 0.035); }
.live-run-gate.available .live-gate-dot { background: var(--acid); box-shadow: 0 0 10px rgba(185, 255, 99, 0.55); }
.live-run-gate.blocked { border-color: rgba(255, 113, 91, 0.45); }
.live-run-gate.blocked .live-gate-dot { background: var(--danger); }
.live-run-gate.subscription { border-color: rgba(255, 113, 91, 0.45); background: rgba(255, 113, 91, 0.035); }
.live-run-gate.subscription .live-gate-dot { background: var(--signal); box-shadow: 0 0 10px rgba(255, 113, 91, 0.45); }
.live-run-gate strong { font-size: 11px; }
.live-run-gate p { margin: 8px 0 12px; color: #71827f; font-size: 10px; line-height: 1.5; }
.live-run-gate button { width: 100%; padding: 10px 12px; color: #07100b; border: 0; border-radius: 5px; background: var(--acid); cursor: pointer; font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.live-run-gate button:disabled { color: #63716f; border: 1px solid #2d4144; background: #152124; cursor: not-allowed; }

.assurance-state { color: #b8c6c3; border-color: var(--line); border-radius: 6px; background: #0e1719; font-family: var(--mono); font-size: 10px; }
.audit-panel, .simulation-panel { border-color: rgba(180, 218, 217, 0.22); border-radius: var(--radius-md); background: #0d1618; }
.panel-heading { border-color: var(--line); }
.panel-heading h3, .audit-summary strong, .all-clear strong { font-family: var(--display); font-weight: 600; }
.empty-panel, .finding p, .transition small { color: #748683; }
.audit-summary span { color: #07100b; border-radius: 4px; background: var(--acid); font-family: var(--mono); }
.finding, .transition { border-color: var(--line); }
.all-clear span { color: var(--acid); }
.execution-results { margin-top: 12px; border-top: 1px solid var(--line); }
.proof-download { width: 100%; margin-top: 16px; padding: 13px 16px; color: var(--acid); border: 1px solid rgba(185, 255, 99, 0.36); border-radius: 7px; background: rgba(185, 255, 99, 0.04); cursor: pointer; font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.proof-download:hover { color: #071011; background: var(--acid); }
.proof-download[hidden] { display: none; }
.execution-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; }
.execution-summary strong { font-size: 13px; }
.execution-summary span { padding: 5px 8px; color: var(--acid); border: 1px solid rgba(185, 255, 99, 0.3); border-radius: 4px; font-family: var(--mono); font-size: 8px; }
.execution-summary.failed span { color: var(--danger); border-color: rgba(255, 113, 91, 0.35); }
.execution-step { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #1d3033; }
.execution-step i { width: 7px; height: 7px; border-radius: 50%; background: #5a6c69; }
.execution-step.started i { background: var(--blue); box-shadow: 0 0 9px rgba(88, 228, 255, 0.5); }
.execution-step.verified i { background: var(--acid); box-shadow: 0 0 9px rgba(185, 255, 99, 0.5); }
.execution-step.failed i, .execution-step.rollback-failed i { background: var(--danger); }
.execution-step.rolled-back i { background: #ffc85d; }
.execution-step strong, .execution-step small { display: block; }
.execution-step strong { font-size: 10px; }
.execution-step small { margin-top: 3px; color: #6e817e; font-family: var(--mono); font-size: 8px; }
.execution-step > span { color: #8fa19e; font-family: var(--mono); font-size: 8px; text-transform: uppercase; }

.boundary-section {
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 70px;
  border: 1px solid rgba(180, 218, 217, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 76% 40%, rgba(88, 228, 255, 0.07), transparent 34%),
    #0b1315;
}
.boundary-section h2 { font-family: var(--display); font-size: clamp(42px, 4.4vw, 66px); font-weight: 650; }
.boundary-copy > p:last-child { max-width: 520px; margin: 26px 0 0; color: #81918f; line-height: 1.65; }
.runtime-pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.runtime-pipeline article { position: relative; min-height: 176px; padding: 18px 15px; border: 1px solid #294044; border-radius: 10px; background: rgba(7, 14, 16, 0.74); }
.runtime-pipeline article > span { color: #536865; font-family: var(--mono); font-size: 9px; }
.runtime-pipeline strong, .runtime-pipeline small { display: block; }
.runtime-pipeline strong { margin-top: 24px; color: #fff; font-size: 15px; }
.runtime-pipeline small { margin-top: 7px; color: #6d817e; font-family: var(--mono); font-size: 8px; line-height: 1.5; }
.runtime-pipeline > b { color: var(--blue); font-family: var(--mono); font-weight: 400; }
.pipeline-icon { display: grid; width: 37px; height: 37px; margin-top: 16px; place-items: center; color: var(--acid); border: 1px solid #3b585b; border-radius: 7px; font-family: var(--mono); font-size: 15px; font-style: normal; }

.pricing-section { display: grid; grid-template-columns: 0.45fr 1fr 0.9fr; gap: clamp(35px, 5vw, 80px); align-items: center; margin: 0 5vw 120px; padding: clamp(30px, 4vw, 56px); border: 1px solid #2e484b; border-radius: 18px; background: linear-gradient(130deg, rgba(16, 28, 30, 0.95), rgba(7, 15, 17, 0.96)); }
.pricing-signal { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding-right: 30px; border-right: 1px solid var(--line); font-family: var(--mono); }
.pricing-signal span { color: var(--acid); font-size: 9px; letter-spacing: 0.13em; }
.pricing-signal i { width: 82px; height: 82px; border: 1px solid #35575a; border-radius: 50%; background: radial-gradient(circle, rgba(185,255,99,.22) 0 4px, transparent 5px), repeating-radial-gradient(circle, transparent 0 13px, rgba(88,228,255,.1) 14px 15px); }
.pricing-signal small { color: #5f7471; font-size: 7px; letter-spacing: 0.1em; }
.pricing-copy h2 { margin: 0; font-family: var(--display); font-size: clamp(40px, 4vw, 62px); font-weight: 650; letter-spacing: -0.045em; line-height: 0.98; }
.pricing-copy > p:last-child { max-width: 520px; margin: 22px 0 0; color: #82928f; line-height: 1.65; }
.pricing-card { padding: 25px; border: 1px solid #385256; border-radius: 12px; background: #081113; }
.pricing-card > div { display: flex; align-items: baseline; gap: 9px; }
.pricing-card > div strong { color: #fff; font-family: var(--display); font-size: 58px; letter-spacing: -0.05em; }
.pricing-card > div span { color: #728481; font-family: var(--mono); font-size: 9px; }
.pricing-card ul { margin: 16px 0 22px; padding: 0; list-style: none; }
.pricing-card li { position: relative; padding: 8px 0 8px 17px; color: #a5b5b2; border-top: 1px solid #1e3134; font-size: 11px; }
.pricing-card li::before { content: ""; position: absolute; left: 0; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--acid); }
.pricing-card .primary-button { width: 100%; }
.pricing-card > small { display: block; margin-top: 13px; color: #617370; font-family: var(--mono); font-size: 8px; text-align: center; }
.manage-subscription { display: block; width: max-content; margin: 18px auto 0; }
.lead-form { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(240px, 0.65fr) minmax(340px, 1.35fr); gap: 28px; align-items: center; margin-top: -15px; padding: 22px 24px; border: 1px solid #2c4548; border-radius: 12px; background: rgba(6, 15, 17, 0.62); }
.lead-form label strong, .lead-form label span { display: block; }
.lead-form label strong { color: #eef4f1; font-size: 14px; }
.lead-form label span { margin-top: 5px; color: #748683; font-size: 11px; }
.lead-form > div { display: grid; grid-template-columns: 1fr auto; }
.lead-form input { min-width: 0; padding: 13px 15px; color: #eef4f1; border: 1px solid #3c585c; border-right: 0; border-radius: 7px 0 0 7px; background: #081113; }
.lead-form button { padding: 0 18px; color: #07100b; border: 1px solid var(--acid); border-radius: 0 7px 7px 0; background: var(--acid); cursor: pointer; font-family: var(--mono); font-size: 9px; font-weight: 800; }
.lead-form button:disabled { opacity: 0.55; cursor: wait; }
.lead-form > p { grid-column: 2; min-height: 15px; margin: -18px 0 0; color: var(--acid); font-family: var(--mono); font-size: 8px; }

.activation-page, .legal-page { min-height: 100vh; background-color: #071011; }
.activation-shell, .legal-shell { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 80px; }
.activation-page .brand, .legal-page .brand { color: #f3f5ed; }
.activation-page .brand-mark, .legal-page .brand-mark { border-color: var(--blue); }
.activation-card { margin-top: clamp(75px, 15vh, 150px); padding: clamp(30px, 6vw, 68px); color: #eef2e8; border: 1px solid #2e4548; border-radius: 22px; background: linear-gradient(145deg, #0c1719, #081113); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35); }
.activation-card h1 { margin: 0; font-family: var(--display); font-size: clamp(45px, 7vw, 74px); font-weight: 650; letter-spacing: -0.05em; line-height: 0.98; }
.activation-card > p:not(.eyebrow) { max-width: 680px; margin: 23px 0; color: #94a5a1; line-height: 1.65; }
.activation-progress { display: flex; align-items: center; gap: 12px; margin: 28px 0; padding: 15px; border: 1px solid #2c4548; border-radius: 9px; color: #b8c5c1; font-size: 12px; }
.activation-progress i { width: 10px; height: 10px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 7px rgba(185, 255, 99, 0.08); animation: pulse 1.2s infinite; }
.activation-progress strong { color: var(--acid); font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; }
.activation-home { display: inline-block; margin-left: 24px; color: #f0f4ec; border-color: #f0f4ec; text-decoration: none; }
.legal-shell article { margin-top: 50px; padding: clamp(28px, 6vw, 70px); color: #eaf0e7; border: 1px solid #2c4143; border-radius: 20px; background: #0b1517; }
.legal-shell h1 { margin: 0 0 34px; font-family: var(--display); font-size: clamp(50px, 8vw, 84px); font-weight: 650; letter-spacing: -0.05em; }
.legal-shell h2 { margin: 34px 0 10px; color: var(--acid); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.legal-shell p { color: #a6b3af; line-height: 1.7; }
.legal-shell a { color: #eaf0e7; }

footer { color: #5f716e; border-top: 1px solid var(--line); background: #05090a; font-family: var(--mono); }
.toast { color: #07100b; border: 1px solid var(--acid); border-radius: 7px; background: var(--acid); font-family: var(--mono); }

.setup-overlay { background: rgba(2, 7, 8, 0.84); backdrop-filter: blur(22px); }
.setup-card { grid-template-columns: 1.12fr 0.88fr; border-color: #354c50; border-radius: 20px; background: #0d1618; }
.setup-close { color: #dce9e6; border-color: #52686b; border-radius: 7px; background: rgba(8, 16, 18, 0.86); font-family: var(--mono); }
.setup-copy { position: relative; padding: clamp(34px, 4.5vw, 60px); color: var(--ink); border-right: 1px solid var(--line); border-radius: 19px 0 0 19px; background: #081012; overflow: hidden; }
.setup-copy h2 { position: relative; z-index: 2; max-width: 650px; font-family: var(--display); font-size: clamp(48px, 5vw, 72px); font-weight: 650; line-height: 0.95; }
.setup-copy h2 span { color: #91a3a0; }
.setup-copy > p:not(.eyebrow) { position: relative; z-index: 2; max-width: 540px; margin-top: 19px; color: #8b9c99; }
.setup-twin { position: relative; z-index: 1; height: 180px; margin: 24px 0 17px; border: 1px solid #2d4549; border-radius: 10px; overflow: hidden; }
.setup-twin img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0.78; }
.setup-twin span { position: absolute; left: 13px; bottom: 11px; padding: 6px 8px; color: var(--acid); border: 1px solid rgba(185, 255, 99, 0.32); border-radius: 4px; background: rgba(4, 11, 12, 0.86); font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; }
.setup-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.setup-steps li { grid-template-columns: 26px 1fr; padding: 11px 8px 0 0; border-color: #2b3e41; }
.setup-steps li > span { width: 25px; height: 25px; color: #07100b; background: var(--acid); font-family: var(--mono); }
.setup-steps strong { font-size: 11px; }
.setup-steps small { color: #5f7470; font-family: var(--mono); font-size: 7px; }
.setup-form { padding: clamp(35px, 4vw, 58px); background: #0d1618; }
.setup-mark { position: relative; width: 54px; height: 54px; border-color: #3a585c; border-radius: 11px; }
.setup-mark::before, .setup-mark::after, .setup-mark i { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px rgba(88, 228, 255, 0.6); }
.setup-mark::before { left: 11px; bottom: 12px; }
.setup-mark::after { right: 11px; bottom: 12px; }
.setup-mark i { top: 11px; left: 23px; background: var(--acid); box-shadow: 0 0 12px rgba(185, 255, 99, 0.6); }
.setup-form h3 { font-family: var(--display); font-size: 32px; font-weight: 650; }
.setup-note { color: #788a87; font-family: var(--mono); font-size: 10px; }
.setup-form label { color: #829491; font-family: var(--mono); font-size: 9px; }
.setup-form input { color: #e8f2f0; border-color: #3a5155; border-radius: 7px; background: #081012; font-family: var(--mono); font-size: 12px; }
.setup-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(88, 228, 255, 0.08); }
.setup-primary { box-shadow: none; }
.setup-demo, .setup-disconnect { color: #98aaa7; font-family: var(--mono); font-size: 9px; }
.advanced-setup { border-color: var(--line); color: #637572; font-family: var(--mono); font-size: 8px; }
.advanced-setup button { color: #8ea19e; border-color: #354c50; border-radius: 5px; }

.live-run-overlay { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2, 7, 8, 0.88); backdrop-filter: blur(22px); }
.live-run-overlay[hidden] { display: none; }
.live-run-dialog { position: relative; width: min(780px, 100%); max-height: calc(100vh - 48px); padding: clamp(28px, 5vw, 54px); border: 1px solid #3a5659; border-radius: 18px; background: #0b1416; box-shadow: var(--shadow); overflow: auto; }
.live-run-header h2 { margin: 0; font-family: var(--display); font-size: clamp(40px, 5vw, 62px); font-weight: 650; letter-spacing: -0.05em; line-height: 0.96; }
.live-run-header > p:last-child { max-width: 600px; margin: 20px 0 0; color: #82928f; line-height: 1.55; }
.live-run-actions { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.live-run-actions li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.live-run-actions li > span:first-child { display: grid; width: 30px; height: 30px; place-items: center; color: var(--blue); border: 1px solid #3b585c; border-radius: 5px; font-family: var(--mono); font-size: 9px; }
.live-run-actions strong, .live-run-actions small { display: block; }
.live-run-actions strong { font-size: 12px; }
.live-run-actions small { margin-top: 4px; color: #6f817e; font-family: var(--mono); font-size: 8px; }
.live-run-actions b { color: var(--acid); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.live-run-consent { display: flex; gap: 12px; margin-top: 24px; padding: 15px; border: 1px solid #314a4d; border-radius: 8px; background: #081113; cursor: pointer; }
.live-run-consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--acid); }
.live-run-consent span { color: #afbfbc; font-size: 11px; line-height: 1.45; }
.live-run-controls { display: grid; grid-template-columns: 0.45fr 1fr; gap: 10px; margin-top: 17px; }
.cancel-live-run { color: #91a3a0; border: 1px solid #3b5154; border-radius: 7px; background: transparent; cursor: pointer; font-family: var(--mono); font-size: 10px; }
.live-run-controls .primary-button { width: 100%; }
.live-run-controls .primary-button:disabled { color: #687875; border-color: #2c4043; background: #172225; cursor: not-allowed; box-shadow: none; }
.live-run-warning { margin: 14px 0 0; color: #657774; font-family: var(--mono); font-size: 8px; line-height: 1.5; text-align: center; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr); gap: 44px; }
  .runtime-pipeline { grid-template-columns: repeat(2, 1fr); }
  .runtime-pipeline > b { display: none; }
  .runtime-pipeline article { min-height: 145px; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 52px; }
  .hero-visual { width: min(820px, 100%); }
  .usage-section { grid-template-columns: 1fr; }
  .compiler-grid, .boundary-section { grid-template-columns: 1fr; }
  .pricing-section { grid-template-columns: 1fr 1fr; }
  .pricing-signal { display: none; }
  .setup-card { grid-template-columns: 1fr; }
  .setup-copy { padding: 27px 30px; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 19px 19px 0 0; }
  .setup-copy h2 { font-size: 47px; }
  .setup-twin, .setup-copy > p:not(.eyebrow), .setup-steps small { display: none; }
  .setup-steps { margin-top: 22px; }
  .setup-form { padding: 27px 30px; }
  .setup-form h3 { margin-top: 0; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form > p { grid-column: 1; margin-top: -17px; }
}

@media (max-width: 680px) {
  .hero { padding-top: 55px; }
  .billing-state { display: none; }
  .topbar-actions { gap: 8px; }
  .hero h1 { font-size: 54px; }
  .hero-actions { gap: 19px; }
  .hero-trial-note { margin-top: 20px; }
  .hero-proof { gap: 12px 18px; }
  .visual-frame { padding: 5px; border-radius: 13px; }
  .visual-frame img { border-radius: 9px; }
  .visual-readout { bottom: 15px; padding: 7px 9px; }
  .readout-entities { left: 15px; }
  .readout-latency { right: 15px; }
  .hero-visual figcaption { font-size: 7px; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip article { min-height: 112px; }
  .usage-section { padding-inline: 20px; padding-bottom: 95px; }
  .usage-flow { grid-template-columns: 1fr; }
  .usage-card { min-height: 330px; }
  .section-heading h2 { font-size: 41px; }
  .floor-plan { grid-template-columns: 1fr; }
  .boundary-section { margin-inline: 20px; padding: 29px 23px; }
  .runtime-pipeline { grid-template-columns: 1fr 1fr; }
  .runtime-pipeline article { min-height: 138px; }
  .pricing-section { grid-template-columns: 1fr; margin-inline: 20px; padding: 24px; }
  .lead-form { padding: 18px; }
  .lead-form > div { grid-template-columns: 1fr; gap: 8px; }
  .lead-form input, .lead-form button { min-height: 46px; border: 1px solid #3c585c; border-radius: 7px; }
  .live-run-overlay { padding: 10px; }
  .live-run-dialog { display: flex; max-height: calc(100vh - 20px); padding: 25px 20px; overflow: hidden; flex-direction: column; }
  .live-run-header > p:last-child { display: none; }
  .live-run-actions { max-height: 260px; overflow-y: auto; }
  .live-run-actions li { grid-template-columns: 30px 1fr; }
  .live-run-actions b { grid-column: 2; }
  .live-run-consent { margin-top: 12px; flex: 0 0 auto; }
  .live-run-controls { position: static; grid-template-columns: 1fr; margin-top: 10px; padding: 0; background: transparent; flex: 0 0 auto; }
  .live-run-controls .primary-button { order: -1; }
  .cancel-live-run { min-height: 44px; }
  .live-run-warning { margin-top: 8px; flex: 0 0 auto; }
  .setup-copy, .setup-form { padding: 21px 22px; }
  .setup-copy h2 { font-size: 39px; }
  .setup-steps { gap: 6px; margin-top: 17px; }
  .setup-steps li { padding-top: 8px; }
  .setup-form h3 { font-size: 29px; }
  .setup-note { margin-bottom: 21px; }
}
