/* FLYTDECK AI. Theme matches knoticalhq.com (navy and gold, Cormorant Garamond and Barlow). */
:root {
  --navy-deep: #07091a;
  --navy-mid: #0d1528;
  --navy-light: #132040;
  --gold: #c9a84c;
  --gold-light: #e8d17a;
  --gold-rgb: 201 168 76;
  --white: #f0f4ff;
  --white-muted: #c4cddd;
  --border: rgb(var(--gold-rgb) / 0.12);
  --border-solid: rgb(var(--gold-rgb) / 0.28);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Barlow', system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); font-size: 16.5px; line-height: 1.65; color: var(--white); background: var(--navy-deep); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
em { font-style: italic; color: var(--gold); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; background: rgb(7 9 26 / 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 700; letter-spacing: 0.22em; font-size: 14px; text-transform: uppercase; }
.logo:hover { color: var(--white); }
.logo-mark { width: 30px; height: 30px; border: 1px solid var(--border-solid); border-radius: 6px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 7px; background: var(--navy-light); }
.logo-mark i { width: 3.5px; background: var(--gold); border-radius: 1px; display: block; }
.logo-mark i:nth-child(1) { height: 7px; opacity: .6; }
.logo-mark i:nth-child(2) { height: 11px; opacity: .8; }
.logo-mark i:nth-child(3) { height: 15px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--white-muted); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.dropdown { position: relative; }
.dropdown > a::after { content: " \25BE"; font-size: 11px; }
.dropdown-menu { position: absolute; top: calc(100% + 18px); left: -18px; min-width: 250px; background: var(--navy-mid); border: 1px solid var(--border-solid); border-radius: 6px; padding: 10px; display: none; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu::before { content: ""; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 4px; }
.dropdown-menu a:hover { background: var(--navy-light); }
.dropdown-menu small { display: block; color: var(--white-muted); font-size: 12px; opacity: .8; }
.menu-btn { display: none; background: none; border: 0; color: var(--white); font-size: 24px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 2px; border: 1px solid var(--gold); transition: all .25s ease; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-deep); }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: rgb(var(--gold-rgb) / 0.1); color: var(--gold-light); }
.btn-sm { padding: 10px 18px; font-size: 12px; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 60px) 0 90px; overflow: hidden;
  background: radial-gradient(ellipse at 75% 20%, rgb(var(--gold-rgb) / 0.10), transparent 55%), radial-gradient(ellipse at 10% 90%, #132040 0%, transparent 60%), linear-gradient(180deg, #04050d, #0a0e22); }
.hero.compact { min-height: auto; padding: calc(var(--nav-h) + 90px) 0 90px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(var(--gold-rgb) / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--gold-rgb) / 0.05) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(54px, 9vw, 128px); line-height: 0.98; margin-top: 26px; letter-spacing: -0.01em; }
.hero.compact h1 { font-size: clamp(46px, 6.5vw, 88px); }
.hero .lead { margin-top: 28px; max-width: 640px; font-size: 19px; color: var(--white-muted); }
.hero .actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 70px; display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 26px; max-width: 900px; }
.hero-meta div { font-size: 13px; color: var(--white-muted); letter-spacing: 0.04em; }
.hero-meta b { display: block; font-family: var(--font-display); font-size: 30px; color: var(--white); font-weight: 700; letter-spacing: 0; }

/* Sections, alternating backgrounds */
section { padding: 120px 0; position: relative; }
.bg-deep { background: var(--navy-deep); }
.bg-mid { background: var(--navy-mid); }
.bg-light { background: var(--navy-light); }
.section-num { font-size: 12px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 14px; }
.section-num::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; margin-top: 18px; letter-spacing: -0.005em; }
h3 { font-family: var(--font-display); font-weight: 700; font-size: 27px; line-height: 1.2; }
.intro { max-width: 760px; margin-bottom: 60px; }
.intro p { margin-top: 18px; color: var(--white-muted); font-size: 18px; }
.muted { color: var(--white-muted); }

