/* ZN·1 ECOSYSTEM DESIGN SYSTEM v1
   Last updated: April 2026
   Loaded by every page on zn1world.org */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --ink: #050505;
  --obsidian: #0A0A0A;
  --graphite: #111114;
  --charcoal: #1A1A1F;
  --smoke: #26262C;
  --forge: #111114;

  /* Text */
  --white: #FFFFFF;
  --zinc: #F5F5F0;
  --platinum: #D4D4D7;
  --silver: #A8A8AC;
  --ash: #6B6B6E;

  /* Accent. Blood + ember. */
  --blood: #8B0000;
  --ember: #FF4D7A;
  --rust: #6B1F23;
  --burgundy: #4A1518;
  --glow: #FF3B3B;

  /* Brand mark only. The dot in ZN·1. */
  --steel: #4A90A4;

  /* Material */
  --shadow-deep: 0 24px 64px rgba(0, 0, 0, 0.75);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --glow-blood: 0 0 60px rgba(139, 0, 0, 0.35);
  --glow-ember: 0 0 24px rgba(220, 38, 38, 0.4);

  /* Type */
  --font: 'Geist', system-ui, -apple-system, sans-serif;
  --font-display: 'Bebas Neue', 'Geist', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Layout */
  --mw: 1280px;
  --easing: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { background: var(--ink); color: var(--zinc); font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ember); color: var(--white); }

/* ─── TYPE ─────────────────────────────── */
.text-eyebrow { display: inline-block; padding: 6px 14px; background: rgba(139, 0, 0, 0.1); border: 1px solid rgba(220, 38, 38, 0.25); border-radius: 100px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.text-display { font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 11vw, 160px); line-height: 0.92; letter-spacing: -0.02em; }
.text-h0 { font-family: var(--font); font-weight: 800; font-size: clamp(56px, 8vw, 96px); line-height: 0.95; letter-spacing: -0.04em; }
.text-h1 { font-family: var(--font); font-weight: 700; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.0; letter-spacing: -0.035em; }
.text-h2 { font-family: var(--font); font-weight: 700; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.text-h3 { font-family: var(--font); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.text-h4 { font-family: var(--font); font-weight: 600; font-size: 19px; line-height: 1.3; }
.text-lead { font-family: var(--font); font-weight: 400; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--platinum); }
.text-body { font-size: 16px; line-height: 1.65; color: var(--platinum); }
.text-caption { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver); }
.text-data { font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--platinum); }
.accent { color: var(--ember); }

/* ─── NAV ──────────────────────────────── */
.zn-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 32px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); background: rgba(5, 5, 5, 0.65); border-bottom: 1px solid rgba(255, 255, 255, 0.03); transition: background .3s, border .3s, padding .3s; }
.zn-nav.scrolled { background: rgba(5, 5, 5, 0.92); border-bottom-color: rgba(255, 255, 255, 0.08); padding: 12px 32px; }
.zn-nav-inner { max-width: var(--mw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.zn-logo { display: flex; align-items: center; gap: 0; font-family: var(--font); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--zinc); }
.zn-logo .dot { color: var(--steel); padding: 0 1px; }
.zn-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.zn-links a { font-size: 12px; font-weight: 500; color: var(--silver); letter-spacing: 0.12em; text-transform: uppercase; transition: color .2s; position: relative; padding: 4px 0; }
.zn-links a:hover { color: var(--zinc); }
.zn-links a.active { color: var(--ember); }
.zn-links a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1px; background: var(--ember); }
.zn-cta { padding: 10px 22px; background: var(--ember); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 6px; transition: all .25s var(--easing); border: none; cursor: pointer; font-family: var(--font); box-shadow: var(--glow-ember); }
.zn-cta:hover { background: var(--blood); transform: translateY(-1px); box-shadow: var(--glow-blood); }
.zn-hbg { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 4px; cursor: pointer; }
.zn-hbg span { display: block; width: 22px; height: 2px; background: var(--zinc); border-radius: 2px; }
.zn-mob { display: none; position: fixed; inset: 0; z-index: 200; background: var(--ink); padding: 80px 32px 32px; flex-direction: column; gap: 24px; }
.zn-mob.open { display: flex; }
.zn-mob a { font-family: var(--font-display); font-size: 32px; letter-spacing: 0.04em; color: var(--zinc); }
.zn-mob-close { position: absolute; top: 24px; right: 32px; background: none; border: none; color: var(--zinc); font-size: 32px; cursor: pointer; line-height: 1; }
.zn-mob-cta { margin-top: 16px; display: inline-block; padding: 14px 28px; background: var(--ember); color: var(--white); border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font); }
@media (max-width: 900px) { .zn-links { display: none; } .zn-cta { display: none; } .zn-hbg { display: flex; } }

