@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600&display=swap');

:root {
  /* Tighter header height so content starts sooner */
  --ccert-header-height: 72px;
  --ccert-max-width: 1180px;
  /* unified horizontal padding for header + content frames */
  --ccert-frame-pad: clamp(1.5rem, 4vw, 3.5rem);
  --ccert-section-pad: clamp(3.2rem, 6vw, 4.8rem);
  --ccert-card-pad: clamp(2rem, 3vw, 2.75rem);
  --color-bg: #01060f;
  --color-bg-alt: #071226;
  --color-card: rgba(7, 18, 38, 0.92);
  --color-card-solid: #0c1d38;
  --color-card-alt: #0e2447;
  --color-accent: #47d1ff;
  --color-accent-soft: #71f5d0;
  --color-saffron: #ffb347;
  --color-text: #f3f8ff;
  --color-muted: #9fb2d6;
  --shadow-soft: 0 20px 60px rgba(1, 6, 15, 0.65);
  --hiw-bg: #030915;
  --hiw-panel: rgba(12, 21, 42, 0.9);
  --hiw-panel-alt: rgba(8, 15, 32, 0.9);
  --hiw-border: rgba(255, 255, 255, 0.07);
  --hiw-accent: #5fd8ff;
  --hiw-accent-alt: #56f0bf;
  --hiw-text: #f4f8ff;
  --hiw-muted: #9eb1cf;
  --hiw-headline: #d7e4ff;
  --hiw-shadow: 0 20px 60px rgba(1, 4, 12, 0.55);
  --region-bg: radial-gradient(circle at 30% 10%, #122443, #05070f 65%);
  --region-card: rgba(10, 18, 34, 0.92);
  --region-border: rgba(255, 255, 255, 0.06);
  --region-accent: #6dd5ff;
  --region-accent-alt: #46f0c3;
  /* Benefits page palette */
  --benefits-bg: radial-gradient(circle at 20% 20%, #0f2242, #030915 65%);
  --benefits-text: #f4f8ff;
  --benefits-muted: #9eb1cf;
  --benefits-headline: #d7e4ff;
  --benefits-accent: #6dd5ff;
  --benefits-accent-alt: #46f0c3;
  /* Home page headline tint for better contrast on dark bg */
  --home-headline: #d7e4ff;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
}

body.header-fixed {
  margin: 0;
}

/* Offset the whole page once by the fixed header height */
body.header-fixed #page-wrapper {
  padding-top: var(--ccert-header-height);
}

/* Prevent double-offsets on inner wrappers */
body.header-fixed #body-wrapper,
body.header-fixed #start > #body-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background: transparent;
}

/* Ensure the first section after the header starts flush */
#header + section { margin-top: 0 !important; }

body.header-fixed #header {
  display: block;
  background: rgba(3, 9, 21, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f8ff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  width: 100%;
  z-index: 20;
}
/* Ensure the header element height matches our design token
   so inner content (logo) isn’t intersected by the default 4rem height */
#header {
  height: var(--ccert-header-height);
}
body.header-fixed.header-animated #header.scrolled {
    height: calc(var(--ccert-header-height) - 16px);
}
body.header-fixed.header-animated #header.scrolled .container,
body.header-fixed.header-animated #header.scrolled .navbar-section {
    height: calc(var(--ccert-header-height) - 16px);
}
body.header-fixed.header-animated #header.scrolled .navbar-section.desktop-menu nav > ul {
    height: calc(var(--ccert-header-height) - 16px);
}
/* When header becomes fixed on scroll, explicitly pin it and
   keep the inner container height and centering identical so
   logo and nav do not shift visually. */
body.header-fixed #header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* ensure the fixed header stays above other content */
  z-index: 9999;
}

body.header-fixed #header .container {
  /* make sure the container keeps the same height and centering
     when the header is fixed (removes any transient padding) */
  height: var(--ccert-header-height);
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

#header.section {
  padding-left: 0;
  padding-right: 0;
  /* remove extra vertical padding so the header height is governed
     by the container height and items can vertically center */
  padding-top: 0;
  padding-bottom: 0;
}


#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* keep header edge aligned with content frames */
  padding: 0 var(--ccert-frame-pad);
  /* use a fixed height so children can be reliably centered */
  height: var(--ccert-header-height);
  max-width: var(--ccert-max-width);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Navbar layout: use flex (Spectre default) to avoid grid glitches */
#header .navbar {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--ccert-header-height);
  gap: clamp(12px, 3vw, 32px);
}

