/* ============================================================
   Bump And Merge — Garage Console / Racetrack landing
   Light coastal palette · electric blue · sunshine yellow
   Layout: side rail + merge-slot board + pit-lane gallery + action dock
   ============================================================ */

:root {
  --bg: #eef6fb;
  --bg-deep: #dcecf7;
  --cream: #f6f0e4;
  --cream-dark: #ebe2d0;
  --ink: #0a2a43;
  --ink-soft: #3d5a73;
  --muted: #5a7388;
  --sky: #1a8cff;
  --sky-deep: #0b6bcb;
  --cyan: #4dc4ff;
  --sun: #ffc107;
  --sun-hot: #ff9800;
  --panel: rgba(255, 255, 255, 0.82);
  --stroke: rgba(10, 42, 67, 0.1);
  --glow-sky: 0 0 0 3px rgba(26, 140, 255, 0.25), 0 12px 32px rgba(11, 107, 203, 0.2);
  --glow-sun: 0 0 0 3px rgba(255, 193, 7, 0.35), 0 10px 28px rgba(255, 152, 0, 0.28);
  --rail-w: 88px;
  --radius: 22px;
  --font-display: "Exo 2", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --shadow: 0 18px 40px rgba(10, 42, 67, 0.12);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a1f33;
  --bg-deep: #071624;
  --cream: #132a40;
  --cream-dark: #0e2236;
  --ink: #f2f7fb;
  --ink-soft: #c5d5e3;
  --muted: #8aa0b5;
  --panel: rgba(15, 40, 62, 0.88);
  --stroke: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--sky);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Atmosphere ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(77, 196, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(255, 193, 7, 0.18), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.atmosphere__stripes {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background: repeating-linear-gradient(
    -35deg,
    transparent,
    transparent 14px,
    var(--ink) 14px,
    var(--ink) 15px
  );
}

.flare {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.flare--a {
  top: 20%;
  right: 8%;
  background: rgba(26, 140, 255, 0.45);
  animation: drift 14s ease-in-out infinite alternate;
}

.flare--b {
  bottom: 10%;
  left: 15%;
  background: rgba(255, 193, 7, 0.35);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(24px, -18px); }
}

/* ---------- Side rail ---------- */
.rail {
  position: fixed;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  z-index: 100;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.6rem;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.rail__brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(26, 140, 255, 0.35);
}

.rail__nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.2rem;
  border-radius: 16px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.rail__item:hover,
.rail__item.is-active {
  background: rgba(26, 140, 255, 0.12);
  color: var(--sky-deep);
}

[data-theme="dark"] .rail__item:hover,
[data-theme="dark"] .rail__item.is-active {
  color: var(--cyan);
}

.rail__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff 0%, var(--cream) 100%);
  border: 1.5px solid rgba(77, 196, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 10px rgba(10, 42, 67, 0.08);
  color: var(--sky-deep);
}

[data-theme="dark"] .rail__icon {
  background: linear-gradient(160deg, #1a3a55 0%, #0f2740 100%);
  color: var(--cyan);
}

.rail__icon svg {
  width: 20px;
  height: 20px;
}

.rail__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail__item:hover .rail__label,
.rail__item.is-active .rail__label {
  color: inherit;
}

.theme-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--stroke);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.theme-btn:hover {
  box-shadow: var(--glow-sky);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.mobar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--panel);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease;
}

.mobar.is-scrolled {
  box-shadow: 0 8px 24px rgba(10, 42, 67, 0.1);
}

.mobar__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mobar__brand em {
  font-style: italic;
  font-weight: 600;
  color: var(--muted);
}

.mobar__brand img {
  border-radius: 10px;
}

.mobar__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.burger {
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  gap: 5px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--stroke);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--panel);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.drawer[hidden] {
  display: none !important;
}

