:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --line: rgba(17, 17, 17, 0.08);
  --paper: #f6f7f9;
  --card: #ffffff;
  --ok: #14804a;
  --ok-bg: #e8f8ef;
  --warn: #9a6208;
  --warn-bg: #fff4df;
  --bad: #c43838;
  --bad-bg: #ffecec;
  --shadow: 0 12px 40px rgba(28, 28, 40, 0.1);
  --sans: "Inter Tight", "Segoe UI", sans-serif;
  --mono: "Inter Tight", "Segoe UI", sans-serif;
  --serif: "Inter Tight", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.45;
}
body.home {
  background:
    radial-gradient(42% 36% at 12% 8%, rgba(125, 196, 255, 0.85), transparent 70%),
    radial-gradient(36% 32% at 88% 12%, rgba(255, 186, 122, 0.7), transparent 68%),
    radial-gradient(40% 40% at 72% 78%, rgba(126, 214, 190, 0.55), transparent 70%),
    radial-gradient(30% 28% at 20% 70%, rgba(186, 164, 255, 0.4), transparent 70%),
    linear-gradient(180deg, #d5e6f6 0%, #f6f3ec 55%, #e7eef5 100%);
  background-attachment: fixed;
}
a { color: inherit; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: white;
  padding: 0.5rem 0.8rem;
  z-index: 8;
}
.skip:focus { top: 1rem; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 5vw;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 6;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}
.mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  background: #111;
  color: white;
  display: grid;
  place-items: center;
}
.mark svg { width: 1.05rem; height: 1.05rem; }
.nav-links { display: flex; gap: 1.35rem; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: #3f3f3f;
  font-size: 0.98rem;
  font-weight: 500;
}
.nav-links a[aria-current="page"], .nav-links a:hover { color: #111; }
.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.45rem 0.85rem !important;
  font-weight: 700 !important;
  color: #111 !important;
}
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
  text-align: center;
  padding: 3.4rem 1.25rem 0;
}
.mesh { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.7;
}
.orb.a { width: 420px; height: 420px; left: -4%; top: 6%; background: rgba(120, 190, 255, 0.55); filter: blur(30px); animation: drift 16s ease-in-out infinite; }
.orb.b { width: 360px; height: 360px; right: -2%; top: 22%; background: rgba(255, 176, 110, 0.5); filter: blur(28px); animation: drift 20s ease-in-out infinite reverse; }
.orb.c { width: 280px; height: 280px; left: 38%; top: 48%; background: rgba(170, 150, 255, 0.4); filter: blur(26px); animation: drift 13s ease-in-out infinite; }
.hero-copy { position: relative; z-index: 1; }
.hero label.skip {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.kicker.show {
  display: inline-block;
  margin: 0 0 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6d5a32;
}
h1 .line {
  display: inline-block;
  animation: rise 0.8s ease both;
}
h1 .line:nth-child(2) { animation-delay: 0.12s; }
.hero-copy { width: min(760px, 100%); margin: 0 auto; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.045em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 4.7rem); line-height: 0.98; margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; margin: 0 0 0.55rem; }
.lede {
  font-size: 1.12rem;
  max-width: 40rem;
  margin: 0 auto 1.35rem;
  color: #5e5e5e;
}
.eyebrow { display: none; }
.search {
  display: flex;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 30px rgba(30, 50, 80, 0.08);
  padding: 0.35rem;
  border-radius: 999px;
  max-width: 34rem;
  margin: 0 auto;
}
.search input, .search input[type="text"] {
  flex: 1;
  width: auto;
  border: 0;
  background: transparent;
  color: #111;
  color-scheme: light;
  padding: 0.72rem 1rem;
  outline: none;
  border-radius: 999px;
}
.search input::placeholder, .search input[type="text"]::placeholder { color: #8a8a8a; }
.search button, .btn {
  border: 0;
  background: #111;
  color: white;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn.secondary { background: #fff; color: #111; border: 1px solid #ddd; }
.hint { margin: 0.75rem 0 0; color: #8a8a8a; font-size: 0.88rem; }

.showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 300px minmax(220px, 1fr);
  gap: 1.1rem 1.4rem;
  align-items: center;
  width: min(1080px, 100%);
  margin: 2.6rem auto 0;
}
.rail { display: grid; gap: 0.85rem; }
.screen {
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #c5ddf3 0%, #9ec3e4 55%, #d5e6c8 100%);
  position: relative;
  text-align: left;
}
.cloud {
  position: absolute;
  height: 28px;
  width: 78px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  filter: blur(0.2px);
  z-index: 0;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}
.cloud::before { width: 28px; height: 28px; left: 12px; top: -12px; }
.cloud::after { width: 36px; height: 36px; left: 32px; top: -16px; }

.float-card {
  position: relative;
  z-index: 3;
  overflow: hidden;
  width: 100%;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(22px) saturate(1.75);
  -webkit-backdrop-filter: blur(22px) saturate(1.75);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 16px 40px rgba(30, 50, 80, 0.1);
  padding: 0.85rem 0.95rem;
  text-align: left;
  animation: rise 0.7s ease both;
}
.float-card::after, .beat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.55) 48%, transparent 64%);
  transform: translateX(-130%);
  animation: gloss 8s ease-in-out infinite;
  pointer-events: none;
}
.rail .float-card:nth-child(2) { animation-delay: 0.08s; }
.rail .float-card:nth-child(3) { animation-delay: 0.16s; }
.float-card strong { display: block; font-size: 0.95rem; letter-spacing: -0.03em; }
.float-card p { margin: 0.15rem 0 0; color: #666; font-size: 0.82rem; }
.float-card .ico {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.ico.ok { background: #e7f8ee; }
.ico.warn { background: #fff1d6; }
.ico.bad { background: #ffe8e8; }
.ico.info { background: #e8f1ff; }
.band {
  background: linear-gradient(180deg, rgba(16, 28, 44, 0.72), rgba(18, 36, 52, 0.82));
  color: #f4f7fb;
}
.band .quiet { color: #c5d0da; }
.band .panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  color: #f4f7fb;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.band .result { background: rgba(8, 16, 28, 0.35); }
.band input, .band select { background: #102033; color: #f4f7fb; border-color: #2c4458; }

.modes {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: -0.4rem auto 0;
  position: relative;
  z-index: 4;
}
.modes a {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  color: #102033;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.modes a:first-child { background: rgba(16, 32, 51, 0.78); color: white; border-color: transparent; }

.ticker { overflow: hidden; margin-top: 2.4rem; border-top: 1px solid var(--line); padding: 0.9rem 0; }
.ticker-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  animation: ticker 32s linear infinite;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #c5c5c5;
  font-size: 1.35rem;
}

.section { padding: 3.4rem 5vw; }
.section h2 { max-width: none; }
.section-head {
  width: min(1120px, 100%);
  margin: 0 auto 1.2rem;
  text-align: center;
}
.section-head .btn { margin-top: 0.8rem; }
.quiet { color: var(--muted); margin: 0; }
.grid, .split, .page { width: min(1120px, 100%); margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.panel, .airport-card, .trip {
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), var(--shadow);
}
.airport-card {
  padding: 1rem 1rem 0.9rem;
  text-decoration: none;
  color: inherit;
  min-height: 8.4rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  animation: rise 0.6s ease both;
}
.airport-card:hover { transform: translateY(-3px); transition: transform 0.2s ease; }
.iata { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.04em; }
.city { color: var(--muted); }
.airport-card .pill { margin-top: auto; align-self: flex-start; }
.panel { padding: 1.3rem; text-align: left; }
.kicker { margin: 0; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1rem; }
.metric { background: var(--paper); border-radius: 0.9rem; padding: 0.7rem; }
.metric span { display: block; color: var(--muted); font-size: 0.75rem; }
.metric strong { font-weight: 700; }
.raw { margin: 0.9rem 0 0; font-size: 0.75rem; color: var(--muted); }
.spread { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--paper);
}
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.muted { background: var(--paper); color: var(--muted); }

label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.3rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
input[type="text"], input[type="time"], input[type="date"], select {
  width: 100%;
  border: 1px solid #e4e4e4;
  background: #fff;
  border-radius: 0.8rem;
  padding: 0.7rem 0.75rem;
}
.check { display: flex; gap: 0.5rem; align-items: center; margin: 0.8rem 0; }
.result { margin-top: 0.4rem; padding: 1rem; border-radius: 1rem; background: var(--paper); }
.result strong { display: block; font-size: 1.8rem; font-weight: 800; }

.page { padding: 2.2rem 0 3rem; }
.page-wrap { padding: 0 5vw 3rem; }
.toolbar { display: flex; gap: 0.7rem; align-items: center; margin: 0.4rem 0 1rem; flex-wrap: wrap; }
.toolbar input[type="text"] { max-width: 18rem; }
.map-wrap { background: #123; border-radius: 1.4rem; overflow: hidden; position: relative; }
#sky { height: min(70vh, 680px); width: 100%; background: #123; }
.plane-pin { background: transparent; border: 0; }
.plane-pin span {
  display: block;
  width: 18px;
  height: 18px;
  margin-left: -2px;
  color: #fff;
  font-size: 16px;
  line-height: 18px;
  text-align: center;
  text-shadow: 0 0 2px #000, 0 1px 2px #000;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.8));
}
.plane-pin.hot span { color: #ffe08a; font-size: 20px; }
.leaflet-control-attribution { font-size: 10px; }
.table-wrap { overflow: auto; margin-top: 0.8rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
tr.hot { background: #f4f7ff; }
.status-line { min-height: 1.4rem; color: var(--muted); }
.detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1rem; margin-bottom: 1rem; }
.stack { display: flex; flex-direction: column; gap: 0.7rem; }
.trip { padding: 1rem 1.1rem; display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; }
.trip p { margin: 0; }
.ghost { background: transparent; border: 0; color: var(--bad); cursor: pointer; }

.site-footer {
  padding: 2rem 5vw 2.6rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}
.site-footer p { width: min(1120px, 100%); margin: 0.3rem auto; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, 18px, 0) scale(1.08); }
}
@keyframes dash {
  to { stroke-dashoffset: -72; }
}
@keyframes ping {
  0% { opacity: 1; }
  70% { opacity: 0.35; }
  100% { opacity: 1; }
}
@keyframes gloss {
  0%, 55% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}
.film { position: relative; }
.film-row {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.beat {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 1.5rem;
  padding: 1.15rem;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow);
  min-height: 220px;
}
.beat h3 { margin: 0.35rem 0; font-size: 1.25rem; }
.beat p { margin: 0 0 0.9rem; color: var(--muted); }
.beat-no {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #b08948;
}
.reveal { animation: rise 0.7s ease both; }
.film-row .reveal:nth-child(2) { animation-delay: 0.08s; }
.film-row .reveal:nth-child(3) { animation-delay: 0.16s; }
.film-row .reveal:nth-child(4) { animation-delay: 0.24s; }
.airport-card:nth-child(2) { animation-delay: 0.05s; }
.airport-card:nth-child(3) { animation-delay: 0.1s; }
.airport-card:nth-child(4) { animation-delay: 0.15s; }
.airport-card:nth-child(5) { animation-delay: 0.2s; }
.airport-card:nth-child(6) { animation-delay: 0.25s; }
.airport-card:nth-child(7) { animation-delay: 0.3s; }
.airport-card:nth-child(8) { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 980px) {
  .showcase { grid-template-columns: 1fr; max-width: 420px; }
  .split, .grid, .detail, .film-row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu { display: block; position: relative; }
  .menu[open] .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 2.1rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(1.5);
    padding: 0.8rem;
    border-radius: 0.9rem;
    min-width: 11rem;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }
  .menu:not([open]) .nav-links { display: none; }
}
.app-body { min-height: 100dvh; background: #fff; }
.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
}
.app-top .quiet { font-size: 0.78rem; text-align: right; }
#panel { padding: 0 1rem 5.5rem; }
.app-note { margin: 0.2rem 0 0.7rem; }
.app-body #sky { height: 46vh; min-height: 240px; border-radius: 1rem; }
.app-list { display: grid; gap: 0.55rem; margin-top: 0.8rem; }
.app-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.8rem;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: #f6f6f4;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
}
.app-form { margin-bottom: 0.8rem; }
.app-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0.45rem 0.45rem calc(0.45rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e6e6e6;
}
.app-tabs button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 650;
  padding: 0.55rem 0.2rem;
  border-radius: 999px;
}
.app-tabs button[aria-current="page"] { background: #111; color: #fff; }

@media (max-width: 640px) {
  .brand { font-size: 1.05rem; }
  .nav-cta { display: none; }
  .grid, .metrics, .fields { grid-template-columns: 1fr; }
  .nav { padding-inline: 1rem; }
  .brand { white-space: nowrap; }
}

/* ===== iOS colors + liquid glass redesign ===== */
:root {
  --ios-blue: #007aff;
  --ios-cyan: #32ade6;
  --ios-teal: #30b0c7;
  --ios-green: #34c759;
  --ios-orange: #ff9500;
  --ios-red: #ff3b30;
  --ios-indigo: #5856d6;
  --ios-purple: #af52de;
  --ios-pink: #ff2d55;
  --ink: #1c1c1e;
  --muted: #636366;
  --paper: rgba(242, 242, 247, 0.7);
  --ok: #248a3d; --ok-bg: rgba(52, 199, 89, 0.18);
  --warn: #b25000; --warn-bg: rgba(255, 149, 0, 0.2);
  --bad: #d70015; --bad-bg: rgba(255, 59, 48, 0.16);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --mono: var(--sans); --serif: var(--sans);
  --glass: rgba(255, 255, 255, 0.28);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.25), 0 18px 50px rgba(0, 60, 140, 0.16);
  --shadow: 0 18px 50px rgba(0, 60, 140, 0.14);
}
body { font-family: var(--sans); letter-spacing: -0.011em; }
body.home {
  background:
    radial-gradient(60% 50% at 15% 5%, rgba(50, 173, 230, 0.75), transparent 70%),
    radial-gradient(50% 45% at 90% 10%, rgba(175, 82, 222, 0.5), transparent 70%),
    radial-gradient(55% 50% at 80% 85%, rgba(255, 149, 0, 0.42), transparent 70%),
    radial-gradient(45% 45% at 10% 80%, rgba(52, 199, 89, 0.4), transparent 70%),
    linear-gradient(180deg, #7cc4ff 0%, #b9dcff 38%, #eaf3ff 70%, #f2f2f7 100%);
  background-attachment: fixed;
}
/* liquid glass: translucent, saturated, with a bright specular edge that follows the pointer */
.nav, .search, .float-card, .beat, .panel, .airport-card, .trip, .modes a, .nav-cta, .band .panel {
  background-color: var(--glass);
  background-image: radial-gradient(240px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.55), transparent 60%);
  backdrop-filter: blur(26px) saturate(2) brightness(1.06);
  -webkit-backdrop-filter: blur(26px) saturate(2) brightness(1.06);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.nav { border-radius: 0 0 1.6rem 1.6rem; margin: 0 1vw; border-top: 0; }
.float-card, .beat, .panel, .airport-card, .trip { border-radius: 1.75rem; }
.band { background: linear-gradient(180deg, rgba(0, 60, 140, 0.55), rgba(20, 30, 90, 0.7)); }
.band .panel { --glass: rgba(255, 255, 255, 0.14); }
.band input, .band select { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.mark { background: linear-gradient(135deg, var(--ios-cyan), var(--ios-blue)); box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4), inset 0 1px 0 rgba(255,255,255,.6); }
.search button, .btn { background: linear-gradient(180deg, #339dff, var(--ios-blue)); box-shadow: 0 8px 20px rgba(0, 122, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); transition: transform 0.2s cubic-bezier(.3, 1.6, .5, 1); }
.search button:hover, .btn:hover { transform: scale(1.06); }
.search button:active, .btn:active { transform: scale(0.96); }
.btn.secondary { background: var(--glass); color: var(--ios-blue); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.modes a:first-child { background: linear-gradient(180deg, #339dff, var(--ios-blue)); }
.kicker.show { color: var(--ios-blue); }
h1 .line { background: linear-gradient(120deg, #0a3d91, var(--ios-blue) 50%, var(--ios-purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-bottom: 0.08em; }
.lede { color: #3a3a3c; }
.hint { color: #48484a; }
.ico.ok { background: rgba(52, 199, 89, 0.25); }
.ico.warn { background: rgba(255, 149, 0, 0.25); } .ico.info { background: rgba(0, 122, 255, 0.2); } .ico.bad { background: rgba(255, 59, 48, 0.2); }
.pill { backdrop-filter: blur(8px); }
.orb.a { background: rgba(0, 122, 255, 0.5); } .orb.b { background: rgba(255, 149, 0, 0.45); } .orb.c { background: rgba(175, 82, 222, 0.45); }
.beat-no { color: var(--ios-orange); }
.airport-card { transition: transform 0.35s cubic-bezier(.2, 1.4, .4, 1), box-shadow 0.3s; }
.airport-card:hover { transform: translateY(-6px) scale(1.03); }

/* stage */
.showcase { grid-template-columns: minmax(200px, 1fr) minmax(340px, 1.5fr) minmax(200px, 1fr); }

/* route map graphic */
.routes-map { width: min(1120px, 100%); margin: 0 auto; border-radius: 2rem; padding: 1rem; background-color: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); backdrop-filter: blur(26px) saturate(2); -webkit-backdrop-filter: blur(26px) saturate(2); overflow: hidden; }
.routes-map svg { width: 100%; height: auto; }
.arc { fill: none; stroke: url(#arcgrad); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 9; animation: dash 3s linear infinite; }
.city-dot { fill: #fff; stroke: var(--ios-blue); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ping 2.8s ease-out infinite; }
.city-label { font: 700 15px var(--sans); fill: #0a2a5e; }

/* scroll reveal */
.js-motion .reveal { animation: none; opacity: 0; transform: translateY(34px) scale(0.97); transition: opacity 0.8s cubic-bezier(.2, .8, .2, 1), transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.js-motion .reveal.in { opacity: 1; transform: none; }
.js-motion .film-row .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-motion .film-row .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-motion .film-row .reveal:nth-child(4) { transition-delay: 0.3s; }
.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.9); animation: twinkle 3s ease-in-out infinite; pointer-events: none; }

@keyframes trail { from { opacity: 0.35; } to { opacity: 0.9; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1.2); } }
@media (max-width: 980px) {
  .showcase { grid-template-columns: 1fr; max-width: 460px; }
}
.nav-cta { text-decoration: none; }
.section-head .btn { display: inline-block; }

/* opening flyover: the plane crosses the whole screen, then the app icon appears */
.intro { display: none; }
.intro-on .intro {
  display: block; position: fixed; inset: 0; z-index: 100; overflow: hidden;
  animation: intro-out 0.7s ease 5.9s forwards;
}
.intro-on body { overflow: hidden; }
.intro-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(50, 173, 230, 0.8), transparent 70%),
    radial-gradient(50% 45% at 85% 15%, rgba(175, 82, 222, 0.5), transparent 70%),
    radial-gradient(55% 50% at 75% 90%, rgba(255, 149, 0, 0.4), transparent 70%),
    linear-gradient(180deg, #4aa8ff 0%, #9fd0ff 55%, #e8f3ff 100%);
}
.intro-plane {
  position: absolute; top: 50%; left: 0; width: clamp(200px, 30vw, 380px); height: auto;
  margin-top: calc(clamp(200px, 30vw, 380px) * -0.24);
  transform: translateX(-120%);
  filter: drop-shadow(0 40px 30px rgba(0, 40, 120, 0.4));
  animation: intro-fly 3.6s cubic-bezier(.45, .05, .35, 1) 0.3s forwards;
}
.intro-trail {
  position: absolute; top: 50%; left: 0; height: 10px; width: 100%; margin-top: -5px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0.95) 70%, transparent);
  filter: blur(4px); transform: scaleX(0); transform-origin: left; opacity: 0;
  animation: intro-trail 3.6s cubic-bezier(.45, .05, .35, 1) 0.3s forwards;
}
.intro-icon {
  position: absolute; left: 50%; top: 50%; display: grid; justify-items: center; gap: 1rem;
  transform: translate(-50%, -50%) scale(0.2); opacity: 0;
  animation: intro-pop 1s cubic-bezier(.2, 1.5, .4, 1) 3.2s forwards;
}
.intro-mark {
  width: clamp(96px, 16vw, 140px); aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center;
  background: linear-gradient(135deg, #5ac8fa, #007aff 60%, #5856d6);
  box-shadow: 0 24px 60px rgba(0, 90, 220, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 0 0 10px rgba(255, 255, 255, 0.25);
}
.intro-mark svg { width: 52%; height: 52%; }
.intro-icon strong { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.04em; color: #0a2a5e; }
@keyframes intro-fly {
  0% { transform: translateX(-120%) translateY(10px) rotate(-2deg); }
  50% { transform: translateX(50vw) translateX(-50%) translateY(-8px) rotate(0deg); }
  100% { transform: translateX(100vw) translateY(-14px) rotate(2deg); }
}
@keyframes intro-trail {
  0% { transform: scaleX(0); opacity: 0; }
  30% { opacity: 0.9; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes intro-pop {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.region-head { grid-column: 1 / -1; margin: 1.4rem 0 0.2rem; font-size: 1.15rem; letter-spacing: -0.03em; color: #1c1c1e; }
.region-head:first-child { margin-top: 0; }

/* accessibility: visible keyboard focus everywhere */
:focus-visible { outline: 3px solid #0a84ff; outline-offset: 3px; border-radius: 6px; }
.search input:focus-visible { outline: 0; }
.search:focus-within { outline: 3px solid #0a84ff; outline-offset: 3px; }
.kicker.show { color: #0054b3; }
.intro-skip {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 5; padding: 0.55rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.55); color: #0a2a5e; font-weight: 700;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* lighter effects on phones and tablets */
@media (max-width: 980px) {
  body.home { background-attachment: scroll; }
}
@media (max-width: 640px) {
  .nav, .search, .float-card, .beat, .panel, .airport-card, .trip, .modes a, .nav-cta, .routes-map {
    backdrop-filter: blur(10px) saturate(1.5); -webkit-backdrop-filter: blur(10px) saturate(1.5);
  }
  .orb, .float-card::after, .beat::after, .spark { animation: none; }
  .orb { display: none; }
  .ticker-track { animation-duration: 60s; }
}

/* search labels are for screen readers only; keep them out of the layout on every page */
label.skip {
  position: absolute; top: auto; left: auto; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; background: none;
}

/* FAA status and flight details */
.faa p { margin: 0.5rem 0 0; font-size: 0.9rem; }
.flight-info { margin: 0 0 1rem; padding: 1rem 1.2rem; }
.flight-info[hidden] { display: none; }
.fi-row { display: grid; gap: 0.35rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.fi-row:first-child { border-top: 0; padding-top: 0; }
.fi-route { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; }
.flight-info .bar { height: 6px; border-radius: 6px; background: rgba(60, 60, 67, 0.18); overflow: hidden; }
.flight-info .bar i { display: block; height: 100%; background: linear-gradient(90deg, #32ade6, #007aff, #af52de); }
