:root {
  color-scheme: light;
  --night: #0a1b30;
  --night-deep: #071423;
  --ink: #11263d;
  --muted: #526579;
  --line: #dce5ee;
  --sky: #bce4ff;
  --white: #fff;
  --surface: #f4f7fc;
  --accent: #08549d;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--white); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1385d9; outline-offset: 5px; }
.hero :focus-visible, .install-banner :focus-visible { outline-color: var(--sky); }
h1, h2, h3, p, figure { margin: 0; }

.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1160px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: 12px auto auto 12px; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }

.topbar { position: absolute; z-index: 2; inset: 0 0 auto; }
.topbar-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 750; letter-spacing: -.03em; }
.brand img { flex: none; }
.top-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); font-size: 14px; font-weight: 570; }
.top-nav a { display: flex; min-height: 44px; align-items: center; }
.top-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-block: 100px clamp(64px, 11svh, 122px);
  overflow: hidden;
  color: white;
  background: var(--night-deep);
}
.hero-media, .hero-media img, .hero-media::after {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.hero-media { z-index: -1; }
.hero-media img { object-fit: cover; object-position: 62% 50%; }
.hero-media::after {
  content: "";
  background:
    linear-gradient(180deg, #040b159e 0%, transparent 23%),
    linear-gradient(0deg, #060e188f 0%, transparent 44%),
    linear-gradient(90deg, #07111cde 0%, #07111c94 26%, #07111c1a 54%, transparent 69%);
}
.hero-content { position: relative; }
.eyebrow { color: var(--accent); font-size: 12px; line-height: 1.35; font-weight: 760; letter-spacing: .105em; text-transform: uppercase; }
.hero-eyebrow { color: #d3e5f2; letter-spacing: .17em; }
.hero h1 { margin-top: 15px; font-size: clamp(46px, 5.7vw, 82px); font-weight: 750; line-height: .99; letter-spacing: -.061em; }
.hero-lede { max-width: 365px; margin-top: 18px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.45; color: #e0eaf2; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 12px 18px; border-radius: 9px; font-size: 15px; font-weight: 720; line-height: 1.25; transition: background .18s ease, color .18s ease; }
.glass-action {
  min-height: 54px;
  gap: 20px;
  margin-top: 26px;
  padding-inline: 22px 19px;
  border: 1px solid #e2f2ff8c;
  border-radius: 999px;
  background: linear-gradient(155deg, #dff1ff36, #bbd8f013 65%), #12233758;
  box-shadow: inset 0 1px 0 #ffffff35, 0 6px 24px #030b1938;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
}
.glass-action:hover { background-color: #728da96e; }
.glass-action .icon { width: 17px; height: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #0754a1; font-weight: 680; font-size: 15px; line-height: 1.35; }
.text-link .icon { width: 16px; height: 16px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.section { padding-block: clamp(50px, 6.5vw, 86px); }
.section-heading { margin-bottom: 30px; }
h2 { margin-top: 10px; font-size: clamp(32px, 4.25vw, 54px); font-weight: 780; line-height: 1.08; letter-spacing: -.045em; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  --card-pad: clamp(18px, 2.1vw, 25px);
  display: block;
  position: relative;
  min-width: 0;
  min-height: 196px;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfdff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:focus-visible { border-color: #abc9e0; }
@media (hover: hover) and (pointer: fine) {
  .feature:hover { z-index: 1; transform: scale(1.025); border-color: #abc9e0; box-shadow: 0 12px 28px #142f4a14; }
}
.feature-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.feature-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; }
.feature-icon .icon { width: 22px; height: 22px; }
.blue { color: #07509c; background: #dfedfc; }
.mint { color: #136554; background: #dff2ed; }
.steel { color: #354f70; background: #e6edf6; }
.feature-arrow { color: #47617a; }
.feature-title { display: block; font-size: clamp(19px, 1.75vw, 23px); font-weight: 740; line-height: 1.2; letter-spacing: -.025em; }
.feature-copy { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.install { background: var(--surface); border-block: 1px solid #e5edf4; }
.install-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid #244665;
  border-radius: 23px;
  background: radial-gradient(ellipse at 87% 8%, #255078 0%, transparent 62%), #102944;
  color: white;
  box-shadow: 0 15px 36px #16365018;
}
.install-eyebrow { color: #b9daf4; }
.release-meta { color: #ccdfed; margin-top: 12px; font-size: 15px; line-height: 1.5; }
.release-meta span { margin-inline: 3px; }
.install-action { text-align: center; }
.download-button { min-height: 53px; min-width: 200px; border: 0; background: #dbefff; color: #103152; }
.download-button:disabled { background: #dbefff24; color: #dbe9f4; cursor: default; }
.install-action p { color: #c4d5e5; font-size: 13px; line-height: 1.4; margin-top: 9px; }
.version-archive { margin-top: 18px; border-bottom: 1px solid #dbe5ed; }
.version-archive > a { margin-bottom: 10px; }

.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 24px; }
.faq h2 { margin: 0; font-size: clamp(28px, 3.9vw, 46px); }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.questions summary, .version-archive summary { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 55px; padding-block: 14px; font-size: 16px; font-weight: 650; line-height: 1.35; }
.questions summary::after, .version-archive summary::after { content: "+"; color: var(--accent); flex: none; font-size: 24px; font-weight: 400; line-height: 1; }
.questions details[open] summary::after, .version-archive[open] summary::after { content: "−"; }
.questions p { color: var(--muted); padding: 0 24px 14px 0; font-size: 15px; line-height: 1.58; }

.detail-header { background: var(--night); color: white; }
.detail-header :focus-visible { outline-color: var(--sky); }
.detail-header [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.detail-hero {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 88% 34%, #e2eef9 0%, transparent 52%), #f6f9fd;
}
.detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(30px, 7vw, 100px); padding-block: clamp(32px, 6vw, 76px); }
.detail-back { margin-bottom: 20px; font-size: 14px; }
.detail-copy h1 { max-width: 13ch; margin-top: 11px; font-size: clamp(43px, 5.5vw, 78px); font-weight: 770; letter-spacing: -.057em; line-height: .99; }
.detail-lede { max-width: 45ch; margin-top: 21px; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.55; color: var(--muted); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 23px 0 0; list-style: none; }
.detail-tags li { border: 1px solid #ccdae9; border-radius: 99px; padding: 7px 11px; background: #f9fcff; color: #31536e; font-size: 13px; font-weight: 650; }
.app-preview { justify-self: center; width: min(100%, 270px); }
.app-preview-screen, .scan-excerpts { width: 100%; border: 1px solid #c9d9e7; border-radius: 19px; box-shadow: 0 20px 50px #213f6024; }
.app-preview-screen { height: auto; }
.app-preview figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.4; }
.app-preview-excerpts { width: min(100%, 470px); }
.scan-excerpts { position: relative; overflow: hidden; aspect-ratio: 884 / 672; background: #0c2342; }
.scan-excerpts img { position: absolute; left: -11.09%; top: -119.79%; width: 122.17%; max-width: none; height: auto; }
.detail-content { max-width: 1000px; }
.detail-block + .detail-block, .aircraft-list + .detail-block { margin-top: clamp(32px, 5vw, 60px); }
.detail-block h2, .aircraft-list h2 { margin: 0 0 19px; font-size: clamp(27px, 3vw, 40px); }
.detail-items { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.detail-items li { display: grid; grid-template-columns: 37px 1fr; gap: 12px; padding-block: 19px; border-bottom: 1px solid var(--line); }
.detail-items li > span { color: #526d87; font-family: ui-monospace, Consolas, monospace; font-size: 14px; line-height: 1.7; }
.detail-content h3 { font-size: 20px; font-weight: 740; letter-spacing: -.015em; line-height: 1.25; }
.detail-content p { color: var(--muted); font-size: 16px; line-height: 1.6; margin-top: 7px; }
.detail-tradeoffs { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.detail-tradeoffs > div { padding: clamp(17px, 3vw, 26px); border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.aircraft-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.aircraft-item span { border-radius: 99px; padding: 5px 10px; color: #22554c; background: #dff2ed; font-weight: 700; font-size: 13px; }
.detail-download { max-width: 64ch; }
.detail-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 19px; border-top: 1px solid var(--line); }
.detail-install { color: white; background: #0e4d81; }
.detail-install:hover { background: #143e60; }

.footer { color: #d6e3f0; background: var(--night); }
.footer-inner { min-height: 92px; display: flex; align-items: center; gap: 19px; }
.footer-brand { color: #fff; font-size: 19px; }
.footer-caption { color: #b5c8da; font-size: 14px; }
.footer-contact { display: flex; align-items: center; gap: 7px; min-height: 44px; margin-left: auto; font-size: 14px; font-weight: 620; }
.footer-contact .icon { width: 15px; height: 15px; }
.footer-contact:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer :focus-visible { outline-color: var(--sky); }

@media (max-width: 940px) {
  .wrap { width: calc(100% - 56px); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { min-height: 160px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .topbar-inner { min-height: 0; padding-block: 12px; flex-wrap: wrap; gap: 2px 12px; }
  .brand { font-size: 21px; }
  .brand img { width: 32px; height: 32px; }
  .top-nav { gap: 17px; font-size: 13px; }
  .top-nav a { min-height: 37px; }
  .hero { padding-block: 118px 28px; }
  .hero h1 { font-size: clamp(32px, 8.9vw, 51px); margin-top: 8px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: .125em; }
  .hero-lede { font-size: 15px; line-height: 1.4; margin-top: 11px; max-width: 29ch; }
  .glass-action { margin-top: 15px; min-height: 49px; }
  .section-heading { margin-bottom: 20px; }
  .feature-grid { gap: 12px; }
  .feature-top { margin-bottom: 14px; }
  .install-banner, .faq { grid-template-columns: 1fr; gap: 18px; }
  .detail-hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .detail-copy h1 { font-size: clamp(35px, 8.4vw, 53px); }
  .detail-back { margin-bottom: 11px; }
  .detail-lede { margin-top: 14px; }
  .detail-tags { margin-top: 15px; }
  .detail-tradeoffs { grid-template-columns: 1fr; }
  .install-action { text-align: left; }
  .footer-inner { min-height: 72px; gap: 12px; }
  .footer-caption { display: none; }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
}

@media (max-width: 350px) {
  .wrap { width: calc(100% - 28px); }
  .top-nav { font-size: 12px; gap: 14px; }
  .hero h1 { font-size: 30px; }
}

@media (max-aspect-ratio: 4/5) {
  .hero-media img { object-position: 80% center; }
  .hero-media::after {
    background:
      linear-gradient(180deg, #040b158f 0%, transparent 17%),
      linear-gradient(0deg, #040b15f0 0%, #040b1596 25%, transparent 44%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .feature:hover { transform: none; }
}
