/* ============================================================
   GameDev India — static site styles
   Light mode accent: yellow (#FFD600) · Dark mode accent: teal (#008CA5)
   ============================================================ */
:root {
  /* surfaces & text (light) */
  --bg: #ffffff;
  --surface: #ffffff;
  --bg-alt: #f4f8fa;
  --ink: #14313a;
  --ink-2: #33474e;
  --muted: #5f7278;
  --border: #e4ebee;
  --shadow: 0 1px 2px rgba(15,40,48,.06), 0 8px 24px rgba(15,40,48,.07);
  --shadow-lg: 0 12px 34px rgba(15,40,48,.12);

  /* accent (filled pops) — yellow in light mode */
  --accent: #ffd600;
  --accent-strong: #ecc400;
  --on-accent: #14313a;
  --accent-tint: #fff5c0;
  --accent-marker: rgba(255,214,0,.6);

  /* link / brand text — readable teal both modes */
  --link: #00788e;
  --link-hover: #005e6f;

  /* chrome */
  --header-bg: rgba(255,255,255,.9);
  --hero-wash: linear-gradient(180deg, #e7f4f7, #ffffff);
  --band-grad: linear-gradient(135deg, #008ca5, #00647a);
  --band-ink: #ffffff;
  --footer-bg: #0b1a1f;

  --radius: 14px;
  --container: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
          Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

/* Dark theme — applied via [data-theme="dark"], which an inline head script
   sets from the saved preference or the OS setting (no flash of wrong theme). */
:root[data-theme="dark"] {
  --bg: #0c1a1e;
  --surface: #12262c;
  --bg-alt: #0f2126;
  --ink: #eaf3f5;
  --ink-2: #c6d6da;
  --muted: #8ca1a6;
  --border: #24393f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 14px 38px rgba(0,0,0,.55);

  /* accent (filled pops) — teal in dark mode */
  --accent: #008ca5;
  --accent-strong: #0aa3be;
  --on-accent: #ffffff;
  --accent-tint: rgba(0,140,165,.18);
  --accent-marker: rgba(10,163,190,.42);

  --link: #38c6e1;
  --link-hover: #66d6ec;

  --header-bg: rgba(12,26,30,.88);
  --hero-wash: linear-gradient(180deg, #10262c, #0c1a1e);
  --band-grad: linear-gradient(135deg, #0c333d, #0a2128);
  --band-ink: #eaf3f5;
  --footer-bg: #081418;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--link); margin-bottom: .6rem; }
.lead { font-size: 1.2rem; color: var(--ink-2); }

/* buttons */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  border: 2px solid transparent; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--link); border-color: currentColor; }
.btn-ghost:hover { background: var(--link); color: #fff; border-color: var(--link); }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand { line-height: 0; }
.brand img { height: 30px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; }
.nav-links > li > a { color: var(--ink-2); font-weight: 600; padding: 8px 12px; border-radius: 8px; font-size: .96rem; }
.nav-links > li > a:hover { color: var(--link); background: var(--accent-tint); text-decoration: none; }
.has-dropdown { position: relative; }
.dropdown-toggle::after { content: "▾"; font-size: .7em; margin-left: 5px; opacity: .7; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 8px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.dropdown a:hover { background: var(--accent-tint); color: var(--link); text-decoration: none; }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { background: var(--hero-wash); position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(64px); opacity: .5; z-index: 0; pointer-events: none; }
.hero::before { width: 440px; height: 440px; background: radial-gradient(circle, rgba(0,140,165,.4), transparent 70%); top: -140px; left: -90px; animation: drift1 20s ease-in-out infinite; }
.hero::after { width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,214,0,.42), transparent 70%); bottom: -160px; right: -70px; animation: drift2 24s ease-in-out infinite; }
@keyframes drift1 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.12); } }
@keyframes drift2 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px, -30px) scale(1.1); } }
.hero-main { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; width: 100%; }

