:root {
  --night: #1C2556;
  --cream: #F3EBD3;
  --pink: #E8679C;
  --pink-hi: #FF8FBF;
  --magenta: #C2457E;
  --lilac: #C9C4E0;
  --forest: #141A12;
  --panel: #1E261A;
  --khaki: #E6DDC2;
  --muted: #A8A58A;
  --brass: #D9A441;
  --brass-hi: #F4D98A;
  --brass-lo: #A8781F;
  --on-brass: #1A1408;
  --rust: #D06A3E;
  --moss: #7FB24A;
  --slate: #7D9FC4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--cream); font-family: Barlow, system-ui, sans-serif; }
a { color: var(--cream); }
a:hover { color: var(--pink-hi); }
img { max-width: 100%; }

.page { position: relative; width: 100%; overflow: hidden; background-color: var(--night); }
.skybg { background-image: url(assets/sky.png); background-repeat: repeat-x; background-size: 64px 100%; image-rendering: pixelated; }
.scatter { background-image: url(assets/clouds-scatter.png); background-repeat: repeat; background-size: 1280px 480px; image-rendering: pixelated; }
.bank { background-image: url(assets/clouds-bank.png); background-repeat: repeat-x; background-size: 1280px 384px; background-position: center bottom; image-rendering: pixelated; }
.edge { background-image: url(assets/clouds-edge.png); background-repeat: repeat-x; background-size: 1280px 160px; background-position: center top; image-rendering: pixelated; }
.land { background-image: url(assets/airfield.png); background-repeat: no-repeat; background-size: max(100%, 1280px) auto; background-position: center bottom; image-rendering: pixelated; }

.px { clip-path: polygon(0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px)); }

/* Sprites */
.sp { background-image: url(assets/aircraft.png); background-repeat: no-repeat; image-rendering: pixelated; flex-shrink: 0; }
.sp2 { background-size: 1536px 1152px; width: 96px; height: 96px; }
.sp3 { background-size: 2304px 1728px; width: 144px; height: 144px; }
.sp2.c-A20N{background-position:-480px 0}.sp3.c-A20N{background-position:-720px 0}
.sp2.c-B789{background-position:-1152px -192px}.sp3.c-B789{background-position:-1728px -288px}
.sp2.c-A359{background-position:-1440px 0}.sp3.c-A359{background-position:-2160px 0}
.sp2.c-F35{background-position:-1248px -864px}
.sp2.c-B742{background-position:0 -288px}
.sp2.c-A337{background-position:-288px -96px}
.sp2.c-A388{background-position:-96px -96px}
.sp2.c-EC45{background-position:-384px -960px}
.sp2.c-SPIT{background-position:-96px -960px}
.sp2.c-AT76{background-position:-96px -576px}
.sp2.c-B38M{background-position:-1344px -96px}
.sp2.c-E195{background-position:-288px -384px}
.sp2.c-CH47{background-position:-864px -288px}
.sp2.c-DH8D{background-position:-1056px -480px}
.sp2.c-PC12{background-position:-480px -768px}
.sp2.c-EUFI{background-position:-1440px -864px}

.rk { background-image: url(assets/ranks.png); background-repeat: no-repeat; image-rendering: pixelated; background-size: 800px 800px; width: 80px; height: 80px; flex-shrink: 0; }
.rk.r1{background-position:0 0}
.rk.r10{background-position:-720px 0}.rk.r20{background-position:-720px -80px}.rk.r30{background-position:-720px -160px}
.rk.r40{background-position:-720px -240px}.rk.r50{background-position:-720px -320px}.rk.r60{background-position:-720px -400px}
.rk.r70{background-position:-720px -480px}.rk.r80{background-position:-720px -560px}.rk.r90{background-position:-720px -640px}
.rk.r100{background-position:-720px -720px}

