/* =========================================================================
   Drone Horizon — dronesimulator.flights
   Design language derived from the game's own FPV HUD, chrome/cyan brand
   mark and Barlow / Barlow Condensed typography. Condensed uppercase is
   reserved for short technical labels (the way the in-game HUD sets
   "SPEED", "ALTITUDE AGL", "ARMED"); headlines are set in sentence case.
   ========================================================================= */

:root {
  --bg: #05070a;
  --bg-1: #0a0e14;
  --bg-2: #0d131b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f4f7fb;
  --ink-dim: #aab7c7;
  --ink-faint: #6f7d8f;
  --blue: #2f7bff;
  --cyan: #49d2ff;
  --cyan-dim: #2a94c2;
  --telemetry: #c7f464;
  --danger: #ff6b6b;
  --maxw: 1240px;
  --maxw-narrow: 760px;
  --radius: 3px;
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-cond: "Barlow Condensed", var(--font);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-dim);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}

img, video { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-cond);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 600; }
p { margin: 0 0 1.1em; max-width: 62ch; }
.lede { font-size: 1.2rem; color: #cbd7e6; max-width: 46ch; }
strong { color: var(--ink); font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* Technical micro-label used throughout — mirrors HUD readouts like
   "SPEED" / "ALTITUDE AGL": condensed, uppercase, wide tracking, small. */
.kicker {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.kicker .kicker-index { color: var(--telemetry); font-variant-numeric: tabular-nums; }
.kicker::after { content: ""; height: 1px; width: 34px; background: linear-gradient(90deg, var(--cyan), transparent); }

.section { position: relative; padding: 128px 0; }
.section-tight { padding: 72px 0; }
@media (max-width: 780px) { .section { padding: 84px 0; } }
.section-block { position: relative; border-top: 1px solid var(--line); }
.section-block.section-alt { background: var(--bg-1); }

.hairline { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--cyan); color: #04121c; padding: 12px 18px; z-index: 999; font-family: var(--font-cond); text-transform: uppercase; font-weight: 700; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.92), rgba(5, 7, 10, 0.7) 70%, transparent);
  transition: background 0.3s ease;
}
.site-header.solid { background: rgba(5, 7, 10, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--ink-dim);
  font-family: var(--font-cond);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--cyan); padding-bottom: 4px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); width: 42px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle svg[hidden] { display: none !important; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; z-index: 150; background: #05070a; flex-direction: column; align-items: flex-start; justify-content: center; padding: 12px 32px 40px; gap: 30px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform 0.28s var(--ease), opacity 0.28s var(--ease), visibility 0s linear 0.28s; }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; transition: transform 0.28s var(--ease), opacity 0.28s var(--ease); }
  .nav-toggle { position: relative; z-index: 210; }
  .nav-links a { font-size: 1.7rem; }
  .nav-toggle { display: inline-flex; }
  .nav-right .cta-desktop { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.92rem;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: var(--cyan); color: #03131f; }
.btn-primary:hover { background: #6fdcff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 10px 18px; font-size: 0.8rem; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* Google Play CTA — a restrained custom mark, not an imitation of the
   official multicolor badge. */
.play-cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 12px 20px 12px 16px;
  color: #05070a;
}
.play-cta:hover { background: var(--cyan); }
.play-cta .glyph {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid; place-items: center;
  flex: none;
}
.play-cta .glyph svg { width: 11px; height: 11px; }
.play-cta .copy { line-height: 1.2; }
.play-cta .copy small { display: block; font-family: var(--font-cond); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #384454; }
.play-cta .copy strong { font-family: var(--font-cond); font-size: 1.02rem; letter-spacing: 0.01em; color: #05070a; font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #04070c;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(5,7,10,0.35) 32%, rgba(5,7,10,0.05) 55%, rgba(5,7,10,0.35) 100%),
    linear-gradient(100deg, rgba(5,7,10,0.92) 0%, rgba(5,7,10,0.35) 42%, rgba(5,7,10,0.05) 62%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding: 0 0 92px; }
.hero-tag { font-family: var(--font-cond); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.hero-tag::before { content: ""; width: 26px; height: 1px; background: var(--cyan); }
.hero h1 { max-width: 15ch; margin-bottom: 22px; }
.hero-sub { font-size: 1.28rem; color: #dbe4f0; max-width: 42ch; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-scroll { position: absolute; right: 28px; bottom: 34px; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-faint); font-family: var(--font-cond); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero-scroll .line { width: 1px; height: 46px; background: linear-gradient(180deg, var(--ink-faint), transparent); }
@media (max-width: 780px) { .hero-scroll { display: none; } }

/* ---------- Story sections (full-bleed statement + media) ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 0;
}
.story.flip { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.story.flip .story-media { order: 2; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px; }
.story.flip .story-copy { padding-left: 80px; }
.story-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.story-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-media .frame-caption {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  font-family: var(--font-cond); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #dfe9f5; background: rgba(4,7,10,0.55); border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 12px; backdrop-filter: blur(4px);
}
.story-copy h2 { margin-bottom: 20px; }
.story-copy .lede { margin-bottom: 22px; }
.story-copy p:last-of-type { margin-bottom: 0; }

@media (max-width: 980px) {
  .story, .story.flip { grid-template-columns: 1fr; }
  .story.flip .story-media, .story .story-media { order: 0; }
  .story-media { aspect-ratio: 4 / 3; }
  .story-copy, .story.flip .story-copy { padding: 48px 24px; }
}

/* Full-bleed cinematic statement (Freestyle section etc.) */
.cinematic-media { position: relative; overflow: hidden; min-height: 82vh; }
.cinematic-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cinematic-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(5,7,10,0.92) 0%, rgba(5,7,10,0.35) 42%, rgba(5,7,10,0.08) 65%);
  display: flex; align-items: flex-end;
}
@media (max-width: 780px) { .cinematic-media { min-height: 66vh; } }

/* ---------- Spec / definition list (flight modes, controls) ---------- */
.spec-list { margin-top: 8px; }
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: 1px solid var(--line); }
.spec-row .term { font-family: var(--font-cond); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.spec-row .term .num { display: block; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--telemetry); margin-bottom: 6px; }
.spec-row p { margin: 0; max-width: 58ch; }
@media (max-width: 720px) { .spec-row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Aircraft spec table ---------- */
.table-scroll { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-variant-numeric: tabular-nums; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; white-space: nowrap; }
.spec-table th { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dim); font-weight: 600; font-size: 0.78rem; border-bottom: 1px solid var(--line-strong); }
.spec-table td { color: var(--ink); }
.spec-table td:first-child { color: var(--ink); font-family: var(--font-cond); font-weight: 600; }

/* ---------- Fleet strip ---------- */
.fleet-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px; }
.fleet-item { padding: 22px 22px 22px 0; border-left: 1px solid var(--line); padding-left: 22px; }
.fleet-item:first-child { border-left: none; padding-left: 0; }
.fleet-item .fleet-class { font-family: var(--font-cond); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.fleet-item h3 { font-family: var(--font-cond); font-size: 1.35rem; color: var(--ink); margin: 0 0 6px; }
.fleet-item p { margin: 0; font-size: 0.88rem; }
@media (max-width: 780px) { .fleet-strip { grid-template-columns: 1fr 1fr; } .fleet-item:nth-child(2) { border-left: 1px solid var(--line); } .fleet-item:nth-child(3) { border-left: none; padding-left: 0; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); } .fleet-item:nth-child(4) { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .fleet-strip { grid-template-columns: 1fr; } .fleet-item { border-left: none !important; padding-left: 0 !important; } .fleet-item:not(:first-child) { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); } }

/* ---------- Artificial horizon instrument ---------- */
.horizon-instrument { width: 100%; max-width: 340px; aspect-ratio: 1; margin: 0 auto; }
.horizon-instrument .disc { transform-origin: 170px 170px; animation: horizon-settle 9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .horizon-instrument .disc { animation: none; } }
@keyframes horizon-settle {
  0%, 100% { transform: rotate(-3.5deg) translateY(0px); }
  50% { transform: rotate(3deg) translateY(-3px); }
}

/* ---------- Gallery filmstrip ---------- */
.filmstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); }
.filmstrip figure { margin: 0; position: relative; aspect-ratio: 4/5; overflow: hidden; background: #000; }
.filmstrip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.filmstrip a:hover img { transform: scale(1.05); }
.filmstrip figcaption { position: absolute; left: 14px; bottom: 12px; right: 14px; font-family: var(--font-cond); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: #eef4fb; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
@media (max-width: 900px) { .filmstrip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pull quote (telemetry-style caption) ---------- */
.telemetry-line {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin: 18px 0;
}
.telemetry-line span { color: var(--telemetry); }
.telemetry-line .bar { flex: 1; height: 1px; background: var(--line); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 130px 0; text-align: left; border-top: 1px solid var(--line); overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { max-width: 12ch; margin-bottom: 0; }
.cta-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-band-media { position: absolute; inset: 0; z-index: 0; }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.cta-band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 5%, rgba(5,7,10,0.55) 60%, rgba(5,7,10,0.85)); }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-family: var(--font-cond); font-size: 1.1rem; color: var(--ink); font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .add { color: var(--cyan); font-size: 1.3rem; flex: none; font-family: var(--font); font-weight: 400; }
.faq-item[open] summary .add { transform: rotate(45deg); display: inline-block; }
.faq-item p { margin-top: 14px; margin-bottom: 0; max-width: 68ch; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--ink-faint); font-family: var(--font-cond); letter-spacing: 0.04em; text-transform: uppercase; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- Sub-page hero (SEO landing pages) ---------- */
.subhero { padding: 168px 0 0; }
.subhero .kicker { margin-bottom: 22px; }
.subhero h1 { max-width: 18ch; }
.subhero .lede { margin-top: 18px; }
.subhero-media { margin-top: 56px; position: relative; }
.subhero-media img { width: 100%; height: auto; }
.subhero-actions { margin-top: 30px; }

/* ---------- Related links (plain, no pills) ---------- */
.related-list { columns: 2; gap: 40px; }
@media (max-width: 620px) { .related-list { columns: 1; } }
.related-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-dim); }
.related-list a:hover { color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 72px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top h3 { font-family: var(--font-cond); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 18px; font-weight: 600; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 11px; }
.footer-top a { color: var(--ink-dim); font-size: 0.93rem; }
.footer-top a:hover { color: var(--cyan); }
.footer-brand-mark { margin-bottom: 16px; }
.footer-brand-mark img { height: 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 26px; font-size: 0.82rem; color: var(--ink-faint); }
.footer-bottom a { color: var(--ink-faint); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Reveal-on-scroll (robust: visible by default, JS enhances) ---------- */
.reveal { opacity: 1; }
.js-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-ready .reveal.in { opacity: 1; transform: translateY(0); }

.center { text-align: center; margin-left: auto; margin-right: auto; }

.duo-media { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.duo-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 780px) { .duo-media { grid-template-columns: 1fr; } }

.prose { margin-top: 28px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose p, .prose li { max-width: 68ch; }

@media (max-width: 900px) {
  .section, .section-tight { padding: 64px 0; }
  h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
  .story-media { min-height: 240px; }
}
