/* PanelSight landing page */
:root {
  --bg:        #07090d;
  --bg-2:      #0c1018;
  --panel:     #11161f;
  --panel-2:   #161c27;
  --line:      #232c3a;
  --text:      #e7ecf3;
  --muted:     #97a2b4;
  --faint:     #6a7488;
  --amber:     #ffb22e;   /* instrument needle / night glow */
  --amber-dim: #c8861f;
  --cyan:      #4dd2ff;   /* glass display */
  --green:     #54e08a;   /* in-arc / live data */
  --radius:    16px;
  --maxw:      1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

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

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

/* ---- type ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--amber); opacity: .6; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #ffc04d, var(--amber));
  color: #1a1205;
  box-shadow: 0 6px 24px rgba(255,178,46,.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,178,46,.3); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: #36425a; transform: translateY(-2px); }

/* ---- nav ---- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,9,13,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
header.scrolled { border-bottom-color: var(--line); background: rgba(7,9,13,.9); }
nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.lnk { color: var(--muted); font-size: 15px; transition: color .15s; }
.nav-links a.lnk:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---- hero ---- */
.hero { padding: 84px 0 40px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 70% -8%, rgba(255,178,46,.13), transparent 60%),
    radial-gradient(800px 500px at 8% 12%, rgba(77,210,255,.10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 20px 0 0; }
.hero h1 .hl { color: var(--amber); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin-top: 22px; max-width: 36ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; color: var(--green); }

.hero-shot { position: relative; }
.hero-shot .frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.02) inset;
  transition: transform .4s ease;
}
.hero-shot .frame:hover { transform: translateY(-4px); }
.hero-shot .tag {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--panel-2); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: 10px; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 9px; box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot.live { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ---- logos / trust strip ---- */
.strip { padding: 30px 0 6px; }
.strip .lbl { text-align: center; color: var(--faint); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  font-family: var(--display); font-size: 13.5px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--panel);
}
.chip b { color: var(--text); font-weight: 600; }

/* ---- section shell ---- */
.sec { padding: 96px 0; }
.sec-head { max-width: 620px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 14px; }
.sec-head p { color: var(--muted); font-size: 17px; margin-top: 16px; }

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #34425c; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(255,178,46,.10); border: 1px solid rgba(255,178,46,.22);
}
.card .ico svg { width: 24px; height: 24px; color: var(--amber); }
.card.cy .ico { background: rgba(77,210,255,.10); border-color: rgba(77,210,255,.22); }
.card.cy .ico svg { color: var(--cyan); }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* ---- showcase / gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 54px; }
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.04); }
.shot .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 18px 16px;
  background: linear-gradient(transparent, rgba(5,7,11,.92));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.shot .cap .nm { font-family: var(--display); font-weight: 600; font-size: 15.5px; }
.shot .cap .kind { font-size: 12px; color: var(--bg); font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--cyan); }
.shot .cap .kind.an { background: var(--amber); }
.shot.big { grid-column: span 2; }
/* source shots are 16:9 — keep the big banner at 16:9 (just wider) so it never distorts */
.shot.big img { aspect-ratio: 16/9; }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 54px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 700; font-size: 14px;
  color: var(--amber); letter-spacing: .1em;
}
.step h3 { font-size: 19px; margin-top: 12px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 9px; }
.step .arrow { position: absolute; right: -35px; top: 50%; transform: translateY(-50%); color: var(--faint); z-index: 3; }

