:root {
  color-scheme: dark;
  --apex-bg: #09090b;
  --apex-panel: #0f1117;
  --apex-panel-2: #18181b;
  --apex-panel-3: #111113;
  --apex-line: #27272a;
  --apex-text: #f4f4f5;
  --apex-muted: #c7c7d1;
  --apex-dim: #b3b5c0;
  --apex-cyan: #22d3ee;
  --apex-green: #34d399;
  --apex-amber: #fbbf24;
  --apex-red: #fb7185;
  --bg: var(--apex-bg);
  --panel: var(--apex-panel);
  --panel-2: var(--apex-panel-2);
  --text: var(--apex-text);
  --muted: var(--apex-muted);
  --line: var(--apex-line);
  --accent: var(--apex-cyan);
  --amber: var(--apex-amber);
  --red: var(--apex-red);
  --blue: #62b8ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--apex-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.mobile-nav-open {
  overflow: hidden;
}

*:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.95);
  outline-offset: 2px;
}

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

button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 9px 12px;
}

button:hover {
  border-color: var(--accent);
}

.app-shell {
  width: min(1536px, calc(100% - 24px));
  margin: 0 auto;
  padding: 0 0 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid rgba(39, 39, 42, 0.9);
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(18px);
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.site-header.nav-open .mobile-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-close {
  display: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--apex-text);
  text-decoration: none;
  flex: 0 0 auto;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 176, 255, 0.55);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(24, 24, 27, 0.96), rgba(34, 211, 238, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 176, 255, 0.08);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name strong {
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-name span {
  color: var(--apex-muted);
  font-size: 11px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.mobile-menu-toggle {
  display: none;
  min-height: 34px;
  border-color: rgba(39, 39, 42, 0.95);
  background: rgba(24, 24, 27, 0.9);
  color: var(--apex-muted);
  font-size: 12px;
  padding: 7px 10px;
}

.mobile-menu-toggle .menu-icon {
  display: grid;
  gap: 3px;
  width: 15px;
}

.mobile-menu-toggle .menu-icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-menu-toggle .menu-label {
  margin-left: 6px;
  letter-spacing: 0.04em;
  font-size: 10px;
  text-transform: uppercase;
}

.mobile-nav-close,
.mobile-menu-toggle {
  min-height: 34px;
}

.primary-nav a,
.header-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--apex-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  padding: 8px 10px;
  white-space: nowrap;
}

.header-nav-wrap .mobile-nav-close {
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
}

.primary-nav a:hover,
.header-actions a:hover {
  border-color: rgba(0, 176, 255, 0.45);
  color: var(--apex-text);
  background: rgba(17, 23, 42, 0.8);
}

.primary-nav a[aria-current="page"] {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.55);
  color: var(--apex-text);
}

