:root {
  color-scheme: dark;
  --ink: #effff7;
  --muted: #8da89d;
  --dim: #5c776d;
  --void: #050908;
  --base: #07110f;
  --surface: #0a1713;
  --surface-2: #0e1d18;
  --line: rgba(181, 255, 222, 0.13);
  --line-strong: rgba(181, 255, 222, 0.24);
  --acid: #c8ff3d;
  --mint: #44f0b4;
  --cyan: #4de7ff;
  --amber: #ffc857;
  --danger: #ff6b6b;
  --violet: #a68cff;
  --radius: 20px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--void);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 9%, rgba(68, 240, 180, 0.09), transparent 24rem),
    radial-gradient(circle at 92% 32%, rgba(77, 231, 255, 0.055), transparent 26rem),
    linear-gradient(180deg, #07110f 0%, #050908 86%);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(181, 255, 222, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 255, 222, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

code,
.mono {
  font-family: var(--mono);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #07110f;
  background: var(--acid);
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.site-header,
.site-footer,
.buyer-main,
.control-main {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(200, 255, 61, 0.5);
  border-radius: 11px;
  color: var(--acid);
  background: linear-gradient(145deg, rgba(200, 255, 61, 0.12), rgba(68, 240, 180, 0.02));
  box-shadow: inset 0 0 20px rgba(200, 255, 61, 0.05);
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.93rem;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-live,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.nav-live {
  color: var(--muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(68, 240, 180, 0.1), 0 0 12px rgba(68, 240, 180, 0.7);
}

.nav-link {
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-link:hover {
  border-color: rgba(200, 255, 61, 0.5);
  background: rgba(200, 255, 61, 0.06);
  transform: translateY(-1px);
}

.panel,
.card-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(14, 29, 24, 0.92), rgba(7, 17, 15, 0.92));
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2 {
  margin-top: 4px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
}

.panel-index,
.eyebrow,
.launch-label {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subtle {
  color: var(--dim);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-pill.is-live,
.status-pill.is-success {
  border-color: rgba(68, 240, 180, 0.42);
  color: var(--mint);
  background: rgba(68, 240, 180, 0.09);
}

.status-pill.is-warning,
.status-pill.is-waiting {
  border-color: rgba(255, 200, 87, 0.38);
  color: var(--amber);
  background: rgba(255, 200, 87, 0.08);
}

.status-pill.is-error {
  border-color: rgba(255, 107, 107, 0.4);
  color: #ff9b9b;
  background: rgba(255, 107, 107, 0.08);
}

/* Buyer page */

.buyer-main {
  padding: 58px 0 72px;
}

.buyer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
  min-height: 650px;
}

.product-visual {
  position: relative;
  min-height: 560px;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(200, 255, 61, 0.1), transparent 45%),
    linear-gradient(150deg, rgba(16, 37, 30, 0.94), rgba(4, 9, 8, 0.98));
}

.product-visual::before,
.product-visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.product-visual::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(200, 255, 61, 0.06) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(200, 255, 61, 0.06) 50%, transparent 50.2%);
}

.product-visual::after {
  width: 280px;
  height: 280px;
  right: -110px;
  bottom: -120px;
  border: 1px solid rgba(200, 255, 61, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(200, 255, 61, 0.022), 0 0 0 78px rgba(200, 255, 61, 0.018);
}

.visual-topline,
.product-caption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visual-signal {
  width: 50px;
  height: 7px;
  border-radius: 99px;
  background: repeating-linear-gradient(90deg, var(--acid) 0 5px, transparent 5px 9px);
  opacity: 0.78;
}

.keyboard {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(88%, 650px);
  padding: 18px;
  border: 1px solid rgba(203, 224, 216, 0.27);
  border-radius: 18px;
  background: linear-gradient(145deg, #2c3734, #101715 68%);
  box-shadow:
    -24px 34px 50px rgba(0, 0, 0, 0.46),
    0 2px 0 #39433f,
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -8px 20px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -47%) perspective(1100px) rotateX(55deg) rotateZ(-14deg);
  transform-style: preserve-3d;
}

.keyboard-lights {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  height: 13px;
  padding-right: 7px;
}

.keyboard-lights i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
}

.key-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.key-row span {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #3d4c47;
  border-bottom-color: #090f0d;
  border-radius: 6px;
  color: #adc3ba;
  background: linear-gradient(145deg, #25312d, #121916);
  box-shadow: 0 4px 0 #080d0b, inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: clamp(0.38rem, 0.74vw, 0.61rem);
}

.key-row-1 span:nth-child(4n + 2),
.key-row-2 span:nth-child(3n),
.key-row-3 span:nth-child(4n),
.key-row-4 span:nth-child(3n + 1) {
  color: var(--acid);
  border-color: rgba(200, 255, 61, 0.32);
  background: linear-gradient(145deg, #2e402c, #172018);
  box-shadow: 0 4px 0 #080d0b, 0 0 12px rgba(200, 255, 61, 0.07);
}

.key-row-5 {
  grid-template-columns: 1fr 1fr 1fr 5fr 1fr 1fr;
  grid-auto-flow: initial;
  grid-auto-columns: initial;
}

.key-row-5 span {
  aspect-ratio: auto;
  min-height: 37px;
}

.key-row-5 .space-key {
  color: var(--acid);
  letter-spacing: 0.22em;
}

.product-caption {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
}

.product-copy {
  max-width: 570px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.section-kicker .subtle {
  max-width: 230px;
  overflow: hidden;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-copy h1,
.control-intro h1 {
  margin: 8px 0 20px;
  font-size: clamp(3.7rem, 7.4vw, 7rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.83;
}

.product-copy h1 span,
.control-intro h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 255, 247, 0.38);
}

.product-lede {
  max-width: 510px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 29px 0 24px;
}

.sale-price {
  color: var(--acid);
  font-family: var(--mono);
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
}

.sale-price small {
  margin-right: 3px;
  font-size: 0.42em;
}

.regular-price {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.92rem;
  text-decoration: line-through;
}

.discount-tag {
  padding: 3px 8px;
  border: 1px solid rgba(200, 255, 61, 0.24);
  color: var(--acid);
  background: rgba(200, 255, 61, 0.07);
  font-size: 0.66rem;
  font-weight: 800;
}

.countdown-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.countdown {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  letter-spacing: -0.05em;
}

.stock-block {
  min-width: 110px;
  text-align: right;
}

.stock-block strong {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 2rem;
}

.stock-block small {
  color: var(--muted);
  font-size: 0.72rem;
}

.stock-track {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-appearance: none;
  appearance: none;
}

.stock-track::-webkit-progress-bar {
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.06);
}

.stock-track::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--acid));
  box-shadow: 0 0 16px rgba(200, 255, 61, 0.28);
  transition: width 450ms ease;
}

.stock-track::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--acid));
  box-shadow: 0 0 16px rgba(200, 255, 61, 0.28);
}

