/* FarAbove.aero — brand colors sampled from FAB logo */
:root {
  --fab-navy: #1f3469;
  --fab-mid: #2369b1;
  --fab-light: #68b5e3;
  --fab-pale: #a8d4f0;
  --fab-dark: #0d1c3a;
  --fab-black: #070f20;
  --white: #ffffff;
  --text-light: rgba(255, 255, 255, 0.75);
  --text-body: #2a3040;
  --bg-page: #f0f4f8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Nav ---------- */
.nav {
  background: var(--fab-black);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid var(--fab-mid);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 34px; width: auto; }
.nav-brand { font-size: 18px; font-weight: 600; color: var(--white); letter-spacing: 0.02em; }
.nav-brand span { color: var(--fab-light); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  color: var(--text-light);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }
.nav-cta {
  background: var(--fab-mid);
  color: var(--white) !important;
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--fab-light); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}

/* ---------- Divider ---------- */
.divider {
  height: 4px;
  background: linear-gradient(90deg, var(--fab-dark), var(--fab-navy), var(--fab-mid), var(--fab-light));
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--fab-black) 0%, var(--fab-navy) 55%, var(--fab-mid) 100%);
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--fab-pale);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(30px, 5.5vw, 46px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--fab-light); }
.hero-sub {
  font-size: 16px;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--fab-mid);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-primary:hover { background: var(--fab-light); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.65); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 24px; font-weight: 700; color: var(--white); }
.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ---------- Sweep animation (logo squares, left to right) ---------- */
.sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.sweep-sq {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  opacity: 0;
  animation: sweepIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.s1 { top: 12%; background: var(--fab-light); animation-delay: 0.05s; }
.s2 { top: 24%; background: var(--fab-mid); animation-delay: 0.18s; }
.s3 { top: 58%; background: var(--fab-navy); animation-delay: 0.30s; }
.s4 { top: 70%; background: var(--fab-light); animation-delay: 0.42s; }
.s5 { top: 40%; background: var(--fab-mid); animation-delay: 0.55s; }
.s6 { top: 84%; background: var(--fab-navy); animation-delay: 0.68s; }

.s1, .s3, .s5 { left: -60px; }
.s2, .s4, .s6 { right: -60px; animation-name: sweepInRight; }

@keyframes sweepIn {
  0%   { transform: translateX(0); opacity: 0; }
  20%  { opacity: 0.35; }
  100% { transform: translateX(18vw); opacity: 0; }
}
@keyframes sweepInRight {
  0%   { transform: translateX(0); opacity: 0; }
  20%  { opacity: 0.35; }
  100% { transform: translateX(-18vw); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sweep-sq { animation: none; opacity: 0; }
  .btn, .tier-card, .app-card { transition: none; }
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 1.5rem; max-width: 1020px; margin: 0 auto; }
.section-dark {
  background: var(--fab-dark);
  max-width: none;
}
.section-inner { max-width: 1020px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.25rem; }
.section-header h2 {
  font-size: 27px;
  font-weight: 700;
  color: var(--fab-dark);
  margin-bottom: 0.5rem;
}
.section-dark .section-header h2, .cta-band h2 { color: var(--white); }
.section-header p { font-size: 14px; color: #556; }
.section-dark .section-header p { color: rgba(255,255,255,0.6); }

/* ---------- Tiers ---------- */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.tier-card {
  border-radius: 14px;
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(13, 28, 58, 0.15);
}
.tier-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.tier-card h3 { font-size: 14px; font-weight: 600; line-height: 1.25; }
.tier-card p { font-size: 12px; opacity: 0.75; line-height: 1.45; }
.tier-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 10px;
  margin-top: auto;
}

/* Tier ladder: pale sky → deep navy, matching the FAB square progression */
.t1 { background: #eaf5fd; border-color: #bcdff5; color: var(--fab-dark); }
.t1 .tier-icon, .t1 .tier-tag { background: #bcdff5; }
.t2 { background: #d5ebf9; border-color: #8cc8ec; color: var(--fab-dark); }
.t2 .tier-icon, .t2 .tier-tag { background: #8cc8ec; }
.t3 { background: #bcdcf3; border-color: var(--fab-light); color: var(--fab-dark); }
.t3 .tier-icon, .t3 .tier-tag { background: var(--fab-light); }
.t4 { background: var(--fab-mid); border-color: var(--fab-light); color: var(--white); }
.t4 .tier-icon, .t4 .tier-tag { background: rgba(255,255,255,0.18); }
.t4 p { color: rgba(255,255,255,0.7); }
.t5 { background: var(--fab-navy); border-color: var(--fab-mid); color: var(--white); }
.t5 .tier-icon, .t5 .tier-tag { background: var(--fab-mid); }
.t5 p { color: rgba(255,255,255,0.7); }
.t6 { background: linear-gradient(135deg, var(--fab-dark), var(--fab-mid)); border-color: var(--fab-light); color: var(--white); }
.t6 .tier-icon, .t6 .tier-tag { background: rgba(255,255,255,0.16); }
.t6 p { color: rgba(255,255,255,0.7); }

/* ---------- Apps ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.app-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.25rem;
  transition: background 0.15s ease;
}
.app-card:hover { background: rgba(255,255,255,0.11); }
.app-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.app-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--fab-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.app-card h3 { font-size: 14px; font-weight: 600; color: var(--white); }
.app-tag {
  font-size: 10px;
  color: var(--fab-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.app-card > p { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.55; }
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 10px;
  background: var(--fab-navy);
  color: var(--fab-pale);
}

/* ---------- Videos ---------- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.video-slot h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--fab-dark);
  margin-top: 10px;
  text-align: center;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--fab-dark);
  border: 1.5px solid var(--fab-light);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- CTA band ---------- */
.cta-band { padding: 3.5rem 1.5rem; text-align: center; }
.cta-band h2 { font-size: 26px; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.65); margin-bottom: 1.5rem; font-size: 14px; }
.center { text-align: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--fab-black);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 12.5px;
}
.footer-logo-img { height: 40px; width: auto; margin: 0 auto 10px; }
.footer-brand { font-size: 16px; font-weight: 700; color: var(--fab-light); margin-bottom: 4px; }
.footer-copy { margin-top: 10px; }

/* ---------- Mobile nav ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--fab-black);
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    gap: 1rem;
    border-bottom: 2px solid var(--fab-mid);
  }
  .nav-links.open { display: flex; }
  .hero { padding-top: 3.5rem; }
  .hero-stats { gap: 1.5rem; }
}