/* Ensure home page nav never wraps or collapses unexpectedly */
.home-page #header .dropmenu > ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}
.home-page #header .dropmenu > ul > li { white-space: nowrap; }
.home-page #header .navbar-section.desktop-menu { margin-left: auto; }

/* Keep the navbar sections the same height as the header so
   inline items (like the logo) are never clipped */
#header .navbar-section {
  height: var(--ccert-header-height);
}

#header .navbar-section.logo,
#header .navbar-section.logo .logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Ensure logo has breathing room and isn't clipped when header is fixed */
#header .navbar-section.logo {
  padding-top: 6px;
  padding-bottom: 6px;
}

#header .navbar-section.desktop-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
}

#header .navbar-section.desktop-menu nav > ul {
  display: flex;
  gap: 24px;
  align-items: center;
  height: var(--ccert-header-height);
  margin: 0;
}

#header .navbar-brand {
  display: inline-flex;
  align-items: center;
  padding-right: clamp(12px, 2vw, 28px);
  line-height: 1;
}

#header .navbar-brand img,
#header .logo img,
#header .logo svg {
  display: block;
  /* slightly reduce max-height so it never touches/crops header edges */
  max-height: 56px;
  height: auto;
  width: auto;
}

/* When the header shrinks on scroll, scale logo accordingly */
body.header-fixed.header-animated #header.scrolled .logo img,
body.header-fixed.header-animated #header.scrolled .logo svg {
  max-height: 36px;
}

/* Allow the fixed header to show overflow from children (logo shadows, borders) */
#header,
body.header-fixed #header {
  overflow: visible;
}

#header .dropmenu > ul > li {
  display: flex;
  align-items: center;
  height: var(--ccert-header-height);
}

#header .dropmenu > ul > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(244, 248, 255, 0.8);
  font-weight: 600;
  letter-spacing: 0.01em;
  height: auto;
  line-height: 1;
}

#header .dropmenu > ul > li > a.active {
  color: #ffffff;
}

/* Mobile menu: visible on small screens; desktop uses the full nav */
.mobile-menu { display: none; }
@media (max-width: 840px) {
  .mobile-menu { display: block; }
  #header .navbar-section.desktop-menu { display: none; }
}

/* Ensure mobile overlay renders above fixed header */
.mobile-container { z-index: 10000; }
#overlay { z-index: 10001; }

body.header-fixed #footer {
  background: transparent;
  padding-top: 32px;
  padding-bottom: 32px;
}

@media (max-width: 768px) {
  #header .container {
    padding: 0 var(--ccert-frame-pad);
  }

  #header .navbar {
    gap: 16px;
  }

  #header .navbar-section.desktop-menu nav > ul {
    gap: 12px;
    height: var(--ccert-header-height);
  }

  body.header-fixed #body-wrapper,
  body.header-fixed #start > #body-wrapper,
  body.header-fixed #body {
    /* Keep mobile offset tight; header already accounts for height */
    padding-top: var(--ccert-header-height);
  }
}

/* Reduce default top padding that Quark applies to the content container */
#body-wrapper .container {
  padding-top: 1rem;
}

/* Shared components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft));
  color: #03161c;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-text);
}

.btn:hover {
  transform: translateY(-2px);
}

/* Home page */
.home-page {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 15% 20%, #0c1b33, #01060f 60%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.65;
}

.home-page a {
  color: var(--color-accent);
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--home-headline);
  line-height: 1.2;
  margin-top: 0;
}

.home-page .home-frame,
.how-it-works-page .hiw-frame,
.regional-impact-page .region-frame {
  max-width: var(--ccert-max-width);
  margin: 0 auto;
  padding-left: var(--ccert-frame-pad);
  padding-right: var(--ccert-frame-pad);
}

/* Gentle flow spacing between direct siblings inside frames.
   This ensures stacked blocks don’t stick together, especially on mobile. */
.home-page .home-frame > * + *,
.how-it-works-page .hiw-frame > * + *,
.regional-impact-page .region-frame > * + * {
  margin-top: clamp(1rem, 2vw, 1.6rem);
}

/* Apply vertical section padding only to content sections inside the page container */
.home-page #body-wrapper .container > section,
.regional-impact-page #body-wrapper .container > section {
  padding: var(--ccert-section-pad) 0;
}

/* Do not add extra top padding to the first content section under the header */
.home-page #body-wrapper .container > section:first-of-type,
.how-it-works-page #body-wrapper .container > section:first-of-type,
.regional-impact-page #body-wrapper .container > section:first-of-type,
.benefits-page #body-wrapper .container > section:first-of-type {
  padding-top: 0;
}

