:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5b675f;
  --paper: #f7f5ee;
  --panel: #ffffff;
  --line: #d7d9cf;
  --safety: #f2b705;
  --field: #27745d;
  --steel: #34495a;
  --alert: #d85b39;
  --shadow: 0 20px 70px rgba(23, 32, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: #fff;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  background: rgba(23, 32, 28, 0.38);
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.94rem;
  font-weight: 700;
}

nav a {
  opacity: 0.84;
}

nav a:hover,
nav a:focus-visible {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, 92vh);
  align-items: center;
  padding: 110px clamp(20px, 6vw, 84px) 88px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(14, 22, 19, 0.93) 0%, rgba(14, 22, 19, 0.78) 36%, rgba(14, 22, 19, 0.18) 78%),
    url("/assets/hero-generator-round.png") center / cover;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  content: "";
  background: linear-gradient(180deg, rgba(247, 245, 238, 0), var(--paper));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--safety);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.5rem, 14vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-copy {
  width: min(610px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.48;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 850;
}

.button.compact {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.92rem;
}

.button.primary {
  background: var(--safety);
  color: #1f211b;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.overview,
.checks,
.ready {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 72px 0;
}

.section-label {
  color: var(--field);
}

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

.feature {
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(23, 32, 28, 0.07);
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--alert);
  font-weight: 900;
}

.feature p,
.checks-copy p,
.ready p {
  color: var(--muted);
  line-height: 1.65;
}

.checks {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

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

.metric {
  min-height: 154px;
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  box-shadow: var(--shadow);
}

.metric span {
  display: block;
  margin-bottom: 24px;
  font-size: 0.88rem;
  font-weight: 850;
}

.metric strong {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1;
}

.fuel {
  background: var(--field);
}

.adblue {
  background: #2d79b7;
}

.diesel {
  background: var(--steel);
}

.power {
  background: var(--alert);
}

.ready {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: 72px 0 96px;
  border-top: 1px solid var(--line);
}

@media (max-width: 840px) {
  .site-header {
    position: absolute;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 96px;
    background:
      linear-gradient(90deg, rgba(14, 22, 19, 0.94) 0%, rgba(14, 22, 19, 0.72) 55%, rgba(14, 22, 19, 0.2) 100%),
      url("/assets/hero-generator-round.png") center / cover;
  }

  .overview,
  .checks,
  .ready {
    grid-template-columns: 1fr;
  }

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

  .feature {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .meter-board {
    grid-template-columns: 1fr;
  }
}
