:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09090a;
  color: #fff4e6;
  --bg: #09090a;
  --surface: #12100f;
  --surface-2: #1a1512;
  --ink: #fff4e6;
  --muted: rgba(255, 244, 230, 0.68);
  --line: rgba(255, 244, 230, 0.16);
  --red: #e01f16;
  --orange: #ff7420;
  --amber: #ffc247;
  --steel: #a9a19a;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(130deg, rgba(224, 31, 22, 0.18), transparent 34rem),
    linear-gradient(240deg, rgba(255, 116, 32, 0.16), transparent 34rem),
    var(--bg);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

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

.test-bar {
  display: flex;
  position: relative;
  z-index: 5;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.75rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: #100d0b;
}

.test-bar strong {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.motion-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.motion-nav button,
.lab-button {
  min-height: 2.35rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 116, 32, 0.42);
  border-radius: 0;
  background: rgba(255, 116, 32, 0.08);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.motion-nav button:hover,
.lab-button:hover {
  border-color: var(--amber);
  background: rgba(255, 116, 32, 0.18);
}

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

.banner-stage {
  display: grid;
  min-height: calc(100vh - 4rem);
  padding: clamp(1rem, 3vw, 2.5rem);
  background: #09090a;
  place-items: center;
}

.banner-stage img {
  width: min(100%, 1500px);
  max-height: calc(100vh - 6rem);
  object-fit: contain;
}

.panel {
  min-height: 100vh;
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.2rem, 5vw, 6rem);
}

.intro-panel {
  display: grid;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(255, 116, 32, 0.1), transparent 40%),
    var(--surface);
}

.hero-copy,
.section-copy,
.intro-panel {
  width: min(58rem, 100%);
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.3rem, 12vw, 10rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 7vw, 6.8rem);
  font-weight: 920;
  line-height: 0.92;
  letter-spacing: 0;
}

.lead,
.section-copy p:not(.kicker) {
  max-width: 43rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 36rem);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 244, 230, 0.045), transparent),
    #15110f;
}

.signal-grid,
.plugin-grid {
  display: grid;
  gap: 0.7rem;
}

.signal {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: center;
  min-height: 6rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.signal:last-child {
  border-bottom: 1px solid var(--line);
}

.signal span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
}

.signal strong {
  font-size: clamp(1.35rem, 3vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.plugin-lab {
  background: var(--surface-2);
}

.plugin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 4rem);
}

.plugin-grid.is-expanded {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plugin-card {
  display: grid;
  align-content: space-between;
  min-height: 11rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 116, 32, 0.16), transparent 68%),
    #100d0b;
}

.plugin-card span {
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plugin-card strong {
  max-width: 18rem;
  font-size: clamp(1.2rem, 2.3vw, 2.1rem);
  line-height: 1.05;
}

.lab-button {
  margin-top: 1rem;
}

.route-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(19rem, 1.2fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  background: #0e0d0d;
}

.route-visual {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(224, 31, 22, 0.16), transparent 48%),
    #130f0e;
}

.route-visual svg {
  width: 100%;
  min-height: 18rem;
}

.race-line,
.race-dot,
.morph-shape {
  will-change: transform, opacity;
}

.morph-shape {
  transform-origin: center;
}

.reveal,
.split-headline {
  will-change: transform, opacity;
}

@media (max-width: 900px) {
  .test-bar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .split,
  .route-lab,
  .plugin-grid,
  .plugin-grid.is-expanded {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: auto;
  }

  .banner-stage {
    min-height: auto;
  }

  .banner-stage img {
    max-height: none;
  }
}

@media (max-width: 520px) {
  .motion-nav button,
  .lab-button {
    width: 100%;
  }

  .motion-nav {
    width: 100%;
  }

  .signal {
    grid-template-columns: 3rem minmax(0, 1fr);
  }
}

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

  .reveal,
  .split-headline,
  .race-line,
  .race-dot {
    opacity: 1 !important;
    transform: none !important;
  }
}
