:root {
  color-scheme: light;
  --ink: #10231d;
  --text: #25352f;
  --muted: #5e7068;
  --green: #12644f;
  --green-2: #1b7b61;
  --mint: #e9f3ed;
  --soft: #f7fbf8;
  --amber: #f2b84b;
  --white: #ffffff;
  --line: rgba(16, 35, 29, 0.12);
  --shadow: 0 18px 48px rgba(16, 35, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--soft);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.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(20px, 4vw, 72px);
  background: rgba(247, 251, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.08rem;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(16, 35, 29, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.hero {
  min-height: 76vh;
  display: flex;
  align-items: center;
  padding: 96px clamp(22px, 7vw, 120px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 35, 29, 0.88), rgba(16, 35, 29, 0.36)),
    url("assets/road-alert-hero-road.png") center / cover no-repeat;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-heading h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.95;
  font-weight: 900;
}

.hero-copy {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  color: var(--ink);
  background: var(--amber);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(22px, 5vw, 84px);
  background: var(--white);
}

.section.muted {
  background: var(--mint);
}

.section.compact {
  padding-top: 32px;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.two-column,
.split-feature,
.data-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: start;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
}

h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.12rem;
}

p {
  margin: 16px 0 0;
}

.feature-list,
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.feature {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.feature p {
  color: var(--muted);
}

.principles {
  display: grid;
  gap: 14px;
}

.principles div {
  padding: 20px 0;
  border-top: 1px solid rgba(16, 35, 29, 0.18);
}

.principles strong,
.principles span {
  display: block;
}

.principles strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.principles span {
  margin-top: 6px;
  color: var(--muted);
}

.data-band {
  padding: clamp(28px, 5vw, 52px);
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.data-band h2 {
  color: var(--white);
}

.data-band p {
  color: rgba(255, 255, 255, 0.82);
}

.link-stack {
  display: grid;
  gap: 12px;
}

.link-stack a {
  padding: 16px 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.page {
  background: var(--white);
}

.page-heading {
  padding: clamp(68px, 8vw, 112px) clamp(22px, 5vw, 84px) 32px;
  color: var(--ink);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-heading > * {
  width: min(900px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.page-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
}

.contact-heading .button {
  margin-top: 24px;
}

.legal-content {
  width: min(900px, calc(100% - 44px));
  margin: 0 auto;
  padding: 48px 0 90px;
}

.legal-content h2 {
  margin-top: 36px;
  font-size: 1.55rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--white);
}

.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: 72vh;
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .two-column,
  .split-feature,
  .data-band {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-nav {
    gap: 12px 18px;
  }

  .hero h1,
  .page-heading h1 {
    font-size: 3.4rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
