:root {
  --bg: #070604;
  --surface: #0d0a08;
  --surface-2: #15100c;
  --surface-3: #1e130c;
  --ink: #fff8ef;
  --muted: #b7aca3;
  --soft: #776b62;
  --line: #2d211b;
  --line-dark: rgba(255, 255, 255, 0.22);
  --card-border: #51402e;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-soft: rgba(255, 255, 255, 0.025);
  --orange: #ff4d00;
  --orange-dark: #e13f00;
  --orange-2: #ff8a00;
  --teal: #44e9ff;
  --green: #bdff63;
  --amber: #ffd166;
  --warning: #ffd166;
  --shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  --sans: "Aptos", "Inter", "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  background-image:
    radial-gradient(circle at 8% -8%, rgba(255, 77, 0, 0.22), transparent 32%),
    radial-gradient(circle at 84% 6%, rgba(68, 233, 255, 0.12), transparent 30%),
    linear-gradient(to right, rgba(255, 77, 0, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(68, 233, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px;
}

body.is-busy {
  cursor: progress;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(0, 151, 167, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 80;
  transform: translateY(-120px);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 292px 1fr auto auto;
  align-items: stretch;
  min-height: 72px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 6, 4, 0.94);
  backdrop-filter: blur(12px);
}

.site-header a[href^="#"] {
  position: relative;
  overflow: hidden;
}

.site-header a[href^="#"]::after {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--teal), var(--orange), transparent);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  font-weight: 650;
}

.brand-mark {
  flex: 0 0 40px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 77, 0, 0.55);
  border-radius: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(68, 233, 255, 0.24), transparent 54%),
    radial-gradient(circle at 70% 78%, rgba(255, 77, 0, 0.24), transparent 62%),
    var(--glass-soft);
  box-shadow:
    inset 0 0 0 1px rgba(68, 233, 255, 0.12),
    0 0 18px rgba(255, 77, 0, 0.15);
}

.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(1) brightness(1.4);
}

.text-only-brand {
  border-right: 0;
}

.footer-brand-sigil {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(68, 233, 255, 0.42);
  color: var(--teal);
  background:
    linear-gradient(135deg, rgba(68, 233, 255, 0.12), rgba(255, 77, 0, 0.08)),
    var(--glass-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-name {
  font-size: 21px;
  letter-spacing: 0;
}

.build-tag {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav a,
.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  font-weight: 560;
  font-size: 13px;
}

.site-nav a:hover {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 77, 0, 0.12), transparent),
    var(--surface-2);
}

.header-action {
  min-width: 150px;
  color: #070604;
  border-left: 1px solid var(--line);
  border-right: none;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 72px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 560;
  font-size: 13px;
  white-space: nowrap;
}

.theme-toggle:hover {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 77, 0, 0.12), transparent),
    var(--surface-2);
}

