:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #afbdd0;
  --panel: rgba(7, 11, 26, 0.84);
  --panel-strong: rgba(11, 16, 36, 0.95);
  --line: rgba(167, 225, 255, 0.22);
  --cyan: #38e8ff;
  --green: #84ff4f;
  --amber: #ffd166;
  --magenta: #ff4fd8;
  --red: #ff5a6f;
  --blue: #7aa7ff;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: "Rajdhani", system-ui, sans-serif;
  background:
    linear-gradient(115deg, rgba(56, 232, 255, 0.12), transparent 34%),
    linear-gradient(245deg, rgba(255, 79, 216, 0.12), transparent 35%),
    linear-gradient(180deg, #02040e 0%, #080917 52%, #03040a 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black 0 82%, transparent 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.44;
  background:
    linear-gradient(105deg, transparent 0 45%, rgba(56, 232, 255, 0.18) 46%, transparent 48% 100%),
    linear-gradient(72deg, transparent 0 57%, rgba(255, 209, 102, 0.14) 58%, transparent 60% 100%);
  animation: circuitDrift 14s linear infinite alternate;
}

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

#neuralCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.site-shell {
  position: relative;
  width: min(1440px, 100%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 4, 13, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 15rem;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(56, 232, 255, 0.75);
  border-radius: 50%;
  color: #02040e;
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  background: conic-gradient(from 120deg, var(--cyan), var(--green), var(--amber), var(--magenta), var(--cyan));
  box-shadow: 0 0 26px rgba(56, 232, 255, 0.42);
}

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

.brand strong {
  font-family: "Orbitron", sans-serif;
  font-size: 0.94rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 2.45rem;
  padding: 0.63rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #e2f5ff;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  color: var(--cyan);
  outline: none;
  background: rgba(56, 232, 255, 0.08);
}

.command-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 2rem;
  min-height: calc(100vh - 126px);
  padding: 2.2rem 3rem 1.4rem;
  overflow: hidden;
}

.command-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 4, 14, 0.98), rgba(2, 4, 14, 0.84), rgba(2, 4, 14, 0.96)),
    url("1_NVIDIA-RTX-50-Series-Beyond-Every-Limit-Ever-Set.png") center / cover no-repeat;
  opacity: 0.94;
  filter: saturate(1.18) contrast(1.06);
}

.command-hero::after {
  position: absolute;
  left: 3rem;
  right: 3rem;
  bottom: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), var(--amber), var(--magenta), transparent);
}

.hero-copy {
  align-self: center;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 0.78rem;
  color: var(--green);
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Orbitron", sans-serif;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 1rem;
  font-size: 3.05rem;
  text-transform: uppercase;
  text-shadow:
    0 0 28px rgba(56, 232, 255, 0.28),
    0 0 48px rgba(255, 79, 216, 0.2);
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.3rem;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.12rem;
}

p {
  color: #cad8ea;
  font-size: 1.1rem;
  line-height: 1.55;
}

.hero-lede {
  max-width: 760px;
  color: #eff8ff;
  font-size: 1.12rem;
}

.hero-actions,
.score-toolbar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(56, 232, 255, 0.62);
  color: #02040e;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  box-shadow: 0 0 30px rgba(56, 232, 255, 0.28);
}

.button.ghost {
  background: rgba(8, 12, 30, 0.76);
  box-shadow: inset 0 0 18px rgba(255, 79, 216, 0.16);
}

.mission-panel,
.stack-card,
.scenario-card,
.leader-card,
.score-card,
.cadence-grid article,
.hardware-grid article,
.rules-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(9, 14, 34, 0.9), rgba(4, 7, 18, 0.82));
  box-shadow: var(--shadow);
}

.mission-panel {
  align-self: center;
  padding: 1.4rem;
}

.mission-panel h2 {
  font-size: 1.68rem;
}

.mission-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 1rem 0;
}

