/* public/css/home.css — ParkShare Landing */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:     #22c55e;
  --green-dk:  #16a34a;
  --green-lt:  #dcfce7;
  --ink:       #0f172a;
  --ink-2:     #334155;
  --ink-3:     #64748b;
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border:    #e2e8f0;
  --r:         12px;
  --r-lg:      20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ─── NAVBAR ─────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 2rem;
  height: 64px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 1.5rem;
  color: var(--ink); text-decoration: none;
  flex-shrink: 0;
}
.logo-p {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--green); color: #fff;
  border-radius: 8px; font-size: 1rem;
  margin-right: 4px;
}
.navbar nav { display: flex; gap: 1.5rem; flex: 1; }
.navbar nav a {
  color: var(--ink-2); text-decoration: none;
  font-size: 0.9rem; transition: color .2s;
}
.navbar nav a:hover { color: var(--green); }
.nav-cta { display: flex; gap: 0.75rem; }
.btn-ghost {
  padding: .45rem 1rem; border-radius: var(--r);
  border: 1px solid var(--border);
  color: var(--ink-2); text-decoration: none;
  font-size: .9rem; transition: all .2s;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-primary {
  padding: .45rem 1.1rem; border-radius: var(--r);
  background: var(--green); color: #fff;
  text-decoration: none; font-size: .9rem;
  font-weight: 500; transition: background .2s;
}
.btn-primary:hover { background: var(--green-dk); }
.menu-toggle {
  display: none; background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--ink);
}
.nav-mobile {
  display: none; flex-direction: column; gap: .75rem;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--surface); padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--ink-2); text-decoration: none; font-size: 1rem; }