.theme-toggle-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* In light mode the toggle offers dark: show a moon. */
[data-theme="light"] .theme-toggle-icon {
  background: var(--soft);
  -webkit-mask: radial-gradient(circle at 72% 32%, transparent 46%, #000 47%);
  mask: radial-gradient(circle at 72% 32%, transparent 46%, #000 47%);
}

/* In dark mode the toggle offers light: show a sun. */
[data-theme="dark"] .theme-toggle-icon {
  background: radial-gradient(circle at 50% 50%, var(--amber), var(--orange-2));
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.22);
}

.hero,
.trial-panel,
.section,
.band,
.contact-section,
.site-footer {
  scroll-margin-top: 92px;
}

@media (prefers-reduced-motion: no-preference) {
  body.scroll-transitioning::after {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 49;
    height: 96px;
    pointer-events: none;
    content: "";
    background:
      linear-gradient(180deg, transparent, rgba(68, 233, 255, 0.18), rgba(255, 77, 0, 0.18), transparent),
      linear-gradient(90deg, transparent, rgba(255, 248, 239, 0.22), transparent);
    mix-blend-mode: screen;
  }

  body.scroll-down::after {
    animation: scroll-scan-down 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  body.scroll-up::after {
    animation: scroll-scan-up 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .site-header a.nav-scroll-active::after {
    animation: nav-scroll-strike 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .section-scroll-focus {
    animation: section-focus-pulse 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes scroll-scan-down {
  0% {
    top: -110px;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    top: calc(100vh + 32px);
    opacity: 0;
  }
}

@keyframes scroll-scan-up {
  0% {
    top: calc(100vh + 32px);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    top: -110px;
    opacity: 0;
  }
}

@keyframes nav-scroll-strike {
  0% {
    opacity: 0;
    transform: scaleX(0.16);
  }
  35% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(0.72);
  }
}

@keyframes section-focus-pulse {
  0% {
    filter: drop-shadow(0 0 0 rgba(68, 233, 255, 0));
  }
  32% {
    filter: drop-shadow(0 0 22px rgba(68, 233, 255, 0.22));
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(68, 233, 255, 0));
  }
}

.ticker {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  min-height: 38px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 10, 8, 0.94);
}

.ticker span {
  flex: 1 0 auto;
  padding: 10px 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 560;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: #070604;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.82) contrast(1.14);
}

.hero-shade {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 77, 0, 0.2), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(68, 233, 255, 0.11), transparent 34%),
    linear-gradient(90deg, rgba(7, 6, 4, 0.96) 0%, rgba(7, 6, 4, 0.84) 52%, rgba(7, 6, 4, 0.72) 100%),
    linear-gradient(180deg, rgba(7, 6, 4, 0.08), rgba(7, 6, 4, 0.9));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: 48px;
  align-items: start;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 36px;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy .hero-summary {
  max-width: 520px;
}

.hero-copy .proof-strip {
  margin-top: 28px;
}

/* Compound-moat "die map" chip widget — a dark technical device panel
   that fills the left column and balances the tall arena panel. It stays
   dark in both themes (a chip reads best as a dark device). */
.wafer-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #21303a;
  border-radius: 10px;
  background:
    radial-gradient(circle at 55% 22%, rgba(255, 77, 0, 0.12), transparent 42%),
    #0a0f12;
  color: #cdd8de;
}

.wafer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #1b2832;
  color: #7c8a92;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wafer-live {
  color: #bdff63;
}

.wafer-map {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.wafer-ring {
  position: absolute;
  inset: 26px;
  border: 1px solid #1b2832;
  border-radius: 50%;
}

.wafer-cross::before,
.wafer-cross::after {
  position: absolute;
  content: "";
  background: #16222b;
}

.wafer-cross::before {
  top: 26px;
  bottom: 26px;
  left: 50%;
  width: 1px;
}

.wafer-cross::after {
  top: 50%;
  right: 26px;
  left: 26px;
  height: 1px;
}

.wafer-grid {
  position: absolute;
  inset: 32px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 2px;
  clip-path: circle(50% at 50% 50%);
}

.die {
  display: grid;
  place-items: center;
  border: 1px solid #1b252b;
  background: #0d1215;
  color: #364249;
  font-family: var(--mono);
  font-size: 8px;
  transition: background 130ms ease, color 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.die.on {
  color: #44e9ff;
  border-color: rgba(68, 233, 255, 0.6);
  background: rgba(68, 233, 255, 0.12);
}

.die.hot {
  color: #170600;
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 0 18px rgba(255, 77, 0, 0.2);
}

body.arena-focus .hero-inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: min(1500px, calc(100% - 28px));
  padding-top: 18px;
}

body.arena-focus .hero-copy {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: end;
  max-width: none;
  padding: 12px;
  border: 1px solid rgba(68, 233, 255, 0.2);
  border-radius: 8px;
  background: rgba(7, 6, 4, 0.62);
}

body.arena-focus .hero-copy .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

body.arena-focus h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.02;
}