.primary-nav a,
.header-actions a,
.mobile-menu-toggle,
.hero-actions a,
.tool-toggle,
.tool-row button,
.panel-tabs button,
.terminal-toolbar button,
.order-ticket button,
.access-form button,
.risk-banner,
.safety-pill,
.data-badge,
.trading-button,
.sso-chip {
  min-height: 36px;
  line-height: 1.15;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.primary-cta,
.header-actions .primary-cta,
.hero-actions .primary-cta,
.band-header .primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-color: rgba(0, 230, 118, 0.55);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.18), rgba(0, 176, 255, 0.08));
  color: var(--apex-text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.customer-home {
  padding: 22px 0 0;
}

.trust-certification-section {
  margin-top: 18px;
  border: 1px solid rgba(0, 176, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(17, 23, 42, 0.9), rgba(8, 10, 18, 0.98)),
    var(--apex-panel);
}

.trust-cert-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.trust-cert-lead,
.trust-state-panel,
.outage-card {
  min-width: 0;
  border: 1px solid rgba(36, 48, 79, 0.9);
  border-radius: 8px;
  background: rgba(9, 13, 26, 0.72);
  padding: 16px;
}

.trust-cert-lead h2 {
  margin: 6px 0 8px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.trust-cert-lead p {
  margin: 0;
  color: var(--apex-muted);
  line-height: 1.55;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.receipt-grid article {
  min-width: 0;
  border: 1px solid rgba(36, 48, 79, 0.9);
  border-radius: 8px;
  background: rgba(13, 16, 32, 0.82);
  padding: 12px;
}

.receipt-grid span {
  display: block;
  color: var(--apex-muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.receipt-grid strong {
  display: block;
  color: var(--apex-ink);
  overflow-wrap: anywhere;
}

.trust-note {
  margin-top: 12px;
}

.trust-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.trust-reality-summary {
  margin-top: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-state-panel {
  display: grid;
  gap: 9px;
  align-content: start;
}

.trust-state-row {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--apex-cyan);
  border-radius: 6px;
  background: rgba(13, 16, 32, 0.88);
  padding: 10px 11px;
}

.trust-state-row strong {
  font-size: 13px;
}

.trust-state-row span {
  color: var(--apex-muted);
  font-size: 12px;
  line-height: 1.45;
}

.trust-state-row.safe {
  border-left-color: var(--apex-green);
}

.trust-state-row.blocked {
  border-left-color: var(--apex-red);
}

.trust-state-row.review {
  border-left-color: var(--apex-amber);
}

.outage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.trust-details {
  margin-top: 14px;
  border: 1px solid rgba(39, 39, 42, 0.95);
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.68);
  padding: 12px;
}

.trust-details summary {
  color: var(--apex-cyan);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.outage-card {
  min-height: 188px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.outage-card span {
  color: var(--apex-cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.outage-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.outage-card p,
.outage-card small {
  margin: 0;
  color: var(--apex-muted);
  line-height: 1.45;
}

.outage-card small {
  color: #b8c6d8;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.05fr);
  gap: 18px;
  align-items: stretch;
  min-height: min(640px, calc(100vh - 88px));
  padding: 18px 0 16px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 13px;
  min-width: 0;
}

.hero-kicker {
  color: var(--apex-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 740px;
  margin: 0;
  font-size: 58px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--apex-muted);
  font-size: 16px;
  line-height: 1.5;
}

.hero-status-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 8px;
  max-width: 460px;
}

.hero-status-card {
  min-width: 0;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 6px;
  background: rgba(9, 25, 27, 0.7);
  padding: 10px 12px;
}

.hero-status-card span {
  display: block;
  margin-bottom: 6px;
  color: #67e8f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-status-card strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.hero-status-card.safe {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(4, 35, 24, 0.66);
}

.hero-status-card.paper {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(3, 34, 42, 0.68);
}

.hero-status-card.blocked {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(44, 10, 17, 0.68);
}

.hero-status-card.review {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(45, 32, 4, 0.58);
}

.hero-actions,
.trust-strip,
.terminal-toolbar,
.terminal-statusbar,
.panel-tabs,
.tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-actions a,
.terminal-toolbar button,
.panel-tabs button,
.tool-toggle,
.data-badge,
.safety-pill {
  min-height: 36px;
  border: 1px solid var(--apex-line);
  border-radius: 5px;
  background: rgba(17, 23, 42, 0.78);
  color: var(--apex-muted);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  padding: 8px 10px;
}

.hero-actions a:hover,
.terminal-toolbar button:hover,
.panel-tabs button:hover,
.tool-toggle:hover {
  border-color: rgba(0, 176, 255, 0.5);
  color: var(--apex-text);
}

.trust-strip {
  max-width: 560px;
}

.safety-pill {
  border-radius: 4px;
}

.home-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 26px;
  border: 1px solid rgba(39, 39, 42, 0.95);
  border-radius: 8px;
  background: rgba(15, 17, 23, 0.78);
  overflow: hidden;
}

.home-proof-strip article {
  min-width: 0;
  border-right: 1px solid rgba(39, 39, 42, 0.95);
  padding: 14px 16px;
}

.home-proof-strip article:last-child {
  border-right: 0;
}

.home-proof-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--apex-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-proof-strip strong {
  display: block;
  color: var(--apex-text);
  font-size: 13px;
  line-height: 1.35;
}

.safety-pill.live {
  border-color: rgba(0, 230, 118, 0.44);
  color: var(--apex-green);
}

.safety-pill.paper {
  border-color: rgba(0, 176, 255, 0.44);
  color: #62b8ff;
}

.safety-pill.safe,
.data-badge.safe {
  border-color: rgba(255, 214, 0, 0.45);
  color: var(--apex-amber);
}

.safety-pill.blocked,
.data-badge.blocked {
  border-color: rgba(255, 23, 68, 0.5);
  color: var(--apex-red);
}

.product-frame,
.terminal-shell,
.research-band,
.subscriber-band,
.connector-band,
.control-center {
  border: 1px solid rgba(36, 48, 79, 0.88);
  background: rgba(13, 16, 32, 0.88);
}

.product-frame {
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto;
  min-height: 600px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.product-frame-header,
.terminal-header,
.band-header,
.control-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--apex-line);
  background: linear-gradient(180deg, rgba(21, 38, 44, 0.78), rgba(10, 20, 24, 0.96));
  padding: 14px 16px;
}

.instrument-title,
.band-title {
  display: grid;
  gap: 3px;
}

.instrument-title strong,
.band-title strong {
  font-size: 18px;
}

.instrument-title span,
.band-title span {
  color: var(--apex-muted);
  font-size: 12px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--apex-line);
}

.metric-tile {
  min-height: 70px;
  border: 1px solid #18233d;
  border-radius: 4px;
  background: var(--apex-panel-3);
  padding: 10px;
}

.metric-tile span,
.watch-row span,
.news-row span,
.connector-row span,
.subscriber-step span {
  display: block;
  color: var(--apex-muted);
  font-size: 11px;
}

.metric-tile strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
}

.chart-surface {
  position: relative;
  overflow: hidden;
  min-height: 405px;
  background:
    linear-gradient(90deg, rgba(36, 48, 79, 0.42) 1px, transparent 1px) 0 0 / 72px 100%,
    linear-gradient(180deg, rgba(36, 48, 79, 0.45) 1px, transparent 1px) 0 0 / 100% 58px,
    #080a12;
}

.chart-candles {
  position: absolute;
  inset: 36px 48px 46px 44px;
  display: grid;
  grid-template-columns: repeat(34, minmax(3px, 1fr));
  align-items: end;
  gap: 7px;
}

.candle {
  position: relative;
  height: 100px;
  min-height: 34px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.96), rgba(0, 230, 118, 0.45));
}

.candle-h-46 { height: 46px; }
.candle-h-55 { height: 55px; }
.candle-h-61 { height: 61px; }
.candle-h-62 { height: 62px; }
.candle-h-67 { height: 67px; }
.candle-h-72 { height: 72px; }
.candle-h-74 { height: 74px; }
.candle-h-76 { height: 76px; }
.candle-h-81 { height: 81px; }
.candle-h-86 { height: 86px; }
.candle-h-88 { height: 88px; }
.candle-h-92 { height: 92px; }
.candle-h-96 { height: 96px; }
.candle-h-99 { height: 99px; }
.candle-h-104 { height: 104px; }
.candle-h-106 { height: 106px; }
.candle-h-111 { height: 111px; }
.candle-h-114 { height: 114px; }
.candle-h-118 { height: 118px; }
.candle-h-121 { height: 121px; }
.candle-h-124 { height: 124px; }
.candle-h-126 { height: 126px; }
.candle-h-129 { height: 129px; }
.candle-h-132 { height: 132px; }
.candle-h-136 { height: 136px; }
.candle-h-139 { height: 139px; }
.candle-h-142 { height: 142px; }
.candle-h-146 { height: 146px; }
.candle-h-151 { height: 151px; }
.candle-h-154 { height: 154px; }
.candle-h-158 { height: 158px; }
.candle-h-162 { height: 162px; }
.candle-h-168 { height: 168px; }
.candle-h-176 { height: 176px; }

.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  bottom: -16px;
  width: 1px;
  background: currentColor;
  transform: translateX(-50%);
  opacity: 0.8;
}