/* ─── HERO ───────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 90vh;
  display: flex; align-items: center;
  gap: 4rem; padding: 6rem 2rem 5rem;
  max-width: 1200px; margin: 0 auto;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .18;
}
.b1 {
  width: 500px; height: 500px;
  background: var(--green);
  top: -100px; right: -100px;
}
.b2 {
  width: 350px; height: 350px;
  background: #6366f1;
  bottom: 0; left: -100px;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .35;
}
.hero-content { position: relative; z-index: 1; flex: 1; max-width: 600px; }
.badge {
  display: inline-block;
  background: var(--green-lt); color: var(--green-dk);
  font-size: .8rem; font-weight: 500;
  padding: .35rem .9rem; border-radius: 99px;
  margin-bottom: 1.5rem;
  border: 1px solid #bbf7d0;
}
h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1;
  color: var(--ink); margin-bottom: 1.25rem;
}
.accent { color: var(--green); }
.hero-sub {
  font-size: 1.15rem; color: var(--ink-2);
  max-width: 480px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn-hero {
  padding: .8rem 1.8rem; border-radius: var(--r);
  background: var(--green); color: #fff;
  text-decoration: none; font-weight: 500;
  font-size: 1rem; transition: all .2s;
  box-shadow: 0 4px 14px rgba(34,197,94,.35);
}
.btn-hero:hover {
  background: var(--green-dk);
  box-shadow: 0 6px 20px rgba(34,197,94,.45);
  transform: translateY(-1px);
}
.btn-hero-ghost {
  padding: .8rem 1.8rem; border-radius: var(--r);
  border: 1.5px solid var(--border);
  color: var(--ink-2); text-decoration: none;
  font-size: 1rem; transition: all .2s;
}
.btn-hero-ghost:hover { border-color: var(--green); color: var(--green); }
.hero-social-proof { font-size: .9rem; color: var(--ink-3); }
.hero-social-proof strong { color: var(--ink); }

/* ─── MAP PREVIEW ────────────────────────── */
.hero-map-preview { position: relative; z-index: 1; flex: 1; max-width: 480px; }
.map-mock {
  position: relative; border-radius: var(--r-lg);
  background: #e8f4e8; overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.map-streets {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(#fff 18px, transparent 18px),
    linear-gradient(90deg, #fff 18px, transparent 18px),
    linear-gradient(#d4edda 1px, transparent 1px),
    linear-gradient(90deg, #d4edda 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
}
.pin {
  position: absolute; transform: translate(-50%,-100%);
  display: flex; flex-direction: column; align-items: center;
  animation: pinPop .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes pinPop {
  from { opacity:0; transform: translate(-50%,-80%) scale(.5); }
  to   { opacity:1; transform: translate(-50%,-100%) scale(1); }
}
.pin-inner {
  padding: 5px 9px; border-radius: 10px 10px 0 10px;
  font-size: .7rem; font-weight: 600; color: #fff;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.pin-green  .pin-inner { background: #22c55e; }
.pin-amber  .pin-inner { background: #f59e0b; }
.pin-purple .pin-inner { background: #6366f1; }
.user-dot {
  position: absolute; transform: translate(-50%,-50%);
  width: 18px; height: 18px;
  background: #3b82f6; border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 5px rgba(59,130,246,.25);
}
.map-ui-badge {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(15,23,42,.85); color: #fff;
  font-size: .75rem; padding: .4rem 1rem;
  border-radius: 99px; white-space: nowrap;
  backdrop-filter: blur(8px);
}

/* ─── STATS ──────────────────────────────── */
.stats {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  background: var(--ink); color: #fff;
  padding: 3rem 2rem;
}
.stat { flex: 1; min-width: 160px; text-align: center; padding: 1rem 2rem; }
.stat strong {
  display: block; font-family: 'Outfit', sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--green);
}
.stat span { font-size: .85rem; color: rgba(255,255,255,.6); }
.stat-divider {
  width: 1px; height: 60px; background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* ─── SECTION COMMONS ────────────────────── */
.section-header {
  text-align: center; max-width: 600px;
  margin: 0 auto 3.5rem;
}
.section-tag {
  display: inline-block; background: var(--green-lt);
  color: var(--green-dk); font-size: .8rem; font-weight: 500;
  padding: .3rem .9rem; border-radius: 99px;
  margin-bottom: 1rem; border: 1px solid #bbf7d0;
}
h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; margin-bottom: .75rem; color: var(--ink);
}
.section-header p { color: var(--ink-2); font-size: 1.05rem; }

/* ─── STEPS ──────────────────────────────── */
.how { padding: 6rem 2rem; background: var(--surface-2); }
.steps {
  display: flex; align-items: flex-start;
  justify-content: center; gap: 1.5rem;
  flex-wrap: wrap; max-width: 1000px; margin: 0 auto;
}
.step {
  flex: 1; min-width: 220px; max-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem;
  position: relative;
}
.step-num {
  font-family: 'Outfit', sans-serif; font-size: 3rem; font-weight: 800;
  color: var(--green-lt); line-height: 1;
  margin-bottom: .5rem;
}
.step-icon { font-size: 2rem; margin-bottom: .75rem; }
.step h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.15rem;
  font-weight: 700; margin-bottom: .6rem;
}
.step p { font-size: .9rem; color: var(--ink-2); line-height: 1.65; }
.step-arrow {
  font-size: 2rem; color: var(--border);
  align-self: center; flex-shrink: 0;
}

/* ─── FEATURES ───────────────────────────── */
.features { padding: 6rem 2rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.75rem;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.feat-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.05rem;
  font-weight: 700; margin-bottom: .5rem;
}
.feature-card p { font-size: .9rem; color: var(--ink-2); line-height: 1.65; }

/* ─── CTA BAND ───────────────────────────── */
.cta-band {
  background: var(--ink); color: #fff;
  text-align: center; padding: 5rem 2rem;
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-band strong { color: var(--green); }

/* ─── FAQ ────────────────────────────────── */
.faq { padding: 6rem 2rem; background: var(--surface-2); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.faq-item summary {
  padding: 1.2rem 1.5rem; cursor: pointer;
  font-weight: 500; font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--ink-3); }
.faq-item[open] summary { color: var(--green); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 1.5rem 1.25rem;
  font-size: .95rem; color: var(--ink-2); line-height: 1.7;
}

/* ─── HERO BOTTOM ────────────────────────── */
.hero-bottom {
  padding: 6rem 2rem; text-align: center;
}
.hero-bottom h2 { margin-bottom: 1rem; }
.hero-bottom p { color: var(--ink-2); margin-bottom: 2rem; font-size: 1.05rem; }

/* ─── FOOTER ─────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.55); padding: 3rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand p { font-size: .9rem; margin-top: .5rem; max-width: 360px; }
.footer nav {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  margin: 2rem 0;
}
.footer nav a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer nav a:hover { color: var(--green); }
.footer-legal { font-size: .8rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-legal a:hover { color: var(--green); }

/* ─── REVEAL ANIMATIONS ──────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .hero { flex-direction: column; min-height: auto; gap: 2.5rem; }
  .hero-map-preview { width: 100%; max-width: 100%; }
  .step-arrow { display: none; }
  .stat-divider { display: none; }
  .stats { gap: 1.5rem; }
}
@media (max-width: 640px) {
  .navbar nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  h1 { font-size: 2.2rem; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .how, .features, .cta-band, .faq, .hero-bottom { padding: 4rem 1.25rem; }
  .stats { padding: 2.5rem 1.25rem; }
}
