:root {
  --bg: #101411;
  --bg-soft: #151b17;
  --panel: #19211c;
  --panel-2: #f6f2e9;
  --text: #f7f5ef;
  --muted: #b9c3b8;
  --ink: #172019;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f6c756;
  --green: #42c878;
  --red: #f05b4f;
  --blue: #62c8e8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 4%, rgba(66, 200, 120, 0.18), transparent 26rem),
    radial-gradient(circle at 90% 12%, rgba(246, 199, 86, 0.14), transparent 24rem),
    linear-gradient(180deg, #101411 0%, #121612 42%, #f6f2e9 42%, #f6f2e9 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(16, 20, 17, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--green));
  color: #101411;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand strong {
  display: block;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.nav-links a,
.admin-link {
  padding: 0.58rem 0.72rem;
  border-radius: 8px;
  color: #dfe7dc;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.active,
.admin-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.admin-link {
  border: 1px solid var(--line);
}

main {
  min-height: 70vh;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(1.9rem, 4vw, 3.2rem) clamp(1rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.2rem);
}

.hero-copy h1,
.subpage-hero h1 {
  max-width: 820px;
  margin: 0.8rem 0 1.1rem;
  font-size: clamp(2.8rem, 5.5vw, 4.7rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.hero-copy p,
.subpage-hero p {
  max-width: 720px;
  color: #d7ded3;
  font-size: clamp(1.04rem, 2vw, 1.25rem);
  line-height: 1.72;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 46px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 18px 0 0 var(--red), 36px 0 0 var(--blue);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-weight: 800;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.button.primary {
  background: linear-gradient(135deg, var(--gold), var(--green));
  color: #11170f;
  border: 0;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    #18211b;
  box-shadow: var(--shadow);
}

.visual-topline,
.visual-metrics {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #eaf0e8;
}

.visual-topline span,
.visual-metrics span {
  color: var(--muted);
  font-size: 0.85rem;
}

.signal-map {
  position: absolute;
  inset: 5.25rem 1rem 5.25rem;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(66, 200, 120, 0.14), transparent),
    linear-gradient(20deg, transparent 30%, rgba(246, 199, 86, 0.2) 30% 31%, transparent 31%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 56px);
}

.signal {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 9px rgba(246, 199, 86, 0.14), 0 0 40px rgba(246, 199, 86, 0.45);
}

.signal.one {
  left: 58%;
  top: 34%;
}

.signal.two {
  left: 32%;
  top: 62%;
  background: var(--green);
  box-shadow: 0 0 0 9px rgba(66, 200, 120, 0.16), 0 0 40px rgba(66, 200, 120, 0.4);
}

.signal.three {
  left: 70%;
  top: 66%;
  background: var(--blue);
  box-shadow: 0 0 0 9px rgba(98, 200, 232, 0.16), 0 0 40px rgba(98, 200, 232, 0.38);
}

.signal.four {
  left: 45%;
  top: 22%;
  background: var(--red);
  box-shadow: 0 0 0 9px rgba(240, 91, 79, 0.16), 0 0 40px rgba(240, 91, 79, 0.38);
}

.map-label {
  position: absolute;
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(16, 20, 17, 0.72);
  color: #f9f7ee;
  font-size: 0.82rem;
  font-weight: 800;
}

.johannesburg {
  left: 52%;
  top: 41%;
}

.cape-town {
  left: 20%;
  top: 70%;
}

.durban {
  right: 12%;
  bottom: 20%;
}

.visual-metrics {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
}

.visual-metrics div {
  flex: 1;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.visual-metrics strong {
  display: block;
  font-size: 1.65rem;
}

.band {
  max-width: 1220px;
  margin: -1rem auto 0;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  color: var(--ink);
}

.stats-band div {
  padding: 1.25rem;
  background: var(--panel-2);
  border: 1px solid rgba(23, 32, 25, 0.1);
}

.stats-band div:first-child {
  border-radius: 8px 0 0 8px;
}

.stats-band div:last-child {
  border-radius: 0 8px 8px 0;
}

.stats-band strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.stats-band span {
  color: #4b5a4f;
}

.page-section,
.about-section,
.form-section,
.article-detail {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
  color: var(--ink);
}

.compact {
  padding-top: 1.5rem;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.section-header h2,
.about-section h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  color: #142017;
}

.section-header p {
  max-width: 680px;
  margin: 0.7rem 0 0;
  color: #536054;
  line-height: 1.65;
}

.text-link {
  color: #1e6c42;
  font-weight: 900;
}

.text-link:hover {
  color: #174f32;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 25, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 12px 32px rgba(20, 32, 23, 0.06);
}

.content-card h3 {
  margin: 0;
  color: #142017;
  font-size: 1.35rem;
  line-height: 1.15;
}

.content-card p,
.use-case {
  margin: 0;
  color: #536054;
  line-height: 1.58;
}

.content-card a {
  margin-top: auto;
  color: #1e6c42;
  font-weight: 900;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: #718071;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(66, 200, 120, 0.18), rgba(246, 199, 86, 0.24)),
    repeating-linear-gradient(45deg, rgba(20, 32, 23, 0.08) 0 1px, transparent 1px 16px);
  color: #243429;
  font-weight: 900;
  text-align: center;
}

.showcase-media {
  background:
    linear-gradient(135deg, rgba(240, 91, 79, 0.16), rgba(98, 200, 232, 0.24)),
    repeating-linear-gradient(135deg, rgba(20, 32, 23, 0.08) 0 1px, transparent 1px 18px);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-row span,
.filter-bar button {
  padding: 0.45rem 0.62rem;
  border: 1px solid rgba(23, 32, 25, 0.12);
  border-radius: 999px;
  background: #f4efe4;
  color: #365040;
  font-size: 0.82rem;
  font-weight: 800;
}

.subpage-hero {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(135deg, rgba(66, 200, 120, 0.16), rgba(246, 199, 86, 0.12)),
    var(--bg);
}

.subpage-hero > * {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.subpage-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.filter-bar button {
  cursor: pointer;
}

.filter-bar button.active,
.filter-bar button:hover {
  background: #142017;
  color: #f8f5ec;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
}

.about-section p {
  color: #536054;
  line-height: 1.72;
  font-size: 1.05rem;
}

.principles {
  display: grid;
  gap: 0.8rem;
}

.principles div {
  padding: 1rem;
  border-radius: 8px;
  background: #fffdf8;
  border: 1px solid rgba(23, 32, 25, 0.12);
}

.principles strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #142017;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
}

.principles span {
  color: #536054;
}

.submission-form {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(23, 32, 25, 0.12);
  background: #fffdf8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.42rem;
  color: #26362c;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(23, 32, 25, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #142017;
  padding: 0.78rem 0.85rem;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: #1e6c42;
  font-weight: 800;
}

.article-detail {
  max-width: 900px;
}

.article-heading {
  margin-top: 1.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(23, 32, 25, 0.12);
}

.article-heading h1 {
  margin: 0.7rem 0 1rem;
  color: #142017;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
}

.article-heading p,
.article-body p {
  color: #536054;
  font-size: 1.08rem;
  line-height: 1.78;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.article-meta span {
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: #fffdf8;
  color: #365040;
  font-weight: 800;
}

.article-body {
  padding-top: 1.5rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  background: #101411;
  color: #f6f2e9;
}

.site-footer p {
  max-width: 620px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: #dce5da;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual {
    min-height: 440px;
  }

  .cards-grid,
  .three-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .stats-band div,
  .stats-band div:first-child,
  .stats-band div:last-child {
    border-radius: 8px;
  }
}

@media (max-width: 680px) {
  .brand {
    width: 100%;
  }

  .nav-links a,
  .admin-link {
    padding: 0.5rem 0.58rem;
    font-size: 0.86rem;
  }

  .hero-copy h1,
  .subpage-hero h1 {
    font-size: clamp(2.45rem, 16vw, 4rem);
  }

  .hero-visual {
    min-height: 380px;
  }

  .visual-metrics {
    flex-direction: column;
  }

  .signal-map {
    bottom: 12rem;
  }

  .section-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards-grid,
  .three-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
