:root {
  color-scheme: dark;
  --bg: #07090b;
  --panel: rgba(18, 25, 31, 0.76);
  --panel-strong: rgba(26, 35, 43, 0.9);
  --ink: #f5f8fb;
  --muted: #b9c1c6;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #16d9ff;
  --accent-2: #ff8a24;
  --accent-3: #d6ff3f;
  --clay: #a85a36;
  --danger: #ec3d2f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --soft-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 138, 36, 0.05), transparent 26%),
    linear-gradient(315deg, rgba(22, 217, 255, 0.08), transparent 32%),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(7, 9, 11, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a,
footer a {
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--accent);
}

nav a {
  position: relative;
}

nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent-2);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 4px solid var(--accent);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.94) 0%, rgba(7, 9, 11, 0.7) 39%, rgba(7, 9, 11, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 9, 11, 0.82), rgba(7, 9, 11, 0.08) 44%),
    linear-gradient(135deg, rgba(255, 138, 36, 0.18), transparent 38%),
    url("assets/monster-truck-hero.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  position: absolute;
  inset: auto clamp(18px, 4vw, 56px) 34px auto;
  width: min(360px, 44vw);
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(255, 138, 36, 0.48) 32% 34%, transparent 34% 64%, rgba(22, 217, 255, 0.48) 64% 66%, transparent 66%),
    rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
  content: "";
  transform: skewX(-10deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 72px);
  padding-block: 80px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(3.3rem, 9vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.24rem;
  line-height: 1.1;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #001119;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.trending-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(12, 17, 19, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  white-space: nowrap;
}

.trending-strip span {
  color: var(--accent-2);
  font-weight: 900;
  text-transform: uppercase;
}

.trending-strip a {
  color: var(--muted);
  text-decoration: none;
}

.stats-band,
.content-section,
.split-section,
.sources-section,
.market-section,
.sideacts-section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.stats-band,
.guide-section,
.sources-section,
.market-section {
  background: rgba(10, 14, 17, 0.72);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 28px;
}

.section-copy {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.stat-grid,
.topic-grid,
.truck-grid,
.coverage-grid,
.market-grid,
.resource-grid,
.sideacts-grid,
.glossary,
.sources-section ul {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr 1.1fr;
  gap: 14px;
}

.stat {
  min-height: 190px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-bottom: 12px;
  font-weight: 900;
}

.stat p,
.topic-card p,
.truck-card dd,
.timeline-item p,
.glossary dd,
.sources-section span,
footer {
  color: var(--muted);
  line-height: 1.55;
}

.toolbar {
  width: min(1180px, 100%);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 21, 30, 0.7);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.filters button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 24, 34, 0.74);
  color: var(--muted);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.filters button.is-active,
.filters button:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.truck-grid,
.topic-grid,
.coverage-grid,
.resource-grid,
.sideacts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  grid-auto-flow: dense;
}

.truck-card,
.topic-card,
.coverage-card,
.resource-card,
.sideact-card {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.truck-card:hover,
.topic-card:hover,
.coverage-card:hover,
.resource-card:hover,
.sideact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 217, 255, 0.34);
  background: rgba(24, 33, 40, 0.82);
}

.coverage-card:nth-child(1),
.coverage-card:nth-child(6),
.resource-card:nth-child(3) {
  grid-column: span 2;
}

.coverage-card:nth-child(1),
.market-card:nth-child(2),
.sideact-card:nth-child(1) {
  background:
    linear-gradient(135deg, rgba(22, 217, 255, 0.14), transparent 44%),
    var(--panel);
}

.coverage-card:nth-child(6),
.market-card:nth-child(3),
.sideact-card:nth-child(4) {
  background:
    linear-gradient(135deg, rgba(255, 138, 36, 0.16), transparent 45%),
    var(--panel);
}

.truck-card__top span,
.topic-card span,
.coverage-card span,
.market-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

dl {
  margin: 0;
}

.truck-card dl {
  display: grid;
  gap: 14px;
}

.truck-card dt,
.glossary dt {
  color: var(--ink);
  font-weight: 900;
}

.truck-card dd,
.glossary dd {
  margin: 4px 0 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-list b {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--muted);
  padding: 6px 8px;
  font-size: 0.78rem;
}

.market-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
  gap: 14px;
}

.market-card {
  display: grid;
  align-content: space-between;
  min-height: 250px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease;
}

.market-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 36, 0.4);
}

.market-card strong {
  color: var(--accent);
}

.resource-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.sideacts-section {
  background: #080d13;
}

.sideact-card {
  border-top: 3px solid var(--accent-2);
}

.sideact-card span {
  color: var(--muted);
  line-height: 1.5;
}

.tags span {
  border: 1px solid rgba(22, 217, 255, 0.28);
  border-radius: 999px;
  color: var(--accent);
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.topic-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.timeline {
  width: min(900px, 100%);
  margin: 0 auto;
  border-left: 3px solid var(--accent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 0 0 34px 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item time {
  color: var(--accent);
  font-weight: 900;
}

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

.glossary article {
  min-height: 140px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.sources-section ul {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.sources-section li {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.sources-section a {
  color: var(--accent);
  font-weight: 900;
}

.subpage-main {
  min-height: 70vh;
}

.subpage-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) 0 clamp(22px, 5vw, 48px);
}

.subpage-hero h1 {
  max-width: 11ch;
}

.detail-hero h1 {
  max-width: 14ch;
}

.truck-card a {
  text-decoration: none;
}

.truck-card a:hover {
  color: var(--accent);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 16px;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.detail-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.detail-panel dl {
  display: grid;
  gap: 16px;
}

.detail-panel dd {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #070b10;
}

footer p {
  margin: 0;
}

@media (max-width: 1024px) {
  .hero {
    min-height: 720px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(7, 9, 11, 0.64) 0%, rgba(7, 9, 11, 0.92) 64%),
      url("assets/monster-truck-hero.png") center / cover no-repeat;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    align-self: end;
    margin: 0 auto;
    padding: 240px 0 56px;
  }

  h1 {
    max-width: 10ch;
  }

  .stat-grid,
  .truck-grid,
  .topic-grid,
  .coverage-grid,
  .market-grid,
  .resource-grid,
  .sideacts-grid,
  .glossary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coverage-card:nth-child(1),
  .coverage-card:nth-child(6),
  .resource-card:nth-child(3) {
    grid-column: span 1;
  }

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

  .filters {
    justify-content: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 16px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  h1 {
    max-width: 8.5ch;
    font-size: clamp(2.65rem, 12vw, 3.45rem);
    line-height: 0.96;
  }

  h2 {
    font-size: 1.72rem;
    line-height: 1.05;
  }

  .hero-copy,
  .section-copy,
  .stat p {
    max-width: 33ch;
    font-size: 0.98rem;
  }

  .stat,
  .truck-card,
  .topic-card,
  .coverage-card,
  .resource-card,
  .sideact-card,
  .market-card,
  .glossary article {
    padding: 20px;
  }

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

  .stat-grid,
  .truck-grid,
  .topic-grid,
  .coverage-grid,
  .market-grid,
  .resource-grid,
  .sideacts-grid,
  .glossary {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .topic-card ul {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  footer {
    flex-direction: column;
  }
}
