:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-tint: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --card: #ffffff;
  --card-line: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-strong: #0058b0;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-tint: #0d0d0f;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;
    --line: #29292b;
    --card: #1a1a1c;
    --card-line: rgba(255, 255, 255, 0.10);
    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --accent-strong: #7fbcff;
    --accent-soft: rgba(41, 151, 255, 0.12);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(0, 0, 0, 0.66);
  }
}

:root[data-theme="light"] {
  --bg: #ffffff; --bg-tint: #f5f5f7; --text: #1d1d1f; --text-2: #6e6e73; --text-3: #86868b;
  --line: #d2d2d7; --card: #ffffff; --card-line: rgba(0,0,0,0.08); --accent: #0071e3;
  --accent-hover: #0077ed; --accent-strong: #0058b0; --accent-soft: rgba(0,113,227,0.08);
  --shadow: 0 10px 40px rgba(0,0,0,0.08); --nav-bg: rgba(255,255,255,0.72);
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-tint: #0d0d0f; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #6e6e73;
  --line: #29292b; --card: #1a1a1c; --card-line: rgba(255,255,255,0.10); --accent: #2997ff;
  --accent-hover: #47a6ff; --accent-strong: #7fbcff; --accent-soft: rgba(41,151,255,0.12);
  --shadow: 0 10px 40px rgba(0,0,0,0.5); --nav-bg: rgba(0,0,0,0.66);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: 0.6rem; z-index: 60;
  transform: translateY(-200%);
  background: var(--text); color: var(--bg); border-radius: 8px;
  padding: 0.5rem 0.9rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.wrap { max-width: 1000px; margin: 0 auto; padding-inline: 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 22px; height: 50px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-glyph { color: var(--accent); }
.nav-cta {
  font-size: 14px; font-weight: 500; color: #fff; text-decoration: none;
  background: var(--accent); padding: 6px 15px; border-radius: 980px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--accent-hover); }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(46px, 8.5vw, 88px); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 700; line-height: 1.06; }
h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 600; letter-spacing: -0.014em; }

.eyebrow {
  margin: 0 0 14px; color: var(--accent); font-weight: 600;
  font-size: clamp(15px, 1.7vw, 18px); letter-spacing: 0;
}
p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 17px; font-weight: 500; text-decoration: none; border-radius: 980px;
  padding: 12px 22px; transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-plain { color: var(--accent); padding: 12px 6px; }
.btn-plain:hover { text-decoration: underline; }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 13vh, 150px) 0; scroll-margin-top: 60px; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: #000; color: #f5f5f7; }
.section-dark .eyebrow { color: #2997ff; }
.section-dark .section-sub { color: #a1a1a6; }
.center-head { max-width: 780px; margin: 0 auto; text-align: center; }
.section-sub {
  margin: 20px auto 0; max-width: 640px; color: var(--text-2);
  font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(72px, 12vh, 120px) 22px clamp(70px, 11vh, 120px);
  max-width: 1000px; margin: 0 auto;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero-sub {
  margin: 24px auto 0; max-width: 620px; color: var(--text-2);
  font-size: clamp(19px, 2.3vw, 23px); line-height: 1.45;
}
.hero-actions { margin-top: 34px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-visual { margin: clamp(56px, 8vh, 88px) auto 0; max-width: 470px; }

/* ---------- Bento ---------- */
.bento {
  margin-top: clamp(44px, 6vh, 72px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.tile {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 26px;
  padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--shadow);
}
.tile-wide { grid-column: 1 / -1; }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--text-2); font-size: 17px; line-height: 1.5; max-width: 46ch; }
.tile-airports { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tile-airports span {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-strong); background: var(--accent-soft);
  border-radius: 8px; padding: 6px 11px;
}
.tile-airports span:last-child { color: var(--text-3); background: transparent; }
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
}

/* ---------- Map ---------- */
.map-wrap {
  margin-top: clamp(40px, 6vh, 64px); border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); line-height: 0;
}
.atlas-map { display: block; width: 100%; height: auto; }

/* ---------- Ticket ---------- */
.ticket {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: 22px; box-shadow: var(--shadow); padding: 6px 6px 14px; text-align: left;
}
.ticket-standalone { max-width: 520px; margin: clamp(40px, 6vh, 60px) auto 0; }
.ticket-header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 18px 14px; border-bottom: 1px dashed var(--card-line);
}
.ticket-header span { font-weight: 600; font-size: 16px; }
.ticket-header strong { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.route-row {
  margin: 12px 12px 0; padding: 14px 16px;
  border: 1px solid var(--card-line); border-radius: 16px; background: var(--bg);
}
.route-row.best {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--card-line));
  background: var(--accent-soft);
}
.route-track { display: flex; align-items: center; margin-bottom: 12px; }
.rn {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--text); background: var(--bg-tint);
  border: 1px solid var(--card-line); border-radius: 8px; padding: 4px 8px;
}
.section-dark .rn, .route-row .rn { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.rleg {
  flex: 1 1 auto; position: relative; height: 20px; min-width: 34px;
  display: flex; align-items: center; justify-content: center;
}
.rleg::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%;
  border-top: 2px dashed color-mix(in srgb, var(--accent) 62%, var(--card-line));
}
.rleg.drive::before { border-top-color: #e2892f; }
.rleg-ico {
  position: relative; z-index: 1; font-size: 15px; line-height: 1;
  background: var(--bg); padding: 0 4px; color: var(--accent);
}
.rleg.drive .rleg-ico { color: #e2892f; }
.route-row.best .rleg-ico { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.rleg-price {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 8%, var(--card)); padding: 0 3px; white-space: nowrap;
}
.route-info { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.route-name { color: var(--text-2); font-size: 15px; }
.route-cost { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.route-cost.muted { color: var(--text-2); font-weight: 600; }
.route-row.best .route-cost { color: var(--accent); }
.ticket-foot { margin: 14px 18px 4px; color: var(--text-2); font-size: 14px; }

/* ---------- Waitlist ---------- */
.section-cta { background: var(--bg-tint); text-align: center; }
.waitlist-form { margin: 32px auto 0; max-width: 460px; }
.form-row { display: flex; gap: 10px; }
.waitlist-form input {
  flex: 1; font: inherit; font-size: 17px; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; min-width: 0;
}
.waitlist-form input::placeholder { color: var(--text-3); }
.waitlist-form button {
  font: inherit; font-size: 17px; font-weight: 500; color: #fff; cursor: pointer;
  background: var(--accent); border: 0; border-radius: 12px; padding: 13px 22px;
  white-space: nowrap; transition: background 0.2s ease;
}
.waitlist-form button:hover { background: var(--accent-hover); }
.form-message { margin-top: 14px; color: var(--text-3); font-size: 14px; }
.form-message.is-error { color: #d8342a; }
.form-message.is-success { color: var(--accent-strong); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-tint); border-top: 1px solid var(--line); padding: 40px 0; }
.footer p { color: var(--text-3); font-size: 13px; }
.footer-legal { margin-top: 6px; }

/* ---------- Reveal ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(20px); }
.reveal-ready .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.65, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  * { transition: none !important; }
}

@media (max-width: 560px) {
  .form-row { flex-direction: column; }
  .waitlist-form button { width: 100%; }
  .route-cost { font-size: 26px; }
}
