/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #d9301f;
  --red-dark: #b2241a;
  --ink: #14181f;
  --ink-2: #2a3040;
  --muted: #5b6472;
  --paper: #f7f8fa;
  --line: #e6e9ee;
  --white: #ffffff;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Sora', var(--font-body);
  --shadow: 0 20px 50px -20px rgba(20, 24, 31, .28);
  --radius: 18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1160px, 90%);
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .9rem;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; }

h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: .5rem; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--font-body);
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 14px 30px -12px rgba(217,48,31,.6); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-donate { background: var(--red); color: #fff; padding: .55rem 1.2rem; }
.btn-donate:hover { background: var(--red-dark); }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s, box-shadow .3s;
  padding: 1rem 0;
}
.nav.scrolled { background: rgba(20,24,31,.92); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.nav-inner { width: min(1160px, 90%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--red), #ff6a4d);
  color: #fff; font-size: 1.4rem; font-weight: 700; line-height: 1;
}
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.brand-text span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a:not(.btn) { color: #fff; font-weight: 500; font-size: .95rem; opacity: .88; }
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,18,26,.86) 20%, rgba(15,18,26,.45) 55%, rgba(15,18,26,.20)); }
.hero-content { position: relative; z-index: 2; max-width: 640px; padding-top: 3rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: #ff7a5c; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.9); max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-trust { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .92rem; color: rgba(255,255,255,.85); }
.scroll-hint { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: #fff; opacity: .8; z-index: 2; animation: bob 2s infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ===== Mission ===== */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.mission-media { position: relative; }
.mission-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/4.4; object-fit: cover; }
.mission-badge {
  position: absolute; bottom: -1.2rem; right: -1.2rem;
  background: var(--red); color: #fff; padding: .9rem 1.4rem; border-radius: 14px;
  font-family: var(--font-head); font-weight: 700; box-shadow: var(--shadow);
}
.mission-text p { color: var(--muted); margin-bottom: 1.4rem; }
.tick-list { margin: 1.2rem 0 1.6rem; display: grid; gap: .7rem; }
.tick-list li { display: flex; align-items: center; gap: .7rem; color: var(--ink-2); }
.tick-list li::before { content: "✓"; color: var(--red); font-weight: 800; }
.link-arrow { color: var(--red); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* ===== Stats ===== */
.stats { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0; color: #fff; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stats-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,26,.88), rgba(15,18,26,.82)); }
.stats-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; color: #ff7a5c; display: block; }
.stat-label { font-size: .95rem; color: rgba(255,255,255,.85); }

/* ===== Impact cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -18px rgba(20,24,31,.2); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { position: relative; }
.card-img img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.card-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(20,24,31,.8); color: #fff; padding: .4rem .8rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; backdrop-filter: blur(4px);
}
.card h3, .card p { padding-inline: 1.4rem; }
.card p { color: var(--muted); font-size: .95rem; padding-bottom: 1.6rem; }
.card h3 { padding-top: 1.2rem; }

/* ===== Stories ===== */
.stories {
  position: relative;
  background-image: url('assets/images/story-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}
.stories::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,18,26,.72), rgba(15,18,26,.78));
  z-index: 1;
}
.stories .container { position: relative; z-index: 2; }
.stories .eyebrow { color: #ff7a5c; }
.stories h2 { color: #fff; }
.quote { max-width: 760px; margin-inline: auto; text-align: center; position: relative; }
.quote-mark { font-family: var(--font-head); font-size: 6rem; color: #ff7a5c; line-height: .5; margin-bottom: 1rem; }
.quote blockquote { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500; color: rgba(255,255,255,.94); }
.quote cite { display: block; margin-top: 1.25rem; font-style: normal; color: rgba(255,255,255,.75); font-weight: 500; }

/* ===== Crypto donation ===== */
.donate-crypto-note { font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.55; }
.coins { display: flex; gap: .6rem; margin-bottom: 1.3rem; }
.coin {
  flex: 1; padding: .8rem 0; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; font-weight: 800; font-family: var(--font-head); cursor: pointer;
  color: var(--ink-2); transition: .15s;
}
.coin.active, .coin:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.wallet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.2rem; }
.wallet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.wallet-label { font-weight: 600; color: var(--ink-2); font-size: .92rem; }
.qr { flex-shrink: 0; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #fff; }
.wallet-addr { display: flex; align-items: center; gap: .6rem; background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: .7rem .9rem; }
.wallet-addr code {
  flex: 1; font-size: .8rem; word-break: break-all; color: var(--ink-2);
  font-family: 'Courier New', monospace;
}
.btn-copy { flex-shrink: 0; background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: .5rem .9rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.btn-copy:hover { background: var(--red-dark); }
.wallet-hint { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.donate-box .link-arrow { font-size: .9rem; }

/* ===== Donate ===== */
.donate { background: var(--white); }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.donate-text p { color: var(--muted); margin-bottom: 1rem; }
.donate-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.donate-box h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-bottom: .4rem; }
.amt {
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: .8rem 0; font-weight: 700; font-family: var(--font-head); cursor: pointer;
  color: var(--ink-2); transition: .15s;
}
.amt.active, .amt:hover { background: var(--red); border-color: var(--red); color: #fff; }
.impact-note { font-size: .85rem; color: var(--red); font-weight: 600; margin-bottom: 1.2rem; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.field input {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  font-size: 1rem; font-family: var(--font-body);
}
.field input:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
.frequency { display: flex; gap: .6rem; margin-bottom: 1.2rem; }
.freq { flex: 1; padding: .7rem; border: 1px solid var(--line); background: #fff; border-radius: 12px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.freq.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.secure { margin-top: 1rem; font-size: .82rem; color: var(--muted); text-align: center; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.brand-inline { margin-bottom: 1rem; }
.footer p { font-size: .95rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-family: var(--font-head); font-size: .95rem; margin-bottom: 1rem; }
.footer-col a, .footer-col span { display: block; font-size: .9rem; margin-bottom: .6rem; color: rgba(255,255,255,.7); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.5rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .mission-grid, .donate-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem;
    background: var(--ink); transform: translateX(100%); transition: transform .3s; z-index: -1;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .mission-badge { right: 1rem; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}