body.arena-focus .hero-summary {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.38;
}

body.arena-focus .hero-actions {
  justify-content: flex-end;
}

body.arena-focus .proof-strip {
  display: none;
}

body.arena-focus .trial-panel {
  width: 100%;
  max-width: none;
}

body.arena-focus .result-panel {
  order: 2;
  min-height: 440px;
  margin-top: 0;
}

body.arena-focus .race-dashboard {
  padding: 8px 10px;
}

body.arena-focus .race-dashboard.final .race-stage-strip {
  display: none;
}

body.arena-focus .race-dashboard.active .race-lane-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.arena-focus .race-dashboard.active .race-lane-card.live {
  gap: 8px;
  min-height: 0;
  padding: 10px;
}

body.arena-focus .race-dashboard.active .race-track {
  height: 22px;
}

body.arena-focus .race-dashboard.active .live-lane-meta {
  margin-top: -2px;
}

body.arena-focus .trial-form {
  order: 3;
  margin-top: 18px;
}

body.arena-focus .panel-head {
  order: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--teal);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 620;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 680px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 400;
}

strong,
label,
.metric strong,
.lane-top strong,
.race-header strong,
.result-card-heading strong,
.stream-card strong,
.plan-card h3,
.case-card h3,
.info-card h3 {
  font-weight: 600;
}

.lane-tag,
.chip-label,
.status-pill,
.lane-status,
.race-stage-strip span,
.race-header span,
.metric span,
.result-card-heading span,
.generated-answer span {
  font-weight: 620;
}

.hero-actions,
.trial-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 650;
  line-height: 1;
}

.btn.primary {
  color: #070604;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 10px 24px rgba(240, 90, 40, 0.28);
}

.btn.primary:hover {
  background: var(--orange-dark);
}

.btn.secondary {
  color: var(--ink);
  border-color: var(--card-border);
  background: var(--glass);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 24px;
}

.proof-item {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(13, 10, 8, 0.78);
}

.proof-item span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.proof-item strong {
  display: block;
  margin: 7px 0 3px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.05;
}

.proof-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.trial-panel {
  display: grid;
  gap: 0;
  padding: 18px;
  border: 1px solid var(--card-border);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(21, 16, 12, 0.94), rgba(13, 10, 8, 0.94)),
    var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.status-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--glass);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 560;
  text-transform: uppercase;
}

.status-pill.ready {
  color: var(--green);
  border-color: rgba(189, 255, 99, 0.34);
  background: rgba(189, 255, 99, 0.08);
}

.status-pill.missing {
  color: var(--amber);
  border-color: rgba(255, 209, 102, 0.34);
  background: rgba(255, 209, 102, 0.08);
}

.trial-form,
.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 7px;
  background: rgba(7, 6, 4, 0.72);
  color: var(--ink);
  font-weight: 400;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  padding: 10px;
  resize: vertical;
}

.field-hint {
  margin: -6px 0 0;
  color: rgba(255, 248, 239, 0.64);
  font-size: 13px;
  line-height: 1.45;
}

.model-row {
  display: grid;
  gap: 8px;
}

.model-picker {
  display: grid;
  gap: 8px;
}

.model-picker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.model-picker-head span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 560;
  text-transform: uppercase;
}

.model-picker-head strong {
  color: var(--soft);
  font-size: 12px;
  font-weight: 560;
}

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

.model-option {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--card-border);
  border-radius: 7px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(68, 233, 255, 0.035), transparent 62%),
    var(--glass);
  cursor: pointer;
}

