/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease var(--delay, 0s), transform .7s ease var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #061a3a 0%, #0a3f82 45%, #1a66cc 100%);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.12), transparent 45%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><circle cx='1' cy='1' r='1' fill='white' fill-opacity='0.08'/></svg>");
  background-size: auto, auto, 24px 24px;
  pointer-events: none;
}

.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .5;
}
.shape-1 { width: 260px; height: 260px; background: #38bdf8; top: -70px; right: -70px; animation: floatA 12s ease-in-out infinite; }
.shape-2 { width: 220px; height: 220px; background: #f59e0b; bottom: -80px; left: -40px; animation: floatB 14s ease-in-out infinite; }
.shape-3 { width: 180px; height: 180px; background: #a78bfa; top: 40%; left: 45%; opacity: .25; animation: floatA 16s ease-in-out infinite; }

@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -18px); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 18px); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  padding: 48px 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 14px;
  color: #fff;
}
.hero-accent {
  background: linear-gradient(90deg, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 540px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: #ecfeff;
}

.hero-bus { margin-top: 10px; max-width: 380px; }
.hero-bus svg { width: 100%; height: auto; filter: drop-shadow(0 16px 24px rgba(0,0,0,.25)); }
.bus-float { animation: busFloat 3.4s ease-in-out infinite; transform-origin: center; }
@keyframes busFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.road rect:nth-child(even) { animation: dashMove 1.2s linear infinite; }
@keyframes dashMove {
  from { opacity: .35; }
  to { opacity: 1; }
}

/* ===== Search card ===== */
.search-card {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 24px 50px rgba(6, 26, 58, 0.35);
  position: relative;
  z-index: 2;
}
.search-head { margin-bottom: 14px; }
.search-head h2 {
  font-size: 20px;
  color: var(--blue-900);
  margin-bottom: 4px;
  font-weight: 700;
}
.search-head p { color: var(--muted); font-size: 13px; }

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-icon .input-wrap { position: relative; }
.field-icon .input-wrap svg {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.field-icon input { padding-left: 38px !important; }

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: var(--blue-800);
  flex-shrink: 0;
}
.stat-text strong { display: block; font-size: 24px; color: var(--blue-900); font-weight: 800; }
.stat-text span { color: var(--muted); font-size: 13px; }

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1px solid transparent;
}
.icon-blue  { background: linear-gradient(135deg, #dbeafe, #eff6ff); color: #1d4ed8; border-color: #bfdbfe; }
.icon-green { background: linear-gradient(135deg, #dcfce7, #f0fdf4); color: #15803d; border-color: #bbf7d0; }
.icon-orange{ background: linear-gradient(135deg, #ffedd5, #fffbeb); color: #c2410c; border-color: #fed7aa; }
.icon-purple{ background: linear-gradient(135deg, #ede9fe, #f5f3ff); color: #6d28d9; border-color: #ddd6fe; }

.feature-item h3 { color: var(--blue-900); font-size: 16px; margin-bottom: 6px; font-weight: 700; }
.feature-item p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ===== Routes ===== */
.routes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.route-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.route-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
}
.route-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}
.route-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.route-card:hover .route-image img { transform: scale(1.06); }
.route-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.route-body { padding: 14px 16px 16px; }
.route-main {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--blue-900);
  font-weight: 700;
  font-size: 15px;
  flex-wrap: wrap;
}
.route-main svg { color: var(--blue-700); }
.route-info {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.route-price { color: #b45309; font-weight: 700; }

/* ===== Process ===== */
.process-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  background-image:
    radial-gradient(circle at 100% 0, rgba(59, 130, 246, 0.08), transparent 40%),
    radial-gradient(circle at 0 100%, rgba(245, 158, 11, 0.08), transparent 40%);
}
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.process-step {
  position: relative;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.process-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.step-num {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 800;
  font-size: 14px;
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a3f82, #1a66cc);
  color: #fff;
  margin-bottom: 10px;
}
.process-step h3 { color: var(--blue-900); font-size: 16px; margin-bottom: 6px; font-weight: 700; }
.process-step p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ===== Testimonials ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.testi-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testi-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stars { display: flex; gap: 2px; margin-bottom: 10px; }
.testi-body {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}
.testi-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testi-user img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
}
.testi-user strong { display: block; color: var(--blue-900); font-size: 14px; }
.testi-user span { color: var(--muted); font-size: 12px; }

/* ===== CTA ===== */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: #fff;
  margin-top: 40px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a3f82 0%, #1a66cc 100%);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 30%, rgba(255,255,255,0.18), transparent 35%),
    radial-gradient(circle at 90% 70%, rgba(253, 224, 71, 0.18), transparent 35%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-inner h2 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.cta-inner p { color: #dbeafe; }
.cta-inner .btn-white { padding: 14px 22px; }

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

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 26px; gap: 20px; }
  .hero-content h1 { font-size: 32px; }
  .hero-bus { max-width: 280px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero-inner { padding: 28px 20px; }
  .hero-content h1 { font-size: 26px; }
  .hero-desc { font-size: 14px; }
  .search-card { padding: 16px; }
  .search-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .routes { grid-template-columns: 1fr; }
  .process-wrap { padding: 18px; }
  .cta-band { padding: 24px; }
  .cta-inner h2 { font-size: 22px; }
}
