:root {
  --aqua: #37B5F7;
  --navy: #012B63;
  --light-bg: #E8F4FC;
  --text: #012B63;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* GLOBAL RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}
img { max-width: 100%; height: auto; }

/* TESTNET BANNER */
.testnet-banner {
  background: linear-gradient(90deg, #ffcf4d, #ff8f00);
  color: #000;
  text-align: center;
  padding: 8px 0;
  font-weight: 600;
  font-size: 15px;
}

/* HEADER */
.main-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 36px; width: auto; }
.logo span { font-weight: 600; font-size: 22px; color: var(--navy); }
.nav a {
  margin: 0 12px; text-decoration: none; color: var(--navy); font-weight: 500;
}
.nav a:hover { color: var(--aqua); }

/* HAMBURGER */
/* ====== HAMBURGER MENU (FIXED FOR iPHONE) ====== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 34px;               /* keep consistent width */
  height: 28px;              /* vertically centered */
  position: relative;
  z-index: 1000;             /* ensure on top */
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: var(--navy);
  margin: 4px 0;
  border-radius: 3px;
  transition: all 0.35s ease;
}

/* open state */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}
/* When hamburger becomes the "X" */
.hamburger.active {
  transform: translateY(-50%) translateX(-5%); /* shift 2px left */
}

/* ensure the X stays aligned */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: relative;
}


/* MOBILE NAV */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 65px;
  left: 0;
  width: 100%;
  box-shadow: var(--shadow);
  z-index: 998;
}
.mobile-nav a {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
}
.mobile-nav.open { display: flex; }

/* HERO */
.hero {
  position: relative;
  background: url('../images/hero.png') center center/cover no-repeat;
  height: 90vh;
}
@media (max-width: 768px) {
  .hero {
    background: url('../images/hero_mobile.png') center center/cover no-repeat;
    height: 75vh;
  }
}

/* INTRO */
.intro {
  background: var(--light-bg);
  text-align: center;
  padding: 80px 20px;
}
.intro-logo { width: 80px; margin-bottom: 20px; }
.intro h1 { font-size: 32px; color: var(--navy); margin-bottom: 20px; }
.intro p { font-size: 18px; max-width: 700px; margin: 0 auto 25px; color: #333; }
.btn {
  padding: 12px 25px; border-radius: 8px; text-decoration: none;
  font-weight: 600; margin: 0 8px; transition: 0.3s;
}
.btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #37B5F7;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  margin: 0 8px;
  font-size: 15px;
}
.btn.primary:hover {
  background: #fff;
  color: #012B63;
  border: 2px solid #012B63;
  box-shadow: none;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.btn.secondary { border: 2px solid var(--aqua); color: var(--aqua); }
.btn.secondary:hover { background: var(--aqua); color: #fff; }

/* SECTIONS */
.section { padding: 80px 20px; }
.section.light { background: var(--light-bg); }
.container { max-width: 1100px; margin: 0 auto; text-align: center; }
h2 { margin-bottom: 25px; font-size: 28px; color: var(--navy); }

/* HOW IT WORKS */
#how.section { background: #fff; text-align: center; padding: 100px 20px; }
#how p { font-size: 17px; color: #333; max-width: 750px; margin: 0 auto 40px; }
.how-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 30px; justify-items: center;
}
.how-item {
  background: var(--light-bg); border-radius: 12px;
  padding: 30px 25px; box-shadow: var(--shadow); width: 100%;
  max-width: 260px; text-align: center;
}
.how-item img { width: 60px; height: 60px; margin-bottom: 15px; }
.how-item h3 { color: var(--navy); margin-bottom: 10px; font-size: 20px; }
.how-item p { color: #444; font-size: 15px; line-height: 1.5; }

/* ROADMAP */
.roadmap-list { list-style: none; max-width: 600px; margin: auto; text-align: left; padding-left: 0; }
.roadmap-list li {
  margin-bottom: 12px; background: #fff; padding: 14px 20px;
  border-radius: 8px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
}
.roadmap-list span { font-size: 20px; }

/* KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px; list-style: none; padding: 0;
}
.kpi-grid li {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 20px;
}
.kpi-grid strong {
  display: block; font-size: 28px; color: var(--aqua); margin-bottom: 8px;
}

/* CONTACT */
#contact a { color: var(--aqua); text-decoration: none; font-weight: 600; }
#contact a:hover { text-decoration: underline; }

/* FOOTER */
/* ========= FOOTER ========= */
.footer {
  position: relative;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #37B5F7 0%, #012B63 100%);
  overflow: hidden;
  width: 100%;
}

/* Fix wave shape fully visible */
.footer .wave {
  display: block;
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 120px;          /* taller to show the curve */
  z-index: 0;
}

.footer .wave path {
  fill: #37B5F7;
}

.footer-content {
  position: relative;
  padding: 50px 20px 30px;
  z-index: 1;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 12px;
}

.footer p {
  font-size: 14px;
  color: #fff;
  margin-top: 8px;
}

.footer-icons {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 22px;
}

.footer-icons a img,
.footer-icons a svg {
  transition: opacity 0.3s ease;
}

.footer-icons a:hover img,
.footer-icons a:hover svg {
  opacity: 0.7;
}



/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav {
    position: absolute;
    top: 64px;       /* aligns right below header */
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .hero { height: 75vh; }
  .intro { padding: 60px 20px; }
  .intro h1 { font-size: 26px; }
  .intro p { font-size: 16px; }
  .btn { display: inline-block; margin: 8px 0; }
}
/* KPI Chart layout */
#kpiChart {
  width: 100%;
  max-width: 1000px;        /* allow it to fill under KPI cards */
  margin: 0 auto;
  height: 450px !important; /* balanced height for desktop */
}

/* keep mobile height the same as before */
@media (max-width: 768px) {
  #kpiChart {
    height: 300px !important;
  }
}
.simulator-cta {
  background: #fff;
  text-align: center;
  padding: 80px 20px;
}