.model-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.model-option strong,
.model-option small,
.model-option span {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.model-option strong {
  font-size: 13px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.model-option small {
  color: var(--soft);
  font-size: 11px;
  line-height: 1.25;
}

.model-option.selected {
  border-color: rgba(255, 77, 0, 0.64);
  background:
    linear-gradient(135deg, rgba(255, 77, 0, 0.14), transparent 58%),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 3px 0 0 rgba(255, 77, 0, 0.82);
}

.model-option.pinned.selected {
  min-height: 62px;
  border-color: rgba(189, 255, 99, 0.45);
  box-shadow: inset 3px 0 0 rgba(189, 255, 99, 0.75);
}

.model-option.disabled {
  color: var(--soft);
  cursor: not-allowed;
  opacity: 0.66;
  background: var(--glass-soft);
}

.model-option:has(input:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.model-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.model-chip {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--card-border);
  border-radius: 7px;
  color: var(--ink);
  background: var(--glass);
  font-size: 13px;
  font-weight: 560;
}

.model-chip strong {
  line-height: 1.05;
}

.chip-label {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.model-chip.disabled {
  color: var(--soft);
  background: var(--glass-soft);
}

.versus-mark {
  display: grid;
  width: 36px;
  min-height: 54px;
  place-items: center;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 620;
  text-transform: uppercase;
}

.model-select-wrap {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--card-border);
  border-radius: 7px;
  background: var(--glass);
}

.model-select-wrap select {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
}

.quota-text,
.form-note {
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
}

.trial-actions,
.contact-actions {
  justify-content: space-between;
}

.result-panel {
  min-height: 110px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: rgba(7, 6, 4, 0.58);
  scroll-margin-top: 112px;
}

.prompt-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 77, 0, 0.2);
  border-radius: 8px;
  background: rgba(255, 77, 0, 0.04);
}

.prompt-card span {
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 560;
  text-transform: uppercase;
}

.prompt-card p {
  margin: 0;
  color: rgba(255, 248, 239, 0.9);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.42;
}

.empty-state {
  margin: 0;
  color: var(--soft);
}

.notice {
  display: grid;
  gap: 6px;
  margin: 0;
}

.notice strong {
  color: var(--warning);
}

.notice-link {
  width: fit-content;
  color: var(--teal);
  font-weight: 560;
}

.notice-link:hover {
  color: var(--ink);
}

.race-dashboard {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(68, 233, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(68, 233, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 77, 0, 0.055), transparent 58%),
    var(--glass-soft);
}

.race-dashboard.final {
  grid-template-columns: minmax(0, 1fr);
}

.race-dashboard.active {
  border-color: rgba(255, 77, 0, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(68, 233, 255, 0.08),
    0 0 26px rgba(255, 77, 0, 0.1);
}

.race-header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.95fr);
  gap: 10px;
  align-items: stretch;
}

.speed-verdict {
  display: grid;
  grid-template-columns: auto minmax(170px, 0.32fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(189, 255, 99, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(189, 255, 99, 0.1), transparent 52%),
    rgba(7, 6, 4, 0.45);
}

.speed-verdict span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.speed-verdict strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.speed-verdict p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.race-header span,
.lane-tag {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 560;
  text-transform: uppercase;
}

.race-header strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.race-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.race-kpis div {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--card-border);
  border-radius: 7px;
  background: rgba(7, 6, 4, 0.52);
}

.race-kpis strong {
  margin-top: 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

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

.race-stage-strip span {
  min-height: 32px;
  padding: 8px;
  border: 1px solid var(--card-border);
  border-radius: 7px;
  color: var(--muted);
  background: var(--glass);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 560;
  text-transform: uppercase;
}

.race-stage-strip span.active,
.race-stage-strip.complete span {
  color: var(--green);
  border-color: rgba(189, 255, 99, 0.32);
  background: rgba(189, 255, 99, 0.08);
}

.lane-grid {
  display: grid;
  gap: 12px;
}

.race-lane-grid {
  display: grid;
  gap: 12px;
}

.final-result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.live-result-grid {
  margin-top: 10px;
}

.result-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 8px;
  padding: 9px 11px;
  border: 1px solid rgba(68, 233, 255, 0.2);
  border-radius: 8px;
  background: rgba(68, 233, 255, 0.045);
}

