* {
  box-sizing: border-box;
}

body.offroad-page {
  display: block;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #080c10;
  color: #e6edf3;
}

.offroad-shell {
  width: 100%;
  margin: 0;
  padding: 0 0 38px;
}

/* ---------------------------------------------------------
   Full hero scene — the Jeep lives in the header now.
   --------------------------------------------------------- */

.offroad-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, 72vh, 760px);
  overflow: hidden;
  background:
    url("/assets/offroad/offroad-background.png") center 47% / cover no-repeat;
}

.offroad-hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 5, 8, 0.06) 0%, rgba(2, 5, 8, 0.04) 42%, rgba(2, 5, 8, 0.68) 78%, rgba(2, 5, 8, 0.90) 100%),
    linear-gradient(90deg, rgba(2, 5, 8, 0.06) 0%, rgba(2, 5, 8, 0.02) 55%, rgba(2, 5, 8, 0.12) 100%);
}

.offroad-hero-content {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 66px;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: end;
}

.offroad-intro-copy {
  min-width: 0;
  padding: 0;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.75);
}

.offroad-terminal {
  margin-bottom: 8px;
  color: #8be858;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.offroad-intro-copy h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.offroad-kicker {
  margin-top: 18px;
  color: #8be858;
  font-size: clamp(0.78rem, 1.7vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.24em;
}

.offroad-intro-copy p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d1d9e0;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.62;
}

/* ---------------------------------------------------------
   Lower content
   --------------------------------------------------------- */

.offroad-content {
  position: relative;
  z-index: 4;
  width: min(1160px, calc(100% - 40px));
  margin: -34px auto 0;
}

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

.offroad-feature-card,
.offroad-panel {
  background: linear-gradient(180deg, rgba(15, 21, 28, 0.94), rgba(10, 15, 21, 0.94));
  border: 1px solid rgba(125, 196, 72, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.offroad-feature-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px;
  border-top: 2px solid rgba(125, 196, 72, 0.88);
  border-radius: 12px;
}

.offroad-feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(125, 196, 72, 0.12);
  border-radius: 9px;
}

.offroad-feature-card h2 {
  margin: 0 0 6px;
  color: #f0f6fc;
  font-size: 0.92rem;
}

.offroad-feature-card p {
  margin: 0;
  color: #9da8b3;
  font-size: 0.72rem;
  line-height: 1.5;
}

.offroad-panels {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-top: 14px;
}

.offroad-panel {
  padding: 18px;
  border-radius: 12px;
}

.offroad-panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.offroad-panel-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(88, 166, 255, 0.11);
  border-radius: 8px;
}

.offroad-panel h2 {
  margin: 0;
  color: #f0f6fc;
  font-size: 0.95rem;
}

.offroad-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.offroad-list-item {
  padding-bottom: 12px;
  border-bottom: 1px solid #242c35;
}

.offroad-list-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.offroad-list-item strong {
  display: block;
  margin-bottom: 4px;
  color: #e6edf3;
  font-size: 0.75rem;
}

.offroad-list-item span {
  color: #8b949e;
  font-size: 0.68rem;
  line-height: 1.45;
}

.solar-flow {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: stretch;
  gap: 7px;
  margin: 4px 0 14px;
}

.solar-node {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  background: rgba(20, 26, 33, 0.86);
  border: 1px solid #30363d;
  border-radius: 9px;
}

.solar-icon {
  font-size: 1.2rem;
}

.solar-node strong {
  color: #e6edf3;
  font-size: 0.75rem;
}

.solar-arrow {
  color: #7dc448;
  text-align: center;
  font-weight: 800;
}

.solar-note {
  margin: 0;
  color: #8b949e;
  font-size: 0.68rem;
  line-height: 1.5;
}

.offroad-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #21262d;
  color: #6e7681;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
}

.offroad-footer .online {
  color: #3fb950;
}

@media (max-width: 900px) {
  .offroad-hero {
    min-height: 820px;
    background-position: 60% center;
  }

  .offroad-hero-content {
    bottom: 60px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .offroad-feature-grid,
  .offroad-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .offroad-hero {
    min-height: 850px;
    background-position: 64% center;
  }

  .offroad-hero-content,
  .offroad-content {
    width: min(100% - 28px, 1160px);
  }

  .offroad-hero-content {
    bottom: 54px;
  }

  .offroad-intro-copy h1 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }

  .offroad-kicker {
    letter-spacing: 0.16em;
  }

  .offroad-content {
    margin-top: -24px;
  }
}

@media (max-width: 440px) {
  .offroad-hero {
    min-height: 900px;
    background-position: 67% center;
  }

  .offroad-intro-copy h1 {
    font-size: 2.55rem;
  }
}

/* v1.3 — show the full approved hero artwork instead of cropping its lower half. */
@media (min-width: 901px) {
  .offroad-hero {
    min-height: 0;
    height: auto;
    aspect-ratio: 1590 / 989;
    background-size: 100% auto;
    background-position: center top;
  }
}

/* v1.4 — fixed offroad artwork, compact hero. The page scrolls; the scene does not. */
@media (min-width: 901px) {
  body.offroad-page {
    background:
      linear-gradient(180deg, rgba(8, 12, 16, 0.02) 0%, rgba(8, 12, 16, 0.12) 58%, rgba(8, 12, 16, 0.92) 100%),
      url("/assets/offroad/offroad-background.png") center top / cover fixed no-repeat;
  }

  .offroad-hero {
    min-height: clamp(590px, 67vh, 700px);
    height: auto;
    aspect-ratio: auto;
    background: transparent;
    overflow: visible;
  }

  .offroad-hero-shade {
    background:
      linear-gradient(180deg, rgba(2, 5, 8, 0.02) 0%, rgba(2, 5, 8, 0.02) 48%, rgba(2, 5, 8, 0.48) 78%, rgba(2, 5, 8, 0.78) 100%);
  }

  .offroad-hero-content {
    bottom: 42px;
  }

  .offroad-content {
    margin-top: -26px;
  }
}

/* v1.6 — remove the full-width dark band at the bottom of the hero.
   Keep only a localized soft shadow behind the title for readability. */
@media (min-width: 901px) {
  .offroad-hero-shade {
    background:
      radial-gradient(
        ellipse 62% 38% at 40% 76%,
        rgba(2, 5, 8, 0.48) 0%,
        rgba(2, 5, 8, 0.24) 38%,
        rgba(2, 5, 8, 0.06) 64%,
        transparent 82%
      );
  }
}

/* v1.8 — photographic mud texture overlays derived from the approved look.
   Uses transparent PNG splatter assets rather than CSS-drawn dots/blobs. */
.offroad-feature-card,
.offroad-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.offroad-feature-card > *,
.offroad-panel > * {
  position: relative;
  z-index: 2;
}

.offroad-feature-card::before,
.offroad-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  opacity: 0.92;
}

.offroad-feature-card::before {
  background-image: url("/assets/offroad/mud-card.png");
}

.offroad-feature-card:nth-child(2)::before {
  transform: scaleX(-1);
}

.offroad-feature-card:nth-child(3)::before {
  transform: scaleY(-1);
}

.offroad-panel:nth-child(1)::before {
  background-image: url("/assets/offroad/mud-panel-a.png");
}

.offroad-panel:nth-child(2)::before {
  background-image: url("/assets/offroad/mud-panel-b.png");
}

@media (max-width: 650px) {
  .offroad-feature-card::before,
  .offroad-panel::before {
    opacity: 0.76;
  }
}
