/* ==========================================================================
   Unity Drive demo — landing page
   ========================================================================== */
.container { width: min(1180px, 100% - 40px); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.site-header .brand img { height: 44px; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { text-decoration: none; color: var(--slate); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--navy); background: var(--navy-50); }
.header-cta { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #dbe6f3;
  background: radial-gradient(900px 500px at 85% 10%, rgba(242, 92, 5, .16), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(27, 117, 67, .18), transparent 60%), linear-gradient(150deg, var(--navy) 0%, #081d36 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 96px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; margin-bottom: 22px; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }
.lead { font-size: 18px; max-width: 540px; color: #c5d3e3; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-outline { color: #fff; border: 1px solid rgba(255, 255, 255, .3); background: transparent; }
.btn-hero-outline:hover { background: rgba(255, 255, 255, .08); }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 32px; margin: 44px 0 0; justify-content: start; }
.hero-stats dt { font-size: 26px; font-weight: 800; color: #fff; }
.hero-stats dd { margin: 0; font-size: 13px; color: #9fb3c9; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.preview-card { width: min(400px, 100%); background: #fff; border-radius: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); overflow: hidden; color: var(--ink); transform: rotate(-1.5deg); }
.preview-map { position: relative; height: 190px; }
.preview-map svg { width: 100%; height: 100%; display: block; }
.preview-map .route { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 3s ease-out forwards .4s; }
.preview-map .car { offset-path: path("M40 140 L40 96 L120 96 L120 60 L210 60 L210 38 L280 38"); animation: drive 7s ease-in-out infinite 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drive { 0% { offset-distance: 0%; } 80%, 100% { offset-distance: 100%; } }
.preview-eta { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-weight: 700; font-size: 12.5px; padding: 5px 10px; border-radius: 99px; }
.preview-body { padding: 16px; }
.preview-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.preview-tabs span { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: var(--offwhite); color: var(--slate); }
.preview-tabs .is-on { background: var(--navy); color: #fff; }
.preview-route { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.preview-route div { display: flex; align-items: center; gap: 10px; }
.pdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pdot.g { background: var(--green); } .pdot.o { background: var(--orange); }
.preview-driver { display: flex; align-items: center; gap: 10px; }
.preview-driver strong { display: block; font-size: 14px; }
.preview-driver small { color: var(--muted); font-size: 12px; }
.preview-fare { font-weight: 800; color: var(--navy); font-size: 18px; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); animation: float 5s ease-in-out infinite; }
.float-chip .ic { color: var(--green); }
.chip-a { top: -18px; right: -6px; }
.chip-b { bottom: -20px; left: -10px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--slate); font-size: 16.5px; margin: 0; }
.kicker { display: inline-block; color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.kicker-light { color: #9be3b8; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 4px; transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .icon-tile { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px; }
.service-card h3 { font-size: 18px; margin-bottom: 6px; }
.service-card p { color: var(--slate); font-size: 14.5px; flex: 1; }
.cap { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 9%, white); padding: 7px 10px; border-radius: 9px; align-self: flex-start; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); }
.steps li { text-align: center; position: relative; padding: 0 8px; }
.step-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; position: relative; box-shadow: 0 0 0 8px #fff; }
.step-icon .ic { width: 28px; height: 28px; }
.step-num { position: absolute; top: -4px; left: calc(50% + 18px); z-index: 2; background: var(--orange); color: #fff; font-weight: 800; font-size: 13px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--slate); font-size: 14.5px; margin: 0; }

.coverage { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.coverage-copy h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.coverage-copy > p { color: var(--slate); font-size: 16.5px; }
.county-list { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.county-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.county-list strong, .hq-card strong { display: block; color: var(--navy); }
.county-list small, .hq-card small { color: var(--muted); font-size: 13px; }
.county-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); margin-top: 4px; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, white); }
.hq-card { display: flex; gap: 12px; align-items: center; background: var(--navy); color: #fff; padding: 14px 16px; border-radius: 14px; }
.hq-card strong { color: #fff; } .hq-card small { color: #b8c8da; }
.hq-card > .ic { color: var(--orange); width: 24px; height: 24px; }
.coverage-map { height: 460px; overflow: hidden; border-radius: var(--radius-lg); }
.hq-marker { background: var(--orange); color: #fff; font-weight: 700; font-size: 11px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; box-shadow: var(--shadow); border: 2px solid #fff; }

.nemt-band { background: linear-gradient(135deg, #0f4d2c 0%, var(--green) 100%); color: #d6efe0; }
.nemt-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.nemt-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.nemt-band p { font-size: 16.5px; }
.nemt-points { display: flex; flex-direction: column; gap: 14px; }
.nemt-point { display: flex; gap: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 18px; border-radius: 16px; }
.nemt-point .icon-tile { --c: #fff; background: rgba(255, 255, 255, .15); color: #fff; width: 46px; height: 46px; }
.nemt-point h3 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.nemt-point p { margin: 0; font-size: 14.5px; color: #cfe9da; }

.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature .icon-tile { --c: var(--orange); margin-bottom: 14px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--slate); font-size: 14px; margin: 0; }

.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portal-card { background: var(--offwhite); border: 1px solid var(--line); border-radius: 20px; padding: 26px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.portal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.portal-top { width: 58px; height: 58px; border-radius: 16px; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.portal-card h3 { font-size: 20px; }
.portal-card ul { padding-left: 18px; color: var(--slate); font-size: 14.5px; margin: 0 0 20px; flex: 1; }
.portal-card li { margin-bottom: 6px; }
.portal-link { display: inline-flex; gap: 8px; align-items: center; color: var(--orange); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b8c8da; padding: 56px 0 24px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand-chip { display: inline-flex; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 4px; }
.footer-col a, .footer-col span { color: #b8c8da; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: 13px; padding-bottom: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero-inner, .coverage, .nemt-inner { grid-template-columns: 1fr; }
  .hero-inner { padding: 56px 0 72px; gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .portal-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .coverage-map { height: 360px; }
}
@media (max-width: 560px) {
  .header-cta .btn-primary { padding: 8px 12px; font-size: 13.5px; }
  .site-header .brand img { height: 36px; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 18px 32px; }
  .service-grid, .feature-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .chip-a { right: 0; } .chip-b { left: 0; }
}