.simulator-cta .cta-inner {
  max-width: 700px;
  margin: auto;
}
.simulator-cta h2 {
  color: #012B63;
  font-size: 28px;
  margin-bottom: 15px;
}
.simulator-cta p {
  color: #333;
  font-size: 16px;
  margin-bottom: 25px;
}
.simulator-cta .cta-button {
  background: #37B5F7;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.simulator-cta .cta-button:hover {
  background: #012B63;
}
.donate-fade {
  background: linear-gradient(180deg, #E8F4FC 0%, #FFFFFF 100%);
}

.kpi-item {
  position: relative;
  padding-right: 55px; /* space for mini indicator */
}

.kpi-change {
  position: absolute;
  right: 12px;
  top: 18px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.kpi-change .kpi-icon {
  margin-right: 2px;
  font-size: 11px;
}

.kpi-change.green {
  color: #0BA95B; /* Positive sustainability = improvement */
}

.kpi-change.red {
  color: #D64545;
}

.kpi-change.orange {
  color: #F5A623;
}
/* ======== Updates Section ======== */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.updates-column h3 {
  color: #012B63;
  margin-bottom: 16px;
}

.updates-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.updates-list li {
  margin-bottom: 14px;
}

.updates-list a {
  text-decoration: none;
  color: #012B63;
  display: block;
}

.updates-list a strong {
  display: block;
  font-weight: 600;
}

.updates-list a span {
  font-size: 13px;
  color: #555;
}

.updates-link {
  font-size: 14px;
  font-weight: 600;
  color: #37B5F7;
  text-decoration: none;
}
.section-subtitle {
  max-width: 640px;
  margin: 0 auto 40px;
  color: #444;
}

.updates-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

@media (max-width: 900px) {
  .updates-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Medium Cards ===== */
.medium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.medium-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.medium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.medium-thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.medium-body {
  padding: 14px;
}

.medium-body h4 {
  font-size: 15px;
  color: #012B63;
  margin-bottom: 6px;
}

.medium-body span {
  font-size: 13px;
  color: #666;
}

/* ===== X Profile Card ===== */
.x-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.x-icon {
  width: 36px;
  margin-bottom: 12px;
}

.x-card h4 {
  margin-bottom: 6px;
  color: #012B63;
}

.x-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 18px;
}
/* ===== Medium Cards (Text-only, Editorial) ===== */

.medium-card.text-only {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.medium-card.text-only:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.medium-card.text-only h4 {
  font-size: 16px;
  line-height: 1.35;
  color: #012B63;
  margin-bottom: 10px;
}

.medium-card.text-only span {
  font-size: 13px;
  color: #666;
}
/* ===== X Cards (API-based) ===== */

.x-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.x-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


.x-body {
  padding: 16px;
}

.x-body p {
  font-size: 14px;
  color: #012B63;
  margin-bottom: 8px;
}

.x-body span {
  font-size: 12px;
  color: #666;
}

@media (max-width: 700px) {
  .x-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Medium Cards (with images) ===== */

.medium-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.medium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.medium-thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.medium-body {
  padding: 16px;
}

.medium-body h4 {
  font-size: 15px;
  color: #012B63;
  line-height: 1.35;
  margin-bottom: 6px;
}

.medium-body span {
  font-size: 13px;
  color: #666;
}
.x-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;     /* KEY */
  padding: 0;           /* KEY */
}

.x-body {
  padding: 26px 28px;
}




/* tighter body */


.x-body p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 6px;
  color: #012B63;
}

.x-body span {
  font-size: 11px;
  color: #777;
}

.x-link {
  font-size: 12px;
  color: #37B5F7;
  text-decoration: none;
}

.x-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}
.x-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.updates-stack {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.updates-section {
  text-align: center;
}

.updates-section h3 {
  margin-bottom: 24px;
}
.medium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-content: center;
}
.x-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}


.x-body.no-image {
  padding-top: 26px;
}
.x-body p {
  font-size: 15px;
  line-height: 1.45;
  color: #012B63;
  margin-bottom: 12px;
}

.x-body span {
  display: block;
  font-size: 13px;
  color: #6b7c93;
  margin-bottom: 8px;
}
/* ===============================
   X (Twitter) Cards – FINAL CLEAN
   =============================== */

.x-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .x-grid {
    grid-template-columns: 1fr;
  }
}

.x-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden; /* REQUIRED for image clipping */
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}



/* Text body */
.x-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.x-body.no-image {
  padding-top: 22px;
}

/* Text */
.x-body p {
  font-size: 14px;
  line-height: 1.45;
  color: #012B63;
  margin-bottom: 10px;
}

.x-body span {
  font-size: 12px;
  color: #6b7c93;
  margin-bottom: 10px;
}

/* Link */
.x-link {
  font-size: 13px;
  font-weight: 600;
  color: #37B5F7;
  text-decoration: none;
  margin-top: auto;
}

.x-link:hover {
  text-decoration: underline;
}
.x-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.x-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.x-body {
  padding: 18px 20px;
  text-align: left;
}

.x-card.no-image .x-body {
  padding-top: 22px;
}

.x-body p {
  font-size: 14px;
  line-height: 1.45;
  color: #012B63;
  margin: 0 0 10px;
}

.x-body span {
  display: block;
  font-size: 12px;
  color: #6b7c93;
  margin-bottom: 10px;
}

.x-link {
  font-size: 13px;
  font-weight: 600;
  color: #37B5F7;
  text-decoration: none;
}