/* Only add extra bottom padding to the last content section inside the page container,
   not to global wrapper sections like #header or #start (prevents header/nav glitches). */
.home-page #body-wrapper .container > section:last-of-type {
  padding-bottom: 1.25rem;
}

.home-page .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* Make the hero fill the viewport minus the fixed header */
.home-page .home-hero {
  min-height: calc(100vh - var(--ccert-header-height));
  display: grid;
  align-items: center;
  /* Trim extra top padding so hero starts immediately under header */
  padding-top: clamp(0rem, 1vw, 0.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.home-page .hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.home-page .home-hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.2rem);
}

.home-page .home-hero .lead {
  font-size: 1.12rem;
  color: var(--color-muted);
  max-width: 640px;
}

/* hero left column spacing */
.home-page .home-hero .hero-grid > div:first-child > * + * {
  margin-top: 0.75rem;
}

.home-page .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.home-page .stat-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: rgba(5, 20, 40, 0.7);
  border: 1px solid rgba(71, 209, 255, 0.3);
  font-weight: 500;
  animation: glow 3s ease-in-out infinite;
}

.home-page .stat-counter::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-saffron);
  box-shadow: 0 0 12px rgba(255, 180, 71, 0.9);
}

.home-page .hero-visual {
  min-height: 420px;
  border-radius: 32px;
  position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(113, 245, 208, 0.35), transparent 60%),
              linear-gradient(140deg, rgba(6, 34, 74, 0.95), rgba(3, 12, 28, 0.8));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.home-page .hero-visual::before {
  content: '';
  position: absolute;
  inset: 10%;
  background: linear-gradient(160deg, rgba(71, 209, 255, 0.4), rgba(255, 180, 71, 0.35));
  clip-path: polygon(15% 20%, 45% 10%, 70% 20%, 85% 40%, 80% 65%, 55% 90%, 30% 80%, 10% 55%);
  filter: drop-shadow(0 0 25px rgba(71, 209, 255, 0.4));
  opacity: 0.9;
  animation: float 8s ease-in-out infinite;
}

.home-page .hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mix-blend-mode: screen;
  opacity: 0.35;
}

.home-page .node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(113, 245, 208, 0.15);
  box-shadow: 0 0 12px rgba(71, 209, 255, 0.8);
  animation: pulse 4s infinite;
}

.home-page .node::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.home-page .node-1 { top: 24%; left: 32%; }
.home-page .node-2 { top: 48%; right: 25%; animation-delay: 0.6s; }
.home-page .node-3 { bottom: 20%; left: 40%; animation-delay: 1.2s; }
.home-page .node-4 { top: 35%; right: 45%; animation-delay: 1.8s; }

