:root {
  --navy: #0d2340;
  --navy-2: #07172c;
  --blue: #1e88e5;
  --gold: #d4af37;
  --cream: #f7f2e8;
  --white: #ffffff;
  --ink: #132033;
  --muted: #687386;
  --line: rgba(13, 35, 64, 0.12);
  --shadow: 0 24px 60px rgba(7, 23, 44, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfaf7;
}
body.dark {
  --cream: #0f2038;
  --white: #10233d;
  --ink: #eef4ff;
  --muted: #b9c5d8;
  --line: rgba(255, 255, 255, 0.12);
  background: #07172c;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--gold); z-index: 1000; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.dark .site-header { background: rgba(7, 23, 44, 0.88); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; }
.brand strong { display: block; font-size: 1rem; letter-spacing: -0.02em; }
.brand small { color: var(--muted); font-size: 0.72rem; }
.main-nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 0.92rem; }
.nav-cta { background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 999px; }
.theme-toggle, .menu-toggle { border: 0; background: transparent; color: inherit; cursor: pointer; }
.theme-toggle { font-size: 1.2rem; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 28px; height: 2px; background: currentColor; }

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 28px;
  padding: 120px clamp(18px, 5vw, 72px) 60px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(7, 23, 44, 0.96), rgba(13, 35, 64, 0.72)),
    radial-gradient(circle at 70% 20%, rgba(212, 175, 55, 0.36), transparent 34%),
    url('assets/hero-pattern.svg');
  background-size: cover;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 50%;
}
.hero-content, .hero-card { position: relative; z-index: 2; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 900; }
h1 { font-size: clamp(2.8rem, 7vw, 6.8rem); line-height: 0.92; letter-spacing: -0.07em; max-width: 1000px; margin: 12px 0 24px; }
.hero-text { max-width: 680px; color: rgba(255,255,255,0.82); font-size: 1.18rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 999px; font-weight: 900; }
.btn.primary { background: var(--gold); color: var(--navy); }
.btn.secondary { background: #fff; color: var(--navy); }
.btn.ghost { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.hero-card { align-self: end; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); padding: 28px; border-radius: 28px; backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.hero-card h2 { font-size: 1.5rem; line-height: 1.35; }
.live-dot { display: inline-block; width: 12px; height: 12px; background: #32d583; border-radius: 50%; box-shadow: 0 0 0 8px rgba(50,213,131,0.16); }

.ticker { display: flex; align-items: center; gap: 20px; padding: 14px clamp(18px, 5vw, 72px); background: var(--navy); color: #fff; overflow: hidden; }
.ticker strong { color: var(--gold); white-space: nowrap; }
.ticker div { overflow: hidden; }
.ticker span { display: inline-block; white-space: nowrap; animation: ticker 28s linear infinite; }
@keyframes ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

.section { padding: 86px clamp(18px, 5vw, 72px); }
.section-heading { max-width: 800px; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(2rem, 4.5vw, 4rem); letter-spacing: -0.05em; line-height: 1; margin: 8px 0 14px; }
.section-heading p { color: var(--muted); line-height: 1.7; font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: 30px; align-items: start; }
.feature-grid .section-heading { grid-column: 1 / -1; }
.lead-story { background: var(--white); border: 1px solid var(--line); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.gradient-card { min-height: 340px; display: grid; place-items: center; background: radial-gradient(circle at top left, var(--gold), transparent 32%), linear-gradient(135deg, var(--navy), #163b69); }
.gradient-card span { color: #fff; font-size: 6rem; font-weight: 1000; letter-spacing: -0.12em; opacity: 0.88; }
.story-body { padding: 30px; }
.tag { color: var(--gold); font-weight: 900; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.12em; }
.story-body h3, .news-list h3, .info-card h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.03em; }
.story-body p { color: var(--muted); line-height: 1.7; }
.read-link { color: var(--blue); font-weight: 900; }
.news-list { display: grid; gap: 16px; }
.news-list article, .tracker-card, .info-card { background: var(--white); border: 1px solid var(--line); padding: 24px; border-radius: 24px; }
.news-list span { color: var(--blue); font-weight: 900; }

.governance { background: var(--cream); }
.tracker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tracker-card b { display: block; font-size: 1.2rem; margin-bottom: 12px; }
.tracker-card p { color: var(--muted); line-height: 1.6; }
.status { display: inline-block; padding: 7px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 900; }
.status.green { background: rgba(34,197,94,0.13); color: #16a34a; }
.status.amber { background: rgba(245,158,11,0.14); color: #d97706; }
.status.red { background: rgba(239,68,68,0.13); color: #dc2626; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.panel, .election-list { border-radius: 30px; padding: 38px; }
.dark-panel { background: var(--navy); color: #fff; }
.dark-panel p { color: rgba(255,255,255,0.78); line-height: 1.7; }
.dark-panel h2 { font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -0.05em; }
.election-list { background: var(--white); border: 1px solid var(--line); display: grid; gap: 14px; }
.election-list div { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; font-size: 1.25rem; font-weight: 900; }
.election-list strong { color: var(--gold); font-size: 2rem; }

.cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-row .section-heading { grid-column: 1 / -1; }
.info-card span { font-weight: 1000; }
.verified { color: #16a34a; } .misleading { color: #d97706; } .false { color: #dc2626; }
.info-card p { color: var(--muted); line-height: 1.6; }
.data-centre { background: var(--navy-2); color: #fff; }
.data-centre .section-heading p { color: rgba(255,255,255,0.78); }
.data-bars { display: grid; gap: 18px; max-width: 900px; }
.data-bars div { background: rgba(255,255,255,0.08); padding: 16px; border-radius: 18px; }
.data-bars span { display: block; margin-bottom: 10px; font-weight: 900; }
.data-bars i { display: block; height: 12px; background: linear-gradient(90deg, var(--gold), var(--blue)); border-radius: 999px; }
.newsletter-box { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 34px; padding: clamp(28px, 5vw, 56px); text-align: center; }
.newsletter-box h2 { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -0.05em; line-height: 1; }
.newsletter form { display: flex; gap: 10px; max-width: 620px; margin: 28px auto 0; }
.newsletter input { flex: 1; padding: 16px 18px; border-radius: 999px; border: 1px solid var(--line); font: inherit; }
.newsletter button { border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 1000; padding: 0 24px; cursor: pointer; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px clamp(18px, 5vw, 72px); background: var(--navy); color: #fff; }
.site-footer img { width: 54px; }
.site-footer p { font-weight: 1000; margin: 8px 0 2px; }
.site-footer small { color: rgba(255,255,255,0.68); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,0.78); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(80px); background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 999px; box-shadow: var(--shadow); transition: 0.3s ease; z-index: 1001; }
.toast.show { transform: translateX(-50%) translateY(0); }
.reveal { opacity: 0; transform: translateY(18px); transition: 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .main-nav { position: fixed; inset: 81px 16px auto 16px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 20px; flex-direction: column; align-items: stretch; transform: translateY(-130%); opacity: 0; pointer-events: none; transition: 0.28s ease; box-shadow: var(--shadow); }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .hero, .feature-grid, .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 86px; }
  .tracker-grid, .cards-row { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
  .newsletter button { padding: 16px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