.stock-track.compact {
  height: 6px;
  margin-top: 14px;
}

.stock-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--dim);
  font-size: 0.69rem;
}

.primary-action {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 0 20px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: #08100d;
  background: var(--acid);
  box-shadow: 0 12px 34px rgba(200, 255, 61, 0.13);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-action::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 20%;
  background: rgba(255, 255, 255, 0.45);
  content: "";
  filter: blur(10px);
  transform: skewX(-20deg);
  transition: left 350ms ease;
}

.primary-action:hover:not(:disabled) {
  box-shadow: 0 16px 44px rgba(200, 255, 61, 0.21);
  transform: translateY(-2px);
}

.primary-action:hover:not(:disabled)::before {
  left: 120%;
}

.primary-action:active:not(:disabled) {
  transform: translateY(0);
}

.primary-action:disabled {
  color: #668076;
  background: #17231f;
  box-shadow: none;
  cursor: not-allowed;
}

.button-arrow {
  font-family: var(--mono);
  font-size: 1.4rem;
}

.primary-action.is-loading .button-arrow {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(8, 16, 13, 0.25);
  border-top-color: #08100d;
  border-radius: 50%;
  font-size: 0;
  animation: spin 700ms linear infinite;
}

.action-help {
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.73rem;
  text-align: center;
}

.identity-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  color: var(--dim);
  font-size: 0.68rem;
}

.identity-strip code {
  max-width: 70%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-lower {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 20px;
  margin-top: 44px;
}

.order-console,
.live-snapshot {
  padding: 26px;
}

.empty-order {
  display: flex;
  min-height: 175px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
}

.empty-order strong {
  color: var(--ink);
}

.empty-order p {
  max-width: 440px;
  margin-top: 5px;
  font-size: 0.8rem;
}

.radar-ring {
  position: relative;
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(68, 240, 180, 0.24);
  border-radius: 50%;
}

.radar-ring::before,
.radar-ring i {
  position: absolute;
  border: 1px solid rgba(68, 240, 180, 0.16);
  border-radius: 50%;
  content: "";
}

.radar-ring::before {
  inset: 9px;
}

.radar-ring i {
  width: 6px;
  height: 6px;
  border: 0;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: radar 2.2s ease-in-out infinite;
}

.order-detail {
  padding-top: 24px;
}

.order-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.72rem;
}

