/* ==========================================================
   QuikTransit Design System — V2
   Shared palette & components for QuikTransit / GrantHound /
   RBJ Group / RMusil ecosystem
   ========================================================== */

:root {
  --navy: #10233d;
  --navy-deep: #0b1a2e;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --light-blue: #dbeafe;
  --accent: #f59e0b;
  --gray: #64748b;
  --gray-dark: #334155;
  --background: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --green: #16a34a;
  --green-bg: #dcfce7;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(16, 35, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 35, 61, 0.10);
  --shadow-lg: 0 20px 50px rgba(16, 35, 61, 0.16);

  --container: 1140px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.text-gradient {
  background: linear-gradient(90deg, var(--blue) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.25); }

.btn-outline-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 36px; height: 36px; }
.logo-text {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
}
.logo-text strong { font-weight: 800; }
.logo-sub {
  margin-left: 7px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
}
.logo-text-light, .logo-text-light .logo-sub { color: #fff; }
.logo-text-light .logo-sub { color: rgba(255,255,255,0.6); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.93rem;
  font-weight: 500;
}
.main-nav > a:not(.btn) { color: var(--gray-dark); transition: color 0.15s ease; }
.main-nav > a:not(.btn):hover { color: var(--blue); }
.btn-nav { padding: 10px 20px; margin-left: 6px; }

.nav-portal { display: inline-flex; align-items: center; gap: 6px; }
.badge-soon {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--light-blue);
  padding: 2px 7px;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 78% 30%, rgba(37, 99, 235, 0.10), transparent 65%),
    radial-gradient(ellipse 45% 40% at 15% 80%, rgba(245, 158, 11, 0.06), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: var(--light-blue);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.13rem;
  color: var(--gray);
  max-width: 46ch;
  margin: 22px 0 26px;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-bottom: 34px;
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-checks svg { width: 18px; height: 18px; color: var(--green); }

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

/* ---------- Dashboard mock ---------- */
.hero-visual { position: relative; }

.dashboard-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 26px;
  max-width: 420px;
  margin-left: auto;
  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-title { font-weight: 700; font-size: 0.98rem; }
.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  padding: 4px 11px;
  border-radius: 999px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}

.dash-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.route-city { display: flex; flex-direction: column; }
.route-city:last-child { text-align: right; }
.route-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}
.route-name { font-weight: 700; font-size: 0.95rem; }
.route-line svg { width: 90px; height: 20px; }
.route-dash { animation: dashMove 1.4s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -18; } }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.dash-stat {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}
.stat-value { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.stat-value small { font-size: 0.72rem; font-weight: 600; color: var(--gray); }

.dash-rows { display: flex; flex-direction: column; }
.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 2px;
  font-size: 0.9rem;
  color: var(--gray);
  border-top: 1px solid var(--border);
}
.dash-strong { font-weight: 700; color: var(--navy); }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.status-chip svg { width: 12px; height: 12px; }
.status-booked { color: var(--green); background: var(--green-bg); }
.status-approved { color: var(--blue); background: var(--light-blue); }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: var(--shadow-md);
  color: var(--navy);
  white-space: nowrap;
}
.float-chip svg { width: 15px; height: 15px; color: var(--blue); }
.float-chip-1 { top: -16px; left: 4px; color: var(--green); animation: floatY 7s ease-in-out infinite 0.8s; }
.float-chip-1 svg { color: var(--green); }
.float-chip-2 { bottom: -14px; right: 30px; animation: floatY 7s ease-in-out infinite 1.6s; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-dark);
}
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-stars { color: var(--accent); letter-spacing: 2px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head p { color: var(--gray); margin-top: 14px; font-size: 1.05rem; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 14px;
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.35);
}
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--gray); font-size: 0.94rem; }

.card-outline { border: 1.5px solid var(--light-blue); box-shadow: none; }
.card-outline:hover { border-color: var(--blue); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--light-blue);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Metrics ---------- */
.metrics-section {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(37, 99, 235, 0.25), transparent 60%),
    var(--navy-deep);
  color: #fff;
}
.section-head-light h2 { color: #fff; }
.section-head-light .section-eyebrow { color: #93c5fd; }

.metrics-grid { text-align: center; }
.metric { display: flex; flex-direction: column; gap: 8px; }
.metric-value {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.metric-value small { font-size: 0.45em; font-weight: 600; color: #93c5fd; }
.metric-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1.5px solid var(--light-blue);
  border-radius: 24px;
  padding: 56px 44px 44px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
}

.pricing-rate { margin-bottom: 30px; }
.pricing-percent {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue);
  line-height: 1;
  display: block;
}
.pricing-percent small { font-size: 0.45em; font-weight: 700; }
.pricing-per {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.pricing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin: 0 auto 34px;
  max-width: 380px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}
.pricing-features li { display: flex; align-items: center; gap: 10px; }
.pricing-features svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

.pricing-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--light-blue), var(--blue), var(--light-blue));
}

.timeline-step { text-align: center; position: relative; }
.timeline-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px var(--background), 0 6px 16px rgba(37, 99, 235, 0.35);
  position: relative;
  z-index: 1;
}
.section-alt .timeline-num { box-shadow: 0 0 0 8px #fff, 0 6px 16px rgba(37, 99, 235, 0.35); }
.timeline-step p { color: var(--gray); font-size: 0.92rem; margin-top: 8px; max-width: 26ch; margin-left: auto; margin-right: auto; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.about-grid h2 { margin: 14px 0 18px; }
.about-grid p { color: var(--gray); margin-bottom: 16px; max-width: 52ch; }
.about-grid .btn { margin-top: 10px; }

.about-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 12px 26px;
}
.about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
.about-row:last-child { border-bottom: 0; }
.about-row span { color: var(--gray); }
.about-row strong { font-weight: 700; text-align: right; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] { border-color: rgba(37, 99, 235, 0.4); box-shadow: var(--shadow-sm); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--gray);
  border-bottom: 2.5px solid var(--gray);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(-135deg); }

.faq-body { padding: 0 24px; overflow: hidden; }
.faq-body p { color: var(--gray); font-size: 0.94rem; padding-bottom: 20px; }

/* ---------- CTA ---------- */
.cta-section {
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(96, 165, 250, 0.35), transparent 60%),
    linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
}
.cta-inner { text-align: center; max-width: 640px; }
.cta-inner p { margin: 16px 0 30px; color: rgba(255,255,255,0.85); font-size: 1.08rem; }
.cta-actions { justify-content: center; }
.cta-note { margin-top: 26px !important; font-size: 0.85rem !important; color: rgba(255,255,255,0.7) !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 48px;
}
.footer-brand p { margin-top: 16px; font-size: 0.9rem; max-width: 30ch; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.footer-col a { font-size: 0.92rem; transition: color 0.15s ease; display: inline-flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dashboard-card, .float-chip, .route-dash, .pulse-dot { animation: none !important; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .dashboard-card { margin: 0 auto; }

  .timeline { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .timeline::before { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 80px; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }

  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav > a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .btn-nav { margin: 16px 0 0; justify-content: center; }

  .float-chip-1 { left: -6px; }
  .float-chip-2 { right: -6px; }

  .pricing-card { padding: 44px 26px 36px; }
  .pricing-features { grid-template-columns: 1fr; }

  .trust-inner { justify-content: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