.home-page .home-frame .card,
.home-page .highlight,
.home-page .cta-block,
.home-page .card.contact-card,
.home-page .card.support-card,
.home-page .card.about-card {
  background: var(--color-card);
  border-radius: 24px;
  padding: var(--ccert-card-pad);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.home-page .split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.home-page .key-results {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.home-page .key-results li {
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* consistent inner spacing for cards/panels across pages */
.home-page .card > * + * { margin-top: 0.7rem; }
.how-it-works-page .hiw-panel > * + * { margin-top: 0.7rem; }
.how-it-works-page .hiw-panel-alt > * + * { margin-top: 0.7rem; }

.home-page .key-results strong {
  font-size: 1.3rem;
  color: var(--color-accent);
}

.home-page .card-grid,
.home-page .impact-grid,
.home-page .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.home-page .mini-card,
.home-page .impact-card,
.home-page .card.contact-card,
.home-page .card.support-card,
.home-page .card.about-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-page .impact-card .icon {
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.home-page .hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.home-page .hero-metrics li {
  background: linear-gradient(135deg, rgba(92, 240, 208, 0.12), rgba(15, 26, 45, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.home-page .hero-metrics strong {
  display: block;
  font-size: 2rem;
  color: var(--color-accent);
}

.home-page .process {
  display: grid;
  gap: 1.5rem;
}

.home-page .process-step {
  background: var(--color-card-alt);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.home-page .testimonials {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-page .testimonial {
  padding: 1.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 20, 0.85);
}

.home-page .contact .card {
  background: var(--color-card);
}

.home-page .contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.home-page .contact a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.home-page .cta-block {
  text-align: center;
  background: linear-gradient(135deg, rgba(71, 209, 255, 0.18), rgba(255, 180, 71, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.home-page .cta {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #5cf0d0, #3779ff);
  color: #04121a;
  box-shadow: var(--shadow-soft);
}

.home-page .cta p {
  color: #04121a;
}

.home-page .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.home-page .social-links a {
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* How it works */
.how-it-works-page {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 20% 20%, #0f2242, #030915 65%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--hiw-text);
  line-height: 1.7;
}

/* Regional impact page section padding scoping and full-height hero */
.regional-impact-page #body-wrapper .container > section {
  padding: var(--ccert-section-pad) 0;
}
.regional-impact-page .region-hero {
  min-height: calc(100vh - var(--ccert-header-height));
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: clamp(0rem, 1vw, 0.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.how-it-works-page a {
  color: var(--hiw-accent);
}

.how-it-works-page h1,
.how-it-works-page h2,
.how-it-works-page h3,
.how-it-works-page h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--hiw-headline);
  line-height: 1.25;
}

/* Apply padding only to content sections inside the main container */
.how-it-works-page #body-wrapper .container > section {
  padding: var(--ccert-section-pad) 0;
}

/* Full-height hero on inner pages too */
.how-it-works-page .hiw-hero {
  min-height: calc(100vh - var(--ccert-header-height));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  padding-top: clamp(0rem, 1vw, 0.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.how-it-works-page .hiw-hero .intro {
  max-width: 620px;
}

.how-it-works-page .hiw-hero .intro > * + * {
  margin-top: 0.7rem;
}

.how-it-works-page .hiw-hero p {
  color: var(--hiw-muted);
}

.how-it-works-page .hiw-panel,
.how-it-works-page .hiw-panel-alt {
  border-radius: 28px;
  border: 1px solid var(--hiw-border);
  padding: var(--ccert-card-pad);
  box-shadow: var(--hiw-shadow);
}

.how-it-works-page .hiw-panel {
  background: var(--hiw-panel);
}

.how-it-works-page .hiw-panel-alt {
  background: var(--hiw-panel-alt);
}

.how-it-works-page .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--hiw-accent);
  margin-bottom: 1rem;
}

.how-it-works-page .step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.how-it-works-page .step-item {
  padding: 1.6rem;
  border-radius: 20px;
  border: 1px solid var(--hiw-border);
  background: rgba(9, 16, 34, 0.95);
}

.how-it-works-page .step-item h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.how-it-works-page .hiw-table,
.how-it-works-page .comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.how-it-works-page .hiw-table th,
.how-it-works-page .hiw-table td,
.how-it-works-page .comparison-table th,
.how-it-works-page .comparison-table td {
  border: 1px solid var(--hiw-border);
  padding: 0.9rem 1rem;
  text-align: left;
}

.how-it-works-page .hiw-table th,
.how-it-works-page .comparison-table th {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--hiw-muted);
  background: rgba(255, 255, 255, 0.04);
}

.how-it-works-page .code-block {
  background: rgba(1, 3, 10, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem;
  font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.how-it-works-page .hiw-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}

.how-it-works-page .hiw-columns article {
  background: rgba(7, 14, 30, 0.95);
  border-radius: 20px;
  border: 1px solid var(--hiw-border);
  padding: 1.6rem;
}

.how-it-works-page .cta-block {
  text-align: center;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.6rem;
  background: linear-gradient(145deg, rgba(95, 216, 255, 0.22), rgba(86, 240, 191, 0.22));
  box-shadow: var(--hiw-shadow);
}

.how-it-works-page .btn-primary {
  background: linear-gradient(135deg, var(--hiw-accent), var(--hiw-accent-alt));
  color: #03141b;
  box-shadow: var(--hiw-shadow);
}

@media (max-width: 720px) {
  .how-it-works-page section {
    padding: 2.5rem 0;
  }
}

/* Regional impact page */
.regional-impact-page {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--region-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.75;
}

/* Benefits page */
.benefits-page {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--benefits-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--benefits-text);
  line-height: 1.7;
}

.benefits-page a { color: var(--benefits-accent); }

.benefits-page h1,
.benefits-page h2,
.benefits-page h3,
.benefits-page h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--benefits-headline);
  line-height: 1.25;
}

.benefits-page section { padding: var(--ccert-section-pad) 0; }

/* Tidy spacing between elements inside the Benefits page container */
.benefits-page #body-wrapper .container > * + * { margin-top: 0.9rem; }

/* Present blockquotes and separators consistently with other pages */
.benefits-page blockquote {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--benefits-accent);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--benefits-text);
}

.benefits-page hr { border: 0; height: 1px; background: rgba(255, 255, 255, 0.08); margin: 1.5rem 0; }

.regional-impact-page a {
  color: var(--region-accent);
}

.regional-impact-page h1,
.regional-impact-page h2,
.regional-impact-page h3,
.regional-impact-page h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.25;
  color: #ffffff; /* ensure headings are white, not Spectre/Quark grey */
}

.regional-impact-page .region-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  /* Less top padding to align with header */
  padding-top: clamp(0.75rem, 2.5vw, 1.5rem);
}

/* tidy spacing for stacked text in hero column */
.regional-impact-page .region-hero > div > * + * {
  margin-top: 0.75rem;
}

.regional-impact-page .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--region-accent);
  margin-bottom: 1rem;
}

.regional-impact-page .region-map {
  background: radial-gradient(circle at 40% 20%, rgba(109, 213, 255, 0.25), transparent 60%),
              linear-gradient(150deg, rgba(10, 24, 52, 0.95), rgba(6, 11, 26, 0.9));
  border-radius: 32px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--region-border);
  box-shadow: var(--shadow-soft);
}