.order-id-row code {
  max-width: 70%;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.order-steps li {
  position: relative;
  display: flex;
  gap: 10px;
  padding-right: 10px;
  color: var(--dim);
}

.order-steps li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 13px;
  left: 28px;
  width: calc(100% - 27px);
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.step-node {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.order-steps strong,
.order-steps small {
  display: block;
}

.order-steps strong {
  margin-top: 2px;
  font-size: 0.74rem;
}

.order-steps small {
  margin-top: 4px;
  font-size: 0.61rem;
  line-height: 1.35;
}

.order-steps li.is-active,
.order-steps li.is-complete {
  color: var(--ink);
}

.order-steps li.is-complete .step-node {
  border-color: var(--mint);
  color: #07110f;
  background: var(--mint);
}

.order-steps li.is-active .step-node {
  border-color: var(--acid);
  color: var(--acid);
  box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.08), 0 0 15px rgba(200, 255, 61, 0.15);
}

.order-steps li.is-failed .step-node {
  border-color: var(--danger);
  color: #fff;
  background: rgba(255, 107, 107, 0.24);
}

.order-message {
  min-height: 21px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.76rem;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.snapshot-grid > div {
  min-height: 86px;
  padding: 14px;
  background: var(--surface);
}

.snapshot-grid dt {
  color: var(--dim);
  font-size: 0.67rem;
}

.snapshot-grid dd {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 800;
}

.snapshot-grid small,
.storm-rate small,
.storm-stats small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 500;
}

.connectivity,
.control-connectivity {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.69rem;
}

.connectivity {
  margin-top: 20px;
}

.connectivity-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 9px rgba(255, 200, 87, 0.5);
}

.is-connected .connectivity-light {
  background: var(--mint);
  box-shadow: 0 0 9px rgba(68, 240, 180, 0.6);
}

.is-disconnected .connectivity-light {
  background: var(--danger);
  box-shadow: 0 0 9px rgba(255, 107, 107, 0.5);
}

/* Control tower */

.control-main {
  padding: 52px 0 76px;
}

.control-intro {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: clamp(40px, 8vw, 130px);
  min-height: 320px;
  padding-bottom: 50px;
}

.control-intro h1 {
  margin-bottom: 0;
  font-size: clamp(3.7rem, 7vw, 6.6rem);
}

.control-intro-copy {
  padding-bottom: 10px;
  color: var(--muted);
  line-height: 1.9;
}

.experiment-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.7rem;
}

.experiment-id code {
  max-width: 70%;
  overflow: hidden;
  color: var(--mint);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.36fr) minmax(0, 0.64fr);
  gap: 20px;
  align-items: start;
}

.launch-console {
  position: sticky;
  top: 18px;
  padding: 24px;
}

.form-section {
  padding: 0;
  margin: 28px 0 0;
  border: 0;
}

.form-section legend,
.number-field > span:first-child,
.range-heading {
  font-size: 0.78rem;
  font-weight: 800;
}

.field-help {
  margin-top: 4px;
  color: var(--dim);
  font-size: 0.68rem;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 14px;
}

.preset-button {
  min-width: 0;
  padding: 11px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.preset-button strong,
.preset-button span {
  display: block;
}

.preset-button strong {
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.9vw, 0.86rem);
}

.preset-button span {
  margin-top: 2px;
  font-size: 0.58rem;
}

