:root {
  --navy-950: #060d1c;
  --navy-900: #0b1f3a;
  --navy-800: #122a4d;
  --navy-700: #1a3763;
  --gold-500: #c9a24b;
  --gold-400: #ddb968;
  --gold-100: #f6ecd4;
  --cream: #faf7f0;
  --white: #ffffff;
  --ink: #101826;
  --ink-soft: #4a5568;
  --border: #e7e1d3;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 31, 58, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.18);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; margin: 0 0 0.5em; color: var(--navy-900); }
p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.text-gold { color: var(--gold-500); }

/* Progress bar */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  z-index: 1000; transition: width 0.1s ease-out;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(6, 13, 28, 0.0);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(6, 13, 28, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; color: var(--white); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-950); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.logo-text em { font-style: normal; color: var(--gold-400); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem; transition: color 0.2s ease; }
.main-nav a:hover { color: var(--gold-400); }
.nav-cta {
  background: var(--gold-500); color: var(--navy-950) !important; padding: 10px 20px;
  border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-400) !important; color: var(--navy-950) !important; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.25s ease; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: radial-gradient(1200px 700px at 15% 10%, var(--navy-800), var(--navy-950) 60%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(600px 400px at 85% 20%, rgba(201,162,75,0.18), transparent 60%),
    radial-gradient(500px 500px at 90% 90%, rgba(201,162,75,0.12), transparent 60%);
}
.hero-inner { position: relative; padding-top: 120px; padding-bottom: 100px; max-width: 820px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 600; color: var(--gold-400); border: 1px solid rgba(221,185,104,0.35);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 24px; }
.hero-sub { color: rgba(255,255,255,0.72); font-size: 1.15rem; max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.35); border-radius: 999px;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--gold-400); border-radius: 999px;
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 8px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.25s ease;
}
.btn-primary { background: var(--gold-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-block { width: 100%; }

/* Section shared */
section { padding: 100px 0; }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700;
  color: var(--gold-500); margin-bottom: 12px;
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.light .section-eyebrow { color: var(--gold-400); }
.section-head.light h2 { color: var(--white); }
.section-head.light .lead { color: rgba(255,255,255,0.7); }
.lead { font-size: 1.1rem; }

/* About */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 16px; text-align: center;
}
.stat-num { display: block; font-family: var(--font-serif); font-size: 2.4rem; font-weight: 800; color: var(--navy-900); }
.stat-label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }

/* Pillars */
.pillars { background: var(--cream); }
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pillar-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-icon { font-size: 2rem; margin-bottom: 10px; }
.pillar-number {
  position: absolute; top: 32px; right: 32px; font-family: var(--font-serif);
  font-size: 2.2rem; font-weight: 800; color: var(--border);
}
.pillar-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.pillar-tagline { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }
.pillar-purpose { margin-bottom: 16px; }
.pillar-members { font-size: 0.92rem; margin-bottom: 16px; }
.pillar-members strong { color: var(--navy-900); }
.pillar-focus { display: flex; flex-wrap: wrap; gap: 8px; }
.pillar-focus li {
  background: var(--cream); border: 1px solid var(--border); color: var(--navy-800);
  font-size: 0.82rem; font-weight: 500; padding: 6px 12px; border-radius: 999px;
}

/* Ecosystem diagram */
.ecosystem { background: var(--navy-950); }
.diagram { display: flex; flex-direction: column; align-items: center; gap: 0; }
.diagram-node {
  background: var(--navy-800); border: 1px solid rgba(221,185,104,0.25); color: var(--white);
  padding: 18px 28px; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-md);
}
.diagram-root { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--navy-950); font-size: 1.1rem; }
.diagram-final { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--navy-950); margin-top: 0; }
.node-icon { font-size: 1.3rem; }
.diagram-connectors { width: 2px; height: 48px; background: rgba(221,185,104,0.35); }
.diagram-row { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin: 0; position: relative; }
.diagram-row::before {
  content: ""; position: absolute; top: -48px; left: 50%; width: 1px; height: 0;
}

/* Journey */
.journey { background: var(--white); }
.journey-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.journey-list li { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.journey-list li:last-child { border-bottom: none; }
.journey-step {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-400); font-family: var(--font-serif);
  font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center;
}
.journey-list h3 { font-size: 1.15rem; margin-bottom: 4px; }
.journey-list p { margin: 0; }

/* Vision */
.vision { background: var(--cream); }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.vision-tree { display: flex; flex-direction: column; gap: 12px; }
.tree-root, .tree-branch {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--navy-900);
}
.tree-root { background: var(--navy-900); color: var(--white); }
.tree-root span, .tree-branch span { font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); }
.tree-root span { color: var(--gold-400); }
.tree-branch { margin-left: 28px; border-left: 3px solid var(--gold-500); }

/* Join */
.join { background: var(--navy-950); }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.join .section-head { margin-bottom: 24px; }
.join h2 { color: var(--white); }
.join .lead { color: rgba(255,255,255,0.7); }
.join-points { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.join-points li { color: rgba(255,255,255,0.75); padding-left: 26px; position: relative; }
.join-points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-400); font-weight: 700; }
.join-form {
  background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy-900); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink); background: var(--cream);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--gold-500); background: var(--white);
}
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.form-note code { background: var(--cream); padding: 2px 6px; border-radius: 4px; }
.form-error { color: #b3261e; font-size: 0.82rem; margin-top: 4px; }
.alert-success {
  background: #eaf7ee; border: 1px solid #bfe6cb; color: #1e6b3a; padding: 14px 18px;
  border-radius: 10px; margin-bottom: 18px; font-weight: 500;
}

/* Footer */
.site-footer { background: var(--navy-950); padding: 70px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand .logo-text { color: var(--white); font-family: var(--font-serif); font-weight: 700; }
.footer-brand .logo-text em { font-style: normal; color: var(--gold-400); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-top: 4px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links a { display: block; color: rgba(255,255,255,0.6); font-size: 0.92rem; padding: 6px 0; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom { padding: 24px 0; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.82rem; margin: 0; text-align: center; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .about-grid, .vision-grid, .join-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: 280px;
    background: var(--navy-950); flex-direction: column; align-items: flex-start;
    padding: 100px 32px 32px; gap: 22px; transform: translateX(100%);
    transition: transform 0.35s ease; box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { width: 100%; text-align: center; }
  section { padding: 70px 0; }
  .footer-links { grid-template-columns: 1fr; }
  .diagram-row { flex-direction: column; }
}