.regional-impact-page .region-map::after {
  content: '';
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 32px;
}

.regional-impact-page .map-nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.regional-impact-page .map-node {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.regional-impact-page .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--region-accent);
  box-shadow: 0 0 10px rgba(109, 213, 255, 0.7);
}

.regional-impact-page .region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem; /* more breathing room between cards */
}

.regional-impact-page .region-card {
  background: var(--region-card);
  border: 1px solid var(--region-border);
  border-radius: 24px;
  padding: var(--ccert-card-pad);
  box-shadow: var(--shadow-soft);
}

.regional-impact-page .region-card > * + * {
  /* consistent inner spacing between elements inside a card */
  margin-top: 0.75rem;
}

.regional-impact-page .region-card h3 {
  margin-top: 0;
}

.regional-impact-page .region-card h2 {
  margin-top: 0; /* avoid pushing down from top of card */
}

.regional-impact-page .region-card > :first-child { margin-top: 0; }
.regional-impact-page .region-card > :last-child { margin-bottom: 0; }

.regional-impact-page .region-badge {
  display: inline-flex;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: #04121b;
  background: var(--region-accent);
}

.regional-impact-page .region-badge.indigo {
  background: #5c7cfa;
  color: #ffffff;
}

.regional-impact-page .region-badge.gold {
  background: #f7b733;
  color: #04121b;
}

.regional-impact-page .region-badge.teal {
  background: #2ec4b6;
  color: #04121b;
}

.regional-impact-page .region-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem; /* add space after tables */
  font-size: 0.95rem;
}

.regional-impact-page .region-table th,
.regional-impact-page .region-table td {
  border: 1px solid var(--region-border);
  padding: 0.85rem 1rem;
}

.regional-impact-page .region-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
}

.regional-impact-page .region-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem; /* slightly larger column gap for readability */
}

.regional-impact-page .quote-card {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--region-accent);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  font-style: italic;
}

.regional-impact-page .impact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.regional-impact-page .impact-list li {
  margin-bottom: 0.8rem; /* roomier list items */
}

.regional-impact-page .cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.regional-impact-page .cta-block {
  background: linear-gradient(135deg, rgba(109, 213, 255, 0.25), rgba(70, 240, 195, 0.25));
  border: 1px solid var(--region-border);
  text-align: center;
  border-radius: 24px;
  padding: var(--ccert-card-pad);
  box-shadow: var(--shadow-soft);
}

/* Regional metrics highlight */
.regional-impact-page .metric-highlight {
  text-align: center;
  border-radius: 24px;
  padding: var(--ccert-card-pad);
  background: linear-gradient(135deg, rgba(109, 213, 255, 0.18), rgba(70, 240, 195, 0.22));
  border: 1px solid var(--region-border);
  box-shadow: var(--shadow-soft);
}

.regional-impact-page .metric-highlight .value {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--region-accent);
}

.regional-impact-page .metric-highlight .label {
  color: rgba(255, 255, 255, 0.85);
}

.regional-impact-page .btn-primary {
  background: linear-gradient(135deg, var(--region-accent), var(--region-accent-alt));
  color: #03141b;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 720px) {
  .home-page section,
  .how-it-works-page section,
  .regional-impact-page section {
    padding: 2.75rem 0;
  }
}

/* Keyframes */
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.4; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

@keyframes glow {
  0% { box-shadow: 0 0 10px rgba(71, 209, 255, 0.4); }
  100% { box-shadow: 0 0 20px rgba(255, 180, 71, 0.6); }
}
