/* ============================================================
   ESG INSIGHT — DESIGN SYSTEM
   Institutional. Clean. AI-forward. Light theme.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg-0:        #ffffff;
  --bg-1:        #f7f9f6;
  --bg-2:        #f0f4ef;
  --bg-card:     #ffffff;
  --bg-card-hi:  #f5faf4;
  --bg-dark:     #0c1a0c;

  --border:      rgba(30, 90, 20, 0.1);
  --border-hi:   rgba(30, 110, 20, 0.22);

  --green-1:     #0d5c07;
  --green-2:     #1a7a10;
  --green-3:     #2a9418;
  --green-4:     #3db52a;
  --green-tint:  rgba(42, 148, 24, 0.07);
  --green-tint2: rgba(42, 148, 24, 0.13);

  --ink-1:       #0c1a0c;
  --ink-2:       #2a3a2a;
  --ink-3:       #4a5e4a;
  --ink-4:       #7a927a;
  --ink-5:       #a8baa8;

  --text-h:      #0c1a0c;
  --text-p:      #4a5e4a;
  --text-dim:    #8a9e8a;

  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Exo 2', sans-serif;

  --r-sm:  4px;
  --r-md:  10px;
  --r-lg:  14px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.05), 0 4px 14px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.07);

  --nav-h: 68px;
  --max-w: 1160px;
  --section-py: 88px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-0);
  color: var(--text-p);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-3); }
ul { list-style: none; }

/* ── CANVAS BG ───────────────────────────────────────────── */
#mesh-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img { height: 30px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  color: var(--ink-1); letter-spacing: 0.08em;
}
.nav-logo-sub {
  font-family: var(--font-display);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-2); line-height: 1; margin-top: 1px;
}
.nav-links {
  display: flex; align-items: center; gap: 0;
  flex: 1; justify-content: center;
}
.nav-links a {
  font-family: var(--font-display); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-3); padding: 8px 14px; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-2); }
.nav-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink-2);
  transition: transform .3s, opacity .3s; border-radius: 2px;
}
.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  padding: 20px 32px 28px; flex-direction: column; gap: 0;
  z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--green-2); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-display); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 22px; background: var(--green-2); color: white;
  border: 1px solid var(--green-2); border-radius: var(--r-sm);
  cursor: pointer; transition: background .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--green-1); border-color: var(--green-1);
  box-shadow: 0 4px 16px rgba(26,122,16,0.3);
}
.btn-ghost {
  font-family: var(--font-display); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 22px; background: transparent; color: var(--ink-2);
  border: 1px solid var(--border-hi); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.btn-ghost:hover {
  background: var(--green-tint); border-color: var(--green-3); color: var(--green-2);
}
.btn-ghost-white {
  font-family: var(--font-display); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 22px; background: transparent; color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.5); color: white;
  background: rgba(255,255,255,0.06);
}
.btn-lg { padding: 13px 32px; font-size: 0.86rem; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.section { padding: var(--section-py) 0; position: relative; z-index: 1; }
.section-sm { padding: 52px 0; position: relative; z-index: 1; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section-label {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-2);
  margin-bottom: 12px; display: block;
}
.section-header { margin-bottom: 52px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--text-h); line-height: 1.15; margin-bottom: 12px;
}
.section-header p {
  color: var(--text-p); font-size: 0.97rem;
  max-width: 500px; line-height: 1.75;
}
.text-green { color: var(--green-2); }
.bg-tinted { background: var(--bg-1); }
.divider { border: none; border-top: 1px solid var(--border); }

/* ── HERO (page base) ────────────────────────────────────── */
.page-hero {
  padding-top: var(--nav-h); min-height: 46vh;
  display: flex; align-items: center;
  background: var(--bg-1); border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}
.page-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 72px 32px 80px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-2);
  border: 1px solid var(--border-hi); border-radius: 40px;
  padding: 5px 14px; margin-bottom: 22px; background: var(--green-tint);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700;
  color: var(--text-h); line-height: 1.1; max-width: 680px;
  margin-bottom: 18px;
}
.page-hero h1 span { color: var(--green-2); }
.page-hero p {
  font-size: 1.02rem; color: var(--text-p);
  max-width: 500px; line-height: 1.75; margin-bottom: 32px;
}

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 28px;
  transition: border-color .25s, box-shadow .25s;
}
.card:hover { border-color: var(--border-hi); box-shadow: var(--shadow-md); }
.card-icon {
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--green-tint); border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-bottom: 16px; flex-shrink: 0;
}
.card h3 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--text-h); margin-bottom: 9px; letter-spacing: 0.02em;
}
.card p { font-size: 0.875rem; color: var(--text-p); line-height: 1.65; }

/* ── STAT BAR ────────────────────────────────────────────── */
.stat-bar { background: var(--ink-1); padding: 40px 0; position: relative; z-index: 1; }
.stat-bar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item { padding: 8px 28px; border-right: 1px solid rgba(255,255,255,0.07); }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 700;
  color: #fff; line-height: 1; margin-bottom: 5px;
}
.stat-num em { color: var(--green-4); font-style: normal; }
.stat-label {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.38);
}

/* ── GRIDS ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── FEATURE DETAIL ──────────────────────────────────────── */
.feature-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.feature-detail.reverse .feature-img { order: -1; }
.feature-img {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
}
.feature-img img { width: 100%; height: 340px; object-fit: cover; display: block; }
.feature-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700;
  color: var(--text-h); line-height: 1.2; margin-bottom: 14px;
}
.feature-body > p { color: var(--text-p); line-height: 1.8; margin-bottom: 24px; font-size: 0.93rem; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; }
.check-dot {
  width: 16px; height: 16px; background: var(--green-tint2);
  border: 1px solid var(--border-hi); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; color: var(--green-2); flex-shrink: 0; margin-top: 4px;
}
.check-item p { font-size: 0.875rem; color: var(--text-p); line-height: 1.6; }
.check-item strong { color: var(--text-h); font-weight: 600; }

/* ── DARK SECTION ────────────────────────────────────────── */
.section-dark { background: var(--ink-1); }
.section-dark .section-label { color: var(--green-4); }
.section-dark h2 { color: #fff; }
.section-dark .section-header p { color: rgba(255,255,255,0.5); }
.section-dark .card {
  background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.07);
}
.section-dark .card:hover {
  border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.07);
}
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: rgba(255,255,255,0.5); }
.section-dark .card-icon { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band {
  background: var(--ink-1);
  padding: 72px 60px; text-align: center; position: relative; z-index: 1;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700;
  color: #fff; margin-bottom: 14px;
}
.cta-band p {
  font-size: 1rem; color: rgba(255,255,255,0.5);
  max-width: 480px; margin: 0 auto 32px; line-height: 1.75;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--ink-1); position: relative; z-index: 1; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding: 56px 0 44px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p {
  font-size: 0.85rem; color: rgba(255,255,255,0.35);
  line-height: 1.7; margin-top: 16px; max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 16px;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.45); transition: color .2s; }
.footer-col a:hover { color: var(--green-4); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; gap: 20px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.25); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  font-size: 0.75rem; font-family: var(--font-display); font-weight: 700;
  color: rgba(255,255,255,0.3); width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; transition: color .2s, border-color .2s;
}
.footer-socials a:hover { color: var(--green-4); border-color: var(--green-2); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  :root { --section-py: 60px; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .feature-detail, .feature-detail.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature-detail.reverse .feature-img { order: unset; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .container, .page-hero-inner { padding-left: 20px; padding-right: 20px; }
  .cta-band { padding: 52px 24px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stat-bar-inner { grid-template-columns: 1fr 1fr; }
}
