/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #7b1e3a;
  --primary-dark: #5d172c;
  --primary-light: #f4e8ed;
  --accent: #a33a5b;
  --dark: #0f172a;
  --dark2: #1e293b;
  --mid: #334155;
  --muted: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --transition: .2s ease;
  --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--muted); }

/* ── Utility ─────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* Ensure HTML hidden attribute always wins over display overrides */
[hidden] { display: none !important; }

.accent { color: var(--primary); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-size: .95rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer; border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
}
.nav-container {
  max-width: 1140px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 1.4rem; font-weight: 800;
  text-decoration: none; color: var(--dark);
  display: flex; align-items: center; gap: .3rem;
}
.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none;
}
.nav-links a { text-decoration: none; color: var(--mid); font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--primary); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 70px);
  display: flex; align-items: center;
  gap: 3rem; padding: 5rem 1.5rem;
  max-width: 1140px; margin: 0 auto;
  flex-wrap: wrap;
}
.hero-content { flex: 1 1 480px; }
.badge {
  display: inline-block;
  background: var(--primary-light); color: var(--primary-dark);
  padding: .35rem .9rem; border-radius: 50px;
  font-size: .85rem; font-weight: 600; margin-bottom: 1.2rem;
}
.hero-content h1 { margin-bottom: 1.2rem; }
.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; max-width: 500px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat span { font-size: .85rem; color: var(--muted); }