/* hero carousel — fixed 600px frame, content vertically centered */
.hero-carousel { position: relative; z-index: 1; }
.hero-viewport { overflow: hidden; }
.hero-track { display: flex; align-items: stretch; min-height: 600px; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.hero-slide { flex: 0 0 100%; min-width: 100%; }
.hero-slide--text { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 44px 0 28px; }
.hero-slide--banner { display: flex; align-items: center; justify-content: center; padding: 28px 20px; text-decoration: none; }
.hero-slide--banner:hover { text-decoration: none; }
.hero-slide--banner img { width: 100%; max-width: 1080px; max-height: 544px; height: auto; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.hero-arrow { position: absolute; top: 300px; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #14313a; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s ease, background .15s ease; }
.hero-carousel:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-arrow:hover { background: #fff; }
.hero-arrow--prev { left: 18px; }
.hero-arrow--next { right: 18px; }
.hero-dots { display: flex; justify-content: center; gap: 9px; padding: 28px 0 10px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(0,0,0,.2); cursor: pointer; transition: width .2s ease, background .2s ease; }
.hero-dots button[aria-current="true"] { background: var(--accent); width: 26px; }
.hero h1 .hl { background-image: linear-gradient(transparent 58%, var(--accent-marker) 58%); background-repeat: no-repeat; background-size: 0% 100%; padding: 0 .06em; border-radius: 2px; animation: hlDraw .6s ease forwards; }
.hero h1 .hl:nth-of-type(1) { animation-delay: .55s; }
.hero h1 .hl:nth-of-type(2) { animation-delay: .75s; }
.hero h1 .hl:nth-of-type(3) { animation-delay: .95s; }
@keyframes hlDraw { to { background-size: 100% 100%; } }
.hero-subtitle { font-size: 1.2rem; font-weight: 500; color: var(--ink-2); max-width: 540px; margin: 0 0 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.badge { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; color: var(--ink-2); box-shadow: var(--shadow); }
.badge strong { color: var(--link); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
/* hero photo collage */
.hero-collage { display: grid; grid-template-columns: 1.12fr .88fr; grid-auto-rows: 1fr; gap: 12px; aspect-ratio: 1 / 0.92; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-lg); }
.hero-collage img:first-child { grid-row: 1 / span 2; }

/* ---- hero jazz: entrance, live dot, collage float ---- */
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-slide--text .hero-copy > *, .hero-slide--text .hero-img, .hero-slide--text .hero-kpi { opacity: 0; animation: heroIn .6s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-slide--text .hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-slide--text .hero-copy > *:nth-child(2) { animation-delay: .13s; }
.hero-slide--text .hero-copy > *:nth-child(3) { animation-delay: .21s; }
.hero-slide--text .hero-copy > *:nth-child(4) { animation-delay: .29s; }
.hero-slide--text .hero-img { animation-delay: .2s; }
.hero-slide--text .hero-kpi { animation-delay: .36s; }

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #12c366; margin-right: 6px; vertical-align: middle; animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(18,195,102,.5); } 70% { box-shadow: 0 0 0 7px rgba(18,195,102,0); } 100% { box-shadow: 0 0 0 0 rgba(18,195,102,0); } }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-collage img { animation: floaty 6s ease-in-out infinite; }
.hero-collage img:nth-child(2) { animation-delay: -2s; }
.hero-collage img:nth-child(3) { animation-delay: -4s; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide--text .hero-copy > *, .hero-slide--text .hero-img, .hero-slide--text .hero-kpi { opacity: 1; animation: none; }
  .hero h1 .hl { background-size: 100% 100%; animation: none; }
  .hero-collage img, .hero::before, .hero::after, .live-dot { animation: none; }
}

/* partners / events chip row */
.logos-strip { text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow); font-size: .95rem; }

/* partner logos — kept on white cards so they stay legible in both themes */
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.partner-logos a { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px 30px; box-shadow: var(--shadow); min-width: 190px; min-height: 82px; transition: transform .15s ease, box-shadow .15s ease; }
.partner-logos a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.partner-logos img { height: 30px; width: auto; display: block; }

/* ghost button on the dark CTA band */
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-ghost { color: var(--band-ink); border-color: rgba(255,255,255,.55); }
.cta-band .btn-ghost:hover { background: #fff; color: #00647a; border-color: #fff; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: .8rem; }
.card .card-link { font-weight: 700; }
.icon-badge { width: 54px; height: 54px; border-radius: 12px; background: var(--accent-tint); display: grid; place-items: center; margin-bottom: 16px; font-size: 26px; }
.icon-badge img { width: 32px; height: 32px; }

/* goals */
.goals { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.goal { display: flex; gap: 15px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.goal .g-icon { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px; background: var(--accent-tint); display: grid; place-items: center; }
.goal .g-icon img { width: 30px; height: 30px; }
.goal p { margin: 0; color: var(--ink); font-weight: 700; font-size: 1rem; }

/* team */
.team { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.team-2 { grid-template-columns: repeat(2,1fr); }
.member { text-align: center; }
.member img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; box-shadow: var(--shadow); border: 3px solid var(--surface); }
.member .name { font-weight: 800; color: var(--ink); }
.member .role { color: var(--muted); font-size: .95rem; }
.member .m-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: .85rem; font-weight: 700; }
.member .m-link svg { width: 16px; height: 16px; fill: currentColor; }
.team--founders .member img { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint), var(--shadow); }

/* ---------- About: intro, join, socials ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: start; }
.about-intro p { color: var(--ink-2); margin-bottom: 1rem; }
.about-intro p:last-child { margin-bottom: 0; }
.about-intro .lead { color: var(--ink); }

.join-team { text-align: center; }
.join-lead { font-size: 1.15rem; color: var(--ink-2); margin-bottom: 24px; }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 760px; margin: 0 auto 32px; }
.join-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 16px; font-weight: 800; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.join-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

.get-in-touch { text-align: center; }
.get-in-touch p { color: var(--ink-2); margin-bottom: 22px; }
.about-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.about-socials a { width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; }
.about-socials a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: var(--accent); color: #111; }
.about-socials svg { width: 48px; height: 48px; fill: currentColor; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.gallery img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.gallery img:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,12,15,.86); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 88vh; border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,.55); }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* CTA banner */
.cta-band { background: var(--band-grad); color: var(--band-ink); text-align: center; border-radius: 20px; padding: 56px 28px; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: var(--band-ink); }
.cta-band p { color: var(--band-ink); opacity: .92; font-size: 1.15rem; max-width: 640px; margin: 0 auto 26px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; text-align: center; }
.stats-4 { grid-template-columns: repeat(4,1fr); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 16px; box-shadow: var(--shadow); }
.stat .big { font-size: 2.6rem; font-weight: 800; color: var(--link); line-height: 1; letter-spacing: -.03em; }
.stat .lbl { color: var(--muted); font-weight: 600; margin-top: 6px; }

/* BYOG page */
.byog-banner img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.byog-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0 30px; }
.byog-details > div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); }
.byog-details .lbl { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--link); margin-bottom: 6px; }
.byog-details .val { display: block; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.byog-cta { text-align: center; margin-top: 4px; }
.byog-join { padding: 18px 56px; font-size: 1.22rem; }
.byog-about { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.byog-about-main h2 { margin-bottom: .5em; }
.byog-about-main p { margin-bottom: 1rem; color: var(--ink-2); }
.byog-about-main ul { padding-left: 1.2em; margin-bottom: 1rem; }
.byog-about-main li { margin-bottom: .45em; }
.byog-past { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); position: sticky; top: 88px; }
.byog-past h3 { margin-bottom: .4rem; }
.byog-past > p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.byog-past ul { list-style: none; padding: 0; margin: 0; }
.byog-past li { margin-bottom: 9px; }
.byog-past a { font-weight: 700; }
@media (max-width: 900px) {
  .byog-details { grid-template-columns: 1fr 1fr; }
  .byog-about { grid-template-columns: 1fr; gap: 32px; }
  .byog-past { position: static; }
}
@media (max-width: 560px) { .byog-details { grid-template-columns: 1fr; } }

/* prose / faq */
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: var(--surface); box-shadow: var(--shadow); }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-weight: 700; color: var(--link); font-size: 1.3em; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { padding-top: 12px; }

/* page header */
.page-hero { background: var(--bg-alt); min-height: 220px; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: .8rem; }
.page-hero p { max-width: 700px; margin: 12px auto 0; color: var(--ink-2); font-size: 1.15rem; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.pillar { text-align: center; padding: 32px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pillar .icon-badge { margin: 0 auto 16px; }
.pillar h3 { color: var(--link); }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #b8c6ca; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer a { color: #b8c6ca; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: #8ba0a5; font-size: .95rem; max-width: 320px; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--link); }
.socials svg { width: 20px; height: 20px; fill: #b8c6ca; }
.socials a:hover svg { fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; justify-content: space-between; font-size: .88rem; color: #8ba0a5; }
.footer-bottom a { color: #8ba0a5; }
.footer-bottom-right { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }

/* theme toggle — single icon that cycles system → light → dark */
.theme-toggle { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #b8c6ca; cursor: pointer; transition: background .12s ease, color .12s ease; }
.theme-toggle:hover { color: #fff; background: rgba(255,255,255,.12); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; display: none; }
.theme-toggle[data-mode="system"] .ico-system { display: block; }
.theme-toggle[data-mode="light"] .ico-light { display: block; }
.theme-toggle[data-mode="dark"] .ico-dark { display: block; }

/* count pulse when live value arrives */
.count-live { transition: color .3s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px; gap: 2px; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 12px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--border); border-radius: 0; margin: 2px 0 6px 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { display: block; text-align: center; }
}
@media (max-width: 900px) {
  .hero-arrow { display: none; }
  .hero-slide--text { padding: 44px 0; gap: 28px; }
  .hero-main { grid-template-columns: 1fr; }
  .hero-slide--banner { padding: 40px 20px; }
  .hero-slide--banner img { max-height: none; }
  .hero-img { order: -1; }
  .grid-3, .grid-4, .goals, .team, .pillars, .stats { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 0; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid-3, .grid-4, .grid-2, .goals, .team, .pillars, .stats { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
}