.candle.down {
  color: rgba(255, 23, 68, 0.72);
  background: linear-gradient(180deg, rgba(255, 23, 68, 0.92), rgba(255, 23, 68, 0.42));
}

.chart-crosshair {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chart-crosshair::before,
.chart-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(0, 176, 255, 0.38);
}

.chart-crosshair::before {
  left: 66%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.chart-crosshair::after {
  left: 0;
  right: 0;
  top: 42%;
  height: 1px;
}

.chart-callout {
  position: absolute;
  left: 22px;
  bottom: 18px;
  max-width: 450px;
  border: 1px solid rgba(0, 176, 255, 0.45);
  border-radius: 5px;
  background: rgba(7, 7, 16, 0.88);
  padding: 13px;
}

.chart-callout strong {
  display: block;
  color: var(--apex-cyan);
  margin-bottom: 6px;
}

.chart-callout span {
  color: var(--apex-muted);
  font-size: 12px;
  line-height: 1.5;
}

.terminal-shell {
  margin: 28px 0;
}

.terminal-cockpit-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(39, 39, 42, 0.95);
  border-bottom: 0;
  background: rgba(9, 9, 11, 0.94);
}

.terminal-cockpit-status article {
  min-width: 0;
  border-right: 1px solid rgba(39, 39, 42, 0.95);
  padding: 10px 12px;
}