.preset-button:hover,
.preset-button.is-selected {
  border-color: rgba(200, 255, 61, 0.42);
  color: var(--acid);
  background: rgba(200, 255, 61, 0.07);
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.number-field,
.range-field {
  display: block;
}

.input-shell {
  display: flex;
  align-items: center;
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.input-shell:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(77, 231, 255, 0.08);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-weight: 800;
}

.input-shell small {
  padding-right: 10px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.55rem;
}

.range-field {
  margin-top: 24px;
}

.range-heading,
.range-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.range-heading output {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 1rem;
}

.range-field input {
  width: 100%;
  height: 4px;
  margin: 18px 0 12px;
  accent-color: var(--acid);
  cursor: pointer;
}

.range-scale {
  color: var(--dim);
  font-size: 0.59rem;
}

.form-error {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 9px;
  color: #ffb1b1;
  background: rgba(255, 107, 107, 0.07);
  font-size: 0.72rem;
}

.sandbox-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.sandbox-actions strong,
.sandbox-actions small {
  display: block;
}

.sandbox-actions strong {
  font-size: 0.74rem;
}

.sandbox-actions small {
  margin-top: 2px;
  color: var(--dim);
  font-size: 0.61rem;
}

.danger-button,
.stage-control {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.danger-button {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: #ff9b9b;
}

.danger-button:hover:not(:disabled) {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.07);
}

.danger-button:disabled,
.stage-control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.observatory {
  display: grid;
  gap: 20px;
}

.storm-stage {
  padding: 24px;
}

.storm-heading {
  align-items: center;
}

.storm-rate {
  text-align: right;
}

.storm-rate > span {
  display: block;
  color: var(--dim);
  font-size: 0.62rem;
}

.storm-rate strong {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 1.65rem;
}

.canvas-shell {
  position: relative;
  height: 280px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(90deg, rgba(68, 240, 180, 0.025), rgba(200, 255, 61, 0.03)),
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(181, 255, 222, 0.07) calc(25% - 1px) 25%);
}

#storm-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.canvas-axis {
  position: absolute;
  right: 13px;
  bottom: 9px;
  left: 13px;
  display: flex;
  justify-content: space-between;
  color: rgba(141, 168, 157, 0.65);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.storm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.storm-stats > div {
  padding: 10px 12px;
  background: var(--surface);
}

.storm-stats dt {
  color: var(--dim);
  font-size: 0.6rem;
}

.storm-stats dd {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 800;
}

.inventory-deck {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
}

.inventory-card,
.waitlist-card {
  min-height: 160px;
  padding: 20px;
}

.inventory-number {
  margin-top: 12px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
}

.inventory-number small {
  margin-left: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
}

.inventory-card > p:last-of-type,
.waitlist-card > p:last-child {
  margin-top: 7px;
  color: var(--dim);
  font-size: 0.65rem;
}

.promotion-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.promotion-flow > span:not(.promotion-arrow) {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.promotion-flow small,
.promotion-flow strong {
  display: block;
}

.promotion-flow small {
  color: var(--dim);
  font-size: 0.58rem;
}

.promotion-flow strong {
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.3rem;
}

.promotion-arrow {
  color: var(--acid);
  font-family: var(--mono);
}

.proof-card {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
}

.proof-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--dim);
  font-family: var(--mono);
  font-weight: 900;
}

.proof-card strong,
.proof-card small {
  display: block;
}

.proof-card strong {
  font-size: 0.76rem;
}

.proof-card small {
  margin-top: 2px;
  color: var(--dim);
  font-size: 0.61rem;
}

.proof-card.is-valid {
  border-color: rgba(68, 240, 180, 0.28);
  background: linear-gradient(145deg, rgba(68, 240, 180, 0.09), rgba(7, 17, 15, 0.94));
}

.proof-card.is-valid .proof-icon {
  border-color: var(--mint);
  color: #07110f;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(68, 240, 180, 0.2);
}

.proof-card.is-invalid {
  border-color: rgba(255, 107, 107, 0.3);
}

.proof-card.is-invalid .proof-icon {
  border-color: var(--danger);
  color: #fff;
  background: rgba(255, 107, 107, 0.22);
}

.pipeline-section {
  margin-top: 20px;
  padding: 24px;
}

.pipeline-heading {
  align-items: end;
}

.pipeline-heading > p {
  max-width: 460px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  margin-top: 25px;
}

.pipeline-stage {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.017);
  transition: border-color 180ms ease, background 180ms ease;
}

.pipeline-stage.is-running {
  border-color: rgba(68, 240, 180, 0.26);
  background: rgba(68, 240, 180, 0.025);
}

