:root {
  --bg: #070914;
  --bg2: #10162a;
  --panel: rgba(255,255,255,.075);
  --panel2: rgba(255,255,255,.11);
  --gold: #d4af37;
  --gold2: #f8d66d;
  --cyan: #31e7ff;
  --purple: #8a5cff;
  --green: #4dff9a;
  --red: #ff4d5a;
  --text: #f4f7ff;
  --muted: #aab3d6;
  --line: rgba(255,255,255,.14);
  --shadow: rgba(0,0,0,.44);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 78% 6%, rgba(138,92,255,.26), transparent 26%),
    radial-gradient(circle at 12% 28%, rgba(49,231,255,.12), transparent 22%),
    linear-gradient(180deg, #070914 0%, #10122a 58%, #78361d 100%);
  min-height: 100vh;
}

a { color: var(--cyan); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5,7,16,.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,175,55,.55);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
}

.logo-title {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: 1;
}

.logo-title b { color: var(--gold2); }
.logo-sub { color: var(--gold); font-weight: 800; font-size: .9rem; margin-top: 3px; }

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: .94rem;
}

nav a:hover,
nav a.active {
  color: var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(212,175,55,.22);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/african-quantum-institute/assets/africa-quantum-map.svg") right center / contain no-repeat;
  opacity: .55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: clamp(54px, 8vw, 92px) 0;
  min-height: 480px;
  display: grid;
  align-items: center;
}

.hero h1 {
  max-width: 940px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .98;
  margin: 0 0 24px;
  letter-spacing: -.07em;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 650;
}

.glow {
  background: linear-gradient(90deg, #fff, var(--purple), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(138,92,255,.62);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(212,175,55,.7);
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #160c05;
  font-weight: 950;
}

.btn.secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: var(--line);
}

.proof-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 840px;
  padding: 12px 16px;
  border: 1px solid rgba(212,175,55,.65);
  border-radius: 12px;
  background: rgba(3,5,12,.62);
  box-shadow: 0 0 24px rgba(138,92,255,.16);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.hash { color: var(--green); }

main { padding: 42px 0 58px; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 0 0 20px;
}

.section-title {
  color: var(--gold2);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  margin: 0;
  letter-spacing: -.035em;
}

.section-note {
  color: var(--muted);
  max-width: 580px;
  font-weight: 650;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: 0 14px 32px var(--shadow), inset 0 0 34px rgba(255,255,255,.035);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -24px -34px auto;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: var(--accent, var(--gold));
  opacity: .14;
  filter: blur(14px);
}

.icon { font-size: 2.5rem; margin-bottom: 12px; }
.card h3 { margin: 0 0 9px; }
.card p { margin: 0; color: var(--muted); font-weight: 650; }

.qkd { --accent: #8a5cff; }
.pqc { --accent: #4dff9a; }
.photonics { --accent: #ff4de3; }
.bio { --accent: #ff4d5a; }
.ai { --accent: #ff9e45; }
.ledger { --accent: #b5b5b5; }

.course-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(8, 16, 30, .82);
  box-shadow: 0 18px 34px var(--shadow);
}

.course-card img { width: 100%; height: 210px; object-fit: cover; }
.course-body { padding: 18px; }
.meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 800; font-size: .9rem; }
.price { color: var(--gold2); font-size: 1.4rem; font-weight: 950; }

.glass {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 58px var(--shadow);
  padding: clamp(22px, 4vw, 36px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label { color: var(--gold2); font-weight: 900; font-size: .9rem; }
input, select, textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.28);
  color: #fff;
  outline: none;
}

textarea { min-height: 140px; resize: vertical; }
.full { grid-column: 1 / -1; }

.expert {
  text-align: center;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: radial-gradient(circle at 35% 25%, var(--gold2), var(--purple) 54%, #111 55%);
  border: 3px solid rgba(212,175,55,.75);
}

.footer {
  border-top: 1px solid rgba(212,175,55,.55);
  background: rgba(5,7,16,.92);
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 22px;
}

.footer h3 { color: var(--gold2); margin-top: 0; }
.footer a { display: block; margin: 8px 0; color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--cyan); }

.newsletter {
  display: flex;
  gap: 8px;
}

.newsletter input { margin: 0; }
.newsletter button { border: 0; cursor: pointer; }

.page-hero {
  padding: 58px 0 28px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  letter-spacing: -.06em;
  margin: 0 0 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.075);
  padding: clamp(20px, 4vw, 34px);
  box-shadow: 0 18px 36px var(--shadow);
}

.historical {
  background:
    linear-gradient(90deg, rgba(244,223,181,.94), rgba(196,143,83,.94)),
    url("/african-quantum-institute/assets/historical-scroll.svg") center / cover no-repeat;
  color: #21100a;
  border-radius: 22px;
  padding: clamp(24px, 4vw, 44px);
}

.historical h2 { color: #801a1a; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); }
.historical p { font-weight: 850; line-height: 1.55; }
.mark { background: rgba(212,175,55,.58); padding: 0 4px; border-radius: 4px; }

@media (max-width: 960px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { align-items: start; flex-direction: column; }
}

@media (max-width: 680px) {
  .navbar { align-items: flex-start; flex-direction: column; }
  nav ul { flex-direction: column; }
  .grid-3, .grid-2, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .hero-inner { min-height: 390px; }
  .proof-strip { font-size: .78rem; }
}