/* Cards and grids */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: rgb(19 32 64 / 0.45); border: 1px solid var(--border); border-radius: 4px; padding: 32px; transition: border-color .3s ease, transform .3s ease; display: flex; flex-direction: column; }
.card:hover { border-color: var(--border-solid); transform: translateY(-3px); }
.card p { color: var(--white-muted); margin-top: 12px; font-size: 15.5px; flex: 1; }
.card .num { font-family: var(--font-display); font-size: 42px; color: var(--gold); line-height: 1; opacity: .85; }
.card .more { margin-top: 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.card .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.card .tags span { font-size: 12px; color: var(--white-muted); border: 1px solid var(--border-solid); padding: 4px 10px; border-radius: 2px; }
a.card { color: var(--white); }
.icon { width: 46px; height: 46px; border: 1px solid var(--border-solid); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 22px; background: rgb(var(--gold-rgb) / 0.06); }
.badge { display: inline-block; font-family: var(--font-ui); font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--gold); color: var(--gold); border-radius: 2px; margin-left: 10px; vertical-align: middle; }

/* Split feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.checks { list-style: none; margin-top: 26px; }
.checks li { padding: 13px 0 13px 34px; border-bottom: 1px solid var(--border); position: relative; color: var(--white-muted); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.checks li b { color: var(--white); font-weight: 600; }

/* Panel mock-ups */
.panel { background: linear-gradient(160deg, var(--navy-light), var(--navy-mid)); border: 1px solid var(--border-solid); border-radius: 6px; padding: 26px; box-shadow: 0 40px 80px rgb(0 0 0 / 0.45); }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.panel-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.panel-row:last-child { border-bottom: 0; }
.panel-row span:first-child { color: var(--white-muted); }
.ok { color: #7fd8a8; font-weight: 600; }
.warn { color: var(--gold-light); font-weight: 600; }
.bad { color: #ff8a80; font-weight: 600; }
.score { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 8px; }
.score b { font-family: var(--font-display); font-size: 64px; line-height: 1; }
.bar { height: 6px; background: rgb(var(--gold-rgb) / 0.12); border-radius: 3px; overflow: hidden; margin-bottom: 18px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

/* Steps */
.steps { counter-reset: step; }
.step { border-top: 1px solid var(--border-solid); padding-top: 24px; }
.step .n { font-family: var(--font-display); font-size: 18px; color: var(--gold); letter-spacing: 0.1em; }
.step h3 { margin-top: 8px; font-size: 24px; }
.step p { color: var(--white-muted); margin-top: 10px; font-size: 15.5px; }

/* Big statement */
.statement { text-align: center; max-width: 900px; margin: 0 auto; }
.statement h2 { font-size: clamp(38px, 5vw, 64px); }
.statement p { margin-top: 20px; color: var(--white-muted); font-size: 18px; }
.statement .actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Facts table */
.facts { border: 1px solid var(--border); border-radius: 4px; }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts span { color: var(--white-muted); font-size: 14px; letter-spacing: 0.04em; }
.facts b { font-weight: 500; text-align: right; }

/* Contact form (two fields, composes an email) */
.form { display: grid; gap: 16px; }
.form label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.form input, .form textarea { width: 100%; background: rgb(7 9 26 / 0.6); border: 1px solid var(--border-solid); border-radius: 2px; color: var(--white); font: inherit; padding: 14px 16px; margin-top: 8px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form textarea { min-height: 120px; resize: vertical; }
.form .note { font-size: 13px; color: var(--white-muted); }

/* Footer */
footer { background: #04050d; border-top: 1px solid var(--border); padding: 80px 0 40px; font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.foot a { display: block; color: var(--white-muted); margin-bottom: 10px; }
.foot a:hover { color: var(--white); }
.foot p { color: var(--white-muted); margin-top: 16px; max-width: 320px; }
.foot-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--white-muted); font-size: 13px; }

/* Legal */
.legal { max-width: 800px; }
.legal h2 { font-size: 30px; margin-top: 48px; }
.legal p, .legal li { color: var(--white-muted); margin-top: 14px; }
.legal ul { padding-left: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 84px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 28px 30px; background: var(--navy-mid); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .dropdown-menu { position: static; display: block; border: 0; padding: 6px 0 0 10px; background: none; }
  .dropdown > a::after { content: ""; }
  .hero-meta { gap: 28px; }
  .foot { grid-template-columns: 1fr; }
}
.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: var(--navy-deep); }

/* Flagship product card */
.card.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 48px; margin-bottom: 56px; border-color: var(--border-solid); background: linear-gradient(135deg, rgb(19 32 64 / 0.85), rgb(13 21 40 / 0.6)); }
.card.feature > div:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.card.feature .panel { box-shadow: 0 30px 60px rgb(0 0 0 / 0.4); }
.group { font-size: 12px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--white-muted); margin: 0 0 20px; }
.grid + .group { margin-top: 48px; }
@media (max-width: 1020px) { .card.feature { grid-template-columns: 1fr; padding: 32px; } }
