/* ======================================================================
   United Kingdoms of Africa — Global Stylesheet
   Link this in every page:
   <link rel="stylesheet" href="styles.css">
   ====================================================================== */

/* ── Variables ──────────────────────────────────────────────────────── */
:root {
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim:   #8a6a2a;
  --onyx:       #0d0d0f;
  --deep:       #111217;
  --surface:    #181921;
  --surface2:   #1e1f2b;
  --border:     rgba(201,168,76,0.18);
  --text:       #e8e4da;
  --muted:      #7a7870;
  --red:        #c0392b;
  --green:      #1a7a55;
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--onyx);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

/* ── Top Banner ─────────────────────────────────────────────────────── */
.top-banner {
  background: linear-gradient(90deg, var(--red), #1a1a1a 40%, var(--green));
  text-align: center;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  padding: .4em 1em;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,15,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 2.5rem;
  gap: 1rem;
}

.logo-wrap { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }

.logo-img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(201,168,76,.35));
}

.logo-text {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: .85rem;
  line-height: 1.25;
  letter-spacing: .04em;
  color: var(--gold);
  text-transform: uppercase;
  max-width: 180px;
}
.logo-text span {
  display: block;
  color: var(--text);
  font-weight: 400;
  font-size: .7rem;
  letter-spacing: .12em;
  margin-top: .15em;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: .3s;
}

/* Nav */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .1rem;
  justify-content: flex-end;
}
.main-nav a {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .4em .65em;
  border-radius: 4px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  background: rgba(201,168,76,.08);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 2em;
  border-radius: 4px;
  font-family: 'Barlow', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .25s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--onyx);
  box-shadow: 0 0 0 0 rgba(201,168,76,.4);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--onyx);
  box-shadow: 0 0 30px rgba(201,168,76,.35);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.2);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,.06);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 4rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 80% 80%, rgba(192,57,43,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(26,122,85,.06) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 33.33%, var(--gold) 33.33% 66.66%, var(--green) 66.66%);
}

.hero-rings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  pointer-events: none;
}
.hero-rings circle {
  fill: none;
  stroke: rgba(201,168,76,.06);
  animation: pulse-ring 6s ease-in-out infinite;
}
.hero-rings circle:nth-child(2) { animation-delay: 1s; }
.hero-rings circle:nth-child(3) { animation-delay: 2s; }

@keyframes pulse-ring {
  0%, 100% { opacity: .3; }
  50%       { opacity: .7; }
}

.hero-eyebrow {
  font-family: 'Barlow', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--gold-dim);
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: .5rem;
  position: relative;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(.95rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 580px;
  margin: 1.5rem auto 2.5rem;
  letter-spacing: .01em;
  line-height: 1.8;
}

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

/* ── Stats Bar ───────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .4rem;
}

/* ── Section Base ────────────────────────────────────────────────────── */
.section { padding: 6rem 2rem; }
.section.alt { background: var(--surface); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-tag {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.8;
}

/* Divider */
.divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.25rem 0;
}

/* ── Vision Grid ─────────────────────────────────────────────────────── */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3.5rem;
}
.vision-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  transition: border-color .25s, transform .25s;
}
.pillar:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}
.pillar-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.pillar-title {
  font-family: 'Cinzel', serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .04em;
}
.pillar-desc { font-size: .82rem; color: var(--muted); margin-top: .2rem; }

/* ── Treasury Card ───────────────────────────────────────────────────── */
.treasury-card {
  max-width: 680px;
  margin: 3rem auto 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.treasury-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,.06), transparent 70%);
  pointer-events: none;
}
.treasury-label {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.treasury-amount {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  letter-spacing: .02em;
}
.treasury-currency {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.treasury-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-size: .75rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.treasury-meta span { display: flex; align-items: center; gap: .4em; }

.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* ── Portal Grid ─────────────────────────────────────────────────────── */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.portal-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.portal-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
}
.portal-card a {
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.portal-card a:hover { color: var(--gold); }
.portal-icon { font-size: 1.5rem; }
.portal-card p { font-size: .75rem; color: var(--muted); line-height: 1.5; }

/* ── CTA Banner ──────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #1a0a00 0%, #0a1a10 50%, #00001a 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,168,76,.05), transparent 70%);
  pointer-events: none;
}
.cta-banner .section-title { max-width: 600px; margin: 0 auto 1rem; }
.cta-banner .section-lead  { margin: 0 auto 2.5rem; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  background: #090909;
  border-top: 1px solid var(--border);
  padding: 3.5rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}
.footer-brand p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 260px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.footer-col a {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .5rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: .5rem;
}
.pan-stripe { display: flex; gap: 4px; }
.pan-stripe span {
  display: block;
  width: 22px; height: 4px;
  border-radius: 2px;
}

/* ── Fade-up animation ───────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .vision-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  footer { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .header { padding: .75rem 1.25rem; }
  .logo-text { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: 75vw; max-width: 300px;
    height: 100vh;
    background: var(--deep);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: .1rem;
    justify-content: flex-start;
    overflow-y: auto;
    z-index: 200;
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: .85rem; padding: .7em .5em; }

  .portal-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}
