:root {
  --bg: #0b1220;
  --bg-2: #0f1a2e;
  --panel: #142039;
  --panel-border: #233458;
  --text: #e8eef8;
  --muted: #9aabc6;
  --accent: #3aa0ff;
  --accent-ink: #04111f;
  --green: #2ecc71;
  --amber: #f5b72e;
  --red: #ff4d4f;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.lang {
  font-size: 14px; color: var(--muted); border: 1px solid var(--panel-border);
  padding: 6px 12px; border-radius: 999px;
}
.top-links { display: flex; gap: 10px; align-items: center; }
/* Link to flyday.social in Flyday's own style: white pill, "fly" ink + "day.social" blue, orange arrow. */
.flyday-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; padding: 4px 4px 4px 16px;
  font-weight: 800; font-size: 16px; letter-spacing: -.02em; line-height: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.flyday-pill:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.flyday-pill .fly { color: #06101f; }
.flyday-pill .day { color: #0b6bd6; margin-left: -10px; }
.flyday-pill .arrow {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px;
  background: #ef5a2a; color: #fff;
}
.flyday-pill .arrow svg { width: 16px; height: 16px; }
.flyday-pill .join { color: #06101f; margin-right: -4px; }
.flyday-pill-lg { font-size: 19px; gap: 12px; padding: 6px 6px 6px 22px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.flyday-pill-lg .day { margin-left: -12px; }
.flyday-pill-lg .arrow { width: 38px; height: 38px; }
.flyday-pill-lg .arrow svg { width: 20px; height: 20px; }
.lang:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(58,160,255,.18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(46,204,113,.07), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--panel-border);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 48px; align-items: center;
  padding: 32px 0 72px;
}
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.app-id img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.app-id .name { font-size: 30px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.app-id .tag { color: var(--accent); font-weight: 600; font-size: 16px; }
h1 {
  font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 18px; font-weight: 800;
}
.lead { color: var(--muted); font-size: 18.5px; margin: 0 0 14px; max-width: 34em; }
.lead-2 { margin-bottom: 30px; color: var(--text); opacity: .86; }

.store { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 17px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 24px rgba(58,160,255,.35);
}
.store-btn:hover { text-decoration: none; filter: brightness(1.08); }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-btn.soon {
  background: transparent; color: var(--text); box-shadow: none;
  border: 1.5px dashed var(--accent); cursor: default;
}
.store-btn.soon svg { color: var(--accent); }
.store-note { color: var(--muted); font-size: 14px; }

/* iPad screenshots: a device-like frame */
.hero-shot { display: grid; gap: 22px; }
.custom-shot { margin: 0; display: flex; justify-content: center; }
.custom-shot img {
  display: block; width: min(300px, 70vw); height: auto; border-radius: 30px;
  border: 7px solid #05090f; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px var(--panel-border);
}
.hero-shot img, .ipad-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 22px; border: 10px solid #05090f;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px var(--panel-border);
  background: var(--panel);
}

/* Sections */
section { padding: 80px 0; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.intro { color: var(--muted); max-width: 40em; margin: 0 0 40px; }

.features {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.feature {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(58,160,255,.12); color: var(--accent); margin-bottom: 14px;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Screenshots */
.shots-section { background: var(--bg-2); border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); }
.emergency-section h2 { color: #ff6b6b; }
.emergency-section .ipad-gallery .ipad-shot { border-color: rgba(255,77,79,.35); }
.video-section { text-align: center; }
.video-section .intro { margin-left: auto; margin-right: auto; }
.tour { margin: 0 auto; max-width: 960px; }
.tour video {
  display: block; width: 100%; height: auto; background: var(--panel);
  border-radius: 22px; border: 10px solid #05090f;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px var(--panel-border);
}
.ipad-gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px;
  max-width: 1080px; margin: 0 auto;
}
.ipad-shot { margin: 0; }
/* Each gallery shot is a card: the caption sits inside, right under its picture. */
.ipad-gallery .ipad-shot {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px; padding: 14px;
}
.ipad-gallery .ipad-shot img { border-width: 5px; border-radius: 12px; box-shadow: 0 0 0 1px var(--panel-border); }
.ipad-gallery .ipad-shot figcaption { margin-top: 14px; padding: 0 6px 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ipad-gallery .ipad-shot figcaption strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }

.g1000-note {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 48px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 24px;
}
.g1000-note .ic {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(58,160,255,.12); color: var(--accent);
}
.g1000-note .ic svg { width: 26px; height: 26px; }
.g1000-note h3 { margin: 0 0 6px; font-size: 18px; }
.g1000-note p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 60em; }

.custom-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.custom-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.custom-points li { padding-left: 18px; border-left: 3px solid var(--accent); }
.custom-points h3 { margin: 0 0 4px; font-size: 17.5px; }
.custom-points p { margin: 0; color: var(--muted); font-size: 15.5px; }

.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 20px 18px; margin: 0 -20px;
  scrollbar-width: thin; scrollbar-color: var(--panel-border) transparent;
  list-style: none;
}
.shots li { flex: none; scroll-snap-align: start; }
.shots figure { margin: 0; width: 220px; }
.shots img {
  display: block; width: 100%; height: auto; border-radius: 26px;
  border: 6px solid #05090f; box-shadow: 0 0 0 1px var(--panel-border); background: var(--panel);
}
.shots figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }

/* Built by / CTA */
.built { text-align: center; }
.built .intro { margin-left: auto; margin-right: auto; }
.built .store { align-items: center; }

/* Flyday */
.flyday { background: var(--bg-2); border-top: 1px solid var(--panel-border); }
.flyday-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.flyday .intro { margin-bottom: 28px; }
.flyday-card img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px var(--panel-border);
  transition: transform .2s ease;
}
.flyday-card:hover img { transform: translateY(-3px); }
@media (max-width: 900px) { .flyday-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Footer */
footer { border-top: 1px solid var(--panel-border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.disclaimer { margin: 22px 0 0; font-size: 13px; line-height: 1.5; max-width: 60em; }

@media (max-width: 900px) {
  .hero-grid, .custom-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid { padding: 24px 0 56px; }
  .ipad-gallery { grid-template-columns: 1fr; gap: 20px; max-width: 640px; }
  section { padding: 56px 0; }
  .shots figure { width: 190px; }
  .hero-shot img, .ipad-shot img, .tour video { border-width: 6px; border-radius: 16px; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
  .flyday-pill { font-size: 15px; gap: 8px; padding-left: 13px; }
  .flyday-pill .day { margin-left: -8px; }
  .wrap { padding: 0 16px; }
  .shots { padding: 4px 16px 18px; margin: 0 -16px; }
  .app-id img { width: 72px; height: 72px; border-radius: 17px; }
  .app-id .name { font-size: 26px; }
  .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* In-page navigation under the hero */
.jump { position: sticky; top: 0; z-index: 10; background: rgba(11,18,32,.92); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--panel-border); }
.jump .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.jump .wrap::-webkit-scrollbar { display: none; }
.jump a { flex: none; color: var(--muted); font-size: 14.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.jump a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
section[id] { scroll-margin-top: 56px; }

/* Crew Sync: the prominent section */
.crew-section {
  background: radial-gradient(1200px 500px at 15% 0%, rgba(46,204,113,.14), transparent 60%), var(--bg-2);
  border-top: 1px solid rgba(46,204,113,.35); border-bottom: 1px solid rgba(46,204,113,.35);
}
.crew-section h2 { color: #5be39a; font-size: clamp(30px, 4vw, 44px); }
.crew-section .intro { color: var(--text); opacity: .9; font-size: 18.5px; }
.crew-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.crew-points li { border-left-color: var(--green); }
.ipad-gallery.stack { grid-template-columns: 1fr; max-width: none; margin: 0; }
.crew-section .ipad-gallery .ipad-shot { border-color: rgba(46,204,113,.35); }

/* Three shots in a row (alarms) */
.ipad-gallery.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.alarm-section h2 { color: #ff8a5c; }
.alarm-section .ipad-gallery .ipad-shot { border-color: rgba(255,138,92,.35); }

/* Customize: portrait shot beside the points, the menus below */
.portrait-shot { margin: 0; display: flex; flex-direction: column; align-items: center; }
.portrait-shot img {
  display: block; width: min(420px, 80vw); height: auto; border-radius: 22px; border: 10px solid #05090f;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px var(--panel-border); background: var(--panel);
}
.portrait-shot figcaption { margin-top: 12px; color: var(--muted); font-size: 14.5px; text-align: center; max-width: 30em; }
.gallery-gap { margin-top: 56px; }

/* Dark mode */
.dark-section { background: #05080f; border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); }

@media (max-width: 900px) {
  .crew-grid { grid-template-columns: 1fr; gap: 28px; }
  .ipad-gallery.three { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .jump { position: static; }
}

/* The full app tour on YouTube. */
.yt { margin: 0 auto; max-width: 960px; aspect-ratio: 16 / 9; }
.yt iframe { width: 100%; height: 100%; border: 0; border-radius: 16px; display: block; }
.yt-link { text-align: center; margin-top: 10px; }

/* Weather route planner: the points in two columns on wide screens */
.planner-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 32px; margin-top: 24px; }
.planner-note { margin-top: 22px; font-size: 14px; color: #93a3bf; }
.hero-new { display: inline-block; margin: 4px 0 14px; padding: 6px 14px; border-radius: 999px; background: rgba(58,160,255,.16); color: #9ccfff; font-weight: 600; font-size: 15px; text-decoration: none; }
.hero-new:hover { background: rgba(58,160,255,.26); }

/* Weather route planner: a sky-blue section of its own */
.planner-section {
  background: radial-gradient(1200px 520px at 85% 0%, rgba(58,160,255,.18), transparent 60%),
              radial-gradient(900px 400px at 10% 100%, rgba(120,200,255,.08), transparent 60%), var(--bg-2);
  border-top: 1px solid rgba(58,160,255,.4); border-bottom: 1px solid rgba(58,160,255,.4);
}
.planner-section h2 { color: #6cbcff; font-size: clamp(30px, 4vw, 44px); }
.planner-section .intro { color: var(--text); opacity: .9; font-size: 18.5px; }
.planner-points li { border-left-color: #3aa0ff; }
.planner-section .ipad-gallery .ipad-shot { border-color: rgba(58,160,255,.4); }

/* Version 2.0 – coming soon */
.v2 { text-align: center; background: linear-gradient(180deg, rgba(58,160,255,.10), rgba(58,160,255,0) 70%); }
.v2 .intro { margin-left: auto; margin-right: auto; }
.v2-badge { display: inline-block; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px; background: rgba(155,108,255,.22); color: #d7c6ff; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.v2-points { list-style: none; padding: 0; margin: 18px auto 26px; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.v2-points li { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); font-size: 15px; }

/* Version 2.0 page: version 1.0 in brief at the end */
.v1-compact { background: var(--bg-2); border-top: 1px solid var(--panel-border); }
.features.compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.features.compact .feature { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.features.compact .feature .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; margin: 0; }
.features.compact .feature .ic svg { width: 20px; height: 20px; }
.features.compact .feature h3 { font-size: 15.5px; margin: 0; }
.v1-link { margin: 28px 0 0; font-weight: 600; }
.v1-link a { color: var(--accent); text-decoration: none; }
.v1-link a:hover { text-decoration: underline; }
/* Version 2.0 page: every version 1.0 screenshot with its caption, smaller */
.v1-group { margin-top: 44px; }
.v1-group h3 { margin: 0 0 16px; font-size: 20px; }
.ipad-gallery.small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: none; margin: 0; }
.ipad-gallery.small .ipad-shot img { border-width: 4px; border-radius: 10px; }
.ipad-gallery.small .ipad-shot figcaption { margin-top: 8px; padding: 0 2px; font-size: 13.5px; line-height: 1.45; }
.ipad-gallery.small .ipad-shot figcaption strong { font-size: 15px; }
.shots.small figure { width: 160px; }
.shots.small img { border-width: 4px; border-radius: 20px; }
.shots.small figcaption { font-size: 12.5px; }
@media (max-width: 900px) { .ipad-gallery.small { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }
@media (max-width: 520px) { .ipad-gallery.small { grid-template-columns: 1fr; } }
/* Version 2.0 page: the approaches video */
.approach-video { margin: 0 auto; max-width: 1080px; }
.approach-video video { display: block; width: 100%; height: auto; border: 6px solid #05090f; border-radius: 16px; box-shadow: 0 0 0 1px var(--panel-border); background: var(--panel); }
.approach-video figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 14.5px; }
.approach-video + .approach-video { margin-top: 40px; }
.v1-compact .intro + .v1-group { margin-top: 0; }
/* The 2.0 demo video at the top, played on the page */
.v2-video { margin: 0 auto; max-width: 1080px; }
.v2-video video { display: block; width: 100%; height: auto; border: 6px solid #05090f; border-radius: 16px; box-shadow: 0 0 0 1px var(--panel-border); background: #05090f; }
.radio-points { grid-template-columns: 1fr; }
