/* ============================================================
   EAGLE DS — SHARED DESIGN SYSTEM
   Refined gold / black. Used across all ecosystem pages.
   Edit colours, fonts and shared components here once.
   ============================================================ */

:root {
  --black: #0a0a0a;
  --black-2: #0f0f0f;
  --gold: #C8960C;
  --gold-light: #E8B84B;
  --gold-pale: #f5e6b8;
  --accent-rgb: 200,150,12; /* gold RGB — override per arm for colour-coding */
  --white: #f8f4ee;
  --grey: #1a1a1a;
  --mid: #2e2e2e;
  --text-muted: #888;
  --green: #22b04a;
  --mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* film-grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: 0.4;
}

a { color: inherit; }
.mono { font-family: var(--mono); }
.gold { color: var(--gold-light); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(10,10,10,0.5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--accent-rgb),0.12);
  transition: padding 0.3s ease, background 0.3s ease;
}
.nav.scrolled { padding: 12px 48px; background: rgba(10,10,10,0.85); }
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo-img { height: 40px; width: 40px; object-fit: contain; border-radius: 6px; display: block; }
.nav-logo-fallback {
  height: 40px; width: 40px; display: none; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px;
  color: var(--black); background: var(--gold); border-radius: 6px;
}
.nav-logo-fallback.show { display: flex; }
.nav-wordmark { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 3px; color: var(--white); line-height: 1; }
.nav-wordmark small { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: 0.22em; color: var(--gold); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: #bbb; transition: color 0.25s ease; position: relative;
  font-family: var(--mono); white-space: nowrap;
}
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--gold); transition: width 0.25s ease; }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold-light); }
.nav-cta { background: var(--gold); color: var(--black) !important; padding: 10px 20px; border-radius: 2px; font-weight: 600 !important; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold-light); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--gold); color: var(--black); padding: 16px 34px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; display: inline-block; transition: all 0.3s ease; position: relative; overflow: hidden; border: none; cursor: pointer;
}
.btn-primary::before { content: ''; position: absolute; inset: 0; background: var(--gold-light); transform: translateX(-100%); transition: transform 0.3s ease; }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }
.btn-secondary {
  border: 1px solid rgba(var(--accent-rgb),0.4); color: var(--gold-light); padding: 16px 34px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; display: inline-block; transition: all 0.3s ease; background: transparent; cursor: pointer;
}
.btn-secondary:hover { background: rgba(var(--accent-rgb),0.08); border-color: var(--gold); }
.cta-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ HERO PRIMITIVES ============ */
.gold-line { width: 60px; height: 2px; background: var(--gold); margin-bottom: 28px; animation: expand 1.2s ease forwards; }
@keyframes expand { from { width: 0; opacity: 0;} to { width: 60px; opacity: 1;} }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.live-dot { height: 7px; width: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100% { opacity: 1;} 50% { opacity: 0.4;} }
@keyframes breathe { 0%,100% { opacity: 0.85; transform: scale(1);} 50% { opacity: 1; transform: scale(1.02);} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }

/* ============ SECTIONS ============ */
section { padding: 100px 80px; }
.section-label { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 4vw, 58px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; }
.section-title em { font-style: italic; color: var(--gold-light); }
.section-intro { max-width: 660px; font-size: 15px; color: #999; line-height: 1.9; }
.section-intro strong { color: var(--white); font-weight: 500; }
.gold-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.3), transparent); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ STAT STRIP ============ */
.stat-strip {
  background: var(--black-2); border-top: 1px solid rgba(var(--accent-rgb),0.18); border-bottom: 1px solid rgba(var(--accent-rgb),0.18);
  padding: 28px 80px; display: flex; align-items: center; gap: 50px; overflow-x: auto;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.stat-item .n { font-family: 'Bebas Neue', sans-serif; font-size: 40px; color: var(--gold); line-height: 1; }
.stat-item .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: #888; text-transform: uppercase; }
.stat-sep { width: 1px; height: 44px; background: rgba(255,255,255,0.08); flex-shrink: 0; }

/* ============ FOOTER ============ */
.footer { background: var(--black); padding: 90px 80px 0; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand .fb-word { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 3px; color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: #777; line-height: 1.8; max-width: 300px; }
.footer-brand .fb-iwi { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; margin-top: 16px; }
.footer-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; font-size: 13px; color: #888; text-decoration: none; margin-bottom: 10px; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-base { border-top: 1px solid rgba(255,255,255,0.06); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: #555; text-transform: uppercase; }
.footer-base .live { display: flex; align-items: center; gap: 8px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav { padding: 14px 24px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: rgba(10,10,10,0.97); padding: 20px 24px; gap: 18px; border-bottom: 1px solid rgba(var(--accent-rgb),0.2); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .stat-strip { padding: 24px 40px; gap: 36px; }
  section { padding: 70px 40px; }
  .footer { padding: 70px 40px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 60px 24px; }
  .stat-strip { padding: 20px 24px; gap: 26px; }
  .stat-item .n { font-size: 32px; }
  .footer { padding: 60px 24px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-base { flex-direction: column; text-align: center; }
}
