/* ===== FlightOps Hub — marketing site ===== */

:root {
  --bg: #0a0e16;
  --bg-soft: #0d1220;
  --panel: #121826;
  --panel-2: #161d2d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e9edf5;
  --text-dim: #99a2b6;
  --text-dimmer: #6b7488;
  --accent: #4c8dff;
  --accent-2: #7aa7ff;
  --accent-soft: rgba(76, 141, 255, 0.14);
  --green: #22c55e;
  --orange: #f59e0b;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

.accent { color: var(--accent-2); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 10px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.2rem; margin-bottom: 10px; }

p { color: var(--text-dim); margin: 0 0 14px; }

/* background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 40vw at 82% -10%, rgba(76, 141, 255, 0.16), transparent 60%),
    radial-gradient(50vw 35vw at -10% 20%, rgba(122, 167, 255, 0.10), transparent 60%),
    var(--bg);
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 22, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  margin-right: auto;
}

.brand__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.nav__links a:hover { color: var(--text); }

.nav__cta { margin-left: 4px; }

/* ---------- LANGUAGE SWITCH ---------- */
.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.is-active {
  background: linear-gradient(135deg, var(--accent), #6aa0ff);
  color: #06101f;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 16px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #6aa0ff);
  color: #06101f;
  box-shadow: 0 10px 30px -10px rgba(76, 141, 255, 0.65);
}

.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(76, 141, 255, 0.8); }

.btn--ghost {
  background: var(--panel);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover { border-color: var(--accent); }

.btn--sm { padding: 8px 16px; font-size: 0.88rem; }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; width: 100%; }

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 76px 60px;
}

.hero__lead { font-size: 1.08rem; max-width: 46ch; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 28px;
}

.hero__trial {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0 0 20px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-size: 0.8rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 7px 13px;
  border-radius: 999px;
}

.window-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.window-frame--float { transform: rotate(0.3deg); }

.window-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #1a2130;
  border-bottom: 1px solid var(--border);
}

.window-frame__title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--text-dimmer);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }

/* ---------- TRUST STRIP ---------- */
p.trust {
  color: var(--text-dimmer);
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin: 36px 0 0;
}

/* ---------- SHOWCASE / VIDEO ---------- */
.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(76, 141, 255, 0.14), transparent 70%),
    var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.video-frame__placeholder p {
  margin: 0;
  color: var(--text-dimmer);
  font-size: 0.92rem;
}

.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--panel-2);
  color: var(--accent-2);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 0 0 10px rgba(76, 141, 255, 0.06);
}

/* ---------- BENEFITS ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  text-align: center;
  padding: 30px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.benefit-card__icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
}

.benefit-card h3 { font-size: 1.1rem; }
.benefit-card p { font-size: 0.92rem; margin: 0; }

/* ---------- SECTIONS ---------- */
.section { padding-block: 64px; }

.section__head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section__head .eyebrow { text-align: center; }
.section__lead { font-size: 1.02rem; }

/* ---------- FEATURES ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-card__icon {
  font-size: 1.6rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
  margin-bottom: 14px;
}

.feature-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.feature-card li {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.feature-card li b { color: var(--text); }

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #06101f;
  background: var(--orange);
  padding: 3px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}

/* ---------- ICONS (feature/benefit cards, buttons) ---------- */
.feature-card__icon svg { width: 22px; height: 22px; }
.benefit-card__icon svg { width: 26px; height: 26px; }
.feature-card__icon, .benefit-card__icon { color: var(--accent-2); }

.play-btn svg { width: 22px; height: 22px; margin-left: 3px; }

.lightbox__close svg { width: 18px; height: 18px; }

/* ---------- DYNAMIC SCREENSHOT PANELS ---------- */
.showcase-panels { max-width: 920px; margin: 0 auto; }

.panel-display { cursor: zoom-in; }

.panel-display__stage {
  aspect-ratio: 1490 / 1005;
  overflow: hidden;
  background: var(--bg-soft);
}

.panel-display__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.panel-display__stage.is-switching img { opacity: 0; }

.panel-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 16px 0 28px;
}