/* ── Hero Visual ─────────────────────────────────────────── */
.hero-visual { flex: 1 1 360px; display: flex; justify-content: center; }
.map-card {
  position: relative; width: 360px; height: 420px;
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.map-bg {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(0deg, #f9f2f5 0, #f9f2f5 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, #f9f2f5 0, #f9f2f5 1px, transparent 1px, transparent 40px),
    linear-gradient(135deg, #fff8fa 0%, #f4e8ed 50%, #ecd7df 100%);
}
.route-overlay {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.route-point {
  display: flex; align-items: center; gap: .5rem;
  background: var(--white); padding: .5rem 1rem;
  border-radius: 50px; font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow);
}
.pulse {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(123,30,58,.35);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(123,30,58,.35); }
  70%  { box-shadow: 0 0 0 10px rgba(123,30,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,30,58,0); }
}
.dot { width: 12px; height: 12px; border-radius: 50%; background: #f43f5e; }
.route-line {
  width: 2px; height: 60px;
  background: repeating-linear-gradient(to bottom, var(--primary) 0, var(--primary) 6px, transparent 6px, transparent 12px);
}
.floating {
  position: absolute; bottom: 24px; left: 16px; right: 16px;
  background: var(--white); border-radius: var(--radius);
  padding: 1rem; display: flex; align-items: center; gap: .75rem;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ride-info { flex: 1; }
.ride-info strong { display: block; font-size: .95rem; }
.ride-info span { display: block; font-size: .78rem; color: var(--muted); }
.seats { display: inline-block; background: var(--primary-light); color: var(--primary-dark); padding: .1rem .5rem; border-radius: 50px; font-size: .72rem; font-weight: 600; }
.ride-price { font-weight: 800; font-size: 1.1rem; color: var(--primary-dark); white-space: nowrap; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-dark { background: var(--dark); }
.section-dark p, .section-dark li { color: #94a3b8; }
.section-accent { background: linear-gradient(135deg, #fff9fb, #f4e8ed); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { margin-top: .6rem; font-size: 1.05rem; }
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: #94a3b8; }

/* ── Steps ───────────────────────────────────────────────── */
.steps {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.step {
  background: var(--light); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
  flex: 1 1 220px; max-width: 280px;
  position: relative; overflow: hidden;
}
.step-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.step-number {
  position: absolute; top: 1rem; right: 1.2rem;
  font-size: 3.5rem; font-weight: 900;
  color: var(--primary-light); line-height: 1;
}
.step h3 { margin-bottom: .5rem; }
.step-arrow { font-size: 2rem; color: var(--primary); flex-shrink: 0; }

/* ── Ride Form ───────────────────────────────────────────── */
.ride-form-wrapper { max-width: 780px; margin: 0 auto; }
.ride-form, .signup-form {
  background: var(--dark2); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem;
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-group { flex: 1 1 180px; display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: #cbd5e1; }
.form-group input, .form-group select {
  background: var(--dark); color: var(--white);
  border: 1px solid var(--mid); border-radius: 8px;
  padding: .65rem .9rem; font-size: .95rem; font-family: var(--font);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
}
.form-group input::placeholder { color: var(--muted); }
.form-group select option { background: var(--dark2); }

/* ── Ride Results ─────────────────────────────────────────── */
.ride-results { margin-top: 1.5rem; }
.ride-results h3 { color: var(--white); margin-bottom: 1rem; }
.results-list { display: flex; flex-direction: column; gap: .75rem; }
.result-item {
  background: var(--dark2); border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid var(--mid);
  transition: border-color var(--transition);
}
.result-item:hover { border-color: var(--primary); }
.result-item .avatar { width: 48px; height: 48px; border-radius: 50%; }
.result-meta { flex: 1; }
.result-meta strong { color: var(--white); display: block; }
.result-meta span { font-size: .82rem; color: var(--muted); }
.result-price { font-weight: 800; font-size: 1.1rem; color: var(--primary); white-space: nowrap; }
.result-book { margin-left: .5rem; }

/* ── Features Grid ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--light); border-radius: var(--radius);
  padding: 1.8rem; transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.feature-card h3 { margin-bottom: .5rem; }

/* ── Offer Section ───────────────────────────────────────── */
.offer-container {
  display: flex; align-items: center; gap: 4rem; flex-wrap: wrap;
}
.offer-text { flex: 1 1 380px; }
.offer-text h2 { margin-bottom: 1rem; }
.offer-benefits {
  list-style: none; margin: 1.25rem 0 2rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.offer-benefits li { font-size: .95rem; color: var(--mid); }
.offer-illustration { flex: 1 1 280px; display: flex; justify-content: center; }
.driver-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem 2rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 1.25rem;
  max-width: 340px;
}
.driver-avatar { width: 72px; height: 72px; border-radius: 50%; }
.driver-card strong { display: block; font-size: 1.05rem; }
.driver-card p { font-size: .85rem; margin: .25rem 0; }
.earnings {
  display: inline-block;
  background: var(--primary-light); color: var(--primary-dark);
  padding: .25rem .7rem; border-radius: 50px; font-size: .8rem; font-weight: 600;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; align-items: start;
}
.pricing-card {
  border: 2px solid var(--light); border-radius: var(--radius);
  padding: 2rem 1.75rem; position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.featured-tag {
  position: absolute; top: -1px; right: 1.5rem;
  background: var(--primary); color: var(--white);
  padding: .2rem .75rem; border-radius: 0 0 8px 8px;
  font-size: .8rem; font-weight: 700;
}
.pricing-card h3 { margin-bottom: .5rem; }
.price { font-size: 2.8rem; font-weight: 900; color: var(--primary-dark); line-height: 1; }
.pricing-card > p { font-size: .85rem; margin-bottom: 1.5rem; }
.pricing-card ul { list-style: none; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.pricing-card li { font-size: .9rem; color: var(--mid); }

/* ── Signup ──────────────────────────────────────────────── */
.signup-form { max-width: 640px; margin: 0 auto; }
.radio-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-label {
  display: flex; align-items: center; gap: .4rem;
  color: #cbd5e1; font-size: .9rem; cursor: pointer;
}
.radio-label input[type="radio"] { accent-color: var(--primary); }
.signup-success {
  text-align: center; padding: 3rem 1rem;
  color: var(--white);
}
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.signup-success h3 { font-size: 1.6rem; color: var(--white); margin-bottom: .5rem; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--dark); padding: 4rem 1.5rem 0; }
.footer-inner {
  display: flex; gap: 4rem; flex-wrap: wrap;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--mid);
}
.footer-brand { flex: 1 1 220px; }
.footer-brand .logo { color: var(--white); }
.footer-brand p { margin-top: .5rem; color: #64748b; font-size: .9rem; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a {
  color: var(--muted); font-size: 1.1rem; text-decoration: none;
  transition: color var(--transition);
}
.social-links a:hover { color: var(--primary); }
.footer-links { flex: 2 1 400px; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-col { flex: 1 1 100px; }
.footer-col h4 { color: var(--white); font-size: .9rem; margin-bottom: .75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { text-decoration: none; color: #64748b; font-size: .85rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center; padding: 1.5rem 0;
}
.footer-bottom p { font-size: .82rem; color: #475569; }
.footer-bottom a { color: #64748b; text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* ── Secondary Button ────────────────────────────────────── */
.btn-secondary {
  background: #f1f5f9; color: var(--mid); border-color: #e2e8f0;
}
.btn-secondary:hover { background: #e2e8f0; border-color: #cbd5e1; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--dark2); border-radius: 18px;
  width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--mid); padding-bottom: 1rem;
  margin-bottom: .25rem;
}
.modal-header h3 { color: var(--white); font-size: 1.25rem; }
.modal-close {
  background: none; border: none; color: var(--muted);
  font-size: 1.2rem; cursor: pointer; line-height: 1;
  padding: .25rem .5rem; border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--mid); color: var(--white); }

.modal-form {
  padding: 1.25rem 1.75rem 1.75rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}

.modal-actions {
  display: flex; gap: 1rem; justify-content: flex-end; padding-top: .5rem;
}

.modal-success {
  text-align: center; padding: 2.5rem 2rem;
  color: var(--white);
}
.modal-success .success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.modal-success h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.modal-success p { color: #94a3b8; margin-bottom: 1.5rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem; box-shadow: var(--shadow); border-top: 1px solid #e2e8f0; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .step-arrow { transform: rotate(90deg); }
  .hero { padding: 3rem 1.5rem; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; }
  .map-card { width: 100%; max-width: 360px; }
  .offer-container { text-align: center; }
  .offer-benefits { align-items: flex-start; }
}
