/* ============================================
   BOOMA - Shared Stylesheet
   Design System: Uber-inspired (DESIGN.md)
   Font: DM Sans (self-hosted variable font)
   ============================================ */

/* --- 0. Self-hosted DM Sans (variable font) --- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../assets/fonts/dm-sans-variable.woff2') format('woff2-variations'),
       url('../assets/fonts/dm-sans-variable.woff2') format('woff2');
}

/* --- 1. CSS Custom Properties --- */
:root {
  /* Colors */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-hover-gray: #e2e2e2;
  --color-hover-light: #f3f3f3;
  --color-chip-gray: #efefef;
  --color-body-gray: #4b4b4b;
  --color-muted-gray: #afafaf;
  --color-muted-on-light: #6b6b6b;
  --color-border: #333333;

  /* Shadows */
  --shadow-card: rgba(0, 0, 0, 0.12) 0px 4px 16px 0px;
  --shadow-medium: rgba(0, 0, 0, 0.16) 0px 4px 16px 0px;
  --shadow-float: rgba(0, 0, 0, 0.16) 0px 2px 8px 0px;
  --shadow-press: rgba(0, 0, 0, 0.08) 0px 0px 0px 999px inset;

  /* Typography */
  --font-display: 'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spacing */
  --container-max: 1136px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.50;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- 3. Layout Utilities --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 80px 0;
}

.section--black {
  background-color: var(--color-black);
  color: var(--color-white);
}

.section--black .h-section,
.section--black .h-sub,
.section--black .section-label {
  color: var(--color-white);
}

.section--gray {
  background-color: var(--color-chip-gray);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

/* --- 4. Typography --- */
.h-display {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -0.02em;
}

.h-section {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.22;
}

.h-card {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

.h-sub {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.33;
}

.h-small {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.40;
}

.text-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.50;
}

.text-body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.50;
  color: var(--color-body-gray);
}

.text-caption {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
}

.text-micro {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.67;
}

.text-muted {
  color: var(--color-muted-on-light);
}

.text-gray {
  color: var(--color-body-gray);
}

/* Dark-section utility variants */
.text-body-lg--on-dark {
  color: var(--color-muted-gray);
}

.btn-secondary--on-dark {
  border-color: var(--color-muted-gray);
  color: var(--color-white);
}

.btn-secondary--on-dark:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.form-input--on-dark {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-muted-gray);
}

.form-input--on-dark::placeholder {
  color: var(--color-muted-gray);
}

.form-label--on-dark {
  color: var(--color-muted-gray);
}

select.form-input--on-dark {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Section heading bottom margin utility */
.h-section--mb {
  margin-bottom: 48px;
}

.h-section--mb-sm {
  margin-bottom: 24px;
}

/* Hide on mobile */
.hide-on-mobile {
  display: block;
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none;
  }
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-body-gray);
  margin-bottom: 16px;
}

/* --- 5. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  border-radius: 999px;
  padding: 14px 28px;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-black);
  color: var(--color-white);
  border: none;
}

.btn-primary:hover {
  background-color: #333;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: rgb(255, 255, 255) 0px 0px 0px 2px inset;
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-black);
}

.btn-secondary:hover {
  background-color: var(--color-hover-gray);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-black);
  border: none;
}

.btn-white:hover {
  background-color: var(--color-hover-gray);
}

.btn-chip {
  background-color: var(--color-chip-gray);
  color: var(--color-black);
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-chip:hover {
  background-color: var(--color-hover-gray);
}

.btn-chip.active {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 18px;
}

/* --- 6. Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-card);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-brand img {
  height: 28px;
  width: auto;
}

.nav-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  text-decoration: none;
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-body-gray);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  background: var(--color-chip-gray);
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  z-index: 999;
  padding: 100px 40px 40px;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-black);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-chip-gray);
  text-decoration: none;
}

.nav-mobile a:hover {
  color: var(--color-body-gray);
}

.nav-mobile .nav-mobile-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 40px;
}

/* --- 7. Hero --- */
.hero {
  padding: 80px 0 96px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.hero-content {
  max-width: 520px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-body-gray);
  margin-bottom: 40px;
}

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

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Hero centered variant */
.hero--centered {
  text-align: center;
}