.drawer a {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.drawer a:hover {
  background: rgba(26, 140, 255, 0.1);
}

/* ---------- Stage: centered column; rail floats in side gutter ---------- */
.stage {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: 0 1.5rem 6.5rem;
}

@media (min-width: 901px) {
  .stage {
    /* Equal side gutters so content stays optically centered; rail sits in left gutter */
    padding-left: calc(var(--rail-w) + 28px);
    padding-right: calc(var(--rail-w) + 28px);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--sky {
  color: #fff;
  background: linear-gradient(180deg, #4db4ff 0%, var(--sky) 45%, var(--sky-deep) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 8px 20px rgba(11, 107, 203, 0.35);
}

.btn--sky:hover {
  box-shadow: var(--glow-sky);
}

.btn--sun {
  color: var(--ink);
  background: linear-gradient(180deg, #ffe566 0%, var(--sun) 50%, var(--sun-hot) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 8px 20px rgba(255, 152, 0, 0.35);
}

.btn--sun:hover {
  box-shadow: var(--glow-sun);
}

.btn--ghost {
  color: var(--ink);
  background: var(--panel);
  border: 2px solid rgba(26, 140, 255, 0.35);
}

.btn--ghost:hover {
  border-color: var(--sky);
  box-shadow: var(--glow-sky);
}

.btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Shared title accents ---------- */
.t-soft {
  color: var(--sky-deep);
  font-style: italic;
}

[data-theme="dark"] .t-soft {
  color: var(--cyan);
}

.t-sun {
  background: linear-gradient(180deg, #ffe566 0%, var(--sun-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 0 rgba(10, 42, 67, 0.08);
  filter: drop-shadow(0 2px 0 rgba(10, 42, 67, 0.15));
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 1.75rem 0 5.5rem;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 3px rgba(77, 196, 255, 0.35);
}

.hero__scene {
  position: relative;
  aspect-ratio: 1024 / 500;
  background: #0a2a43;
}

.hero__banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 42, 67, 0.72) 0%, rgba(10, 42, 67, 0.35) 45%, transparent 70%),
    linear-gradient(0deg, rgba(10, 42, 67, 0.55) 0%, transparent 40%);
}

.hero__speed {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    100deg,
    transparent 0,
    transparent 18px,
    rgba(255, 193, 7, 0.06) 18px,
    rgba(255, 193, 7, 0.06) 20px
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: speedslide 8s linear infinite;
}

@keyframes speedslide {
  from { transform: translateX(0); }
  to { transform: translateX(-40px); }
}

.hero__console {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  max-width: 640px;
  color: #fff;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 193, 7, 0.95);
  color: var(--ink);
  box-shadow: var(--glow-sun);
}

.hero__eyebrow svg {
  width: 14px;
  height: 14px;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 4.2vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero__line {
  display: block;
}

.hero__line--soft {
  color: #c8e6ff;
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero__line--sun {
  background: linear-gradient(180deg, #fff6a8 0%, #ffc107 55%, #ff8a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 40, 80, 0.55));
}

.hero__lead {
  margin: 0 0 1.25rem;
  max-width: 36ch;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ---------- Garage board ---------- */
.garage {
  margin-bottom: 6.5rem;
  padding-block: 0.5rem;
}

.garage__frame {
  position: relative;
  padding: clamp(2.25rem, 4.5vw, 3.75rem);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-dark) 100%);
  border: 3px solid var(--cyan);
  box-shadow: var(--glow-sky), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.garage__track {
  position: absolute;
  inset: 10px;
  border-radius: var(--radius);
  border: 6px solid #9aa4ae;
  opacity: 0.35;
  pointer-events: none;
}

.garage__lane {
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius) - 4px);
  border: 2px dashed rgba(255, 255, 255, 0.55);
}

.garage__check {
  position: absolute;
  right: -2px;
  top: 35%;
  bottom: 35%;
  width: 14px;
  background: repeating-linear-gradient(
    0deg,
    #fff 0 6px,
    #222 6px 12px
  );
  border-radius: 2px;
}

.garage__head {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 2.75rem;
}

.garage__head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.garage__head h2 .t-soft,
.garage__head h2 .t-sun {
  display: inline-block;
  margin: 0 0.15em;
}

.garage__head p {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--ink-soft);
}

.slots {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.slot {
  position: relative;
  padding: 1.35rem 1.1rem 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 2px dashed rgba(26, 140, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .slot {
  background: rgba(10, 32, 52, 0.65);
}

.slot:hover {
  border-style: solid;
  border-color: var(--sky);
  box-shadow: var(--glow-sky);
  transform: translateY(-3px);
}

.slot__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe566, var(--sun));
  box-shadow: 0 3px 8px rgba(255, 152, 0, 0.35);
}

.slot__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(160deg, #4db4ff, var(--sky-deep));
  box-shadow: 0 6px 14px rgba(11, 107, 203, 0.3);
}

.slot__icon svg {
  width: 24px;
  height: 24px;
}

.slot h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.slot p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Pit-lane gallery ---------- */
.track {
  margin-bottom: 6.5rem;
  padding-block: 0.75rem 1.25rem;
}

.track__intro {
  text-align: center;
  margin-bottom: 2.75rem;
}

.track__intro h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
}

.track__intro p {
  margin: 0;
  color: var(--muted);
}

.pitstrip {
  position: relative;
  padding: 2.5rem 0 1.25rem;
}

.pitstrip__road {
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  height: 56px;
  background:
    linear-gradient(90deg, transparent, #6b7680 4%, #6b7680 96%, transparent),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 28px,
      #fff 28px,
      #fff 46px
    );
  background-blend-mode: normal;
  border-radius: 8px;
  opacity: 0.55;
  transform: skewX(-8deg);
  pointer-events: none;
}

.pitstrip__cars {
  list-style: none;
  margin: 0;
  padding: 0 0.25rem;
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
}

.pitstrip__cars li {
  flex: 0 0 auto;
  width: min(220px, 58vw);
  scroll-snap-align: center;
  text-align: center;
}

.phone {
  margin: 0 0 0.65rem;
  border-radius: 28px;
  overflow: hidden;
  background: #0a2a43;
  border: 3px solid #1a2f42;
  box-shadow:
    0 0 0 4px rgba(77, 196, 255, 0.35),
    0 20px 40px rgba(10, 42, 67, 0.22);
  aspect-ratio: 576 / 1024;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone:hover,
.phone--glow {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow:
    0 0 0 4px rgba(255, 193, 7, 0.55),
    0 24px 48px rgba(255, 152, 0, 0.25);
}

.pitstrip__tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe566, var(--sun));
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

/* ---------- Action dock ---------- */
.dockzone {
  margin-bottom: 4rem;
  padding-block: 1.5rem 2rem;
}

.actiondock {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: stretch;
  padding: 1rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(220, 236, 247, 0.95));
  border: 2px solid rgba(77, 196, 255, 0.45);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .actiondock {
  background: linear-gradient(180deg, rgba(20, 48, 72, 0.95), rgba(10, 32, 52, 0.98));
}

.actiondock__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 100px;
  padding: 1rem 0.85rem;
  border-radius: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.actiondock__side svg {
  width: 22px;
  height: 22px;
}

.actiondock__side:hover {
  transform: translateY(-2px);
}

.actiondock__side--catalog {
  color: var(--ink);
  background: linear-gradient(180deg, #ffe566, var(--sun-hot));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 8px 18px rgba(255, 152, 0, 0.3);
}

.actiondock__side--auto {
  color: #fff;
  background: linear-gradient(180deg, #5ec2ff, var(--sky-deep));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 8px 18px rgba(11, 107, 203, 0.3);
}

.actiondock__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 10px 28px rgba(11, 107, 203, 0.35);
}

.actiondock__preview img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.actiondock__copy {
  flex: 1 1 180px;
}

.actiondock__copy h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
}

.actiondock__copy p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.actiondock__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.actiondock__btns .btn--sky {
  background: linear-gradient(180deg, #ffe566, var(--sun-hot));
  color: var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 6px 14px rgba(0, 0, 0, 0.15);
}

.actiondock__btns .btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

/* ---------- Footer ---------- */
.foot {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: 3.5rem 1.5rem 4rem;
  border-top: 1px solid var(--stroke);
}

@media (min-width: 901px) {
  .foot {
    padding-left: calc(var(--rail-w) + 28px);
    padding-right: calc(var(--rail-w) + 28px);
  }
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.foot__brand img {
  border-radius: 8px;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.foot__links a {
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot__links a:hover {
  color: var(--sky-deep);
  border-bottom-color: var(--sky);
}

.foot__copy {
  margin: 0;
  width: 100%;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 42, 67, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 24px;
  background: var(--panel);
  border: 2px solid rgba(77, 196, 255, 0.4);
  box-shadow: var(--shadow), var(--glow-sky);
  text-align: center;
}

.modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
}

.modal__x svg {
  width: 18px;
  height: 18px;
}

.modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe566, var(--sun));
}

.modal__icon svg {
  width: 28px;
  height: 28px;
}

.modal__panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
}

.modal__panel p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .slots {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .rail {
    display: none;
  }

  .mobar {
    display: flex;
  }

  .stage,
  .foot {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    margin-top: 0.75rem;
  }

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

  .actiondock__side {
    flex-direction: row;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .slots {
    grid-template-columns: 1fr;
  }

  .hero__console {
    position: relative;
    max-width: none;
    background: linear-gradient(180deg, transparent, rgba(10, 42, 67, 0.92));
    color: #fff;
  }

  .hero__scene {
    aspect-ratio: 16 / 10;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
  }

  .actiondock__btns {
    width: 100%;
  }

  .actiondock__btns .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .flare,
  .hero__speed,
  .btn,
  .slot,
  .phone {
    animation: none !important;
    transition: none !important;
  }
}