/* ─── BUTTONS ──────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 32px; font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; border-radius: 6px; border: none; cursor: pointer; transition: all .25s var(--easing); white-space: nowrap; }
.btn-primary { background: var(--ember); color: var(--white); box-shadow: var(--glow-ember); }
.btn-primary:hover { background: var(--blood); transform: translateY(-1px); box-shadow: var(--glow-blood); }
.btn-ghost { background: transparent; color: var(--zinc); border: 1px solid rgba(255, 255, 255, 0.15); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember); }
.btn-large { padding: 22px 40px; font-size: 14px; }
.btn-uppercase { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }

/* ─── CARD ──────────────────────────────── */
.card { background: var(--graphite); border: 1px solid var(--smoke); border-radius: 8px; padding: 28px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.card:hover { border-color: var(--blood); transform: translateY(-2px); box-shadow: var(--glow-blood); }
.card-elevated { background: linear-gradient(180deg, var(--graphite) 0%, var(--charcoal) 100%); }

/* ─── SECTION ──────────────────────────── */
.section { padding: 120px 32px; position: relative; }
.section-tight { padding: 80px 32px; }
.section-inner { max-width: var(--mw); margin: 0 auto; }
.section-light { background: var(--zinc); color: var(--ink); }
.section-light .text-lead, .section-light .text-body, .section-light p { color: #3A3A3A; }
.section-light .card { background: var(--white); border-color: #E4E4E0; }
@media (max-width: 700px) { .section, .section-tight { padding: 80px 24px; } }

/* ─── FOOTER ───────────────────────────── */
.zn-footer { background: var(--ink); color: var(--silver); border-top: 1px solid var(--smoke); padding: 80px 32px 32px; }
.zn-footer-inner { max-width: var(--mw); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 48px; }
.zn-footer-brand h3 { font-family: var(--font); font-size: 24px; font-weight: 800; color: var(--zinc); letter-spacing: -0.02em; margin-bottom: 12px; }
.zn-footer-brand h3 .dot { color: var(--steel); }
.zn-footer-brand p { font-size: 13px; color: var(--silver); line-height: 1.55; max-width: 280px; }
.zn-footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); font-weight: 600; margin-bottom: 18px; }
.zn-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.zn-footer-col a { font-size: 13px; color: var(--silver); transition: color .2s; }
.zn-footer-col a:hover { color: var(--zinc); }
.zn-footer-bottom { max-width: var(--mw); margin: 56px auto 0; padding-top: 32px; border-top: 1px solid var(--smoke); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.zn-footer-bottom span { font-size: 12px; color: var(--ash); font-family: var(--font-mono); }
.zn-footer-bottom .zn-token { color: var(--ember); }
@media (max-width: 900px) { .zn-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ─── HERO PRIMITIVES ──────────────────── */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 140px 32px 80px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(139, 0, 0, 0.18), transparent 50%), radial-gradient(circle at 80% 80%, rgba(74, 21, 24, 0.22), transparent 60%); animation: drift 30s ease-in-out infinite; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--ink) 100%); }
@keyframes drift { 0%, 100% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.15) translate(2%, -2%); } }
.hero-inner { position: relative; z-index: 1; max-width: var(--mw); margin: 0 auto; width: 100%; }

/* ─── REVEAL ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--easing), transform .8s var(--easing); }
.reveal.in { opacity: 1; transform: none; }

/* ─── DOT INDICATOR ───────────────────── */
.dot-pulse { display: inline-block; width: 8px; height: 8px; background: var(--ember); border-radius: 50%; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); animation: dot-pulse 2s infinite; }
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); } 70% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }

/* ─── UTILITY ──────────────────────────── */
.center { text-align: center; }
.muted { color: var(--silver); }
.spacer-sm { height: 32px; } .spacer-md { height: 64px; } .spacer-lg { height: 96px; }
.divider { width: 60px; height: 1px; background: var(--ember); margin: 24px 0; }
.divider-center { margin: 24px auto; }