.terminal-cockpit-status article:last-child {
  border-right: 0;
}

.terminal-cockpit-status span,
.workspace-nav-mini a {
  color: var(--apex-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.terminal-cockpit-status strong {
  display: block;
  margin-top: 4px;
  color: var(--apex-cyan);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.terminal-feature {
  border: 1px solid rgba(36, 48, 79, 0.88);
  background: rgba(13, 16, 32, 0.88);
}

.terminal-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(520px, 1fr);
  gap: 0;
  align-items: stretch;
}

.terminal-feature-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  border-right: 1px solid var(--apex-line);
  padding: 22px;
}

.terminal-feature-copy h2 {
  max-width: 520px;
  font-size: 38px;
  line-height: 1.02;
}

.terminal-feature-copy p:not(.panel-label) {
  max-width: 560px;
  color: var(--apex-muted);
  font-size: 16px;
  line-height: 1.55;
}

.terminal-feature-preview {
  min-width: 0;
  padding: 16px;
}

.terminal-feature-preview .product-frame {
  min-height: 560px;
}

.terminal-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 330px;
  min-height: 760px;
  border: 1px solid rgba(39, 39, 42, 0.95);
}

.terminal-left,
.terminal-right {
  min-width: 0;
  background: rgba(8, 17, 21, 0.82);
}

.terminal-left {
  border-right: 1px solid var(--apex-line);
}

.terminal-right {
  border-left: 1px solid var(--apex-line);
}

.panel-pad {
  padding: 14px;
}

.panel-label {
  margin: 0 0 10px;
  color: var(--apex-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-desk-label {
  margin-top: 18px;
}

.watchlist-label {
  margin-top: 14px;
}

.workspace-nav-mini {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.workspace-nav-mini a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  border-radius: 6px;
  color: var(--apex-muted);
  text-decoration: none;
  padding: 8px 9px;
}

.workspace-nav-mini a:hover,
.workspace-nav-mini a[aria-current="page"] {
  background: rgba(34, 211, 238, 0.1);
  color: var(--apex-cyan);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.28);
}

.watch-row,
.news-row,
.connector-row,
.subscriber-step,
.scanner-row {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid rgba(36, 48, 79, 0.7);
  padding: 10px 0;
}

.watch-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  color: var(--apex-text);
  text-align: left;
  width: 100%;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: transparent;
}

.watch-row[aria-pressed="true"] {
  border-color: rgba(0, 176, 255, 0.55);
  background: rgba(0, 176, 255, 0.07);
}

.price-up {
  color: var(--apex-green);
}

.price-down {
  color: var(--apex-red);
}

.terminal-center {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(420px, 1fr) auto auto;
}

.terminal-center > * {
  min-width: 0;
  max-width: 100%;
}

.terminal-toolbar {
  justify-content: space-between;
  border-bottom: 1px solid var(--apex-line);
  padding: 10px 12px;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.terminal-toolbar button.active,
.panel-tabs button.active,
.tool-toggle.active {
  border-color: rgba(0, 176, 255, 0.64);
  color: var(--apex-text);
  background: rgba(0, 176, 255, 0.14);
}

.terminal-bottom {
  border-top: 1px solid var(--apex-line);
  background: rgba(7, 10, 18, 0.92);
}

.panel-tabs {
  border-bottom: 1px solid var(--apex-line);
  padding: 10px 12px;
}

.terminal-table {
  margin: 0;
}

.terminal-table td,
.terminal-table th {
  padding: 9px 12px;
}

.reality-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  overflow-x: auto;
}

.reality-panel > * {
  min-width: 0;
  max-width: 100%;
}