/* ---- split / detail ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 30px; }
.split.rev .txt { order: 2; }
.split .frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(0,0,0,.7); }
.split h2 { font-size: clamp(26px, 3.2vw, 36px); margin-top: 14px; }
.split p { color: var(--muted); font-size: 16.5px; margin-top: 16px; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 13px; }
.ticks li { display: flex; gap: 12px; font-size: 15.5px; color: var(--text); }
.ticks li svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.ticks li span { color: var(--muted); }

/* ---- coming soon / roadmap ---- */
.soon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 50px; }
.soon {
  position: relative; background: var(--panel);
  border: 1px dashed #2f3a4e; border-radius: var(--radius);
  padding: 28px 28px 26px;
}
.soon .badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
  background: rgba(77,210,255,.10); border: 1px solid rgba(77,210,255,.25);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.soon .badge .dot { width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.soon h3 { font-size: 19px; }
.soon p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.soon .ico { width: 40px; height: 40px; margin-bottom: 16px; color: var(--faint); }
.soon .ico svg { width: 100%; height: 100%; }
/* the "in focus now" card — full width, amber, solid */
.soon.now { grid-column: 1 / -1; border-style: solid; border-color: rgba(255,178,46,.30);
  background: linear-gradient(180deg, rgba(255,178,46,.07), var(--panel)); }
.soon.now .ico { color: var(--amber); }
.soon.now .badge { color: var(--amber); background: rgba(255,178,46,.10); border-color: rgba(255,178,46,.28); }
.soon.now .badge .dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.soon.now h3 { font-size: 22px; }

/* ---- supported aircraft (compatibility wall of names) ---- */
.acft-wall { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; max-width: 880px; margin: 48px auto 0; }
.acft-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.acft-chip svg { width: 16px; height: 16px; flex: none; color: var(--faint); fill: currentColor; transition: color .18s ease, transform .18s ease; }
.acft-chip:hover { transform: translateY(-3px); border-color: rgba(255,178,46,.5); box-shadow: 0 12px 28px -16px rgba(255,178,46,.45); }
.acft-chip:hover svg { color: var(--amber); transform: translateX(2px); }

.acft-note { max-width: 760px; margin: 28px auto 0; font-size: 13.5px; color: var(--faint); text-align: center; }

@media (max-width: 600px) {
  .acft-wall { gap: 9px; margin-top: 38px; }
  .acft-chip { padding: 11px 15px; font-size: 14px; }
}

/* ---- faq ---- */
.faq { max-width: 820px; margin: 48px auto 0; }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 12px; overflow: hidden; }
details[open] { border-color: #34425c; }
summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  font-family: var(--display); font-weight: 600; font-size: 16.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary .pm { color: var(--amber); font-size: 22px; line-height: 1; transition: transform .2s; flex: none; }
details[open] summary .pm { transform: rotate(45deg); }
details .ans { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ---- cta band ---- */
.cta {
  margin: 0 auto; max-width: var(--maxw); border-radius: 24px;
  padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255,178,46,.16), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--bg-2));
}
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta p { color: var(--muted); font-size: 17px; margin: 16px auto 0; max-width: 48ch; }
.signup { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.signup input {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 13px 16px; font-size: 15px; font-family: var(--font);
  min-width: 280px; outline: none; transition: border-color .2s;
}
.signup input:focus { border-color: var(--amber); }
.signup .msg { width: 100%; margin-top: 12px; font-size: 14px; color: var(--green); min-height: 18px; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 46px 0 56px; margin-top: 96px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .brand { font-size: 17px; }
.foot p { color: var(--faint); font-size: 14px; }
.foot .links { display: flex; gap: 22px; }
.foot .links a { color: var(--muted); font-size: 14px; }
.foot .links a:hover { color: var(--text); }
.disclaimer { color: var(--faint); font-size: 12.5px; margin-top: 22px; max-width: 70ch; }

/* ---- EmailOctopus embedded signup form ----
   Center it in the CTA and explicitly theme it for our dark background.
   EmailOctopus injects its own stylesheet (assuming a light bg) and loads it
   asynchronously, so we use !important to win deterministically rather than
   relying on CSS load order or the .btn class-name collision. */
.signup-embed { display: flex; justify-content: center; margin-top: 30px; }
.signup-embed .emailoctopus-form { width: 100%; max-width: 520px; margin: 0 auto; }
.signup-embed .emailoctopus-form-row { justify-content: center; }

/* input: light text on dark field (was dark-on-dark / low contrast) */
.signup-embed .form-control {
  background: var(--panel-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}
.signup-embed .form-control::placeholder { color: var(--faint) !important; }
.signup-embed .form-control:focus { border-color: var(--amber) !important; outline: none !important; }

/* button: lock the amber brand styling so it never flashes EmailOctopus purple */
.signup-embed input[type="submit"],
.signup-embed .btn-primary {
  background: linear-gradient(180deg, #ffc04d, var(--amber)) !important;
  color: #1a1205 !important;
  border-color: transparent !important;
}

/* response messages: readable on the dark background */
.signup-embed .emailoctopus-success-message { color: var(--green) !important; }
.signup-embed .emailoctopus-error-message,
.signup-embed .grecaptcha-error { color: #ff8a8a !important; }

/* ---- signup consent microcopy ---- */
.consent { width: 100%; max-width: 52ch; margin: 14px auto 0; font-size: 12.5px; line-height: 1.55; color: var(--faint); }
.consent a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--text); }

/* ---- legal / privacy page ---- */
.legal { max-width: 768px; margin: 0 auto; padding: 120px 0 40px; }
.legal .back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.legal .back:hover { color: var(--text); }
.legal h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); letter-spacing: -.01em; }
.legal .updated { color: var(--faint); font-size: 14px; margin-top: 10px; }
.legal h2 { font-family: var(--display); font-size: 20px; margin-top: 40px; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; line-height: 1.72; margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 22px; }
.legal li { margin-top: 7px; }
.legal a { color: var(--cyan); }
.legal a:hover { text-decoration: underline; }
.legal .note { font-size: 13px; color: var(--faint); border-left: 2px solid var(--line); padding-left: 14px; margin-top: 26px; }

/* ---- reveal anim ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot .frame { transform: none; }
  .hero-shot .tag { left: 12px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .step .arrow { display: none; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .txt { order: 0; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 600px) {
  .features, .steps, .gallery, .soon-grid { grid-template-columns: 1fr; }
  .shot.big { grid-column: span 1; }
  .sec { padding: 70px 0; }
  .hero { padding: 50px 0 20px; }
  .cta { padding: 48px 22px; border-radius: 18px; }
  .nav-cta .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot.live { animation: none; }
  html { scroll-behavior: auto; }
}