.panel-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.panel-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.panel-tab:hover { color: var(--text); border-color: var(--border-strong); }

.panel-tab.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.panel-tab__icon { display: flex; color: var(--accent-2); }
.panel-tab__icon svg { width: 16px; height: 16px; }

.panel-tab__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
}

.panel-tab.is-active .panel-tab__bar { animation: panel-progress 4.5s linear forwards; }

@keyframes panel-progress {
  from { width: 0; }
  to { width: 100%; }
}

/* ---------- BUY ---------- */
.buy-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.buy-card__copy { padding: 46px; }

.buy-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.buy-card__panel {
  background: var(--panel-2);
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}

.price { margin-bottom: 22px; }
.buy-btn + .buy-btn { margin-top: 12px; }
.price__amount { display: block; font-size: 2.4rem; font-weight: 800; }
.price__note { display: block; color: var(--text-dimmer); font-size: 0.86rem; margin-top: 4px; }

.buy-fineprint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dimmer);
  margin: 14px 0 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px 22px;
}

.faq-item + .faq-item { margin-top: 0; }

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--accent-2);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* Richer FAQ answers (.faq-answer) can hold several <p>s plus a numbered
   list instead of one plain paragraph - reset each child's own spacing so
   they read as one flowing answer instead of double-gapping against the
   container's own top margin. */
.faq-item .faq-answer {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.faq-item .faq-answer p,
.faq-item .faq-answer ol {
  margin: 0 0 10px;
}
.faq-item .faq-answer p:last-child,
.faq-item .faq-answer ol:last-child {
  margin-bottom: 0;
}
.faq-item .faq-answer ol {
  padding-left: 1.25em;
}
.faq-item .faq-answer li + li {
  margin-top: 4px;
}
.faq-item .faq-answer strong {
  color: var(--text);
}

/* ---------- THANK YOU PAGE ---------- */
.thanks-page {
  display: flex;
  justify-content: center;
  padding-block: 90px;
}

.thanks-card {
  max-width: 560px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px 40px;
}

.thanks-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #3ddc7c);
  color: #06101f;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-page .eyebrow { text-align: center; }

.thanks-lead { font-size: 1rem; }

.thanks-card .btn { margin: 10px 0 26px; }

.thanks-fineprint {
  font-size: 0.82rem;
  color: var(--text-dimmer);
  margin: 0;
}

.thanks-fineprint a { color: var(--accent-2); }

/* ---------- LEGAL PAGES ---------- */
.legal-page { max-width: 760px; }

.legal-body h2 {
  font-size: 1.15rem;
  margin: 34px 0 10px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p { font-size: 0.95rem; }

.legal-body a { color: var(--accent-2); text-decoration: underline; }

/* ---------- LEGAL (in-page privacy/terms summary) ---------- */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.legal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  scroll-margin-top: 90px;
}

.legal-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.legal-card p { font-size: 0.92rem; margin: 0; }

.legal-card__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-2);
}

.legal-card__more:hover { text-decoration: underline; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  margin-top: 20px;
}

.footer__inner { text-align: center; }

.brand--footer { justify-content: center; margin-bottom: 16px; }

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
  font-size: 0.86rem;
}

.footer__links a { color: var(--text-dim); }
.footer__links a:hover { color: var(--accent-2); }

.footer__legal {
  max-width: 640px;
  margin: 0 auto 14px;
  font-size: 0.8rem;
  color: var(--text-dimmer);
}

.footer__copy { font-size: 0.8rem; color: var(--text-dimmer); margin: 0; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 7, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox[data-open="true"] { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-block: 48px 40px; }
  .hero__art { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .buy-card { grid-template-columns: 1fr; }
  .buy-card__panel { border-left: none; border-top: 1px solid var(--border); }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .buy-card__copy, .buy-card__panel { padding: 32px 24px; }
  .faq-item { padding: 16px 18px; }
  .panel-tab__label { display: none; }
  .panel-tab { padding: 10px 13px 12px; }
}

@media (max-width: 720px) {
  .nav.nav--open .nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav.nav--open .nav__links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
}