.reality-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.reality-summary article,
.reality-rail-card,
.reality-warning {
  border: 1px solid rgba(36, 48, 79, 0.88);
  border-radius: 5px;
  background: rgba(8, 13, 26, 0.94);
  padding: 10px;
}

.reality-summary span,
.reality-rail-card span {
  display: block;
  color: var(--apex-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.reality-summary strong,
.reality-rail-card strong {
  display: block;
  margin-top: 6px;
  color: var(--apex-text);
  font-size: 20px;
}

.reality-summary small,
.reality-rail-card small {
  display: block;
  margin-top: 5px;
  color: var(--apex-muted);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.reality-message-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.reality-warning {
  display: grid;
  gap: 5px;
}

.reality-warning strong {
  color: var(--apex-amber);
  font-size: 11px;
}

.reality-warning span {
  color: var(--apex-muted);
  font-size: 12px;
  line-height: 1.45;
}

.reality-warning.critical {
  border-color: rgba(255, 23, 68, 0.55);
}

.reality-warning.critical strong {
  color: var(--apex-red);
}

.reality-warning.info strong {
  color: var(--apex-cyan);
}

.reality-table td:last-child {
  max-width: 220px;
  color: var(--apex-dim);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.reality-table td {
  overflow-wrap: anywhere;
}

.reality-receipt {
  max-height: 170px;
  overflow: auto;
}

.reality-rail-card {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  border-color: rgba(255, 214, 0, 0.42);
}

.data-trust-rail-card {
  border-color: rgba(0, 229, 255, 0.44);
}

.data-trust-panel .reality-summary article:nth-child(1) strong,
.data-trust-rail-card strong {
  color: var(--apex-cyan);
}

.reality-rail-card p {
  margin: 0;
  color: var(--apex-muted);
  font-size: 12px;
  line-height: 1.45;
}

.terminal-statusbar {
  min-height: 38px;
  border-top: 1px solid var(--apex-line);
  padding: 8px 12px;
  color: var(--apex-muted);
  font-size: 12px;
}

.terminal-statusbar span:last-child {
  margin-left: auto;
  color: var(--apex-dim);
}

.order-ticket {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.order-field {
  display: grid;
  gap: 5px;
}

.order-field label {
  color: var(--apex-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-field input,
.order-field select,
.order-field textarea {
  min-height: 38px;
  border: 1px solid var(--apex-line);
  border-radius: 5px;
  background: #080a12;
  color: var(--apex-text);
  font: inherit;
  padding: 8px 10px;
}

.order-field textarea {
  resize: vertical;
}

.risk-banner {
  border: 1px solid rgba(255, 214, 0, 0.45);
  border-radius: 5px;
  background: rgba(255, 214, 0, 0.08);
  color: var(--apex-amber);
  font-size: 12px;
  line-height: 1.45;
  padding: 10px;
}

.section-band {
  margin: 28px 0;
}

.research-band,
.subscriber-band,
.connector-band,
.pricing-band,
.public-suite,
.control-center {
  padding: 0;
}

.research-grid,
.subscriber-grid,
.connector-grid,
.suite-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.suite-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.research-card,
.subscriber-card,
.connector-card,
.suite-card {
  min-width: 0;
  border-right: 1px solid var(--apex-line);
  padding: 16px;
}

.research-card:last-child,
.subscriber-card:last-child,
.connector-card:last-child,
.suite-card:last-child {
  border-right: 0;
}

.public-suite {
  margin: 28px 0 0;
  border: 1px solid rgba(36, 48, 79, 0.88);
  background: rgba(13, 16, 32, 0.88);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  border-right: 1px solid var(--apex-line);
  padding: 20px;
}

.pricing-card:last-child {
  border-right: 0;
}

.pricing-card.highlighted {
  background:
    linear-gradient(180deg, rgba(0, 176, 255, 0.12), rgba(0, 230, 118, 0.05)),
    rgba(13, 16, 32, 0.9);
}

.pricing-card strong {
  font-size: 22px;
  line-height: 1.1;
}

.pricing-card span {
  color: var(--apex-muted);
  font-size: 14px;
  line-height: 1.55;
}

.pricing-card ul {
  display: grid;
  gap: 9px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  color: var(--apex-text);
  font-size: 13px;
  padding-left: 18px;
}

.pricing-card li::before {
  position: absolute;
  left: 0;
  color: var(--apex-green);
  content: "+";
}

.pricing-card a {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(0, 176, 255, 0.45);
  border-radius: 6px;
  color: var(--apex-text);
  font-weight: 850;
  padding: 8px 12px;
  text-decoration: none;
}

.access-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  border-top: 1px solid var(--apex-line);
}

.access-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  border-right: 1px solid var(--apex-line);
  padding: 20px;
}

.access-copy strong {
  font-size: 24px;
  line-height: 1.1;
}

.access-copy span {
  color: var(--apex-muted);
  line-height: 1.5;
}

.access-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 20px;
}

.access-form .full-span,
.access-form button,
.access-status {
  grid-column: 1 / -1;
}

.access-form button {
  min-height: 42px;
  justify-content: center;
  border-color: rgba(0, 230, 118, 0.42);
  background: rgba(0, 230, 118, 0.12);
}

.access-status {
  min-height: 20px;
  margin: 0;
  color: var(--apex-muted);
  font-size: 13px;
  line-height: 1.45;
}

.suite-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 210px;
}

.suite-card span {
  color: var(--apex-cyan);
  font-size: 12px;
  font-weight: 950;
}

.suite-card strong {
  font-size: 19px;
}

.suite-card p {
  margin: 0;
  color: var(--apex-muted);
  font-size: 14px;
  line-height: 1.55;
}

.scanner-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.empty-state {
  border: 1px dashed rgba(143, 161, 189, 0.4);
  border-radius: 5px;
  color: var(--apex-muted);
  line-height: 1.5;
  padding: 14px;
}

.control-center {
  margin-top: 30px;
  max-width: 100%;
  overflow: hidden;
  padding: 0 16px 20px;
}

.control-center-header {
  margin: 0 -16px 18px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: end;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.record-id {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: 58px;
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.subhead {
  max-width: 860px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.proof-box,
.record-card,
.architecture-band article,
.blocker-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.governance-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.governance-grid p {
  min-height: 42px;
  color: var(--muted);
  line-height: 1.45;
}

.workflow-panel {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow-x: auto;
  padding: 16px;
}

.workflow-panel table {
  margin: 12px 0;
}

.roadmap-panel {
  border-color: rgba(0, 230, 118, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 230, 118, 0.05), transparent 240px),
    var(--panel);
}

.roadmap-priority-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.roadmap-priority-strip article {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(36, 48, 79, 0.9);
  border-radius: 8px;
  background: rgba(17, 23, 42, 0.72);
  padding: 14px;
}

.roadmap-priority-strip span {
  color: var(--apex-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.roadmap-priority-strip strong {
  color: var(--apex-text);
  font-size: 18px;
  line-height: 1.2;
}

.roadmap-priority-strip small {
  color: var(--apex-muted);
  line-height: 1.45;
}

.compact-table {
  font-size: 12px;
}

.compact-table th,
.compact-table td {
  vertical-align: top;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.workflow-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 14px;
}

.workflow-grid p {
  color: var(--muted);
  line-height: 1.45;
}

.proof-box {
  padding: 18px;
}

.proof-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 44px;
}

.proof-box span {
  color: var(--muted);
}

.nav-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
}

.nav-rail a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--panel);
  font-size: 13px;
}

.architecture-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 16px;
}

.architecture-band article {
  padding: 16px;
}

.architecture-band strong,
.architecture-band span {
  display: block;
}

.architecture-band span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.blocker-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: center;
  margin: 16px 0;
  padding: 18px;
  border-color: rgba(214, 107, 107, 0.7);
}

.workspace-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: start;
  justify-content: end;
}

