:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0b1220;
  --muted: #5f6b7a;
  --line: #dce4ee;
  --blue: #2457d6;
  --blue-dark: #173f9e;
  --green: #18a77a;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand,
.nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 30%, var(--green) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--blue), #6aa8ff);
  box-shadow: 0 10px 24px rgba(36, 87, 214, 0.18);
}

.nav {
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue);
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0 80px;
  overflow: visible;
}

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

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

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 11vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 4vw, 1.35rem);
}

.hero-actions {
  flex-direction: column;
  gap: 12px;
}

.button {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(36, 87, 214, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--blue-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 1.32;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 13%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 13%, #000 100%);
}

.hero-road-image {
  --hero-artwork-transform: translate(-35%, -5%);
  display: block;
  width: 154%;
  max-width: none;
  height: auto;
  animation: heroFloat 9s ease-in-out infinite;
  transform: var(--hero-artwork-transform) translateY(0);
  pointer-events: none;
  user-select: none;
}

.section,
.statement,
.contact-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  min-height: 198px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  border-color: rgba(36, 87, 214, 0.16);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 24px;
  color: #2aa97f;
  font-size: 0.84rem;
  font-weight: 700;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.2;
}

.card p,
.section-text,
.contact-section p,
.site-footer p {
  color: var(--muted);
}

.card p,
.section-text,
.contact-section p {
  margin-bottom: 0;
}

.card p {
  max-width: 28ch;
  color: #526272;
  font-size: 1.02rem;
  line-height: 1.62;
}

.statement {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement h2 {
  max-width: 920px;
}

.compact {
  padding-bottom: 48px;
}

.section-text {
  max-width: 620px;
  font-size: 1.08rem;
}

.contact-section {
  display: grid;
  gap: 22px;
  margin-bottom: 48px;
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-section h2 {
  font-size: clamp(1.9rem, 7vw, 3rem);
}

.contact-link {
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--blue-dark);
  text-decoration: underline;
}

.site-footer {
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin-bottom: 4px;
}

.footer-contact {
  text-align: right;
}

.footer-contact a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: var(--hero-artwork-transform) translateY(0);
  }

  50% {
    transform: var(--hero-artwork-transform) translateY(-6px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-road-image {
    animation: none !important;
  }
}

@media (min-width: 620px) {
  .hero-actions {
    flex-direction: row;
  }

  .button {
    width: auto;
  }
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
    gap: 28px;
  }

  .hero-visual {
    width: min(70vw, 1080px);
    margin-right: max(-18vw, -250px);
    transform: translateY(18px);
  }

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

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .nav {
    gap: 12px;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 58px;
  }

  .hero-visual {
    max-width: 100%;
    margin-top: 6px;
    aspect-ratio: 1.32;
  }

  .hero-road-image {
    --hero-artwork-transform: translate(-34%, -23%);
    width: 150%;
  }

  .section,
  .statement {
    padding: 54px 0;
  }

  .card {
    min-height: auto;
    padding: 24px;
  }

  .card-icon {
    margin-bottom: 20px;
    font-size: 0.8rem;
  }

  .card h3 {
    margin-bottom: 10px;
    font-size: 1.28rem;
  }

  .card p {
    max-width: 32ch;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .contact-section {
    padding: 24px;
    border-radius: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact {
    text-align: left;
  }
}
