/* ============================================================
   WW AVIATION — Showpiece site theme
   Black / silver / sky-blue.  Oswald display + Rajdhani UI.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:        #05070a;          /* near-black, cool */
  --bg-2:      #0b0f15;          /* panel */
  --bg-3:      #11161f;          /* raised panel */
  --line:      #1d2530;          /* hairlines */
  --line-2:    #2a3442;
  --silver:    #c7ced8;          /* primary text */
  --silver-dim:#8a93a1;          /* secondary text */
  --white:     #f4f7fb;
  --sky:       #4db8ff;          /* highlight */
  --sky-bright:#7fd0ff;
  --sky-deep:  #1f6fb2;
  --glow:      0 0 24px rgba(77,184,255,.35);
  --maxw:      1140px;
  --r:         14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--silver);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle starfield / instrument grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(31,111,178,.18), transparent 60%),
    radial-gradient(900px 600px at 8% 110%, rgba(77,184,255,.08), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .12;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
}

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: 'Oswald', sans-serif;
  color: var(--white);
  letter-spacing: .02em;
  line-height: 1.1;
  font-weight: 700;
}
.eyebrow {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: .32em;
  font-weight: 600;
  font-size: .78rem;
  color: var(--sky);
}
.label {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
}
a { color: var(--sky); text-decoration: none; }
strong { color: var(--white); font-weight: 600; }
.mono { font-family: 'Rajdhani', monospace; letter-spacing: .04em; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 92px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 14px 0 16px; }
.section-head p { color: var(--silver-dim); font-size: 1.06rem; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(5,7,10,.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: linear-gradient(160deg, #0d1622, #060a0f);
  box-shadow: var(--glow);
}
.brand .mark svg { width: 20px; height: 20px; }
.brand .name { font-family: 'Oswald'; font-weight: 800; color: var(--white); font-size: 1.02rem; letter-spacing: .06em; }
.brand .name span { color: var(--sky); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  font-family: 'Rajdhani'; font-weight: 600; font-size: .98rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--silver-dim); padding: 8px 14px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--white); background: var(--bg-3); }
.nav-links a.active { color: var(--sky); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2);
  color: var(--silver); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Rajdhani'; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; font-size: .92rem;
  padding: 13px 24px; border-radius: 10px; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(180deg, var(--sky-bright), var(--sky)); color: #03121d; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(77,184,255,.55); }
.btn-ghost { border-color: var(--line-2); color: var(--silver); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--sky); color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 96px; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
.hero h1 .grad {
  background: linear-gradient(180deg, var(--white), var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { max-width: 660px; margin: 26px auto 36px; color: var(--silver-dim); font-size: 1.18rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-strip {
  margin-top: 64px; display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--bg-2);
}
.hero-strip .stat { padding: 24px 34px; border-right: 1px solid var(--line); min-width: 180px; }
.hero-strip .stat:last-child { border-right: none; }
.hero-strip .num { font-family: 'Oswald'; font-size: 1.9rem; color: var(--white); font-weight: 700; }
.hero-strip .num .u { color: var(--sky); }
.hero-strip .cap { font-family: 'Rajdhani'; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; color: var(--silver-dim); margin-top: 4px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card .ic {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: #0a121b; margin-bottom: 18px; color: var(--sky);
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; font-family: 'Rajdhani'; letter-spacing: .04em; font-weight: 700; text-transform: uppercase; }
.card p { color: var(--silver-dim); font-size: .98rem; }

/* ---------- Tables ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: auto; background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); }
th { font-family: 'Rajdhani'; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--sky); font-weight: 700; background: #080c12; }
td { font-size: .96rem; color: var(--silver); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(77,184,255,.03); }
td .tier { font-family: 'Oswald'; font-size: .82rem; color: var(--white); }
.price { font-family: 'Oswald'; color: var(--sky-bright); font-weight: 700; }

/* ---------- Diagram (architecture) ---------- */
.diagram { display: grid; gap: 18px; }
.node {
  border: 1px solid var(--line-2); border-radius: 12px; padding: 20px 24px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); text-align: center;
}
.node.accent { border-color: var(--sky-deep); box-shadow: var(--glow); }
.node .role { font-family: 'Rajdhani'; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--sky); margin-bottom: 6px; }
.node .title { font-family: 'Oswald'; color: var(--white); font-size: 1.05rem; }
.node .desc { color: var(--silver-dim); font-size: .9rem; margin-top: 6px; }
.node-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.flowline { text-align: center; color: var(--sky); font-size: 1.4rem; line-height: 1; opacity: .7; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 14px; padding-left: 34px; border-left: 2px solid var(--line-2); }
.phase { position: relative; padding-bottom: 42px; }
.phase:last-child { padding-bottom: 0; }
.phase::before {
  content: ""; position: absolute; left: -43px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--sky); box-shadow: var(--glow);
}
.phase .ph-tag { font-family: 'Oswald'; color: var(--sky); font-size: .82rem; letter-spacing: .1em; }
.phase h3 { font-family: 'Rajdhani'; text-transform: uppercase; letter-spacing: .04em; font-size: 1.25rem; margin: 6px 0 10px; }
.phase p { color: var(--silver-dim); }

/* ---------- Callout / note ---------- */
.note {
  border: 1px solid var(--line-2); border-left: 3px solid var(--sky);
  background: rgba(77,184,255,.05); border-radius: 10px; padding: 20px 24px; margin: 26px 0;
}
.note .label { color: var(--sky); display: block; margin-bottom: 6px; font-size: .8rem; }

/* lists */
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--silver); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  border-radius: 4px; border: 1px solid var(--sky);
  background: linear-gradient(160deg, rgba(77,184,255,.25), transparent);
}
.checks li strong { color: var(--white); }

/* split row */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

/* pill */
.pill { display: inline-block; font-family: 'Rajdhani'; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; font-size: .74rem; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--silver-dim); }
.pill.sky { color: var(--sky); border-color: var(--sky-deep); }

/* ---------- Footer ---------- */
footer.foot { border-top: 1px solid var(--line); padding: 44px 0; margin-top: 40px; color: var(--silver-dim); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot small { font-family: 'Rajdhani'; letter-spacing: .06em; }

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

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .node-row, .split { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero-strip .stat { border-right: none; border-bottom: 1px solid var(--line); }
}