.hero--centered .hero-inner {
  grid-template-columns: 1fr;
  max-width: 800px;
}

.hero--centered .hero-content {
  max-width: 700px;
  margin: 0 auto;
}

/* --- 8. Cards --- */
.card {
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 32px;
}

.card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  margin-bottom: 20px;
  display: block;
  overflow: hidden;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.30;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-body-gray);
}

/* Flat card (no shadow, for feature grids) */
.card--flat {
  box-shadow: none;
  border: 1px solid var(--color-chip-gray);
}

.card--flat:hover {
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

/* Icon card (centered, for features) */
.card--icon {
  text-align: center;
  padding: 40px 32px;
}

.card--icon .card-icon {
  margin: 0 auto 20px;
}

/* Ride option card */
.ride-option {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--color-chip-gray);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ride-option:hover {
  border-color: var(--color-black);
  box-shadow: var(--shadow-card);
}

.ride-option-icon {
  width: 160px;
  height: 112px;
  flex-shrink: 0;
}

.ride-option-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ride-option-info {
  flex: 1;
}

.ride-option-name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.ride-option-desc {
  font-size: 14px;
  color: var(--color-body-gray);
}

.ride-option--hidden {
  display: none;
}

/* --- Phone Mockup Frame --- */
.phone-mockup {
  position: relative;
  width: 280px;
  margin: 0 auto;
  background: #111;
  border-radius: 44px;
  padding: 14px 10px;
  box-shadow: 0 0 0 2px #333, 0 24px 60px rgba(0,0,0,0.35);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #111;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-mockup::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
}

.phone-mockup .phone-btn-right {
  position: absolute;
  right: -3px;
  top: 100px;
  width: 3px;
  height: 60px;
  background: #444;
  border-radius: 0 2px 2px 0;
}

.phone-mockup .phone-btn-left-1 {
  position: absolute;
  left: -3px;
  top: 80px;
  width: 3px;
  height: 32px;
  background: #444;
  border-radius: 2px 0 0 2px;
}

.phone-mockup .phone-btn-left-2 {
  position: absolute;
  left: -3px;
  top: 124px;
  width: 3px;
  height: 32px;
  background: #444;
  border-radius: 2px 0 0 2px;
}

.phone-mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}

/* Ride options grid: 6 cards laid out as 3 + 3 (X X X / X X X)
   Achieved with a 6-col grid where each card spans 2 cols. */
.ride-options-grid {
  grid-template-columns: repeat(6, 1fr);
}

.ride-options-grid .ride-option {
  grid-column: span 2;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  gap: 16px;
}

.ride-options-grid .ride-option .ride-option-icon {
  width: 180px;
  height: 126px;
}

.ride-options-grid .ride-option .ride-option-info {
  flex: none;
  width: 100%;
}

/* On tablet and below, fall back to single-column stacking */
@media (max-width: 768px) {
  .ride-options-grid {
    grid-template-columns: 1fr;
  }
  .ride-options-grid .ride-option {
    grid-column: 1;
  }
}

/* --- 9. Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: #cccccc;
  margin-bottom: 16px;
  line-height: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-body-gray);
}

/* --- 10. Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  color: var(--color-body-gray);
}

/* --- 11. CTA Banner --- */
.section.section--black:has(.cta-banner),
.section.section--gray:has(.cta-banner) {
  padding: 56px 0;
}

.cta-banner {
  text-align: center;
}

.cta-banner .h-section {
  margin-bottom: 16px;
}

.cta-banner .text-body-lg {
  margin-bottom: 32px;
}

/* --- 12. Team --- */
.team-card {
  text-align: center;
}

.team-card-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--color-chip-gray);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-body-gray);
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card-role {
  font-size: 14px;
  color: var(--color-body-gray);
  margin-bottom: 8px;
}

.team-card-bio {
  font-size: 14px;
  color: var(--color-body-gray);
  line-height: 1.55;
}

/* --- 13. FAQ Accordion --- */
.faq-group {
  margin-bottom: 48px;
}

