/* Flightline Studios — brand site. Deliberately distinct from the SMDP app's
   own "tactical dispatch" look: no hatch texture, no monospace-tracked labels,
   no blue accent. Clean, sophisticated, teal/cyan-on-near-black. Dark only. */

:root {
  --bg: #07090b;
  --bg-raised: #0e1215;
  --card: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.09);
  --text: #eef2f3;
  --text-soft: #9aa7ac;
  --text-faint: #5b6a70;
  --accent: #3ecfe0;
  --accent-deep: #12657a;
  --divider: rgba(255,255,255,0.09);
  --shadow: rgba(0,0,0,0.45);

  --font: -apple-system, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --space-1: 8px; --space-2: 14px; --space-3: 22px; --space-4: 34px;
  --space-5: 54px; --space-6: 88px; --space-7: 140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
section { position: relative; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(18px + env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) 18px max(32px, env(safe-area-inset-left));
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}
/* A permanent contrast floor behind the nav so the links stay legible over
   whatever part of the hero photo happens to be behind them, before the
   scrolled-solid background takes over. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.22) 65%, transparent 100%);
  opacity: 1;
  transition: opacity 0.35s ease;
}
.nav.solid::before { opacity: 0; }
.nav.solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 13.5px;
  color: var(--text-soft);
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Floating over the hero video (not yet scrolled) — always light text
   regardless of what's behind it, since it sits on a video, not a themed bg. */
.nav:not(.solid) .nav-links a {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.nav:not(.solid) .nav-links a:hover { color: #fff; }
@media (max-width: 640px) {
  .nav { padding: calc(14px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left)); }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 11.5px; }
}

/* ---------- Hero (video loop, plain parallax) ---------- */
.hero-track {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero-pin {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.hero-bg-wrap {
  position: absolute;
  top: -15%;
  left: 0;
  right: 0;
  height: 130%;
  will-change: transform;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(3,5,6,0.45) 0%, rgba(3,5,6,0.05) 20%, rgba(3,5,6,0.15) 48%, rgba(3,5,6,0.62) 78%, var(--bg) 100%);
  pointer-events: none;
}
/* Sized and positioned independently of the logo's own box (not as a
   ::before tied to .hero-mark's shrink-to-fit width) so it's reliably
   centered regardless of how the image's intrinsic size computes. Same
   top/left/transform as .hero-mark so the two stay concentric. */
.hero-vignette {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, 96vw);
  height: min(640px, 65vh);
  background: radial-gradient(closest-side, rgba(2,4,6,0.68), rgba(2,4,6,0) 72%);
  z-index: 1;
  pointer-events: none;
  will-change: opacity;
}
.hero-mark {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  will-change: transform, opacity;
  text-align: center;
}
.hero-logo { height: clamp(220px, 30vw, 420px); width: auto; max-width: none; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.85)); }
/* Below ~640px, the height-based clamp's minimum can compute a natural width
   wider than the screen, which the global `img{max-width:100%}` rule then
   squishes down while height stays fixed — visibly distorting it. Below
   that width, drive sizing from width instead so it can never distort. */
@media (max-width: 640px) {
  .hero-logo { height: auto; width: min(85vw, 420px); max-width: 100%; }
}
.hero-content {
  position: absolute;
  top: 74%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  will-change: transform, opacity;
  padding: 0 24px;
  width: 100%;
}
.hero-content p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 10.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  will-change: opacity;
}
.scroll-cue .line {
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  animation: cueFall 1.8s ease-in-out infinite;
}
@keyframes cueFall { 0%{opacity:0; transform: scaleY(0.3); transform-origin: top;} 40%{opacity:1;} 100%{opacity:0; transform: scaleY(1); transform-origin: top;} }

/* ---------- Sections ---------- */
.section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-6) 0; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h2.headline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  max-width: 680px;
}
.lede {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 620px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* ---------- Product card ---------- */
.product-card {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 20px;
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-4);
  align-items: center;
  overflow: hidden;
  position: relative;
}
@media (max-width: 820px) { .product-card { grid-template-columns: 1fr; } }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.product-card h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 12px; }
.product-card p { color: var(--text-soft); font-size: 15px; line-height: 1.7; margin-bottom: 18px; }
.product-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.product-feats li {
  font-size: 13.5px;
  color: var(--text-soft);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.product-feats li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  position: relative; top: -2px;
}
.shot-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.shot-row img {
  width: 260px;
  max-width: 42vw;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 70px var(--shadow);
}
@media (max-width: 640px) {
  .shot-row img { max-width: 80vw; }
}
.product-shot {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 60px var(--shadow);
}
.product-visual {
  aspect-ratio: 4/3;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
    linear-gradient(150deg, var(--bg-raised), var(--bg));
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-visual .glyph {
  font-family: var(--font);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
  opacity: 0.9;
}

.more-soon {
  margin-top: var(--space-3);
  border: 1px dashed var(--card-border);
  border-radius: 20px;
  padding: var(--space-4);
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--divider);
  padding: var(--space-5) 0 var(--space-4);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 22px; }
.footer-brand span { font-weight: 600; font-size: 14px; }
.footer-tag { margin-top: 10px; font-size: 13px; color: var(--text-faint); max-width: 280px; line-height: 1.6; }
.footer-links { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 14px; font-weight: 700;
}
.footer-col a { display: block; font-size: 13.5px; color: var(--text-soft); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: 160px 0 var(--space-5);
  border-bottom: 1px solid var(--divider);
}

/* ---------- Legal / doc pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: var(--space-6) 28px var(--space-7); }
.doc h2 { font-size: 20px; margin: var(--space-4) 0 var(--space-2); font-weight: 700; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 14.5px; line-height: 1.8; color: var(--text-soft); }
.doc ul { margin: 10px 0 10px 20px; }
.doc .updated { color: var(--text-faint); font-size: 13px; margin-bottom: var(--space-4); }
.doc .callout {
  margin-top: var(--space-4);
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  color: var(--text-soft);
}

/* ---------- Support page ---------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (max-width: 820px) { .support-grid { grid-template-columns: 1fr; } }
.support-card {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 16px;
  padding: var(--space-3);
}
.support-card h3 { font-size: 16px; margin-bottom: 8px; }
.support-card p { font-size: 13.5px; color: var(--text-soft); line-height: 1.65; }
.support-card a.link { color: var(--accent); font-weight: 600; font-size: 13.5px; }

.faq-item { padding: 20px 0; border-bottom: 1px solid var(--divider); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 15px; font-weight: 650; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-soft); line-height: 1.7; }

/* ---------- Simple hero (non-home pages) ---------- */
.simple-hero {
  padding: 170px 0 var(--space-5);
}
.simple-hero .eyebrow { margin-bottom: 14px; }
