/* Airborne marketing page. Palette and type follow client/src/theme/tokens.ts. */
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('Inter-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 900; font-display: swap; src: url('Inter-Black.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('Barlow-Regular.ttf') format('truetype'); }
@font-face { font-family: 'AirborneChamfer'; font-weight: 900; font-display: swap; src: url('AirborneChamfer-Black.ttf') format('truetype'); }

/* Two text colours (ink, muted), the game's yellow for actions and sky blue for numbers. */
:root {
  --deep: #020917;
  --panel: #061427;
  --tint: #102039;
  --line: #244057;
  --line-strong: #315771;
  --ink: #f5f8fa;
  --muted: #9db9cf;
  --sky: #63b7e5;
  --yellow: #ffdc20;
  --chamfer: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons share the game's chamfered yellow action. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--yellow); color: var(--deep); }
.btn-primary:hover { background: #ffe75c; transform: translateY(-1px); }
.btn-small { padding: 11px 18px; font-size: 14px; --chamfer: 10px; }
.text-link { font-family: var(--display); font-weight: 700; font-size: 17px; text-decoration: none; }
.text-link::after { content: ' ↓'; color: var(--yellow); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(2, 9, 23, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.brand-mark { display: block; width: 36px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: 0.32em; }
/* The privacy page still prints the tagline under the wordmark. */
.brand-tag { margin-top: 6px; font-size: 10px; letter-spacing: 0.3em; color: var(--sky); text-transform: uppercase; }

/* Headlines keep the game's caps display type, at its natural tracking. */
.hero h1, section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
section h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1; }
section h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; }
section p { margin: 0; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px); overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(60px, 9vw, 116px); line-height: 0.9; }
.hero h1 span { color: var(--yellow); }
.lede { margin: 28px 0 36px; max-width: 30ch; font-size: clamp(20px, 2.1vw, 23px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.cta-note { margin-top: 20px; font-size: 16px; color: var(--muted); }

/* A real screenshot of the live app, with two cards over it */
.showcase { position: relative; min-height: 700px; display: flex; align-items: center; justify-content: center; }
.app-shot { position: relative; z-index: 1; width: 300px; border-radius: 28px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55); }
.card { position: absolute; z-index: 2; width: 196px; filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.6)); }
.card-a { left: -64px; bottom: 24px; transform: rotate(-9deg); animation: float-a 7s ease-in-out infinite; }
.card-b { right: -72px; top: 28px; transform: rotate(8deg); animation: float-b 8s ease-in-out infinite; }
@keyframes float-a { 50% { transform: rotate(-7deg) translateY(-10px); } }
@keyframes float-b { 50% { transform: rotate(10deg) translateY(-12px); } }
@media (max-width: 1240px) { .card-a { left: -24px; } .card-b { right: 12px; } }

/* Sections: whitespace does the grouping. */
section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head p, .forge-lede { margin-top: 20px; font-size: 21px; color: var(--muted); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; }
.steps h3 { font-size: 28px; color: var(--yellow); }
.steps p { color: var(--muted); }

/* The deck: one real card per finish. Tier colours follow CARD_TIER_META. */
.tier-graphite { --tier: #9aa6ae; }
.tier-bronze { --tier: #d08a48; }
.tier-silver { --tier: #c9d5dd; }
.tier-gold { --tier: #e8b33c; }
.tier-platinum { --tier: #7fe8f0; }
.deck { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2.2vw, 28px); list-style: none; margin: 0; padding: 0; }
.deck-card { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.deck-card img { width: 100%; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.55)); transition: transform 0.25s ease; }
.deck-card:hover img { transform: translateY(-6px) rotate(-1deg); }
.deck-card span { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--tier); }
.rarity { margin-top: clamp(64px, 8vw, 104px); }
.rarity > p { max-width: 46ch; font-size: 21px; color: var(--muted); }
.rarity-list { display: flex; flex-wrap: wrap; gap: 20px clamp(28px, 4vw, 56px); margin: 28px 0 0; padding: 0; list-style: none; }
.rarity-list li { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--dot); }
.rarity-list small { font-family: var(--body); font-weight: 400; font-size: 17px; color: var(--muted); }

/* Forge */
.forge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.forge-visual { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2.5vw, 24px); }
.forge-stack { position: relative; width: clamp(112px, 17vw, 200px); }
.forge-stack img { width: 100%; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.55)); }
.forge-stack img:first-child { transform: rotate(-5deg); }
.forge-stack img + img { position: absolute; top: 0; left: 0; transform: translate(14%, 7%) rotate(6deg); }
.forge-arrow { margin-left: 10%; font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 48px); color: var(--yellow); }
.forge-result { width: clamp(124px, 18vw, 214px); filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.6)); }
.recipes { display: grid; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--muted); }
.recipes b { display: inline-block; min-width: 1.4em; color: var(--yellow); }
.recipes i { font-style: normal; color: var(--tier); }

/* More to fly for */
.section-title { margin-bottom: clamp(44px, 6vw, 72px); }
.collections { display: grid; grid-template-columns: minmax(0, 1.25fr) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.collections p { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(44px, 5vw, 64px) clamp(28px, 4vw, 56px); }
.features p { color: var(--muted); }
.stat { display: block; margin-bottom: 12px; font-family: 'AirborneChamfer', var(--display); font-size: 52px; line-height: 1; color: var(--sky); }

/* Final call to action */
.final { text-align: center; padding-bottom: clamp(96px, 12vw, 160px); }
.final h2 { font-size: clamp(40px, 6.4vw, 80px); max-width: 18ch; margin: 0 auto; }
.final p { margin: 22px auto 36px; font-size: 21px; color: var(--muted); }

/* Footer */
.site-footer { padding: 0 0 56px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer a { color: var(--ink); }

@media (max-width: 900px) {
  .hero .wrap, .forge-grid, .collections { grid-template-columns: 1fr; }
  .showcase { min-height: 680px; }
  .card-a { left: 0; }
  .card-b { right: 0; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  /* The deck scrolls sideways, edge to edge, so each card stays big enough to read. */
  .deck { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scroll-padding: 0 var(--gutter); scrollbar-width: thin; }
  .deck-card { scroll-snap-align: start; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 18px; }
  .app-shot { width: 250px; border-radius: 24px; }
  .card { width: 150px; }
  .card-a { left: 2px; }
  .card-b { right: 2px; }
  .showcase { min-height: 580px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 30px; }
  .brand { gap: 10px; }
  .cta-row .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-a, .card-b { animation: none; }
  .deck-card img { transition: none; }
  .deck-card:hover img { transform: none; }
}

/* Privacy policy and other plain text pages. */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 6vw, 48px); line-height: 1.1; margin: 0 0 8px; }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 40px 0 12px; }
.legal-updated { color: var(--muted); margin-top: 0; }
.legal dt { font-weight: 700; margin-top: 18px; }
.legal dd { margin: 4px 0 0; color: var(--muted); }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--sky); }
/* Buttons inside legal-style pages keep the site's button colours, not the link colour. */
.legal a.btn-primary { color: var(--deep); text-decoration: none; }
.legal li .btn, .legal p > .btn:only-child { display: table; margin: 10px 0 4px; }
