/* ===== FUNDESOFT — modern theme ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

:root {
  --green:       #16a34a;
  --green-bright:#22c55e;
  --green-dark:  #15803d;
  --green-soft:  #ecfdf3;
  --ink:         #0b1410;
  --ink-2:       #3b4a42;
  --muted:       #64736b;
  --bg:          #ffffff;
  --bg-alt:      #f6faf7;
  --night:       #07110c;
  --night-2:     #0d1c14;
  --line:        #e3ece6;
  --radius:      16px;
  --radius-lg:   24px;
  --shadow-sm:   0 1px 2px rgba(11,20,16,.06), 0 4px 12px rgba(11,20,16,.05);
  --shadow-md:   0 10px 30px -8px rgba(11,20,16,.15);
  --shadow-glow: 0 18px 50px -14px rgba(22,163,74,.55);
  --ease:        cubic-bezier(.22,1,.36,1);
  --display:     'Space Grotesk', 'Inter', sans-serif;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; position: relative; }
.highlight {
  background: linear-gradient(100deg, var(--green) 0%, var(--green-bright) 60%, #86efac 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-dark); background: var(--green-soft);
  border: 1px solid #c9f0d8; padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.section-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); }
.section-tag.light { color: #86efac; background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.25); }
.section-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.03em;
  color: var(--ink); margin-bottom: 22px;
}
.section-title.light { color: #fff; }
.section-subtitle { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 0 56px; }
.mt-2 { margin-top: 28px; }
.w-full { width: 100%; justify-content: center; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1.5px solid transparent; font-family: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 1000; padding: 0 16px;
  transition: top .3s var(--ease);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 22px; max-width: 1200px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(227,236,230,.9); border-radius: 100px;
  transition: box-shadow .3s, background .3s;
}
.navbar.scrolled .navbar__inner { background: rgba(255,255,255,.92); box-shadow: var(--shadow-md); }
.navbar__logo-img { height: 38px; width: auto; }
.navbar__menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 100px; transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link.active { background: var(--green-soft); color: var(--green-dark); }
.btn-nav { background: var(--ink); color: #fff !important; padding: 10px 20px; margin-left: 6px; }
.btn-nav:hover { background: var(--green); }
.hamburger { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 150px 0 100px; overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(34,197,94,.22), transparent 70%),
    radial-gradient(50% 50% at 5% 90%, rgba(134,239,172,.25), transparent 70%),
    var(--bg);
}
.hero__bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .8;
}
.hero__content {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  padding: 7px 16px; background: #fff; border: 1px solid var(--line); border-radius: 100px;
  box-shadow: var(--shadow-sm); margin-bottom: 28px; color: var(--ink-2);
}
.hero__title {
  font-family: var(--display); font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -.04em; margin-bottom: 26px;
}
.hero__subtitle { font-size: 1.15rem; color: var(--ink-2); max-width: 540px; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.code-window {
  background: var(--night); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(7,17,12,.6), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotate(1.5deg); transition: transform .6s var(--ease);
}
.code-window:hover { transform: rotate(0) translateY(-4px); }
.code-window__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: var(--night-2); }
.code-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3a31; }
.code-window__bar i:nth-child(1) { background: #ff5f57; }
.code-window__bar i:nth-child(2) { background: #febc2e; }
.code-window__bar i:nth-child(3) { background: #28c840; }
.code-window__bar span { margin-left: 10px; font: 500 .75rem 'JetBrains Mono', ui-monospace, monospace; color: #6b8577; }
.code-window pre {
  padding: 24px 26px 30px; font: 400 .88rem/1.85 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color: #d5e6dc; overflow-x: auto; white-space: pre;
}
.code-window .k { color: #22c55e; } .code-window .s { color: #fbbf77; }
.code-window .c { color: #5b7266; } .code-window .f { color: #7dd3fc; }

.hero__scroll { display: none; }

/* ===== STATS BAR ===== */
.stats-bar { padding: 0; margin-top: -56px; position: relative; z-index: 5; }
.stats-bar__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 36px 16px;
}
.stat-item { text-align: center; padding: 0 12px; }
.stat-num, .stat-suffix { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.stat-suffix { color: var(--green); }
.stat-item p { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.stat-divider { display: none; }
.stat-item + .stat-divider + .stat-item { border-left: 1px solid var(--line); }

/* ===== ABOUT ===== */
.about__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.about__text p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 18px; }
.about__text p strong { color: var(--ink); }
.about__card-stack { display: grid; gap: 16px; }
.a-card {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.a-card:hover { transform: translateX(-6px); box-shadow: var(--shadow-md); border-color: #b6ebcb; }
.a-card__icon { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; background: var(--green-soft); display: grid; place-items: center; font-size: 1.6rem; }
.a-card h4 { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.a-card p { font-size: .92rem; color: var(--muted); }
.a-card--2 { margin-left: 28px; } .a-card--3 { margin-left: 56px; }

/* ===== MISSION (dark) ===== */
.mission { background: var(--night); color: #fff; overflow: hidden; }
.mission__bg {
  position: absolute; inset: 0;
  background: radial-gradient(45% 55% at 90% 0%, rgba(34,197,94,.22), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(34,197,94,.12), transparent 70%);
}
.mission .container { position: relative; }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.mvv-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg); padding: 36px 32px; backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.mvv-card:hover { transform: translateY(-6px); border-color: rgba(34,197,94,.45); background: rgba(255,255,255,.06); }
.mvv-card--featured { background: linear-gradient(160deg, rgba(34,197,94,.22), rgba(34,197,94,.04)); border-color: rgba(34,197,94,.4); }
.mvv-icon { font-size: 2rem; margin-bottom: 18px; }
.mvv-card h3 { font-family: var(--display); font-size: 1.5rem; margin-bottom: 14px; }
.mvv-card p { color: #b7c9be; font-size: .98rem; }
.values-list li { color: #cfe0d6; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .95rem; }
.values-list li:last-child { border: 0; }
.values-list span { color: var(--green-bright); margin-right: 8px; }

/* ===== WHY ===== */
.why { background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-card__number { font-family: var(--display); font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--green-soft); -webkit-text-stroke: 1.5px #b6ebcb; margin-bottom: 14px; }
.why-card h4 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 10px; }
.why-card p { color: var(--ink-2); font-size: .98rem; }

/* ===== PROGRAMS ===== */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: #b6ebcb; }
.program-card--featured { border-color: var(--green-bright); box-shadow: 0 0 0 4px rgba(34,197,94,.1), var(--shadow-sm); }
.program-card__header { position: relative; height: 130px; display: grid; place-items: center; }
.program-card__icon { font-size: 2.6rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.program-card__badge {
  position: absolute; top: 14px; right: 14px; background: var(--ink); color: #fff;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px;
}
.prog-1 { background: linear-gradient(135deg, #bbf7d0, #86efac); }
.prog-2 { background: linear-gradient(135deg, #86efac, #4ade80); }
.prog-3 { background: linear-gradient(135deg, #a7f3d0, #6ee7b7); }
.prog-4 { background: linear-gradient(135deg, #d9f99d, #bef264); }
.prog-5 { background: linear-gradient(135deg, #bae6fd, #a5f3fc); }
.prog-6 { background: linear-gradient(135deg, #fde68a, #fed7aa); }
.program-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.program-card__body h3 { font-family: var(--display); font-size: 1.28rem; margin-bottom: 10px; letter-spacing: -.01em; }
.program-card__body p { color: var(--ink-2); font-size: .95rem; margin-bottom: 20px; }
.program-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.program-tags li { font-size: .75rem; font-weight: 500; color: var(--green-dark); background: var(--green-soft); padding: 4px 12px; border-radius: 100px; }

/* ===== IMPACT (dark) ===== */
.impact { background: var(--night); overflow: hidden; }
.impact__bg { position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 120%, rgba(34,197,94,.28), transparent 70%); }
.impact .container { position: relative; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.impact-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: transform .4s var(--ease), border-color .3s;
}
.impact-card:hover { transform: translateY(-5px); border-color: rgba(34,197,94,.5); }
.impact-card__icon { font-size: 1.7rem; margin-bottom: 18px; }
.impact-card__num { font-family: var(--display); font-size: 3.6rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: #fff; }
.impact-card__num::after { content: '+'; color: var(--green-bright); }
.impact-card__label { margin-top: 10px; color: #9fb5a8; font-size: .95rem; }

/* ===== JOIN ===== */
.join__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.join__text p { color: var(--ink-2); font-size: 1.05rem; }
.join__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.join-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 22px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.join-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.join-card--featured { background: var(--night); color: #fff; border-color: var(--night); }
.join-card--featured p { color: #b7c9be; }
.join-card__icon { font-size: 1.9rem; }
.join-card h4 { font-family: var(--display); font-size: 1.15rem; }
.join-card p { font-size: .9rem; color: var(--muted); flex: 1; margin-bottom: 8px; }

/* ===== CONTACT ===== */
.contact { background: var(--bg-alt); }
.contact__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__info > p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 32px; }
.contact-details { display: grid; gap: 18px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-icon { width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow-sm); }
.contact-item strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-item p { font-weight: 500; }
.contact-item a:hover { color: var(--green-dark); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: grid; gap: 8px; }
.form-group label { font-size: .85rem; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  font: inherit; font-size: .95rem; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg-alt); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green-bright); background: #fff; box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}
.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer { background: var(--night); color: #cfe0d6; padding-top: 80px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__logo-img { height: 42px; width: auto; background: #fff; padding: 8px 14px; border-radius: 12px; margin-bottom: 18px; }
.footer__brand p { font-size: .92rem; color: #8fa699; max-width: 280px; }
.footer__country { margin-top: 10px; }
.footer__links h5, .footer__social h5 { font-family: var(--display); color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer__links a { display: block; font-size: .92rem; color: #8fa699; padding: 5px 0; transition: color .2s, transform .2s; }
.footer__links a:hover { color: var(--green-bright); transform: translateX(4px); }
.social-btn { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: #cfe0d6; padding: 10px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 100px; transition: border-color .2s, color .2s; }
.social-btn:hover { border-color: var(--green-bright); color: var(--green-bright); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; font-size: .85rem; color: #6b8577; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ===== REVEAL ===== */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fade-up.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__content, .about__inner, .join__inner, .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .code-window { max-width: 560px; }
  .programs-grid, .impact-grid, .mvv-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .join__cards { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hamburger { display: flex; }
  .navbar__menu {
    position: absolute; top: calc(100% + 10px); left: 16px; right: 16px; flex-direction: column; align-items: stretch;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .navbar__menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 12px 16px; }
  .btn-nav { margin: 6px 0 0; text-align: center; }
  .navbar { position: fixed; }
  .navbar__inner { position: relative; }
}
@media (max-width: 680px) {
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 90px; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat-item + .stat-divider + .stat-item { border-left: 0; }
  .programs-grid, .impact-grid, .mvv-grid, .why-grid, .form-row, .footer__inner { grid-template-columns: 1fr; }
  .a-card--2, .a-card--3 { margin-left: 0; }
  .form { padding: 24px; }
  .code-window { transform: none; }
}