/* Type */
.stencil { font-family: 'Saira Stencil One', sans-serif; font-weight: 400; }
.pixel { font-family: Silkscreen, monospace; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.cond { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 0.08em; }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 22px; background: var(--brass); color: var(--on-brass); border: 3px solid var(--forest); box-shadow: inset -3px -3px 0 var(--brass-lo), inset 3px 3px 0 var(--brass-hi), 4px 4px 0 rgba(0,0,0,0.45); text-decoration: none; font-family: Silkscreen, monospace; font-size: 17px; letter-spacing: 0.04em; }
.btn:hover { color: var(--on-brass); filter: brightness(1.06); }
.btn:active { transform: translate(2px, 2px); box-shadow: inset -3px -3px 0 var(--brass-lo), inset 3px 3px 0 var(--brass-hi), 2px 2px 0 rgba(0,0,0,0.45); }
.btn.small { height: 46px; font-size: 14px; }
.chip { align-self: flex-start; padding: 5px 10px; background: var(--pink); color: #160E2A; font-family: Silkscreen, monospace; font-size: 12px; }
.chip.green { background: var(--moss); color: var(--forest); }

/* Header */
.site-header { position: relative; z-index: 3; max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 12px; border: 3px solid var(--forest); object-fit: cover; }
.brand span { font-family: 'Saira Stencil One', sans-serif; font-size: 28px; color: var(--cream); text-shadow: 3px 3px 0 var(--magenta); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 0.08em; }
.site-nav a { text-decoration: none; }

/* Hero */
.hero { position: relative; padding: 40px 24px 0; }
/* Clouds drawn on a faded, desaturated layer so the hero stays calm. */
.hero.scatter { background-image: none; }
.hero.scatter::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: url(assets/clouds-scatter.png); background-repeat: repeat; background-size: 1920px 720px; background-position: 240px 60px; image-rendering: pixelated; opacity: 0.28; filter: saturate(0.35); }
.hero .bank { filter: saturate(0.5) brightness(0.95); opacity: 0.9; }
.hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-bottom: 220px; }
.hero-title { margin: 0; font-size: 112px; line-height: 0.92; color: var(--cream); text-shadow: 6px 6px 0 var(--magenta); }
.hero-lede { margin: 0; max-width: 520px; font-size: 22px; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-actions .cond { font-size: 18px; }
.hero-note { font-size: 13px; color: var(--lilac); }
.phone-wrap { flex: 0 0 auto; margin: 0 auto; position: relative; z-index: 1; }
.phone { width: 309px; height: 650px; padding: 14px; background: var(--forest); border-radius: 52px; box-shadow: 8px 8px 0 rgba(0,0,0,0.45); }
.phone img { display: block; width: 281px; height: 608px; border-radius: 40px; object-fit: cover; }
.hero .bank { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 300px; pointer-events: none; }
.strip { height: 80px; background: #7A68AC; filter: saturate(0.5) brightness(0.95); }
.edge-band { height: 140px; margin-top: -1px; filter: saturate(0.5) brightness(0.95); }

/* Sections */
.section { position: relative; max-width: 1200px; margin: 0 auto; padding: 40px 24px 90px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.eyebrow { font-family: Silkscreen, monospace; font-size: 13px; letter-spacing: 0.12em; color: var(--pink-hi); }
.section-head h2 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.section-head p { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.5; color: var(--lilac); }

/* How it works */
#how { padding-top: 10px; gap: 56px; }
.steps { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: flex-start; }
.step { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.step-text { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 340px; }
.step-text .chip { align-self: center; padding: 4px 10px; }
.step-text h3 { margin: 0; font-size: 32px; }
.step-text p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--lilac); }
.marker { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.plate { display: flex; flex-direction: column; align-items: center; padding: 4px 10px; background: rgba(20,26,18,0.88); border: 2px solid var(--forest); }
.plate .mono { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--khaki); }
.plate .cond { font-size: 16px; letter-spacing: 0.06em; color: var(--brass-hi); }
.target { position: relative; width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; }
.target.sm { width: 132px; height: 132px; }
.target svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.extras { display: flex; justify-content: space-between; padding: 0 40px; opacity: 0.9; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 260px; min-width: 0; }
.card-outer { background: var(--forest); padding: 3px; filter: drop-shadow(5px 5px 0 rgba(0,0,0,0.4)); height: 100%; }
.card-inner { background: var(--panel); padding: 18px 20px; color: var(--khaki); height: 100%; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.unit-name { font-family: Silkscreen, monospace; font-size: 18px; }
.unit-motto { font-family: VT323, monospace; font-size: 24px; }
.unit-symbol { font-size: 12px; color: var(--muted); }
.trust .card-inner { gap: 8px; }
.trust-title { font-family: Silkscreen, monospace; font-size: 14px; color: var(--brass-hi); }
.trust-body { font-size: 15px; line-height: 1.5; color: #C9C2A8; }
.trust-body a { color: #C9C2A8; }

/* Field guide */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 18px; justify-items: center; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tile-box { position: relative; width: 116px; height: 116px; display: flex; align-items: center; justify-content: center; background: #2A2117; border: 3px solid var(--forest); }
.tile-box.rare { background: radial-gradient(closest-side, #4A3410, #1C150C); border-color: var(--brass); box-shadow: 0 0 0 3px rgba(217,164,65,0.35); }
.tile-box.mil { background: repeating-linear-gradient(135deg, #2F3A1E 0 7px, #26301A 7px 14px); border-color: #6B7A3E; }
.tag { position: absolute; left: -3px; top: 6px; padding: 1px 6px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.14em; }
.rare .tag { background: var(--brass); color: var(--on-brass); }
.mil .tag { background: #4B5A2E; color: var(--khaki); }
.tile-code, .rank-num { font-family: Silkscreen, monospace; font-size: 11px; }

/* Ranks */
#ranks { gap: 36px; }
.ranks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.rank { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.trust { padding: 20px 24px 60px; }

/* Final CTA */
.enlist { position: relative; min-height: 780px; padding: 40px 24px 0; }
.enlist-copy { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.enlist-copy h2 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1; text-shadow: 5px 5px 0 var(--magenta); }
.enlist-copy p { margin: 0; max-width: 560px; font-size: 19px; line-height: 1.5; }
.general { position: absolute; z-index: 2; right: max(24px, calc(50% - 600px)); bottom: 0; display: flex; align-items: flex-end; }
.bubble { position: relative; margin-right: -24px; margin-bottom: 250px; filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.35)); }
.bubble-outer { background: var(--forest); padding: 3px; }
.bubble-inner { background: var(--cream); padding: 18px 16px 14px; width: 220px; }
.bubble-inner p { margin: 0; font-family: VT323, monospace; font-size: 25px; line-height: 1.05; color: #26201A; }
.bubble-tag { position: absolute; left: 12px; top: -11px; padding: 3px 8px; background: var(--brass); border: 3px solid var(--forest); font-family: Silkscreen, monospace; font-size: 11px; color: var(--on-brass); }
.general img { width: 320px; height: 280px; image-rendering: pixelated; }

/* Footer */
.site-footer { background: #3A4A26; border-top: 4px solid #2E3B1E; padding: 36px 24px 48px; color: var(--cream); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { font-family: 'Saira Stencil One', sans-serif; font-size: 26px; text-shadow: 3px 3px 0 #26301A; }
.footer-copy { font-size: 12px; color: var(--khaki); }
.credits { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.credits-title { font-family: Silkscreen, monospace; font-size: 12px; color: var(--brass-hi); }
.credits-body { font-size: 14px; line-height: 1.5; color: var(--khaki); }
.footer-nav { display: flex; flex-direction: column; gap: 6px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: 0.06em; }

/* Legal pages */
.legal-wrap { padding: 20px 24px 80px; }
.legal { max-width: 760px; margin: 0 auto; background: var(--panel); border: 3px solid var(--forest); box-shadow: 6px 6px 0 rgba(0,0,0,0.4); padding: 40px clamp(20px, 5vw, 48px); color: var(--khaki); line-height: 1.6; font-size: 16px; }
.legal h1 { margin: 0 0 6px; font-size: clamp(34px, 6vw, 48px); line-height: 1.05; color: var(--cream); text-shadow: 4px 4px 0 var(--magenta); }
.legal .updated { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-family: Silkscreen, monospace; font-weight: 400; font-size: 16px; color: var(--brass-hi); margin: 34px 0 8px; letter-spacing: 0.02em; }
.legal p, .legal li { color: var(--khaki); }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal a { color: var(--pink-hi); }
.legal strong { color: var(--cream); }

@media (max-width: 760px) {
  .hero-title { font-size: 64px; }
  .hide-sm { display: none !important; }
  .hero-copy { padding-bottom: 40px; }
  .phone-wrap { margin-bottom: 160px; }
  .site-nav { gap: 14px; font-size: 15px; }
  .enlist { min-height: 640px; }
}
@media (max-width: 380px) {
  .phone { width: 270px; height: 568px; padding: 12px; border-radius: 46px; }
  .phone img { width: 246px; height: 532px; border-radius: 36px; }
}