.faq-group-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-black);
}

.faq-item {
  border-bottom: 1px solid var(--color-chip-gray);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: var(--color-black);
}

.faq-question:hover {
  color: var(--color-body-gray);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding-bottom 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 2000px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-body-gray);
}

/* --- 14. Forms --- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid var(--color-black);
  border-radius: 8px;
  background-color: var(--color-white);
  color: var(--color-black);
  transition: box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--color-black);
}

.form-input::placeholder {
  color: var(--color-muted-gray);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* --- 15. Footer --- */
.footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 64px 0 40px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-brand {
  margin-bottom: 48px;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--color-muted-gray);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--color-muted-gray);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-border);
  color: var(--color-white);
  transition: background-color 0.2s ease;
}

.footer-social a:hover {
  background-color: var(--color-body-gray);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- 16. Category Pills (horizontal) --- */
.pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 32px 0;
}

/* --- 17. City Grid --- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.city-card {
  text-align: center;
  padding: 32px 16px;
  border-radius: 12px;
  background-color: var(--color-chip-gray);
  transition: background-color 0.2s ease;
}

.city-card:hover {
  background-color: var(--color-hover-gray);
}

.city-name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.city-status {
  font-size: 14px;
  color: var(--color-body-gray);
}

/* --- 18. App Download --- */
.app-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.app-badge:hover {
  opacity: 0.8;
}

.app-badge svg,
.app-badge img {
  display: block;
}

.section--black .app-badge img {
  filter: invert(1);
}

/* --- 19. Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in-group.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-group.is-visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-group.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.fade-in-group.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.fade-in-group.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.fade-in-group.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.fade-in-group.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

/* Fallback: if JS doesn't load or observer not supported, show everything */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-group > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- 22. Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--color-white);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  animation: modalSlideIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--color-chip-gray);
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.modal-close {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--color-chip-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--color-black);
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: var(--color-hover-gray);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.modal-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--color-black);
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-body-gray);
  margin-bottom: 16px;
}

.modal-body ul,
.modal-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--color-body-gray);
}

.modal-body li {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 8px;
  list-style-position: outside;
}

.modal-body ul li {
  list-style-type: disc;
}

.modal-body ol li {
  list-style-type: decimal;
}

.modal-body a {
  color: var(--color-black);
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal-header {
    padding: 20px 24px;
  }
  .modal-title {
    font-size: 20px;
  }
  .modal-body {
    padding: 24px;
  }
}

/* --- 20. Misc Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip-to-content link (keyboard accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background-color: var(--color-black);
  color: var(--color-white);
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.divider {
  border: none;
  border-top: 1px solid var(--color-chip-gray);
  margin: 48px 0;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--color-chip-gray);
  color: var(--color-body-gray);
}

.badge--live {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.badge--soon {
  background-color: var(--color-chip-gray);
  color: var(--color-body-gray);
}

/* --- 21. Responsive --- */

/* Tablet */
@media (max-width: 1119px) {
  .h-display,
  .hero-title {
    font-size: 42px;
  }

  .h-section {
    font-size: 30px;
  }

  .container {
    padding: 0 32px;
  }

  .hero-inner {
    padding: 0 32px;
    gap: 40px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .city-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* Tablet small */
@media (max-width: 768px) {
  .nav-chips,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav {
    padding: 0 24px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero--centered .hero-inner {
    padding: 0 24px;
  }

  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 24px;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stat-value {
    font-size: 36px;
  }

  .city-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    padding: 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .h-display,
  .hero-title {
    font-size: 32px;
  }

  .h-section {
    font-size: 26px;
  }

  .h-card {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

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

  .stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .city-grid {
    grid-template-columns: 1fr;
  }

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

  .pills-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pills-row::-webkit-scrollbar {
    display: none;
  }
}

/* Mobile small */
@media (max-width: 320px) {
  .hero-title {
    font-size: 28px;
  }

  .nav {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-inner {
    padding: 0 16px;
  }

  .card-body {
    padding: 24px;
  }

  .footer-inner {
    padding: 0 16px;
  }
}