.mission-metrics div {
  min-height: 86px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.mission-metrics dt {
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.mission-metrics dd {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.decision-callout {
  min-height: 118px;
  padding: 1rem;
  border: 1px solid rgba(132, 255, 79, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(120deg, rgba(132, 255, 79, 0.12), transparent 60%),
    rgba(2, 4, 14, 0.78);
}

.decision-callout span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--green);
  font-family: "Orbitron", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.decision-callout strong {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.section {
  padding: 4.8rem 3rem;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 2rem;
}

.stack-section,
.cadence-section {
  background:
    linear-gradient(135deg, rgba(56, 232, 255, 0.08), transparent 35%),
    linear-gradient(260deg, rgba(255, 209, 102, 0.08), transparent 38%);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.stack-card {
  min-height: 310px;
  padding: 1.15rem;
}

.system-code,
.scenario-card span,
.cadence-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  min-width: 3.3rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
}

.stack-card strong {
  display: block;
  margin-top: 1rem;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.88rem;
  line-height: 1.35;
}

.accent-openai {
  border-color: rgba(56, 232, 255, 0.4);
}

.accent-nexos {
  border-color: rgba(132, 255, 79, 0.4);
}

.accent-groq {
  border-color: rgba(255, 209, 102, 0.46);
}

.accent-xai {
  border-color: rgba(255, 79, 216, 0.38);
}

.accent-local {
  border-color: rgba(122, 167, 255, 0.42);
}

.scenarios-section {
  overflow: hidden;
}

.scenario-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab-button {
  min-height: 2.5rem;
  padding: 0.62rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e9f6ff;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(6, 10, 24, 0.78);
  cursor: pointer;
}

.tab-button:hover,
.tab-button:focus-visible,
.tab-button.is-active {
  border-color: rgba(132, 255, 79, 0.65);
  color: #02040e;
  outline: none;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.scenario-card {
  min-height: 342px;
  padding: 1.15rem;
  transition: transform 180ms ease, opacity 180ms ease;
}

.scenario-card.is-hidden {
  display: none;
}

.scenario-card:hover {
  transform: translateY(-3px);
}

.scenario-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.scenario-card li {
  min-height: 2rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e7f5ff;
  background: rgba(255, 255, 255, 0.04);
}

.score-section {
  background:
    linear-gradient(115deg, rgba(255, 90, 111, 0.08), transparent 35%),
    linear-gradient(260deg, rgba(122, 167, 255, 0.1), transparent 38%);
}

.score-toolbar {
  margin-bottom: 1rem;
}

.leaderboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.leader-card {
  min-height: 136px;
  padding: 1rem;
}

.leader-card b,
.leader-card span,
.leader-card small {
  display: block;
}

.leader-card b {
  color: var(--green);
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.leader-card span {
  margin: 0.45rem 0;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
}

.leader-card small {
  color: var(--muted);
  font-size: 0.95rem;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.score-card {
  min-width: 0;
  padding: 1rem;
}

.score-card header {
  min-height: 112px;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.score-card h3 {
  margin-bottom: 0.35rem;
}

.score-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  min-width: 4.2rem;
  margin-top: 0.65rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(56, 232, 255, 0.38);
  border-radius: 999px;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.metric-row {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(112px, 0.92fr) 1.6rem;
  gap: 0.55rem;
  align-items: center;
  min-height: 42px;
}

.metric-row label {
  color: #e7f4ff;
  font-weight: 700;
}

.metric-row input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.metric-value {
  color: var(--amber);
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.cadence-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.cadence-grid article {
  min-height: 250px;
  padding: 1.1rem;
}

.cadence-grid span {
  width: auto;
  color: var(--amber);
}

.hardware-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.38fr);
  gap: 2rem;
  align-items: start;
}

.hardware-copy {
  position: sticky;
  top: 104px;
}

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

.hardware-grid article {
  overflow: hidden;
}

.hardware-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.hardware-grid h3,
.hardware-grid p {
  margin-right: 1rem;
  margin-left: 1rem;
}

.hardware-grid h3 {
  margin-top: 1rem;
}

.hardware-grid p {
  margin-bottom: 1rem;
}

.rules-section {
  padding-top: 2rem;
}

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

.rules-grid article {
  min-height: 210px;
  padding: 1.2rem;
}

.rules-grid article:nth-child(1) {
  border-color: rgba(132, 255, 79, 0.4);
}

.rules-grid article:nth-child(2) {
  border-color: rgba(255, 209, 102, 0.46);
}

.rules-grid article:nth-child(3) {
  border-color: rgba(255, 90, 111, 0.48);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-size: 1rem;
}

.site-footer div {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--cyan);
  font-weight: 700;
}

@keyframes circuitDrift {
  from {
    transform: translate3d(-2%, 0, 0);
  }
  to {
    transform: translate3d(2%, 0, 0);
  }
}

@media (max-width: 1260px) {
  .stack-grid,
  .scenario-grid,
  .leaderboard,
  .scoreboard,
  .cadence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack-card,
  .scenario-card,
  .cadence-grid article {
    min-height: 0;
  }

  .hardware-section {
    grid-template-columns: 1fr;
  }

  .hardware-copy {
    position: static;
  }
}

@media (max-width: 980px) {
  .command-hero {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.98rem;
  }

  .hardware-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .command-hero,
  .section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .command-hero {
    min-height: 0;
    padding-top: 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero-lede,
  p {
    font-size: 1.02rem;
  }

  .mission-metrics,
  .stack-grid,
  .scenario-grid,
  .leaderboard,
  .scoreboard,
  .cadence-grid {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.85fr) 1.6rem;
  }

  .site-footer {
    flex-direction: column;
    padding: 1.4rem 1rem;
  }
}

@media (max-width: 480px) {
  .brand {
    min-width: 0;
  }

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

  .brand small {
    font-size: 0.74rem;
  }

  .hero-actions .button,
  .score-toolbar .button {
    width: 100%;
  }

  .metric-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.35rem 0;
  }

  .metric-value {
    text-align: left;
  }
}

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