:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --bg: #fbfbfd;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --label: #1d1d1f;
  --label-2: #6e6e73;
  --label-3: #86868b;
  --hairline: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-press: #0077ed;
  --glass: rgba(251, 251, 253, 0.72);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 18px 48px rgba(0, 0, 0, 0.08);
  /* illustration */
  --land: #eef1ea; --sea-a: #b9dcef; --sea-b: #9cc9e6; --road: #ffffff; --river: #a7d1ea; --contour: rgba(120, 100, 60, 0.18);
  --r1: #007aff; --r2: #ff9500; --r3: #34c759;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #0d0d0f;
    --card: #161618;
    --label: #f5f5f7;
    --label-2: #a1a1a6;
    --label-3: #86868b;
    --hairline: rgba(255, 255, 255, 0.1);
    --accent: #2997ff;
    --accent-press: #47a6ff;
    --glass: rgba(22, 22, 24, 0.72);
    --shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.6);
    --land: #1c1f22; --sea-a: #0f2a3d; --sea-b: #0b2233; --road: #2c3136; --river: #17384e; --contour: rgba(255, 255, 255, 0.08);
    --r1: #0a84ff; --r2: #ff9f0a; --r3: #30d158;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font-family: var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -0.012em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner { max-width: 1080px; margin: 0 auto; height: 52px; padding: 0 22px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.logo-icon {
  width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  background: linear-gradient(145deg, #5ac8fa, #007aff 55%, #5856d6);
}
.logo-icon svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; color: var(--label-2); }
.nav-links a:hover { color: var(--label); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border-radius: 980px; font-weight: 500;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { font-size: 13px; padding: 6px 14px; }
.btn-lg { font-size: 17px; padding: 13px 24px; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 88px 22px 40px; max-width: 1080px; margin: 0 auto; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--label-2); margin: 0 0 14px; }
.hero h1 {
  font-size: clamp(44px, 8vw, 88px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; margin: 0;
}
.grad {
  background: linear-gradient(100deg, #0a84ff 0%, #5e5ce6 45%, #bf5af2 75%, #ff6482 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--label-2); max-width: 720px; margin: 22px auto 0; letter-spacing: -0.015em; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.fine { font-size: 13px; color: var(--label-3); margin: 16px 0 0; }

/* Illustration: app window */
.device { margin: 64px auto 0; max-width: 980px; perspective: 1600px; }
.win {
  border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow), 0 50px 100px -30px rgba(0, 60, 140, 0.25);
  transform: rotateX(8deg); transform-origin: 50% 0; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.device.in .win { transform: rotateX(0); }
.win-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--bg-2); border-bottom: 0.5px solid var(--hairline); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-body { position: relative; aspect-ratio: 16 / 9.2; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.land { fill: var(--land); }
.sea-a { stop-color: var(--sea-a); }
.sea-b { stop-color: var(--sea-b); }
.river { fill: none; stroke: var(--river); stroke-width: 7; stroke-linecap: round; }
.roads path { fill: none; stroke: var(--road); stroke-width: 6; stroke-linecap: round; }
.contours path { fill: none; stroke: var(--contour); stroke-width: 1.5; }
.route { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; filter: drop-shadow(0 1px 0 rgba(255,255,255,.9)); }
.r1 { stroke: var(--r1); } .r2 { stroke: var(--r2); } .r3 { stroke: var(--r3); }
.device.in .r1 { animation: draw 1.6s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
.device.in .r2 { animation: draw 1.2s 1.4s cubic-bezier(.4, 0, .2, 1) forwards; }
.device.in .r3 { animation: draw .9s 2.2s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pin { stroke: #fff; stroke-width: 3.5; opacity: 0; transition: opacity .4s; }
.pin.start { fill: var(--r1); }
.pin.end { fill: var(--r3); transition-delay: 2.9s; }
.device.in .pin { opacity: 1; }

.mock-side, .mock-stats > div, .mock-elev {
  position: absolute; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-radius: 14px; box-shadow: 0 0 0 0.5px var(--hairline), 0 8px 24px rgba(0, 0, 0, 0.1);
}
.mock-side { left: 2.2%; top: 4%; bottom: 4%; width: 27%; padding: 2.2% 1.8%; display: flex; flex-direction: column; gap: 6%; text-align: left; font-size: clamp(8px, 1.15vw, 12px); }
.mock-title { display: flex; align-items: center; gap: 8px; font-size: 1.25em; }
.mock-logo { width: 1.9em; height: 1.9em; border-radius: .5em; background: linear-gradient(145deg, #5ac8fa, #007aff 55%, #5856d6); flex: none; }
.mock-drop { border: 1.5px dashed color-mix(in srgb, var(--label) 18%, transparent); border-radius: 10px; padding: 9% 6%; text-align: center; color: var(--label-2); }
.mock-row { display: flex; align-items: center; gap: 8px; }
.mock-row span:last-child { display: flex; flex-direction: column; }
.mock-row small { color: var(--label-2); }
.dot { width: 1.2em; height: 1.2em; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.c1 { background: var(--r1); } .c2 { background: var(--r2); } .c3 { background: var(--r3); }
.mock-btn { margin-top: auto; background: var(--accent); color: #fff; border-radius: 9px; padding: 6% 0; text-align: center; font-weight: 600; }
.mock-stats { position: absolute; left: 31.5%; right: 2.2%; top: 4%; display: flex; gap: 1.4%; }
.mock-stats > div { position: static; flex: 1; padding: 1.3% 2%; text-align: left; font-size: clamp(7px, 1vw, 11px); display: flex; flex-direction: column; }
.mock-stats small { color: var(--label-2); }
.mock-stats b { font-size: 1.6em; letter-spacing: -0.03em; }
.mock-elev { left: 31.5%; right: 2.2%; bottom: 4%; height: 22%; padding: 1.2% 1.5%; }
.mock-elev svg { width: 100%; height: 100%; }
.elev-area { fill: color-mix(in srgb, var(--r1) 22%, transparent); }
.elev-line { fill: none; stroke: var(--r1); stroke-width: 2.5; vector-effect: non-scaling-stroke; }

/* ---------- Sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 110px 22px 0; text-align: center; }
.section h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 48px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.card {
  background: var(--card); border-radius: 22px; padding: 30px 28px 32px;
  box-shadow: 0 0 0 0.5px var(--hairline);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 0.5px var(--hairline), var(--shadow); }
.card h3 { font-size: 21px; letter-spacing: -0.02em; margin: 18px 0 8px; }
.card p { font-size: 15px; line-height: 1.5; color: var(--label-2); margin: 0; }
.ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.ic svg { width: 24px; height: 24px; }
.ic-blue { background: linear-gradient(145deg, #5ac8fa, #007aff); }
.ic-orange { background: linear-gradient(145deg, #ffcc00, #ff9500); }
.ic-green { background: linear-gradient(145deg, #63e68a, #34c759); }
.ic-purple { background: linear-gradient(145deg, #d68cff, #af52de); }
.ic-pink { background: linear-gradient(145deg, #ff7aa2, #ff2d55); }
.ic-teal { background: linear-gradient(145deg, #7ee0e8, #30b0c7); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--bg-2); border-radius: 22px; padding: 34px 26px; }
.num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-size: 20px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.steps h3 { font-size: 22px; margin: 16px 0 6px; letter-spacing: -0.02em; }
.steps p { font-size: 15px; line-height: 1.5; color: var(--label-2); margin: 0; }

.formats { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; text-align: left; }
.fcol { background: var(--card); border-radius: 22px; padding: 30px; box-shadow: 0 0 0 0.5px var(--hairline); height: 100%; }
.fcol h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--label-2); margin: 0 0 16px; }
.fcol p { font-size: 14px; color: var(--label-2); line-height: 1.5; margin: 18px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 980px; background: var(--bg-2); }
.chips.out span { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.farrow { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--label-2); }
.farrow svg { width: 24px; height: 24px; }

.privacy { padding-top: 130px; }
.lock {
  width: 86px; height: 86px; margin: 0 auto 26px; border-radius: 24px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #3a3a3c, #1d1d1f); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}
@media (prefers-color-scheme: dark) { .lock { background: linear-gradient(145deg, #48484a, #2c2c2e); } }
.lock svg { width: 44px; height: 44px; }
.privacy h2 { margin-bottom: 0; }

.final { padding-bottom: 120px; }
.final h2 { margin-bottom: 0; }

.foot { border-top: 0.5px solid var(--hairline); text-align: center; padding: 26px 22px 40px; font-size: 12px; color: var(--label-3); }
.foot p { margin: 6px 0; }
.foot a { color: var(--label-2); }
.foot a:hover { color: var(--label); text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .win { transition: none; opacity: 1; transform: none; }
  .route { stroke-dashoffset: 0; animation: none !important; }
  .pin { opacity: 1; transition: none; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .formats { grid-template-columns: 1fr; }
  .farrow { transform: rotate(90deg); margin: 0 auto; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 0 16px; gap: 12px; }
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hero { padding: 56px 16px 24px; }
  .section { padding: 80px 16px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .mock-side { display: none; }
  .mock-stats, .mock-elev { left: 2.2%; }
}