.workspace-panel textarea {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0f0e;
  color: var(--text);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 12px;
}

.matrix-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.matrix-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 14px;
}

.matrix-summary strong,
.matrix-summary span {
  display: block;
}

.matrix-summary strong {
  font-size: 22px;
}

.matrix-summary span {
  margin-top: 4px;
  color: var(--muted);
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.matrix-grid article {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
}

pre {
  overflow: auto;
  margin: 0;
  border-radius: 8px;
  background: #0d0f0e;
  padding: 14px;
  color: #d9eadf;
}

.registry-section {
  padding: 26px 0 8px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 12px;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.record-card {
  min-height: 142px;
  padding: 15px;
}

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

.record-card p:not(.record-id) {
  color: var(--muted);
  line-height: 1.45;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  background: var(--panel-2);
  color: var(--muted);
}

.status-mock,
.status-simulated {
  color: var(--amber);
}

.status-sandbox,
.status-paper,
.status-read_only {
  color: var(--blue);
}

.status-live_blocked {
  color: var(--red);
}

.status-live_certified {
  color: var(--accent);
}

.fatal {
  color: var(--red);
}

@media (max-width: 980px) {
  .hero-shell,
  .home-proof-strip,
  .terminal-cockpit-status,
  .trust-cert-grid,
  .trust-reality-summary,
  .receipt-grid,
  .trust-banner-grid,
  .outage-grid,
  .terminal-feature-grid,
  .terminal-grid,
  .research-grid,
  .subscriber-grid,
  .connector-grid,
  .pricing-grid,
  .access-panel,
  .access-form,
  .suite-grid,
  .topbar,
  .blocker-panel,
  .workspace-panel,
  .matrix-summary,
  .matrix-grid,
  .architecture-band,
  .governance-grid,
  .roadmap-priority-strip,
  .workflow-grid,
  .record-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .site-header {
    position: sticky;
    gap: 10px;
    min-height: 58px;
    padding: 8px 0;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-backdrop {
    display: block;
  }

  .mobile-nav-close {
    display: inline-flex;
  }

  .header-nav-wrap {
    width: min(1536px, calc(100% - 24px));
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 58px;
    z-index: 70;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border: 1px solid rgba(39, 39, 42, 0.95);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #09090b;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.72);
    padding: 10px 12px 12px;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
  }

  .site-header.nav-open .header-nav-wrap {
    display: flex;
  }

  .primary-nav,
  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .primary-nav {
    border-top: 1px solid rgba(39, 39, 42, 0.95);
    padding-top: 8px;
    flex-wrap: wrap;
  }

  .primary-nav a,
  .header-actions a {
    display: flex;
    width: 100%;
    justify-content: flex-start;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-mark svg {
    width: 26px;
    height: 26px;
  }

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

  .band-header,
  .terminal-header,
  .product-frame-header,
  .control-center-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .band-header .primary-cta {
    align-self: flex-start;
    max-width: 100%;
  }

  .hero-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 20px;
    gap: 14px;
  }

  .hero-copy {
    order: 1;
    align-content: start;
  }

  .product-frame {
    min-height: 430px;
    order: 2;
  }

  .product-frame {
    grid-template-rows: auto minmax(300px, 1fr) auto;
  }

  .chart-surface {
    min-height: 315px;
  }

  .terminal-feature-copy {
    padding: 18px;
  }

  .terminal-feature-copy h2 {
    font-size: 31px;
    line-height: 1.06;
  }

  .terminal-feature-copy p:not(.panel-label) {
    font-size: 15px;
  }

  .terminal-grid {
    min-height: auto;
  }

  .terminal-left,
  .terminal-right,
  .terminal-feature-copy,
  .research-card,
  .subscriber-card,
  .connector-card,
  .pricing-card,
  .access-copy,
  .suite-card {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--apex-line);
  }

  .terminal-cockpit-status article {
    border-right: 0;
    border-bottom: 1px solid rgba(39, 39, 42, 0.95);
  }

  .terminal-cockpit-status article:last-child {
    border-bottom: 0;
  }

  .terminal-center {
    grid-template-rows: auto auto minmax(360px, 1fr) auto auto;
  }

  .reality-summary,
  .reality-message-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-proof-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(39, 39, 42, 0.95);
  }

  .home-proof-strip article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 18px, 1480px);
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-status-stack {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .brand-name span {
    display: none;
  }

  .brand-name strong {
    font-size: 14px;
  }

  .product-frame {
    min-height: 390px;
  }

  .product-frame-header,
  .terminal-header,
  .band-header,
  .control-center-header {
    padding: 12px;
  }

  .instrument-title strong,
  .band-title strong {
    font-size: 16px;
  }

  .terminal-statusbar {
    align-items: flex-start;
  }

  .terminal-statusbar span {
    white-space: normal;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-candles {
    inset: 32px 26px 46px 24px;
    gap: 4px;
  }

  .chart-callout {
    right: 12px;
    left: 12px;
  }

  .scanner-row {
    grid-template-columns: 1fr;
  }

  .reality-summary,
  .reality-message-grid {
    grid-template-columns: 1fr;
  }
}

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