.pipeline-stage.is-paused {
  border-color: rgba(255, 200, 87, 0.38);
  background: rgba(255, 200, 87, 0.035);
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stage-number {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.worker-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.57rem;
}

.worker-state::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.worker-state.is-running {
  color: var(--mint);
}

.worker-state.is-paused {
  color: var(--amber);
}

.pipeline-stage h3 {
  margin: 15px 0 3px;
  font-size: 0.95rem;
}

.pipeline-stage > p {
  color: var(--dim);
  font-size: 0.64rem;
}

.pipeline-stage dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.pipeline-stage dl > div {
  padding: 8px;
  background: var(--surface);
}

.pipeline-stage dt {
  color: var(--dim);
  font-size: 0.54rem;
}

.pipeline-stage dd {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 800;
}

.stage-control {
  width: 100%;
  margin-top: 13px;
  padding: 8px;
  color: var(--muted);
}

.stage-control:hover:not(:disabled) {
  border-color: rgba(200, 255, 61, 0.38);
  color: var(--acid);
  background: rgba(200, 255, 61, 0.05);
}

.pipeline-stage.is-paused .stage-control {
  border-color: rgba(68, 240, 180, 0.32);
  color: var(--mint);
}

.pipeline-connector {
  position: relative;
  display: block;
  height: 1px;
  overflow: visible;
  background: var(--line-strong);
}

.pipeline-connector::after {
  position: absolute;
  top: -3px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  content: "";
  transform: rotate(45deg);
}

.pipeline-connector i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 9px var(--acid);
  animation: connector 1.8s linear infinite;
}

.infra-studio {
  margin-top: 20px;
  padding: 24px;
  overflow: hidden;
}

.infra-heading {
  align-items: end;
}

.infra-heading > p {
  max-width: 500px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.infra-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.75fr) minmax(0, 1.25fr);
  gap: 20px;
  margin-top: 24px;
}

.infra-capability-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
  list-style: none;
}

.infra-capability-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  background: rgba(7, 17, 15, 0.96);
}

.infra-capability-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.infra-capability-list i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 0 rgba(68, 240, 180, 0);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.infra-capability-list span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.infra-capability-list strong {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 650;
}

.infra-capability-list li.is-ready i {
  background: var(--mint);
  box-shadow: 0 0 11px rgba(68, 240, 180, 0.65);
}

.infra-capability-list li.is-ready strong {
  color: var(--mint);
}

.infra-capability-list li.is-pending i {
  background: var(--amber);
  box-shadow: 0 0 9px rgba(255, 200, 87, 0.42);
}

.infra-capability-list li.is-pending strong {
  color: var(--amber);
}

.infra-actions {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    radial-gradient(circle at 90% 10%, rgba(77, 231, 255, 0.08), transparent 17rem),
    rgba(255, 255, 255, 0.014);
}

.infra-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.secondary-action {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.66rem;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.secondary-action:hover:not(:disabled) {
  border-color: rgba(200, 255, 61, 0.45);
  color: var(--acid);
  background: rgba(200, 255, 61, 0.055);
}

.secondary-action:disabled {
  color: var(--dim);
  cursor: not-allowed;
  opacity: 0.62;
}

.infra-action-status {
  margin-top: 13px;
  color: var(--dim);
  font-size: 0.63rem;
}

.ai-summary-output {
  margin: 16px 0 0;
  padding: 16px 17px;
  border-left: 2px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  background: rgba(77, 231, 255, 0.045);
  font-size: 0.72rem;
  line-height: 1.8;
}

.poster-output {
  margin: 16px 0 0;
}

.poster-output img {
  display: block;
  width: 100%;
  max-height: 360px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

.poster-output figcaption {
  margin-top: 8px;
  color: var(--dim);
  font-size: 0.58rem;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.45fr);
  gap: 20px;
  margin-top: 20px;
}

.orders-panel,
.event-panel {
  min-width: 0;
  padding: 24px;
}

.poll-indicator,
.table-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.05em;
}

.poll-indicator i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: breathe 1.4s ease-in-out infinite;
}