.result-card-heading span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 560;
  text-transform: uppercase;
}

.result-card-heading strong {
  color: var(--ink);
  font-size: 14px;
}

.live-result-card {
  min-height: 260px;
}

.live-result-card.streaming {
  border-color: rgba(68, 233, 255, 0.44);
  box-shadow:
    inset 3px 0 0 rgba(68, 233, 255, 0.48),
    0 0 22px rgba(68, 233, 255, 0.06);
}

.live-result-card.complete {
  border-color: rgba(189, 255, 99, 0.4);
}

.generated-answer {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(68, 233, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(68, 233, 255, 0.045), transparent 66%),
    var(--glass-soft);
}

.generated-answer span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.generated-answer .lane-content,
.generated-answer .stream-text {
  max-height: 560px;
  min-height: 310px;
  overflow: auto;
  color: rgba(255, 248, 239, 0.82);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.final-answer .lane-content {
  max-height: none;
  min-height: 300px;
}

.rich-answer {
  display: grid;
  gap: 8px;
}

.rich-answer p,
.rich-answer ul,
.rich-answer ol {
  margin: 0;
}

.rich-answer ul,
.rich-answer ol {
  padding-left: 18px;
}

.rich-answer li + li {
  margin-top: 6px;
}

.compact-track {
  height: 22px;
}

.live-metric-row .metric {
  min-width: 116px;
}

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

.stream-card {
  display: grid;
  gap: 9px;
  min-height: 142px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(68, 233, 255, 0.055), transparent 56%),
    rgba(7, 6, 4, 0.58);
}

.stream-card.qorinix-stream {
  border-color: rgba(255, 77, 0, 0.48);
}

.stream-card.complete {
  border-color: rgba(189, 255, 99, 0.34);
}

.stream-card span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 560;
  text-transform: uppercase;
}

.stream-card strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.stream-text {
  max-height: 108px;
  min-height: 72px;
  overflow: auto;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.lane-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: rgba(7, 6, 4, 0.62);
}

.race-lane-card {
  position: relative;
  overflow: hidden;
}

.race-lane-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(to right, rgba(68, 233, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 77, 0, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.72;
}

.race-lane-card > * {
  position: relative;
  z-index: 1;
}

.race-lane-card.qorinix-lane {
  border-color: rgba(255, 77, 0, 0.64);
  box-shadow: inset 3px 0 0 rgba(255, 77, 0, 0.88);
}

.race-lane-card.winner {
  border-color: rgba(189, 255, 99, 0.52);
  box-shadow:
    inset 3px 0 0 rgba(189, 255, 99, 0.8),
    0 0 22px rgba(189, 255, 99, 0.08);
}

.race-lane-card.live .race-track {
  animation: race-track-glow 900ms ease-in-out infinite alternate;
}

.lane-top,
.metric-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lane-top strong {
  font-size: 17px;
}

.lane-top > div {
  display: grid;
  gap: 4px;
}

.lane-status {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 560;
  text-transform: uppercase;
}

.lane-status.complete {
  color: var(--green);
  background: rgba(189, 255, 99, 0.08);
}

.lane-status.error,
.lane-status.timeout,
.lane-status.configuration_required {
  color: var(--warning);
  background: rgba(255, 209, 102, 0.08);
}

.lane-content {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

.race-track {
  position: relative;
  height: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 77, 0, 0.28);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 38px),
    rgba(255, 255, 255, 0.045);
}

.race-track.idle {
  opacity: 0.86;
}

.race-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(189, 255, 99, 0.14), rgba(68, 233, 255, 0.26), rgba(255, 77, 0, 0.26));
  transition: width 160ms linear;
}

