:root {
  --ink: #0f2533;
  --ink-soft: #4d606d;
  --night: #0b2130;
  --night-2: #10303f;
  --aqua: #a8e8e3;
  --aqua-deep: #2fb5a6;
  /* Teal for text on light backgrounds: 4.5:1 on paper/white (small) and 3:1+ (large figures). */
  --aqua-ink: #0f7a6f;
  --aqua-ink-lg: #16897c;
  --glow: #f6a93b;
  --glow-soft: rgba(246, 169, 59, .55);
  --paper: #f5f8f9;
  --card: #ffffff;
  --line: #e2e9ec;
  --radius: 22px;
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC",
    "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: .02em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; position: relative; }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.top-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin: 0 auto; padding: 14px 20px; }
.top.solid { background: rgba(11, 33, 48, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.top nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 15px; margin-left: 20px; position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--glow); transform: scaleX(0); transition: transform .3s var(--ease); }
.top nav a:hover { color: #fff; }
.top nav a:hover::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #fff; background: var(--night); display: flex; align-items: center; }
.hero-stage { position: absolute; inset: -4%; transform: scale(1.04); animation: drift 40s ease-in-out infinite alternate; }
.hero-map { position: absolute; inset: 0; background: url("/assets/shots/hero-map.jpg") center / cover no-repeat; filter: saturate(1.3) brightness(1.25) hue-rotate(-8deg); }
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, 1%); } }
canvas.fog { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11,33,48,.72) 0%, rgba(11,33,48,.35) 45%, rgba(11,33,48,0) 70%), linear-gradient(0deg, rgba(11,33,48,.9), rgba(11,33,48,0) 30%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; width: 100%; padding-top: 90px; padding-bottom: 60px; pointer-events: none; }
.hero-grid a, .hero-grid .store { pointer-events: auto; }
.eyebrow { display: inline-block; font-size: 14px; color: var(--aqua); background: rgba(168,232,227,.1); border: 1px solid rgba(168,232,227,.28); padding: 5px 14px; border-radius: 99px; margin-bottom: 20px; backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(42px, 7vw, 78px); line-height: 1.12; margin: 0 0 22px; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.glow-text { background: linear-gradient(90deg, #ffd08a, var(--glow) 40%, #ffb560 60%, #ffe2b0); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shimmer 6s linear infinite; filter: drop-shadow(0 0 18px rgba(246,169,59,.45)); }
@keyframes shimmer { to { background-position: -200% 0; } }
.lead { font-size: clamp(17px, 2.1vw, 21px); color: rgba(255,255,255,.86); margin: 0 0 32px; max-width: 28em; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--night); padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.store svg { width: 22px; height: 22px; }
.hint { margin: 28px 0 0; font-size: 14px; color: rgba(255,255,255,.6); }
.hint::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--glow); margin-right: 10px; vertical-align: middle; animation: pulse 1.8s ease-in-out infinite; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }
@keyframes pulse { 50% { transform: scale(1.8); opacity: .5; } }
.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone .phone { width: min(320px, 70vw); }
.orb { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(246,169,59,.35), rgba(246,169,59,0) 65%); top: 10%; left: 50%; transform: translateX(-50%); z-index: -1; filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateX(-50%) scale(1.15); opacity: .7; } }
.walk-hud { position: absolute; right: 24px; bottom: 26px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 10px 16px; border-radius: 14px; background: rgba(11,33,48,.62); border: 1px solid rgba(168,232,227,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.walk-hud.on { opacity: 1; transform: none; }
.walk-hud b { font-size: 15px; letter-spacing: .04em; }
.walk-hud span { font-size: 13px; color: var(--aqua); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; transform: translateX(-50%); z-index: 3; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Phone frame */
.phone { position: relative; border-radius: 48px; padding: 10px; background: linear-gradient(145deg, #2b3640, #070b0f 40%, #1b232b); box-shadow: 0 0 0 1.5px #3a4651, 0 40px 90px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.25); transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
/* <picture> only picks AVIF or the JPEG/PNG fallback; the img lays out as if the wrapper were not there. */
picture { display: contents; }
.phone img, .phone video { display: block; border-radius: 39px; width: 100%; height: auto; aspect-ratio: 603 / 1311; object-fit: cover; background: #18242d; }
.phone::after { content: ""; position: absolute; inset: 10px; border-radius: 39px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.16), rgba(255,255,255,0) 30%); }

/* Ticker */
.ticker { background: var(--night); color: rgba(168,232,227,.75); overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); padding: 14px 0; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: tick 50s linear infinite; }
.ticker-track span { padding: 0 22px; font-size: 15px; white-space: nowrap; }
.ticker-track span::before { content: "●"; color: var(--glow); font-size: 9px; margin-right: 10px; vertical-align: 2px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* What */
.what { padding: 110px 0 40px; }
.what-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.what h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
.what p { font-size: 19px; color: var(--ink-soft); margin: 0; }
.facts { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 26px; box-shadow: 0 20px 50px rgba(15,37,51,.06); }
.facts div { display: flex; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { width: 3.5em; flex: none; color: var(--aqua-ink); font-weight: 700; }
.facts dd { margin: 0; }

/* Features + rail */
.features { position: relative; }
.rail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.rail path { fill: none; stroke-linecap: round; }
.rail-base { stroke: rgba(15,37,51,.08); stroke-width: 3; stroke-dasharray: 2 10; }
.rail-live { stroke: url(#railGrad); stroke-width: 5; filter: drop-shadow(0 0 8px rgba(246,169,59,.6)); }
.rail-dot { fill: #fff; stroke: var(--glow); stroke-width: 4; filter: drop-shadow(0 0 10px var(--glow)); }
section.feature { padding: 110px 0; position: relative; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-grid.flip .shot { order: 2; }
.feature .shot { display: flex; justify-content: center; perspective: 1200px; }
.feature .shot .phone { width: 300px; }
.kicker { color: var(--aqua-ink); font-weight: 700; font-size: 15px; letter-spacing: .12em; margin-bottom: 12px; }
.film .kicker, .globe .kicker, .zoom .kicker { color: var(--aqua-deep); }
.feature p { font-size: 18px; color: var(--ink-soft); margin: 0 0 14px; max-width: 26em; }
.points { list-style: none; padding: 0; margin: 24px 0 0; }
.points li { position: relative; padding-left: 28px; margin: 10px 0; font-size: 16.5px; }
.points li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px rgba(246,169,59,.8); }

/* Footprint: world */
.globe { background: radial-gradient(1200px 600px at 50% 0%, #123a4d, var(--night) 70%); color: #fff; padding: 120px 0 90px; position: relative; overflow: hidden; }
.globe::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(168,232,227,.5) 1px, transparent 1.4px); background-size: 34px 34px; opacity: .08; pointer-events: none; animation: driftDots 60s linear infinite; }
@keyframes driftDots { to { background-position: 340px 170px; } }
.globe-head { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.globe-head p { color: rgba(255,255,255,.72); font-size: 18px; margin: 0 auto; }
.feature h2, .globe h2, .zoom h2, .film h2, .isles h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.22; margin: 0 0 18px; }
.world-box { position: relative; }
.world { position: relative; aspect-ratio: 1000 / 432; width: 100%; }
.world svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.world .land path { fill: #1d394a; stroke: #0b2130; stroke-width: .35; transition: fill .8s var(--ease); }
.world .land path.lit { fill: #2fb5a6; }
.world .land path.lit.hot { fill: #ffc36b; transition: fill .15s; }
.world .arc { fill: none; stroke: var(--glow); stroke-width: 1.3; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(246,169,59,.9)); }
.world .arc.done { stroke: rgba(168,232,227,.38); stroke-width: .8; filter: none; transition: stroke .8s, stroke-width .8s; }
.world .plane { fill: #fff; filter: drop-shadow(0 0 4px #ffc36b) drop-shadow(0 0 8px rgba(246,169,59,.8)); }
.world .pin { fill: #ffe2b0; }
.world .ping { fill: none; stroke: #ffc36b; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ping 1.3s var(--ease) forwards; }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(7); opacity: 0; } }
.world .trip { transition: opacity .8s; }
.world .trip.fade { opacity: 0; }
.world-tag { position: absolute; transform: translate(-50%, -150%); background: rgba(11,33,48,.88); border: 1px solid rgba(255,195,107,.7); color: #ffe2b0; font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 99px; white-space: nowrap; pointer-events: none; animation: tag 1.9s var(--ease) forwards; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
@keyframes tag { 0% { opacity: 0; transform: translate(-50%, -80%) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -150%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -190%); } }
.world-hud { position: absolute; left: 1.5%; bottom: 6%; z-index: 2; }
.world-count b { font-size: clamp(44px, 6vw, 72px); line-height: 1; color: var(--aqua); font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(168,232,227,.45); margin-right: 8px; }
.world-count span { color: rgba(255,255,255,.65); font-size: 15px; }
.lit-now { font-size: 15px; min-height: 1.7em; margin: 6px 0 0; }
.lit-now span { color: rgba(255,255,255,.5); margin-right: 10px; }
.lit-now b { color: var(--glow); }

/* Footprint: one country at a time */
.zoom { background: linear-gradient(180deg, var(--night), #0d2b3b 60%, var(--night)); color: #fff; padding: 30px 0 100px; position: relative; overflow: hidden; }
.zoom::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 420px at 72% 38%, rgba(47,181,166,.2), transparent 70%); pointer-events: none; }
.zoom p { font-size: 18px; color: rgba(255,255,255,.75); margin: 0 0 14px; max-width: 26em; }
.zoom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.zoom-tabs { display: flex; gap: 8px; margin: 26px 0 6px; flex-wrap: wrap; }
.zoom-tabs button { position: relative; overflow: hidden; font: inherit; font-size: 16px; font-weight: 700; color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 99px; padding: 8px 20px; cursor: pointer; transition: color .3s, background .3s, border-color .3s; }
.zoom-tabs button:hover { color: #fff; border-color: rgba(168,232,227,.5); }
.zoom-tabs button[aria-selected="true"] { color: var(--night); background: var(--aqua); border-color: var(--aqua); }
.zoom-tabs button:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.zoom-tabs i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--night); opacity: .45; transform: scaleX(0); transform-origin: left; }
.zoom-tabs button.run i { animation: tabRun var(--dur, 7s) linear forwards; }
@keyframes tabRun { to { transform: scaleX(1); } }
.counters { display: flex; gap: 34px; margin: 24px 0 6px; }
.counters b { display: block; font-size: clamp(44px, 6vw, 64px); line-height: 1; color: var(--aqua); font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(168,232,227,.4); }
.counters span { color: rgba(255,255,255,.65); font-size: 15px; }
.zoom-map { position: relative; aspect-ratio: 3 / 4; max-height: 720px; width: 100%; }
.zoom-svg { position: absolute; inset: 0; transition: opacity .35s, transform .6s var(--ease), filter .35s; }
.zoom-svg.out { opacity: 0; transform: scale(.94); filter: blur(8px); }
.zoom-svg svg { width: 100%; height: 100%; overflow: visible; }
.zoom-svg path { fill: #1d3a4b; stroke: #0b2130; stroke-width: .6; transition: fill .6s var(--ease), filter .6s; }
.zoom-svg path.lit { fill: #3cc4b4; filter: drop-shadow(0 0 6px rgba(60,196,180,.85)); }
.zoom-svg path.lit.hot { fill: #ffc36b; filter: drop-shadow(0 0 10px rgba(246,169,59,1)); }
.zoom-svg rect { fill: none; stroke: rgba(255,255,255,.18); stroke-dasharray: 3 4; }
.explore-shots { display: flex; align-items: flex-start; justify-content: center; gap: 50px; margin-top: 70px; perspective: 1200px; }
.explore-shots .phone { width: 280px; }
.explore-shots .phone:nth-child(2) { margin-top: 80px; }

/* Floating islands: clips from the app's Explore tab, edges faded into the page */
.isles { --isle-bg: #eef1f4; background: radial-gradient(900px 520px at 70% 50%, #f8fafb, var(--isle-bg) 70%); padding: 120px 0; overflow: hidden; }
.isles-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
.isles p { font-size: 18px; color: var(--ink-soft); margin: 0; max-width: 26em; }
.isle-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.isle-tabs button { position: relative; overflow: hidden; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 7px 18px; cursor: pointer; transition: color .3s, background .3s, border-color .3s, box-shadow .3s; }
.isle-tabs button:hover { color: var(--ink); border-color: rgba(47,181,166,.5); }
.isle-tabs button[aria-selected="true"] { color: #fff; background: var(--aqua-ink); border-color: var(--aqua-ink); box-shadow: 0 8px 20px rgba(47,181,166,.3); }
.isle-tabs button:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.isle-tabs i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #fff; opacity: .55; transform: scaleX(0); transform-origin: left; }
.isle-tabs button.run i { animation: tabRun var(--dur, 9s) linear forwards; }
.isle-tabs button.hold i { animation-play-state: paused; }
.isle-cap { margin: 18px 0 0; min-height: 2.2em; }
.isle-cap b { font-size: clamp(40px, 5vw, 56px); line-height: 1; color: var(--aqua-ink-lg); font-variant-numeric: tabular-nums; margin-right: 10px; }
.isle-cap span { color: var(--ink-soft); font-size: 16px; }
.isle-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; }
.isle-video { display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.isle-video.out { opacity: 0; transform: scale(.96); }

/* Scroll progress */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; background: linear-gradient(90deg, var(--aqua-deep), var(--glow)); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px rgba(246,169,59,.6); pointer-events: none; }

/* Hero toasts */
.toasts { position: absolute; left: -70px; bottom: 16%; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; z-index: 3; }
.toast { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 16px; padding: 9px 16px 9px 10px; font-size: 14.5px; font-weight: 700; box-shadow: 0 14px 34px rgba(0,0,0,.3); animation: toastIn .6s var(--ease) both; white-space: nowrap; }
.toast::before { content: ""; width: 26px; height: 26px; border-radius: 8px; flex: none; background: radial-gradient(circle at 50% 50%, #fff 0 3px, transparent 3.5px), linear-gradient(135deg, var(--aqua-deep), #1f8f84); box-shadow: 0 0 0 3px rgba(47,181,166,.2); }
.toast.country::before { background: radial-gradient(circle at 50% 50%, #fff 0 3px, transparent 3.5px), linear-gradient(135deg, #ffc36b, var(--glow)); box-shadow: 0 0 0 3px rgba(246,169,59,.22); }
.toast span { color: var(--ink-soft); font-weight: 500; }
.toast.out { animation: toastOut .5s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-24px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* Phone screen sheen */
.phone::before { content: ""; position: absolute; inset: 10px; border-radius: 39px; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.2) 48%, rgba(255,255,255,0) 58%) no-repeat; background-size: 300% 100%; background-position: 140% 0; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { background-position: 140% 0; } 85%, 100% { background-position: -40% 0; } }


/* Ticker, second row */
.ticker.rev { border-top: 0; padding-top: 0; color: rgba(255,226,176,.7); }
.ticker.rev .ticker-track { animation-direction: reverse; animation-duration: 60s; }
.ticker.rev .ticker-track span::before { color: var(--aqua-deep); }

/* Trust */
.trust { background: var(--paper); padding: 120px 0; }
.trust h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 12px; text-align: center; }
.trust .sub { color: var(--ink-soft); margin: 0 0 50px; font-size: 19px; text-align: center; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 20px 50px rgba(15,37,51,.06); transition: transform .4s var(--ease), box-shadow .4s; }
.trust-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(15,37,51,.12); }
.trust-card svg { width: 48px; height: 48px; fill: none; stroke: var(--aqua-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.trust-card svg path, .trust-card svg circle { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.trust-card.in svg path, .trust-card.in svg circle { stroke-dashoffset: 0; }
.trust-card svg .slash { stroke: var(--glow); }
.trust-card h3 { margin: 0 0 8px; font-size: 20px; }
.trust-card p { margin: 0; color: var(--ink-soft); }
.trust-link { text-align: center; margin: 34px 0 0; }
.trust-link a { color: var(--aqua-ink); font-weight: 700; }

/* FAQ */
.faq { padding: 60px 0 120px; background: #fff; }
.faq h2 { text-align: center; font-size: clamp(28px, 4vw, 38px); margin: 0 0 30px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; margin: 0 auto 12px; max-width: 780px; overflow: hidden; transition: background .3s, border-color .3s; }
.faq details[open] { background: #fff; border-color: rgba(47,181,166,.45); box-shadow: 0 14px 40px rgba(15,37,51,.07); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; padding: 19px 56px 19px 24px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 24px 20px; color: var(--ink-soft); }
.faq details > div p { margin: 0; }

/* Closing */
.closing { position: relative; overflow: hidden; background: var(--night); color: #fff; text-align: center; padding: 130px 0; }
.closing::before { content: ""; position: absolute; inset: 0; background: url("/assets/shots/hero-map.jpg") center / cover; filter: brightness(1.3) saturate(1.3); opacity: .9; }
/* Browsers without image-set() type() keep the JPEG from the shorthand above. */
.hero-map, .closing::before { background-image: image-set(url("/assets/shots/hero-map.avif") type("image/avif"), url("/assets/shots/hero-map.jpg") type("image/jpeg")); }
.closing .wrap { pointer-events: none; }
.closing .wrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(860px, 170%); height: 160%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(11,33,48,.82) 35%, rgba(11,33,48,0)); }
.closing .wrap > * { position: relative; }
.closing-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 24px; box-shadow: 0 0 60px rgba(246,169,59,.35); }
.closing h2 { font-size: clamp(32px, 5vw, 54px); line-height: 1.2; margin: 0 0 14px; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.closing p { color: rgba(255,255,255,.8); font-size: 18px; margin: 0; }

/* Footer */
footer { background: var(--night); color: rgba(255,255,255,.62); padding: 34px 0 48px; font-size: 14px; }
footer nav a { margin-right: 22px; text-decoration: none; color: rgba(255,255,255,.85); }
footer nav a:hover { text-decoration: underline; }
footer p { margin: 12px 0 0; }
.credits { font-size: 12.5px; color: rgba(255,255,255,.45); }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="phone"] { transform: translateY(80px) rotateX(18deg) rotateZ(-3deg) scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js [data-split] { opacity: 1; transform: none; filter: none; }
.js .ch { display: inline-block; opacity: 0; transform: translateY(.7em) rotate(8deg); filter: blur(6px); transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--i) * 32ms); }
.js .in .ch { opacity: 1; transform: none; filter: none; }

/* Policy pages: fog header, one card per section, contents list that follows the reader */
.page-hero { position: relative; overflow: hidden; background: var(--night); color: #fff; min-height: 52vh; display: flex; align-items: flex-end; padding: 140px 0 64px; }
.page-hero .hero-stage { animation-duration: 50s; }
.page-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(11,33,48,.94), rgba(11,33,48,.32) 58%, rgba(11,33,48,.6)); }
.page-hero-copy { pointer-events: none; }
.page-hero-copy a { pointer-events: auto; }
.page-hero h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.14; margin: 0 0 16px; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.page-hero .meta { margin: 0; color: rgba(255,255,255,.74); font-size: 15px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.page-hero .meta a { color: var(--aqua); }
.page-hero.full { min-height: 100vh; min-height: 100svh; align-items: center; text-align: center; padding: 100px 0; }
.page-hero.full .lead { margin: 0 auto 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--night); padding: 13px 26px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .3s var(--ease), box-shadow .3s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 110px; }
/* The table of contents is built by script; keep the text in its column so it does not jump when the list appears. */
.legal-layout > .legal { grid-column: 2; }
.toc { position: sticky; top: 92px; display: none; }
.toc.ready { display: block; }
.toc p { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--aqua-ink); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); max-height: calc(100vh - 160px); overflow: auto; }
.toc a { display: block; margin-left: -2px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: 14.5px; line-height: 1.45; transition: color .3s, border-color .3s, padding .3s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 700; border-color: var(--glow); padding-left: 20px; }
.legal { max-width: 760px; margin: 0; padding: 0; counter-reset: sec; }
.legal > p:first-child { font-size: 19px; color: var(--ink-soft); margin: 0 0 26px; }
.legal-sec { position: relative; overflow: hidden; counter-increment: sec; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 30px 22px; margin: 0 0 18px; box-shadow: 0 18px 46px rgba(15,37,51,.05); }
.legal-sec::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--aqua-deep), var(--glow)); transform-origin: top; transition: transform 1.1s var(--ease) .3s; }
.js .legal-sec:not(.in)::before { transform: scaleY(0); }
.legal h2 { font-size: 22px; margin: 24px 0 10px; line-height: 1.4; scroll-margin-top: 96px; }
.legal-sec h2 { display: flex; align-items: baseline; gap: 12px; }
.legal-sec h2::before { content: counter(sec, decimal-leading-zero); flex: none; font-size: 13px; color: var(--aqua-ink); background: rgba(47,181,166,.1); border-radius: 99px; padding: 1px 10px; font-variant-numeric: tabular-nums; }
.legal h3 { font-size: 18px; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 16.5px; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--aqua-ink); }
.legal a { color: var(--aqua-ink); }
.legal code { font-size: .92em; background: rgba(15,37,51,.06); padding: 1px 6px; border-radius: 6px; }
.legal .key-points { list-style: none; padding: 0; display: grid; gap: 12px; }
.key-points li { position: relative; margin: 0; padding: 14px 18px 14px 50px; border-radius: 16px; background: linear-gradient(135deg, rgba(47,181,166,.08), rgba(246,169,59,.06)); border: 1px solid rgba(47,181,166,.18); }
.key-points li::before { content: ""; position: absolute; left: 19px; top: 1.3em; width: 12px; height: 12px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px rgba(246,169,59,.18), 0 0 14px rgba(246,169,59,.8); animation: pulse 2.4s ease-in-out infinite; }
.key-points li:nth-child(2)::before { animation-delay: .8s; }
.key-points li:nth-child(3)::before { animation-delay: 1.6s; }
.top nav a[aria-current] { color: #fff; }
.top nav a[aria-current]::after { transform: scaleX(1); }

/* Film */
.film { background: radial-gradient(900px 600px at 78% 45%, #123a4d, var(--night) 70%); color: #fff; padding: 110px 0; position: relative; overflow: hidden; }
.film-grid { display: grid; grid-template-columns: 1fr 340px; gap: 80px; align-items: center; }
.film p { color: rgba(255,255,255,.72); font-size: 18px; margin: 0; max-width: 30em; }
.film-box { position: relative; isolation: isolate; padding: 10px; border-radius: 36px; background: linear-gradient(150deg, #3a4b57, #0c141a 60%); box-shadow: 0 40px 90px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.12); transform-origin: 50% 90%; }
.film-video { display: block; width: 100%; height: auto; aspect-ratio: 886 / 1920; border-radius: 27px; background: var(--night); cursor: pointer; }

/* ---------- Motion ---------- */
@property --hole { syntax: "<percentage>"; inherits: false; initial-value: -14%; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }

/* First visit: the page opens out of the fog (once per tab, see the inline script) */
.intro { position: fixed; inset: 0; z-index: 100; pointer-events: none; background: radial-gradient(circle at 50% 50%, #164357, var(--night) 65%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 14%));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 14%));
  animation: introOpen 1.15s cubic-bezier(.7, 0, .2, 1) .8s forwards, introFade 1.15s linear .8s forwards; }
@keyframes introOpen { to { --hole: 130%; } }
@keyframes introFade { 0%, 65% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.intro-mark { position: fixed; left: 50%; top: 50%; z-index: 101; display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; font-size: 20px; letter-spacing: .08em; pointer-events: none; translate: -50% -50%; animation: markOut .6s cubic-bezier(.6, 0, .3, 1) .8s forwards; }
.intro-mark img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 70px rgba(246,169,59,.55); animation: markIn .8s var(--ease) both; }
.intro-mark b { animation: markIn .8s var(--ease) .12s both; }
@keyframes markIn { from { opacity: 0; transform: scale(.7) translateY(10px); filter: blur(8px); } }
@keyframes markOut { to { opacity: 0; scale: 1.6; filter: blur(10px); visibility: hidden; } }
.seen .intro, .seen .intro-mark { display: none; }

/* Hero: copy waits for the intro, the headline flips up, the glowing words land last */
html.js:not(.seen) .hero { --intro: .85s; }
.js .hero [data-reveal] { transition-delay: calc(var(--d, 0s) + var(--intro, 0s)); }
.js .hero [data-reveal="phone"]:not(.in) { transform: translateY(120px) rotateY(-26deg) rotateX(14deg) scale(.86); }
.hero h1 { perspective: 700px; }
.js .hero .ch { transform: translateY(.55em) rotateX(-75deg); transform-origin: 50% 100%; transition-duration: .9s, 1.1s, .9s; transition-delay: calc(var(--intro, 0s) + .1s + var(--i) * 55ms); }
.js .hero .in .ch { transform: none; }
.js .glow-text.ch { transform: scale(1.35); letter-spacing: .35em; filter: blur(16px) drop-shadow(0 0 18px rgba(246,169,59,.45)); transition: opacity .9s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease), letter-spacing 1.2s var(--ease); transition-delay: calc(var(--intro, 0s) + .25s + var(--i) * 55ms); }
.js .in .glow-text.ch { transform: none; letter-spacing: inherit; filter: blur(0) drop-shadow(0 0 18px rgba(246,169,59,.45)); }
.hero-phone .phone { animation: floaty 6.5s ease-in-out infinite; }
@keyframes floaty { 50% { translate: 0 -14px; } }

/* "Coming to the App Store" badge: a light passes over it */
.store { position: relative; overflow: hidden; }
.store::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; background: linear-gradient(105deg, transparent 30%, rgba(168,232,227,.85) 46%, rgba(255,214,150,.8) 54%, transparent 70%); transform: translateX(-130%); animation: storeShine 5s var(--ease) 2.6s infinite; }
@keyframes storeShine { 0% { transform: translateX(-130%); } 32%, 100% { transform: translateX(130%); } }

/* Tickers are moved by main.js so they can follow the scroll */
.ticker-track.js-run { animation: none; will-change: transform; }

/* Kicker: a short line draws in before the label */
.kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 10px; vertical-align: .32em; border-radius: 2px; background: linear-gradient(90deg, var(--aqua-deep), var(--glow)); transform-origin: left; transition: transform .9s var(--ease) .25s; }
.js .kicker[data-reveal]:not(.in)::before { transform: scaleX(0); }

/* Film: tips up into place as it scrolls in, with a light running round the frame */
.js .film-box { transform: perspective(1400px) rotateX(calc((1 - var(--fp, 1)) * 34deg)) translateY(calc((1 - var(--fp, 1)) * 90px)) scale(calc(.78 + var(--fp, 1) * .22)); opacity: calc(.1 + var(--fp, 1) * .9); }
.film-box::before, .film-box::after { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 38px; background: conic-gradient(from var(--ang), transparent 0 52%, rgba(47,181,166,.9) 66%, var(--glow) 80%, transparent 94%); animation: spin 5s linear infinite; }
.film-box::after { inset: -10px; border-radius: 46px; filter: blur(26px); opacity: .55; }

/* Dark sections: a soft light follows the pointer */
.spot::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(168,232,227,.12), transparent 62%); opacity: 0; transition: opacity .6s; }
.spot.lit-up::after { opacity: 1; }

/* Fog map: the phone stays put while the app's own map zooms out with the scroll */
section.feature-scrub { padding: 0; height: 240vh; }
.scrub-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.scrub-pin > .wrap { width: 100%; }
.feature-scrub .shot .phone { width: min(300px, calc((100svh - 150px) * .46)); }
.scrub-canvas { position: absolute; left: 10px; top: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 39px; opacity: 0; transition: opacity .5s; }
.scrub-canvas.on { opacity: 1; }

/* Privacy cards: flip up, and a light runs round the border on hover */
.js .trust-card[data-reveal]:not(.in) { transform: perspective(900px) rotateX(32deg) translateY(60px) scale(.94); }
.trust-card { position: relative; }
.trust-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--ang), transparent 0 50%, var(--aqua-deep) 68%, var(--glow) 82%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s; animation: spin 4s linear infinite; }
.trust-card:hover::before { opacity: 1; }

/* Islands bob gently */
.isle-video { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }

/* Closing: rings go out from the icon */
.closing-mark { position: relative; width: 96px; height: 96px; margin: 0 auto 28px; }
.closing-mark .closing-icon { position: relative; z-index: 1; margin: 0; }
.closing-mark i { position: absolute; inset: 0; border-radius: 26px; border: 2px solid rgba(246,169,59,.7); animation: ring 3s var(--ease) infinite; }
.closing-mark i + i { animation-delay: 1.5s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }
.closing .store { margin-top: 26px; }

/* Between pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .3s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .5s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; filter: blur(6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 900px) {
  .top nav a { margin-left: 12px; font-size: 14px; }
  .top nav.sub-nav a:nth-child(n) { display: inline; margin-left: 14px; }
  section.feature-scrub { height: auto; padding: 70px 0; }
  .scrub-pin { position: static; height: auto; display: block; }
  .feature-scrub .shot .phone { width: 250px; }
  .film-box { width: min(280px, 74vw); }
  .page-hero { min-height: 44vh; padding: 120px 0 44px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 0; }
  .legal-layout > .legal { grid-column: auto; }
  .toc { position: sticky; top: 62px; z-index: 20; margin: 0 -20px; padding: 10px 0; background: rgba(245,248,249,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .toc p { display: none; }
  .toc ol { display: flex; gap: 8px; overflow-x: auto; border: 0; padding: 0 20px; max-height: none; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a, .toc a.on { white-space: nowrap; margin: 0; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 13.5px; }
  .toc a.on { background: var(--night); color: #fff; border-color: var(--night); }
  .legal h2 { font-size: 20px; scroll-margin-top: 130px; }
  .legal-sec { padding: 2px 20px 18px; }
  .top nav a:nth-child(2) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 100px; }
  .hero-phone .phone { width: min(250px, 62vw); }
  .hero-shade { background: linear-gradient(180deg, rgba(11,33,48,.55), rgba(11,33,48,.2) 50%, rgba(11,33,48,.92)); }
  .what-grid, .feature-grid, .zoom-grid, .isles-grid { grid-template-columns: 1fr; gap: 40px; }
  .isles { padding: 80px 0; }
  .isle-stage { max-width: 440px; }
  .top nav a:nth-child(3) { display: none; }
  .feature-grid.flip .shot { order: 0; }
  .feature .shot .phone { width: 250px; }
  section.feature { padding: 70px 0; }
  .zoom-map { max-width: 440px; margin: 0 auto; width: 100%; aspect-ratio: var(--ar, 3 / 4); }
  .globe { padding: 90px 0 60px; }
  .film { padding: 80px 0; }
  .film-grid { grid-template-columns: 1fr; gap: 36px; }
  .film-box { width: min(300px, 80vw); margin: 0 auto; }
  .zoom { padding-top: 50px; }
  .world { aspect-ratio: 4 / 3; margin: 0 -20px; width: auto; }
  .world-hud { position: static; padding: 14px 0 0; }
  .world-tag { font-size: 12px; }
  .toasts { left: auto; right: -6px; bottom: 6%; align-items: flex-end; }
  .toast { font-size: 13px; padding: 7px 13px 7px 8px; }
  .toast::before { width: 22px; height: 22px; }
  .counters { gap: 26px; }
  .explore-shots { gap: 18px; }
  .explore-shots .phone { width: 46%; border-radius: 30px; padding: 6px; }
  .explore-shots .phone img, .explore-shots .phone::after, .explore-shots .phone::before { border-radius: 25px; inset: 6px; }
  .explore-shots .phone:nth-child(2) { margin-top: 40px; }
  .trust-grid { grid-template-columns: 1fr; }
  .rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .js .ch { opacity: 1; transform: none; filter: none; }
  .js .glow-text.ch { letter-spacing: inherit; filter: drop-shadow(0 0 18px rgba(246,169,59,.45)); }
  html { scroll-behavior: auto; }
  .intro, .intro-mark { display: none; }
  section.feature-scrub { height: auto; padding: 110px 0; }
  .scrub-pin { position: static; height: auto; display: block; }
  @view-transition { navigation: none; }
}
