:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --accent: #7c3aed;
  --accent-soft: #ede9fe;
  color-scheme: light;
}
html[data-theme='dark'] {
  --bg: #020617;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: #1e293b;
  --accent-soft: rgba(124, 58, 237, 0.16);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; background: var(--bg); color: var(--text); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 1000; padding: 0.75rem 1rem; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 0.75rem; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { max-width: 1100px; margin: auto; padding-inline: clamp(1.75rem, 3vw, 2.25rem); }
.narrow { max-width: 720px; }
.center { text-align: center; }
.header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04); }
.nav { min-height: 84px; display: flex; justify-content: space-between; align-items: center; padding-block: 0.5rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; min-height: 52px; flex: 0 0 auto; }
.logo-placeholder { display: inline-flex; align-items: center; justify-content: center; min-width: 156px; height: 44px; padding: 0 1rem; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); background: rgba(0, 0, 0, 0.02); font-size: 0.95rem; font-weight: 600; }
.desktop-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--text); padding: 0 0.9rem; align-items: center; justify-content: center; }
.nav-links { display: flex; align-items: center; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); }
.theme-btn { min-width: 44px; min-height: 44px; background: none; border: 1px solid var(--border); border-radius: 10px; color: var(--text); }
.mobile-menu-shell { display: none; padding-bottom: 0.75rem; }
.mobile-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0.5rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.mobile-menu.is-open { display: flex; }
.mobile-menu a { display: block; padding: 0.85rem 1rem; color: var(--muted); }
main section[id] { scroll-margin-top: 6.25rem; }
.hero { padding: 5.5rem 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-left h1 { margin: 0 0 0.75rem; line-height: 1.02; letter-spacing: -0.04em; font-size: clamp(3.2rem, 7vw, 5.1rem); font-weight: 700; }
.hero-sub { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.7; max-width: 29ch; }
.hero-actions { margin-top: 1.5rem; }
.hero-right .network { width: 100%; max-width: 420px; }
.hero-right line { stroke: #c4b5fd; stroke-width: 2; }
.hero-right circle { fill: url(#grad); }

/* ===== HERO SLIDER ===== */

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
}

/* Optional subtle fade (respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide {
    animation: heroFade 0.4s ease;
  }

  @keyframes heroFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}


.btn { display: inline-block; padding: 0.75rem 1.25rem; border-radius: 8px; text-decoration: none; margin-right: 0.75rem; }
.primary { background: var(--accent); color: #ffffff; }
.ghost { border: 1px solid var(--border); color: var(--text); }
.section { padding: 4rem 0; }
.section.light { background: rgba(15, 23, 42, 0.015); }
#how.section.light, #join.section.light, #team.section.light { padding-top: 4.75rem; padding-bottom: 4.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { border: 1px solid var(--border); padding: 1.75rem; border-radius: 14px; }
.card h3 { margin: 0 0 0.65rem; line-height: 1.3; }
.card p { color: var(--muted); line-height: 1.55; }
.icon { width: 28px; height: 28px; margin-bottom: 0.75rem; stroke: var(--accent); fill: none; stroke-width: 2; }
#features .card p { max-width: 31ch; }
#how h2, #initiatives h2, #team h2, #faq h2 { font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; margin-top: 0; margin-bottom: 2.1rem; }
.steps-uniform { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.step-card { border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; min-height: 220px; display: flex; flex-direction: column; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.step-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.step-icon { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2; }
.step-card h3 { margin: 0 0 0.65rem; font-size: 1.05rem; line-height: 1.3; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.initiatives-grid { margin-top: 0.85rem; }
.initiative-card { min-height: 190px; }
.initiative-card h3 { white-space: nowrap; }
.initiative-card p { max-width: 26ch; min-height: 3.1em; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.team-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg); }
.team-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: transparent; }
.team-body { padding: 0.95rem 1rem 1rem; text-align: center; }
.team-body h3 { margin: 0 0 0.2rem; line-height: 1.3; }
.team-role { margin: 0 0 0.8rem; color: var(--muted); }
.team-links { display: flex; justify-content: center; gap: 0.75rem; }
.team-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border: 1px solid var(--border); border-radius: 10px; }
.social-icon { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; }
.faq { border: 1px solid var(--border); padding: 1.25rem; border-radius: 12px; margin-top: 1rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 0.75rem; color: var(--muted); }
.footer { border-top: 1px solid var(--border); padding: 2.25rem 0; color: var(--muted); }
.footer-inner {
  max-width: 1100px; /* match header */
  margin: 0 auto;
  padding-inline: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
}
.footer-brand { margin: 0 0 0.35rem; color: var(--text); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }
.footer-note { margin: 0; font-size: 0.9rem; line-height: 1.6; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps-uniform { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .initiative-card h3 { white-space: normal; }
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav { justify-content: space-between; }
  .mobile-menu-shell { display: block; }
}
@media (max-width: 640px) {
  .steps-uniform { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { max-width: 280px; margin-inline: auto; }
  .team-photo { aspect-ratio: 4 / 4.7; }
  .team-body { padding: 0.8rem 0.9rem 0.9rem; }
  .footer { padding: 2rem 0; }
  .footer-note { font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* ===== Hover effects (no shadows) ===== */

/* Primary buttons */
.btn.primary {
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background-color: #6d28d9;
}

.btn.primary:active {
  transform: translateY(1px);
}

/* Ghost buttons */
.btn.ghost {
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* Nav links underline */
.nav-links a {
  position: relative;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

/* Text links */
a:not(.btn):hover,
a:not(.btn):focus-visible {
  color: var(--accent);
}

/* Team icon links */
.team-links a {
  transition: border-color 0.15s ease;
}

.team-links a:hover,
.team-links a:focus-visible {
  border-color: var(--accent);
}

.team-links a:hover .social-icon,
.team-links a:focus-visible .social-icon {
  stroke: var(--accent);
}
/* ===== WIDER HEADER & FOOTER ONLY (TABLET + DESKTOP) ===== */

/* Tablet and up */
@media (min-width: 768px) {
  header .container,
  footer .footer-inner {
    max-width: 1320px;
  }
}



/* ===== MANUAL HERO SLIDER (ADDED) ===== */
.hero-slider { position: relative; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; }
.hero-controls { display: flex; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.hero-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--border); background: transparent; border-radius: 10px; font-size: 1.5rem; }
.hero-controls button:hover, .hero-controls button:focus-visible { border-color: var(--accent); color: var(--accent); }