.table-scroll {
  margin-top: 20px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

td:first-child,
td:nth-child(2),
td:last-child {
  font-family: var(--mono);
}

.table-state {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.58rem;
}

.table-state.is-success {
  border-color: rgba(68, 240, 180, 0.3);
  color: var(--mint);
}

.table-state.is-failed {
  border-color: rgba(255, 107, 107, 0.3);
  color: #ff9b9b;
}

.table-state.is-waiting {
  border-color: rgba(255, 200, 87, 0.3);
  color: var(--amber);
}

.empty-row td {
  height: 130px;
  color: var(--dim);
  text-align: center;
}

.event-stream {
  max-height: 275px;
  padding: 0 3px 0 0;
  margin: 20px 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.event-stream li {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 0 0 15px 17px;
  border-left: 1px solid var(--line);
}

.event-stream li::before {
  position: absolute;
  top: 5px;
  left: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.event-stream time,
.event-stream li > span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.event-stream p {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.control-connectivity {
  justify-content: flex-end;
  margin-top: 18px;
}

.control-connectivity time {
  margin-left: 8px;
  color: var(--dim);
  font-family: var(--mono);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.63rem;
  letter-spacing: 0.04em;
}

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

@keyframes radar {
  0%, 100% { opacity: 0.5; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes connector {
  from { left: 0; opacity: 0; }
  20%, 80% { opacity: 1; }
  to { left: calc(100% - 5px); opacity: 0; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 1120px) {
  .buyer-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: 42px;
  }

  .product-visual {
    min-height: 500px;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .launch-console {
    position: static;
  }

  .launch-console form {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1fr;
    gap: 22px;
    align-items: end;
  }

  .launch-console .form-section,
  .launch-console .form-columns,
  .launch-console .range-field {
    margin-top: 24px;
  }

  .launch-console .primary-action {
    grid-column: 3;
  }

  .launch-console .form-error {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .buyer-main,
  .control-main {
    width: min(100% - 32px, 760px);
  }

  .buyer-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-visual {
    min-height: 510px;
  }

  .product-copy {
    max-width: none;
  }

  .buyer-lower,
  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .control-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .control-intro-copy {
    max-width: 620px;
  }

  .launch-console form {
    grid-template-columns: 1fr 1fr;
  }

  .launch-console .form-section {
    grid-column: 1 / -1;
  }

  .launch-console .primary-action {
    grid-column: 2;
  }

  .pipeline {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .pipeline-connector {
    display: none;
  }

  .infra-layout {
    grid-template-columns: 1fr;
  }

  .infra-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .infra-heading > p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .buyer-main,
  .control-main {
    width: calc(100% - 24px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand strong {
    font-size: 0.79rem;
  }

  .brand small,
  .nav-live {
    display: none;
  }

  .top-nav {
    gap: 8px;
  }

  .nav-link {
    padding: 7px 9px;
    font-size: 0.68rem;
  }

  .buyer-main,
  .control-main {
    padding-top: 34px;
  }

  .buyer-hero {
    gap: 34px;
  }

  .product-visual {
    min-height: 365px;
    padding: 18px;
    border-radius: 15px;
  }

  .keyboard {
    width: 94%;
    padding: 10px;
    border-radius: 12px;
  }

  .key-row {
    gap: 3px;
    margin-bottom: 3px;
  }

  .key-row span {
    border-radius: 3px;
    font-size: 0.28rem;
    box-shadow: 0 2px 0 #080d0b;
  }

  .key-row-5 span {
    min-height: 24px;
  }

  .product-caption {
    right: 18px;
    bottom: 15px;
    left: 18px;
    font-size: 0.48rem;
  }

  .product-copy h1,
  .control-intro h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .section-kicker {
    flex-wrap: wrap;
    margin-bottom: 23px;
  }

  .countdown-panel {
    gap: 12px;
  }

  .buyer-lower {
    margin-top: 34px;
  }

  .order-console,
  .live-snapshot,
  .launch-console,
  .storm-stage,
  .pipeline-section,
  .orders-panel,
  .event-panel {
    padding: 18px;
    border-radius: 15px;
  }

  .empty-order {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 6px 10px;
  }

  .order-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .order-steps li:not(:last-child)::after {
    top: 27px;
    bottom: -14px;
    left: 13px;
    width: 1px;
    height: auto;
  }

  .control-intro {
    min-height: 0;
    padding-bottom: 38px;
  }

  .launch-console form {
    display: block;
  }

  .launch-console .form-columns,
  .launch-console .range-field {
    margin-top: 22px;
  }

  .preset-grid {
    grid-template-columns: 1fr 1fr;
  }

  .inventory-deck,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .canvas-shell {
    height: 220px;
  }

  .storm-stats {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pipeline-heading > p {
    text-align: left;
  }

  .pipeline-stage {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
  }

  .pipeline-stage .stage-top,
  .pipeline-stage h3,
  .pipeline-stage > p {
    grid-column: 1;
  }

  .pipeline-stage dl {
    grid-column: 1;
  }

  .pipeline-stage .stage-control {
    grid-column: 2;
    grid-row: 1 / 5;
    width: 82px;
    margin: 0;
  }

  .infra-studio {
    padding: 18px;
    border-radius: 15px;
  }

  .infra-capability-list {
    grid-template-columns: 1fr;
  }

  .infra-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 18px 0;
  }
}

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