:root {
  --background: 210 40% 98%;
  --foreground: 222 47% 11%;
  --primary: 221 83% 53%;
  --secondary: 160 84% 39%;
  --muted: 215 16% 92%;
  --destructive: 0 72% 51%;
  --border: 214 22% 84%;
  --card: 0 0% 100%;

  --shadow-sm: 0 8px 24px hsla(222, 47%, 11%, 0.06);
  --shadow-md: 0 16px 40px hsla(222, 47%, 11%, 0.1);
  --shadow-lg: 0 30px 70px hsla(222, 47%, 11%, 0.14);

  --transition-fast: 180ms ease;
  --transition-smooth: 320ms ease;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

.dark {
  --background: 224 35% 10%;
  --foreground: 210 40% 98%;
  --primary: 213 94% 68%;
  --secondary: 160 84% 46%;
  --muted: 222 24% 18%;
  --destructive: 0 75% 60%;
  --border: 222 19% 24%;
  --card: 224 30% 13%;

  --shadow-sm: 0 8px 24px hsla(0, 0%, 0%, 0.18);
  --shadow-md: 0 16px 40px hsla(0, 0%, 0%, 0.28);
  --shadow-lg: 0 30px 70px hsla(0, 0%, 0%, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, hsla(221, 83%, 53%, 0.12), transparent 25%),
    radial-gradient(circle at top right, hsla(160, 84%, 39%, 0.12), transparent 24%),
    hsl(var(--background));
  color: hsl(var(--foreground));
  transition: background var(--transition-smooth), color var(--transition-smooth);
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
}

.glass-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: hsla(0, 0%, 100%, 0.72);
  border-bottom: 1px solid hsl(var(--border));
}

.dark .glass-nav {
  background: hsla(224, 30%, 13%, 0.8);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color: white;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

.nav-link-custom {
  color: hsl(var(--foreground));
  opacity: 0.8;
  font-weight: 600;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-link-custom:hover,
.nav-link-custom.active {
  opacity: 1;
  transform: translateY(-1px);
}

.hero-card,
.token-card,
.booking-card,
.stats-card,
.route-card,
.story-card,
.contact-card,
.review-card,
.empty-state,
.success-state {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hero-card {
  overflow: hidden;
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(221, 83%, 53%, 0.1), hsla(160, 84%, 39%, 0.08));
  pointer-events: none;
}

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-visual {
  min-height: 320px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, hsla(221, 83%, 53%, 0.95), hsla(160, 84%, 39%, 0.92)),
    linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-bus {
  position: absolute;
  bottom: 24px;
  left: 22px;
  right: 22px;
  height: 110px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.84));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.hero-bus::before {
  content: '';
  position: absolute;
  inset: 18px 20px auto 20px;
  height: 34px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.18);
}

.hero-bus::after {
  content: '';
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  right: 22px;
  bottom: -16px;
  background: #1f2937;
  box-shadow: -236px 0 0 #1f2937;
}

.floating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: hsla(0, 0%, 100%, 0.16);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
}

.soft-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  background: hsla(221, 83%, 53%, 0.12);
  color: hsl(var(--primary));
}

.soft-badge.secondary {
  background: hsla(160, 84%, 39%, 0.12);
  color: hsl(var(--secondary));
}

.token-card,
.stats-card,
.route-card,
.story-card,
.contact-card,
.review-card {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.token-card:hover,
.stats-card:hover,
.route-card:hover,
.story-card:hover,
.contact-card:hover,
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: hsla(221, 83%, 53%, 0.26);
}

.route-card .price-tag {
  background: hsla(160, 84%, 39%, 0.12);
  color: hsl(var(--secondary));
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
}

.icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsla(221, 83%, 53%, 0.15), hsla(160, 84%, 39%, 0.15));
  font-size: 1.4rem;
}

.btn-brand {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color: white;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-soft {
  background: hsla(221, 83%, 53%, 0.12);
  color: hsl(var(--primary));
  border: 1px solid hsla(221, 83%, 53%, 0.18);
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
}

.btn-soft:hover {
  background: hsla(221, 83%, 53%, 0.18);
  color: hsl(var(--primary));
}

.form-control,
.form-select {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 0.25rem hsla(221, 83%, 53%, 0.14);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

.booking-summary {
  background: linear-gradient(135deg, hsla(221, 83%, 53%, 0.08), hsla(160, 84%, 39%, 0.08));
  border: 1px dashed hsla(221, 83%, 53%, 0.3);
  border-radius: var(--radius-md);
}

.metric-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.review-avatar,
.team-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
}

.footer-wrap {
  border-top: 1px solid hsl(var(--border));
  background: hsla(0, 0%, 100%, 0.66);
}

.dark .footer-wrap {
  background: hsla(224, 30%, 13%, 0.8);
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

.small-muted {
  color: hsla(222, 47%, 11%, 0.66);
}

.dark .small-muted {
  color: hsla(210, 40%, 98%, 0.72);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: hsl(var(--muted));
  border-radius: 12px;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  display: grid;
  gap: 12px;
}

.toast-item {
  min-width: 280px;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: 16px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-md);
}

.toast-item.success {
  border-left: 4px solid hsl(var(--secondary));
}

.toast-item.error {
  border-left: 4px solid hsl(var(--destructive));
}

.page-enter {
  animation: pageEnter 0.35s ease;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .hero-visual {
    min-height: 280px;
  }

  .metric-number {
    font-size: 1.6rem;
  }
}