/* Flightna — components */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-body);
  padding: .8rem 1.4rem; border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--brand); color: #fff; line-height: 1;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--brand-600); color: #fff; box-shadow: var(--sh-brand); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); box-shadow: none; transform: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--brand-600); }
.btn-on-dark-outline { background: transparent; color: #fff; border-color: var(--d-line); }
.btn-on-dark-outline:hover { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: var(--s-5); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.nav-menu { display: flex; align-items: center; gap: .25rem; margin-left: var(--s-4); }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .8rem; border-radius: var(--r-sm); color: var(--ink-2);
  font-weight: 500; font-size: .95rem; background: transparent; border: 0;
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); background: var(--bg-soft); }
.nav-link .ico { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.nav-item:hover .nav-link .ico { transform: rotate(180deg); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.nav-login { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: .55rem .7rem; }

/* Dropdown / mega-menu */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: var(--s-5); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mega { width: min(680px, 86vw); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.mega-col h4 { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: var(--s-3); }
.menu-link { display: flex; gap: .7rem; padding: .55rem .6rem; border-radius: var(--r-sm); align-items: flex-start; }
.menu-link:hover { background: var(--brand-50); }
.menu-link .menu-ico { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand); }
.menu-link .menu-ico .ico { width: 18px; height: 18px; }
.menu-link b { display: block; color: var(--ink); font-family: var(--font-body); font-size: .92rem; font-weight: 600; }
.menu-link span { color: var(--ink-3); font-size: .82rem; line-height: 1.4; }
.dropdown-simple { width: 280px; display: grid; gap: .15rem; }
.mega-foot { grid-column: 1 / -1; margin-top: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.mega-foot a { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }

/* Mobile nav — drawer, toggle & sticky bar are hidden on desktop, shown ≤900px */
.nav-toggle, .mobile-cta-bar, .nav-drawer { display: none; }
.nav-toggle { background: transparent; border: 0; color: var(--ink); padding: .4rem; margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--d-bg); color: var(--d-ink); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background: radial-gradient(60% 60% at 75% 15%, rgba(124,92,255,.30), transparent 60%),
              radial-gradient(50% 50% at 15% 0%, rgba(47,107,255,.30), transparent 60%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(var(--d-line) 1px, transparent 1px), linear-gradient(90deg, var(--d-line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 80%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-7); align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero h1 { color: #fff; font-size: var(--fs-display); margin: var(--s-4) 0; }
.hero p.lead { color: var(--d-ink-2); max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: var(--s-6); }
.hero-trust { margin-top: var(--s-6); color: var(--d-ink-3); font-size: var(--fs-sm); display: flex; align-items: center; gap: .6rem; }
.hero-trust .ico { width: 18px; height: 18px; color: var(--aqua); }

/* ---------- Dashboard mock (CSS/SVG) ---------- */
.mock {
  background: linear-gradient(180deg, var(--d-bg-2), var(--d-bg-3));
  border: 1px solid var(--d-line); border-radius: var(--r-lg); box-shadow: var(--sh-3);
  padding: var(--s-4); position: relative;
}
.mock-bar { display: flex; gap: .4rem; margin-bottom: var(--s-4); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--d-line); }
.mock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.mock-tile { background: rgba(255,255,255,.04); border: 1px solid var(--d-line); border-radius: var(--r); padding: var(--s-4); }
.mock-tile .k { font-size: var(--fs-xs); color: var(--d-ink-3); text-transform: uppercase; letter-spacing: .08em; }
.mock-tile .v { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin-top: .25rem; }
.mock-tile .d { font-size: .78rem; color: var(--ok); margin-top: .2rem; }
.mock-tile.wide { grid-column: 1 / -1; }
.spark { width: 100%; height: 44px; margin-top: .5rem; }
.spark path.line { fill: none; stroke: url(#g1); stroke-width: 2.5; }
.spark path.area { fill: url(#g2); opacity: .25; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-top: .5rem; }
.bars i { flex: 1; background: var(--grad); border-radius: 4px 4px 0 0; opacity: .85; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: var(--s-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-5); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card-link:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: transparent; }
.card-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand); margin-bottom: var(--s-4);
}
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { color: var(--ink-3); font-size: .95rem; }
.card .more { margin-top: var(--s-4); display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--brand); }
.card-link:hover .more .ico { transform: translateX(4px); }
.card .more .ico { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }

/* feature/capability item (icon + text) */
.feat { display: flex; gap: .9rem; }
.feat .feat-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }
.feat .feat-ico .ico { width: 20px; height: 20px; }
.feat b { display: block; color: var(--ink); margin-bottom: .15rem; font-size: 1rem; }
.feat p { font-size: .92rem; color: var(--ink-3); }

/* ---------- Bands (dark cockpit) ---------- */
.section--dark { background: var(--d-bg); color: var(--d-ink-2); position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: var(--d-ink-2); }
.section--dark .glow { position: absolute; inset: auto; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: .35; background: var(--grad); top: -160px; right: -120px; pointer-events: none; }

/* ---------- Pipeline diagram ---------- */
.pipeline { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.pipeline .stage { flex: 1 1 18%; min-width: 130px; padding: var(--s-5) var(--s-4); position: relative; border-right: 1px solid var(--line); }
.pipeline .stage:last-child { border-right: 0; }
.pipeline .stage .n { font-family: var(--font-display); font-size: .8rem; color: var(--brand); font-weight: 700; }
.pipeline .stage b { display: block; margin: .35rem 0 .25rem; color: var(--ink); }
.pipeline .stage span { font-size: .82rem; color: var(--ink-3); }
.pipeline .stage .ico { width: 22px; height: 22px; color: var(--brand); margin-bottom: .4rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--s-5); counter-reset: step; }
.step { display: flex; gap: var(--s-4); }
.step .num { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; }
.step b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .2rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.section--dark .stat .num { color: #fff; }
.stat .num .grad-text { font-weight: 700; }
.stat p { font-size: .92rem; color: var(--ink-3); margin-top: .2rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); position: relative; }
.plan.featured { border-color: var(--brand); box-shadow: var(--sh-3); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: var(--fs-xs); font-weight: 600; padding: .35rem .8rem; border-radius: var(--r-pill); letter-spacing: .04em; }
.plan h3 { font-family: var(--font-display); }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--ink); margin: var(--s-3) 0 .1rem; letter-spacing: -.03em; }
.plan .price small { font-size: .95rem; color: var(--ink-3); font-weight: 500; }
.plan .price-note { font-size: .85rem; color: var(--ink-3); min-height: 1.2em; }
.plan ul { margin: var(--s-5) 0; display: grid; gap: .7rem; }
.plan li { display: flex; gap: .6rem; font-size: .92rem; color: var(--ink-2); }
.plan li .ico { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: .15rem; }
.plan li.off { color: var(--ink-4); }
.plan li.off .ico { color: var(--ink-4); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: var(--s-5) 0; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform var(--t) var(--ease); color: var(--brand); flex: none; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq .faq-body { padding-bottom: var(--s-5); color: var(--ink-3); max-width: 70ch; }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .35rem; }
.field .req { color: var(--err); }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); padding: .75rem .9rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.textarea { min-height: 130px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
.form-grid .full { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--ink-3); margin-top: var(--s-3); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--sh-2); }
.alert { padding: .9rem 1.1rem; border-radius: var(--r); font-size: .92rem; margin-bottom: var(--s-4); }
.alert-err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.field-err { border-color: var(--err) !important; }
.err-text { color: var(--err); font-size: .82rem; margin-top: .3rem; display: none; }

/* ---------- Testimonial ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.quote .stars { color: var(--warn); display: flex; gap: .15rem; margin-bottom: var(--s-3); }
.quote .stars .ico { width: 18px; height: 18px; fill: var(--warn); }
.quote blockquote { font-size: 1.15rem; color: var(--ink); line-height: 1.5; font-family: var(--font-display); font-weight: 500; }
.quote .who { margin-top: var(--s-4); display: flex; align-items: center; gap: .7rem; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; }
.quote .who b { color: var(--ink); display: block; font-size: .95rem; }
.quote .who span { color: var(--ink-3); font-size: .85rem; }

/* ---------- Logo / integration strip ---------- */
.logostrip { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7); align-items: center; justify-content: center; }
.logostrip .lg { font-family: var(--font-display); font-weight: 700; color: var(--ink-4); font-size: 1.15rem; letter-spacing: -.01em; opacity: .8; }
.intg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.intg { display: flex; align-items: center; gap: .7rem; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.intg .dot { width: 36px; height: 36px; border-radius: 9px; background: var(--bg-soft); display: grid; place-items: center; color: var(--brand); flex: none; }
.intg b { font-size: .92rem; color: var(--ink); }
.intg span { font-size: .78rem; color: var(--ink-3); }

/* ---------- Pills / chips / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-600); font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--brand-100); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: var(--r-sm); background: var(--bg-soft); color: var(--ink-2); font-size: .8rem; font-weight: 500; border: 1px solid var(--line); }
.chip .ico { width: 14px; height: 14px; color: var(--brand); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--ink-3); margin-bottom: var(--s-4); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--ink-4); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--d-bg); color: #fff; border-radius: var(--r-xl); padding: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 0%, rgba(124,92,255,.35), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-band p { color: var(--d-ink-2); max-width: 52ch; margin: 0 auto var(--s-6); }
.cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.cta-micro { margin-top: var(--s-4); color: var(--d-ink-3); font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--d-bg); color: var(--d-ink-3); padding-block: var(--s-8) var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: var(--d-ink-3); font-size: .9rem; margin-top: var(--s-3); max-width: 32ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer-col a { display: block; color: var(--d-ink-3); font-size: .9rem; padding: .3rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--d-line); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: .85rem; }
.footer-bottom a { color: var(--d-ink-3); }
.footer-contact { margin-top: var(--s-4); display: grid; gap: .4rem; font-size: .9rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .5rem; color: var(--d-ink-2); }
.footer-contact .ico { width: 16px; height: 16px; color: var(--aqua); }

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