:root {
  --green: #22c55e; --deep: #087a46; --lime: #a3e635; --violet: #7c2ae8;
  --ink: #111827; --bg: #f7f8f5; --card: #ffffff; --label: #111827; --muted: #5f6b63;
  --line: #e3e8e2; --soft: #eef5ef; --shadow: 0 1px 2px rgb(17 24 39 / 6%), 0 12px 32px rgb(17 24 39 / 8%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --card: #1c1c1e; --label: #f2f2f7; --muted: #9a9aa1; --line: #2c2c2e; --soft: #0f2e1c; --deep: #4ade80; --violet: #b98cff; --shadow: none; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--label); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
em { font-style: normal; color: var(--green); }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--deep); }
.kicker.light { color: var(--lime); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; font-weight: 800; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand img { display: block; width: 112px; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav nav a:hover { color: var(--label); }
.nav .nav-cta { color: #fff; background: var(--ink); padding: 9px 16px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .nav .nav-cta { background: var(--green); color: var(--ink); } }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 64px 80px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 7px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(34 197 94 / 20%); }
.hero h1 { font-size: clamp(56px, 8vw, 104px); line-height: 0.95; font-weight: 800; letter-spacing: -0.05em; }
.lead { max-width: 520px; margin: 24px 0 32px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.hero-facts li { display: grid; }
.hero-facts strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.hero-facts span { font-size: 13px; color: var(--muted); }

.hero-map-stage { position: absolute; z-index: 0; inset: 0; background: var(--bg); }
.hero-map-stage canvas, .hero-map-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-map-markers img {
  --icon-size: clamp(34px, 3.7vw, 61px);
  position: absolute; top: 0; left: 0; width: var(--icon-size); height: var(--icon-size);
  object-fit: contain; filter: drop-shadow(0 3px 4px rgb(17 24 39 / 24%));
}
.hero-copy { position: relative; isolation: isolate; }
.hero-copy::before {
  position: absolute; z-index: -1; content: ''; inset: -28px -16px;
  background: var(--bg); opacity: .79; filter: blur(28px);
  mask-image: linear-gradient(to right, black 67%, transparent);
}
.hero-visual { position: relative; min-height: 600px; }
.device { position: absolute; margin: 0; width: 280px; border-radius: 44px; padding: 9px; background: #111; box-shadow: 0 30px 60px rgb(10 56 42 / 25%); }
.device img { display: block; width: 100%; border-radius: 35px; }
.device-main { left: 55%; top: 0; transform: translateX(-23%); z-index: 2; }
.device-back { left: 55%; top: 60px; transform: translateX(-85%) rotate(-6deg) scale(0.9); }
.hero-map-caption { position: relative; z-index: 2; padding-bottom: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 12px; }
.hero-map-caption span, .hero-map-toggle { padding: 6px 10px; border-radius: 999px; background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.hero-map-toggle { flex-shrink: 0; font: 600 12px Inter, sans-serif; cursor: pointer; }
.hero-map-toggle:hover { color: var(--label); }

/* Band */
.band { background: var(--green); color: var(--ink); }
.band-inner { display: grid; grid-template-columns: 0.6fr 1.3fr 1fr; gap: 48px; align-items: start; padding-block: 96px; }
.band-kicker { margin: 6px 0 0; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #0b5c35; }
.band h2 { font-size: clamp(44px, 6vw, 80px); line-height: 0.95; font-weight: 800; letter-spacing: -0.055em; }
.band-copy p { margin: 0 0 14px; font-size: 18px; line-height: 1.6; }

/* Features */
.features { padding-block: 110px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.card { position: relative; overflow: hidden; padding: 28px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 8px; font-size: 22px; font-weight: 700; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--soft); color: var(--deep); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-green .icon { color: var(--ink); }
.card-dark .icon { color: var(--lime); }
.card-tall { grid-row: span 2; display: flex; flex-direction: column; padding-bottom: 0; }
.card-shot { display: block; width: 78%; margin: 24px auto 0; border-radius: 28px 28px 0 0; border: 8px solid #111; border-bottom: 0; }
.card-green { background: var(--green); border-color: transparent; }
.card-green h3, .card-green p { color: var(--ink); }
.card-green .icon { background: rgb(255 255 255 / 40%); }
.card-dark { background: var(--ink); border-color: transparent; }
.card-dark h3 { color: #fff; }
.card-dark p { color: #c4c9d0; }
.card-dark .icon { background: rgb(255 255 255 / 10%); }

/* Network */
.network { background: var(--ink); color: #fff; padding-block: 110px; }
.network-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.network h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; font-weight: 800; }
.network-copy { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: #c4c9d0; max-width: 520px; }
.modes { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.modes li { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 10%); font-weight: 600; }
.modes li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* Trust */
.trust { padding-block: 110px 40px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-grid article { padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.trust-grid i { display: block; width: 12px; height: 12px; border-radius: 50%; }
.trust-grid .live { background: var(--green); box-shadow: 0 0 0 5px rgb(34 197 94 / 20%); }
.trust-grid .sched { background: #2878d0; }
.trust-grid .ref { background: #f28c28; }
.trust-grid h3 { margin: 16px 0 6px; font-size: 19px; }
.trust-grid p { margin: 0; color: var(--muted); line-height: 1.5; }
.trust-note { margin: 24px 0 0; color: var(--muted); }
.trust-note a { color: var(--violet); font-weight: 600; }

/* Shared trip + final */
.shared-trip { margin-top: 60px; display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: center; padding: 24px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shared-trip[hidden] { display: none; }
.shared-trip img { width: 72px; border-radius: 17px; }
.shared-trip h2 { font-size: 26px; }
.shared-trip p { margin: 4px 0 0; color: var(--muted); }
.button { display: inline-block; padding: 14px 22px; border-radius: 999px; background: var(--green); color: var(--ink); font-weight: 700; text-decoration: none; }
.final { padding-block: 100px 110px; text-align: center; }
.final > img { width: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.final h2 { margin-top: 20px; font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.final p { margin: 18px 0 28px; font-size: 18px; color: var(--muted); }
.final .hero-actions { justify-content: center; }

/* Footer + toast */
footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 32px; color: var(--muted); font-size: 13px; }
.footer-inner img { width: 96px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-inner nav a { text-decoration: none; font-weight: 600; }
.footer-inner nav a:hover { color: var(--label); }
.footer-inner p { margin: 0; flex-basis: 100%; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translate(-50%, 24px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; transition: 0.25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-block: 40px 56px; }
  .hero-copy::before { mask-image: none; }
  .hero-visual { min-height: 560px; }
  .device-main, .device-back { left: 50%; }
  .pill { font-size: 12px; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .band-inner { grid-template-columns: 1fr; gap: 20px; padding-block: 72px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-tall { grid-row: auto; grid-column: 1 / -1; }
  .bento > .card:nth-child(4) { grid-column: auto; }
  .network-inner { grid-template-columns: 1fr; gap: 32px; }
  .trust-grid { grid-template-columns: 1fr; }
  .shared-trip { grid-template-columns: 56px 1fr; }
  .shared-trip img { width: 56px; }
  .shared-trip .button { grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 540px) {
  .hero h1 { font-size: 56px; }
  .lead { font-size: 17px; }
  .hero-facts { gap: 24px; }
  .hero-visual { min-height: 500px; }
  .device { width: 230px; border-radius: 36px; padding: 7px; }
  .device img { border-radius: 30px; }
  .device-main { transform: translateX(-35%); }
  .device-back { transform: translateX(-85%) rotate(-6deg) scale(.88); }
  .hero-map-caption { font-size: 10px; }
  .hero-map-toggle { font-size: 10px; }
  .features, .network, .final { padding-block: 72px; }
  .trust { padding-block: 72px 24px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .card { min-width: 0; padding: 18px; }
  .bento .card-tall { grid-column: 1 / -1; }
  .card-shot { width: 88%; }
}