.race-runner {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  box-shadow:
    0 0 0 4px rgba(255, 77, 0, 0.18),
    0 0 18px rgba(255, 77, 0, 0.4);
  transform: translate(-50%, -50%);
  transition: left 160ms linear;
}

.qorinix-lane .race-runner {
  background: var(--green);
  box-shadow:
    0 0 0 4px rgba(189, 255, 99, 0.16),
    0 0 18px rgba(189, 255, 99, 0.4);
}

.finish-flag {
  position: absolute;
  top: 50%;
  right: 8px;
  color: rgba(255, 248, 239, 0.48);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 560;
  transform: translateY(-50%);
}

.latency-scale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.latency-scale span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--orange));
}

.latency-scale strong {
  color: var(--ink);
  font-size: 11px;
}

.live-lane-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.live-lane-meta strong {
  color: var(--teal);
  font-family: var(--mono);
}

.race-bar {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 77, 0, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.race-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--teal), var(--orange));
  box-shadow: 0 0 18px rgba(68, 233, 255, 0.22);
}

.metric-row {
  justify-content: flex-start;
}

.metric {
  min-width: 104px;
  padding: 9px 10px;
  border-radius: 7px;
  background: var(--glass);
}

.metric span {
  display: block;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.process-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: var(--glass-soft);
}

.process-list span {
  color: var(--ink);
  font-weight: 560;
}

.process-list strong {
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 11px;
}

.process-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--soft);
  font-size: 12px;
}

.lane-evidence {
  display: grid;
  gap: 10px;
}

.detail-metrics {
  gap: 7px;
}

.detail-metrics .metric {
  flex: 1 1 94px;
  min-width: 94px;
  padding: 8px 9px;
}

.detail-metrics .metric span {
  font-size: 9px;
}

.detail-metrics .metric strong {
  font-size: 14px;
}

.compact-process {
  gap: 6px;
}

.compact-process li {
  padding: 8px 9px;
}

.run-evidence-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(68, 233, 255, 0.16);
  border-radius: 8px;
  background: rgba(68, 233, 255, 0.035);
}

.run-evidence-strip div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: rgba(7, 6, 4, 0.38);
}

.run-evidence-strip span {
  display: block;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.run-evidence-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.next-race-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 77, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 77, 0, 0.035);
}

.next-race-strip span {
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 560;
  text-transform: uppercase;
}

.next-race-strip .btn {
  min-height: 38px;
  padding: 0 14px;
}

.next-race-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.answer-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.answer-details summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 560;
}

@keyframes race-track-glow {
  from {
    border-color: rgba(255, 77, 0, 0.26);
  }
  to {
    border-color: rgba(68, 233, 255, 0.44);
  }
}

.section,
.band,
.contact-section,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: center;
  padding: 76px 0;
}

.why-band,
.how-band {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100% - 1180px) / 2));
  padding-right: max(24px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(255, 77, 0, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(68, 233, 255, 0.04) 1px, transparent 1px),
    rgba(13, 10, 8, 0.92);
  background-size: 42px 42px;
}

.how-band {
  display: block;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 720px;
}

.section-heading p,
.band-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
}

.explanation-grid,
.use-case-grid,
.step-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card,
.case-card,
.step-card,
.plan-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 77, 0, 0.035), transparent),
    var(--surface);
}

.info-card p,
.case-card p,
.step-card p,
.plan-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.case-card .pain,
.plan-card .audience {
  margin-bottom: 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 560;
  text-transform: uppercase;
}

.image-feature {
  margin: 0;
  border: 1px solid var(--card-border);
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.image-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.image-feature figcaption {
  padding: 10px 12px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
}

.section-visual,
.contact-visual {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-visual img,
.contact-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 7;
  object-fit: cover;
}

.section-visual.compact-visual img {
  aspect-ratio: 21 / 6;
}

.section-visual figcaption {
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(13, 10, 8, 0.96);
  font-size: 13px;
}

.contact-visual {
  margin-top: 24px;
  margin-bottom: 0;
}

.contact-visual img {
  aspect-ratio: 16 / 9;
}

.step-grid {
  margin-top: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
  min-height: 230px;
}

.step-card .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 0;
  color: #070604;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 560;
}

