/* YFCE shared stylesheet — v1.0 | 2026-04-23 | Noa
   Loaded by every page on yfce.uk: index.html, clear2land/, clear2race/,
   clear2engage/, and future product sub-pages.
   Page-specific styles (grids, cards, steps, status-bar, feature-pills,
   cta-block, media queries for those) stay inline in each HTML's own
   <style> block. Pure structural refactor from the prior inline-duplication
   pattern — no visual change intended. */

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

:root {
  --bg-primary:   #070b13;
  --bg-surface:   #111827;
  --bg-raised:    #172338;
  --bg-sidebar:   #0b121f;

  --amber:        #e6a23c;
  --amber-bright: #efbb67;
  --amber-deep:   #c96e18;
  --amber-dim:    rgba(230,162,60,0.12);
  --amber-border: rgba(230,162,60,0.25);

  --text-primary:   #e7edf7;
  --text-secondary: #a8b4c7;
  --text-muted:     #77839b;

  --border:       #2a3952;

  --success:      #34c26e;
  --warning:      #e6b15a;
  --danger:       #f45b5b;
  --info:         #4ea3ff;

  --font-head:    'Chakra Petch', monospace;
  --font-body:    'Barlow', sans-serif;
  --font-label:   'Barlow Condensed', sans-serif;

  /* Backwards-compat aliases for the legacy /css/style.css token names,
     used by inline <style> on /get/, /roadmap/, /supporters/, /privacy/,
     /download/ (old pages migrating to /styles.css). Keeps per-page CSS
     working without a token-rename pass on every declaration. These
     aliases will be retired when the five pages get a token-rename
     cleanup commit. */
  --bg:           var(--bg-primary);
  --bg2:          var(--bg-surface);
  --bg3:          var(--bg-raised);
  --text:         var(--text-primary);
  --text-sec:     var(--text-secondary);
  --amber-light:  var(--amber-bright);
  --border-amber: var(--amber-border);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* grid texture backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,11,19,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-logo span { color: var(--amber); }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--amber-bright); }

.nav-cta {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--bg-primary);
  padding: 9px 22px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--amber-bright); }

/* ── HERO base ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 9rem 2rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--amber);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--amber);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  margin: 2rem 0 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Button primitives ── */
.btn-primary {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--bg-primary);
  padding: 14px 32px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--amber-bright); transform: translateY(-1px); }

.btn-secondary {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-secondary);
  padding: 13px 32px;
  border: 1px solid var(--border);
  border-radius: 3px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--amber-border); color: var(--amber); transform: translateY(-1px); }

/* ── Section primitives (used by landing + /clear2land/, ignored by stubs) ── */
.section { padding: 6rem 2rem; position: relative; z-index: 1; }
.section-alt { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.container { max-width: 1400px; margin: 0 auto; }

.section-label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--amber);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ── Footer ──
   display:flex on <footer> serves old pages that have direct children
   (no .footer-inner wrapper). New pages wrap in .footer-inner; the
   wrapper becomes the single flex item, which its own margin:0 auto
   centres, and its own display:flex handles inner arrangement. Both
   HTML shapes render correctly. */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.footer-inner {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-decoration: none;
}
.footer-logo span { color: var(--amber); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Shared animation — used by .status-dot (landing) + .status-banner (stubs) */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Hamburger button (used by old pages to toggle nav on mobile) ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ── Shared responsive — nav collapse ── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(7,11,19,0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
  }
  .nav-links.open { display: flex; }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
}
