:root {
  --ink: #111827;
  --muted: #5d6678;
  --line: #e6e8ee;
  --paper: #f7f7f4;
  --white: #ffffff;
  --red: #d82424;
  --orange: #f47a21;
  --sky: #0ea5c6;
  --dark: #111318;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
  padding-block: 12px;
}

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

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-logo {
  display: block;
  width: 160px;
  height: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.nav {
  gap: 22px;
  font-size: 14px;
  font-weight: 800;
}

.nav a,
.header-action {
  opacity: 0.86;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:hover,
.header-action:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-action {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--dark);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transform: scale(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.94) 0%, rgba(17, 19, 24, 0.76) 38%, rgba(17, 19, 24, 0.34) 76%),
    linear-gradient(0deg, rgba(17, 19, 24, 0.64) 0%, rgba(17, 19, 24, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  padding: 150px 0 86px;
  margin-left: clamp(18px, 7vw, 112px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 720px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 16px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy,
.section-heading p,
.split p,
.measurement-copy p,
.contact-inner p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 18px 36px rgba(216, 36, 36, 0.28);
}

.button.primary:hover {
  background: #bf1d1d;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.button.secondary.light {
  border-color: rgba(255, 255, 255, 0.24);
}

.scroll-cue {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: 42px;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 24px;
  animation: bob 1800ms ease-in-out infinite;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.section-light {
  background: var(--paper);
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-heading {
  width: min(920px, 100%);
  margin-bottom: 46px;
}

.section-heading p {
  max-width: 720px;
}

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

.format-card {
  position: relative;
  min-height: 390px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.format-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 90px rgba(17, 24, 39, 0.18);
}

.format-number {
  display: block;
  margin-bottom: 58px;
  color: var(--red);
  font-size: 14px;
  font-weight: 950;
}

.format-card p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

dl {
  position: absolute;
  right: 34px;
  bottom: 28px;
  left: 34px;
  margin: 0;
  border-top: 1px solid var(--line);
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 950;
  text-align: right;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 8vw, 110px);
  align-items: start;
}

.split h2,
.contact-inner h2 {
  color: #fff;
}

.split p {
  color: rgba(255, 255, 255, 0.72);
}

.benefit-list {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.benefit-list p {
  margin: 0;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

.measurement-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
  background: #fff;
}

.bus-panel {
  position: relative;
  min-height: 370px;
  border: 8px solid var(--ink);
  border-radius: 8px 46px 8px 8px;
  background: linear-gradient(135deg, #f7c531 0 48%, #eceff3 48% 52%, #0ea5c6 52% 100%);
  box-shadow: var(--shadow);
}

.bus-window {
  position: absolute;
  top: 38px;
  left: 38px;
  right: 220px;
  height: 94px;
  border: 6px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.bus-ad {
  position: absolute;
  right: 36px;
  bottom: 88px;
  width: min(390px, calc(100% - 72px));
  min-height: 126px;
  display: grid;
  place-items: center;
  border: 6px solid #fff;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 950;
  line-height: 0.95;
  text-align: center;
}

.bus-wheel {
  position: absolute;
  bottom: -34px;
  width: 82px;
  height: 82px;
  border: 12px solid var(--ink);
  border-radius: 999px;
  background: #6b7280;
}

.bus-wheel.left {
  left: 80px;
}

.bus-wheel.right {
  right: 92px;
}

.route-toolbar {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin-bottom: 28px;
}

.route-toolbar label {
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.route-toolbar input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  outline: none;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

.route-toolbar input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 198, 0.16);
}

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

.route-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(17, 24, 39, 0.08);
}

.route-group h3 {
  margin: 0;
  padding: 22px;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
}

.route-group:nth-child(2) h3 {
  background: var(--red);
}

.route-group:nth-child(3) h3 {
  background: var(--orange);
}

.route-group:nth-child(4) h3 {
  background: var(--sky);
}

.route-count {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.route-list {
  display: grid;
  max-height: 360px;
  margin: 0;
  padding: 16px;
  gap: 8px;
  overflow: auto;
  list-style: none;
}

.route-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: #333b4a;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
}

.empty-route {
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 11vw, 150px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 78% 20%, rgba(244, 122, 33, 0.3), transparent 34%),
    linear-gradient(135deg, #111318 0%, #20242f 100%);
  color: #fff;
}

.contact-inner {
  width: min(900px, 100%);
}

.contact-inner p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-inner small {
  display: block;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.48);
  font-weight: 800;
}

.contact-logo {
  display: block;
  width: min(210px, 72vw);
  height: auto;
  margin-top: 32px;
  border-radius: 8px;
  background: #fff;
  padding: 10px 14px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

.hero-content.reveal {
  animation: riseIn 680ms ease both;
}

.format-card.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.format-card.reveal:nth-child(3) {
  animation-delay: 180ms;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes riseIn {
  from {
    transform: translateY(20px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .format-grid,
  .split,
  .measurement-section,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .measurement-section {
    padding-bottom: 104px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-action {
    display: none;
  }

  .brand-logo {
    width: 128px;
    padding: 7px 9px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(17, 19, 24, 0.94), rgba(17, 19, 24, 0.56)),
      linear-gradient(0deg, rgba(17, 19, 24, 0.78), transparent 54%);
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-bottom: 76px;
    margin-left: 16px;
  }

  .button {
    width: 100%;
  }

  .format-card {
    min-height: 360px;
    padding: 26px;
  }

  dl {
    right: 26px;
    left: 26px;
  }

  .bus-panel {
    min-height: 300px;
  }

  .bus-window {
    right: 120px;
  }

  .bus-ad {
    right: 22px;
    bottom: 82px;
    width: calc(100% - 44px);
  }
}