.technical-section {
  padding-bottom: 68px;
}

.technical-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.technical-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 0;
  background: var(--surface);
  font-weight: 560;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 52px;
  align-items: start;
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.company-lines {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.company-lines div {
  display: grid;
  gap: 3px;
}

.company-lines dt {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 560;
  text-transform: uppercase;
}

.company-lines dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.contact-form {
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a:last-child {
  color: var(--teal);
  font-weight: 560;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
    gap: 14px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .theme-toggle {
    grid-column: 3;
    grid-row: 1;
    border-left: 0;
  }

  .header-action {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .band,
  .contact-section,
  .speed-verdict,
  .prompt-card,
  .race-header,
  body.arena-focus .hero-copy {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .explanation-grid,
  .use-case-grid,
  .step-grid,
  .plan-grid,
  .model-option-grid,
  .race-stage-strip,
  .run-evidence-strip,
  .stream-grid,
  .final-result-grid,
  .technical-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trial-panel {
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
  }

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

  .brand-name {
    font-size: 19px;
  }

  .build-tag {
    display: none;
  }

  .theme-toggle {
    padding: 0 12px;
  }

  .theme-toggle-label {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .hero-inner,
  .section,
  .band,
  .contact-section,
  .site-footer {
    width: min(100% - 32px, 1180px);
  }

  .hero-inner {
    padding: 34px 0 28px;
    gap: 20px;
  }

  h1 {
    font-size: clamp(32px, 11vw, 48px);
  }

  h2 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .hero-summary {
    font-size: 16px;
  }

  .generated-answer .lane-content,
  .generated-answer .stream-text,
  .final-answer .lane-content {
    min-height: 220px;
  }

  .proof-strip,
  .explanation-grid,
  .use-case-grid,
  .step-grid,
  .plan-grid,
  .model-option-grid,
  .race-stage-strip,
  .race-kpis,
  .run-evidence-strip,
  .stream-grid,
  .final-result-grid,
  body.arena-focus .race-dashboard.active .race-lane-grid,
  .technical-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  body.arena-focus .hero-copy {
    padding: 12px;
  }

  .model-versus {
    grid-template-columns: 1fr;
  }

  .versus-mark {
    width: 100%;
    min-height: 24px;
  }

  .proof-strip {
    display: none;
  }

  .trial-panel,
  .contact-form {
    padding: 18px;
  }

  .panel-head {
    display: grid;
  }

  .trial-actions,
  .contact-actions {
    align-items: stretch;
  }

  .trial-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .why-band,
  .how-band {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Attract-mode typewriter highlight: while the arena question box is
   auto-typing, pulse its border so visitors notice it is a live input. */
.trial-form textarea.auto-typing {
  border-color: rgba(255, 77, 0, 0.55);
  animation: prompt-attract 1.6s ease-in-out infinite;
}

@keyframes prompt-attract {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 0, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.16);
  }
}

/* Compact idle "ready" lane chips (keeps the hero panel from towering
   over the marketing copy; full lane cards still render during a race). */
.standby-lane-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.standby-lane-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--card-border);
  border-radius: 7px;
  background: var(--glass);
  font-size: 13px;
  font-weight: 600;
}

.standby-lane-chip.qorinix {
  border-color: rgba(255, 77, 0, 0.5);
}

.standby-lane-tag {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.standby-lane-chip.qorinix .standby-lane-tag {
  color: var(--orange-2);
}

/* ============================================================
   LIGHT THEME
   Default theme. Most of the UI is driven by the design tokens
   below; the rules after the token block patch the handful of
   places that hardcode dark colors (hero photo wash, translucent
   panels, white-on-dark text) so they read correctly on light.
   ============================================================ */
:root[data-theme="light"] {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-2: #faf7f1;
  --surface-3: #f1ebe1;
  --ink: #1a1410;
  --muted: #5f574e;
  --soft: #8c8175;
  --line: #e6ded2;
  --line-dark: rgba(26, 20, 16, 0.14);
  --card-border: #e1d8ca;
  --glass: rgba(26, 20, 16, 0.04);
  --glass-soft: rgba(26, 20, 16, 0.025);
  --teal: #0c8ea3;
  --shadow: 0 18px 44px rgba(74, 55, 35, 0.12);
}

[data-theme="light"] body {
  background: var(--bg);
  background-image:
    radial-gradient(circle at 8% -8%, rgba(255, 77, 0, 0.07), transparent 32%),
    radial-gradient(circle at 84% 6%, rgba(12, 142, 163, 0.06), transparent 30%),
    linear-gradient(to right, rgba(26, 20, 16, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 20, 16, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px;
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .ticker {
  background: rgba(250, 247, 241, 0.94);
}

[data-theme="light"] .brand-mark {
  border-color: rgba(255, 77, 0, 0.42);
  background:
    radial-gradient(circle at 30% 20%, rgba(12, 142, 163, 0.14), transparent 54%),
    radial-gradient(circle at 70% 78%, rgba(255, 77, 0, 0.16), transparent 62%),
    #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(12, 142, 163, 0.1),
    0 0 16px rgba(255, 77, 0, 0.1);
}

[data-theme="light"] .brand-mark img {
  filter: none;
}

/* Hero: light wash so the photo stays a faint texture and the
   dark heading text remains legible. */
[data-theme="light"] .hero {
  background: var(--bg);
}

[data-theme="light"] .hero-media img {
  opacity: 0.1;
  filter: saturate(0.7) contrast(1.05);
}

[data-theme="light"] .hero-shade {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 77, 0, 0.1), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(12, 142, 163, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(244, 241, 236, 0.94) 0%, rgba(244, 241, 236, 0.78) 52%, rgba(244, 241, 236, 0.6) 100%),
    linear-gradient(180deg, rgba(244, 241, 236, 0.2), rgba(244, 241, 236, 0.84));
}

/* Panels / cards that hardcode translucent dark backgrounds. */
[data-theme="light"] .trial-panel {
  background:
    linear-gradient(180deg, #ffffff, var(--surface-2)),
    #ffffff;
}

[data-theme="light"] .proof-item {
  background: #ffffff;
}

[data-theme="light"] .proof-item span {
  color: var(--soft);
}

[data-theme="light"] .proof-item p {
  color: var(--muted);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: #ffffff;
}

[data-theme="light"] .result-panel,
[data-theme="light"] .race-kpis div,
[data-theme="light"] .lane-card,
[data-theme="light"] .race-lane-card,
[data-theme="light"] .stream-card,
[data-theme="light"] .race-dashboard,
[data-theme="light"] .metric {
  background: var(--surface-2);
}

[data-theme="light"] .section-visual figcaption {
  background: rgba(255, 255, 255, 0.96);
}

[data-theme="light"] .why-band,
[data-theme="light"] .how-band {
  background:
    linear-gradient(to right, rgba(255, 77, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 142, 163, 0.04) 1px, transparent 1px),
    var(--surface-2);
  background-size: 42px 42px;
}

[data-theme="light"] body.arena-focus .hero-copy {
  border-color: rgba(12, 142, 163, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .race-bar {
  background: rgba(26, 20, 16, 0.06);
}

[data-theme="light"] .process-list li,
[data-theme="light"] .run-evidence-strip div,
[data-theme="light"] .answer-details {
  border-color: var(--card-border);
}

[data-theme="light"] .btn.primary {
  box-shadow: 0 10px 22px rgba(240, 90, 40, 0.22);
}
