:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #162033;
  --muted: #53627a;
  --accent: #006f9e;
  --accent-2: #17b3a3;
  --accent-text: #ffffff;
  --border: #d9e2ee;
  --ok: #1a7f4b;
  --shadow: 0 2px 12px rgba(20, 33, 51, .12);
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #151d2c;
    --text: #eef4ff;
    --muted: #a9b7cd;
    --accent: #4bb8e6;
    --accent-2: #34d8bd;
    --accent-text: #06222e;
    --border: #2b3648;
    --ok: #4ecb86;
    --shadow: 0 2px 16px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; position: relative; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; color: var(--muted); }
.text-accent { background: linear-gradient(100deg, var(--accent-2), var(--accent) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* --- reveal-on-scroll --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay.is-visible { transition-delay: .12s; }
.reveal-delay-2.is-visible { transition-delay: .24s; }

/* --- nav --- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; height: 3.5rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); }
.brand-icon { border-radius: .4rem; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.topnav { display: flex; align-items: center; gap: 1.3rem; }
.topnav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.topnav a:not(.btn):hover { color: var(--text); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.4rem; border-radius: .8rem;
  font-family: var(--font-body); font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 75%);
  color: var(--accent-text); box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 65%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); transform: translateY(-1px); }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; }
.cta-row { margin: 1.6rem 0 1.1rem; display: flex; flex-wrap: wrap; gap: .7rem; }

.store-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: .6rem;
  border: 1px dashed color-mix(in srgb, var(--text) 25%, transparent);
  color: var(--hero-muted, var(--muted)); font-size: .83rem;
}

/* --- hero --- */
.hero {
  position: relative; overflow: hidden; padding: 3.2rem 0 2.2rem;
  background: radial-gradient(120% 140% at 15% -10%, #123a55 0%, #0a1626 45%, #070d18 100%);
  color: #eef4ff;
  --hero-muted: #9db3cc;
}
.hero .eyebrow { color: var(--accent-2); }
.hero .lead { color: var(--hero-muted); max-width: 30rem; font-size: 1.05rem; }
.hero h1 { color: #fdfeff; font-size: clamp(2.1rem, 5vw, 3.1rem); }
.hero .btn-ghost { color: #eef4ff; border-color: rgba(255,255,255,.25); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }

.hero-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; }
.blob-a { width: 22rem; height: 22rem; background: #17b3a3; top: -6rem; right: -4rem; }
.blob-b { width: 18rem; height: 18rem; background: #006f9e; bottom: -8rem; left: 10%; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(60% 60% at 70% 30%, #000 40%, transparent 100%);
}

.hero-row { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; padding-top: .5rem; }
.hero-copy { flex: 1 1 22rem; min-width: 18rem; }
.hero-art { flex: 0 0 16rem; display: flex; justify-content: center; position: relative; }

.phone {
  position: relative; width: 15.5rem; border-radius: 1.7rem;
  background: #101a2b; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.03);
  padding: .9rem .9rem 1rem; display: flex; flex-direction: column; gap: .7rem;
}
.phone-notch {
  position: absolute; top: .4rem; left: 50%; transform: translateX(-50%);
  width: 3.4rem; height: .3rem; border-radius: .3rem; background: rgba(255,255,255,.12);
}
.phone-topbar {
  display: flex; align-items: center; gap: .4rem; margin-top: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: #eef4ff;
  padding: 0 .2rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.phone-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #4ecb86; flex: none; box-shadow: 0 0 0 3px rgba(78,203,134,.25); }
.phone-row { display: flex; align-items: center; gap: .6rem; }
.chip {
  flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .85rem; font-family: var(--font-display);
}
.chip-1 { background: #006f9e; }
.chip-2 { background: #954a4a; }
.phone-lines { display: flex; flex-direction: column; font-size: .8rem; }
.phone-lines b { font-size: .76rem; color: #eef4ff; }
.phone-lines .is-rt { color: #4ecb86; font-weight: 600; }
.phone-map {
  position: relative; height: 6rem; border-radius: .9rem; overflow: hidden;
  background: radial-gradient(120% 100% at 30% 20%, rgba(0,111,158,.35), transparent 60%), #0b1526;
}
.phone-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-route path { fill: none; stroke: #2f7ea8; stroke-width: 2.5; stroke-linecap: round; }
.phone-bus {
  position: absolute; width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 0 3px rgba(23,179,163,.3);
}
.phone-bus-1 { top: 46%; left: 34%; animation: driftA 6s ease-in-out infinite; }
.phone-bus-2 { top: 22%; left: 62%; background: #f2bd6b; box-shadow: 0 0 0 3px rgba(242,189,107,.25); animation: driftB 7s ease-in-out infinite; }
.phone-bus-3 { top: 78%; left: 78%; background: #ff8a80; box-shadow: 0 0 0 3px rgba(255,138,128,.25); animation: driftC 5.5s ease-in-out infinite; }
.phone-pulse {
  border-radius: 50%; border: 1px solid var(--accent-2); opacity: 0;
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0% { width: .6rem; height: .6rem; opacity: .6; }
  100% { width: 2.2rem; height: 2.2rem; margin: -.8rem 0 0 -.8rem; opacity: 0; }
}
@keyframes driftA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(6px,-4px); } }
@keyframes driftB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-5px,5px); } }
@keyframes driftC { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-6px,-3px); } }
@media (prefers-reduced-motion: reduce) {
  .phone-bus, .phone-pulse { animation: none; }
}
.phone-glow {
  position: absolute; inset: -2rem; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(23,179,163,.25), transparent 70%);
  filter: blur(10px);
}

.advantages-row {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: center;
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1);
}
.advantage { font-size: .88rem; font-weight: 600; color: var(--hero-muted); display: flex; align-items: center; gap: .4rem; }

/* --- how it works --- */
.how { padding: 3rem 0 1rem; }
.how-row { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); text-align: center; }
.how-step { padding: 0 1rem; }
.how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; margin-bottom: .7rem;
  font-family: var(--font-display); font-weight: 700;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.how-step h3 { font-size: 1.05rem; }
.how-step p { margin: 0; font-size: .9rem; }

/* --- features --- */
.features { padding: 2.5rem 0; }
.features h2 { text-align: center; margin-bottom: .5rem; font-size: 1.7rem; }
.section-lead { text-align: center; max-width: 34rem; margin: 0 auto 2rem; }
.feature-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1.1rem; padding: 1.3rem 1.3rem 1.1rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: .75rem; margin-bottom: .6rem; font-size: 1.15rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.feature h3 { font-size: 1rem; }
.feature p { margin: 0; font-size: .92rem; }

/* --- demo --- */
.demo { padding: 2.5rem 0 3rem; }
.demo h2 { text-align: center; margin-bottom: .5rem; font-size: 1.7rem; }
.demo-box {
  max-width: 34rem; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 1.3rem; padding: 1.3rem;
  box-shadow: var(--shadow);
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(120deg, var(--accent-2), var(--accent));
  background-origin: border-box; background-clip: padding-box, border-box; border: 1px solid transparent;
}
.demo-search { display: flex; gap: .6rem; flex-wrap: wrap; }
.demo-search-input {
  flex: 1 1 14rem; padding: .7rem .9rem; border-radius: .7rem;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: .95rem;
}
.demo-search-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.demo-near-btn { flex: none; white-space: nowrap; }
.demo-status { min-height: 1.2rem; margin: .5rem 0 0; font-size: .85rem; }

.demo-results { display: flex; flex-direction: column; gap: .3rem; margin-top: .6rem; }
.demo-result-row {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left;
  padding: .55rem .6rem; border-radius: .6rem; border: 1px solid transparent;
  background: transparent; color: var(--text); cursor: pointer; font: inherit;
}
.demo-result-row:hover { background: var(--bg); border-color: var(--border); }
.demo-result-num {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--border); font-size: .78rem; font-weight: 700;
}
.demo-result-body { display: flex; flex-direction: column; font-size: .88rem; }
.demo-result-body .muted { font-size: .78rem; }

.demo-arrivals { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.demo-arrivals-head { display: flex; flex-direction: column; margin-bottom: .6rem; }
.demo-arrivals-head .muted { font-size: .8rem; }
.demo-loading { color: var(--muted); font-size: .88rem; margin: 0; }
.demo-arrivals-list { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.demo-arrivals-row { display: flex; align-items: center; gap: .6rem; }
.demo-badge {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
}
.demo-dest { flex: 1; font-size: .86rem; }
.demo-eta { display: flex; flex-direction: column; align-items: flex-end; font-size: .78rem; }
.demo-eta-time { font-weight: 700; font-size: .95rem; }
.demo-eta.is-rt .demo-eta-time { color: var(--ok); }
.demo-eta.is-sched .demo-eta-time { color: var(--muted); }
.link-inline { color: var(--accent); font-weight: 600; font-size: .88rem; text-decoration: none; }
.link-inline:hover { text-decoration: underline; }

/* --- feedback --- */
.feedback { padding: 1rem 0 2.5rem; }
.feedback-box {
  max-width: 34rem; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 1.1rem; padding: 1.4rem 1.5rem;
  text-align: center;
}
.feedback-box h2 { font-size: 1.25rem; }
.feedback-form { display: flex; flex-direction: column; gap: .7rem; align-items: stretch; }
.feedback-input {
  width: 100%; resize: vertical; padding: .7rem .9rem; border-radius: .7rem;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: .92rem;
}
.feedback-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.feedback-submit { align-self: center; }
.feedback-status { min-height: 1.2rem; margin: 0; font-size: .85rem; }

/* --- cta final --- */
.cta-final {
  position: relative; overflow: hidden; padding: 3.5rem 0; margin-top: 1rem; text-align: center;
  background: radial-gradient(120% 160% at 50% 120%, #123a55 0%, #0a1626 55%, #070d18 100%);
  color: #eef4ff;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #9db3cc; max-width: 30rem; margin: 0 auto 1.6rem; }
.cta-final .wrap { max-width: 32rem; }

.site-footer { padding: 2rem 0 3rem; text-align: center; }
.site-footer p { font-size: .8rem; margin: 0 0 .3rem; }

@media (max-width: 640px) {
  .hero-row { flex-direction: column-reverse; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta-row, .store-row { justify-content: center; }
  .store-row { display: flex; }
  .topnav a:not(.btn) { display: none; }
  .advantages-row { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .6rem; }
  .demo-search { flex-direction: column; }
  .demo-near-btn { width: 100%; }
}
