/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Colors / Tokens ────────────────────────────────────── */
:root {
  --bg:        #faf8ff;
  --bg-alt:    #f3eefa;
  --surface:   #ffffff;
  --border:    #e4ddf0;
  --text:      #3d3554;
  --text-dim:  #7b7291;
  --heading:   #1e1635;
  --accent:    #6d5bef;
  --accent-hover: #5a47d6;
  --accent-bg: rgba(109,91,239,0.07);
  --pink:      #e86caa;
  --pink-bg:   rgba(232,108,170,0.08);
  --green:     #2dba7f;
  --green-bg:  rgba(45,186,127,0.08);
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 2px 12px rgba(30,22,53,0.06);
  --shadow-lg: 0 8px 32px rgba(30,22,53,0.08);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: var(--radius-sm);
  transition: all 0.2s ease; cursor: pointer; border: none;
  font-family: inherit; white-space: nowrap;
}
.btn-sm  { font-size: 0.875rem; padding: 8px 20px; }
.btn-lg  { font-size: 1rem;     padding: 14px 30px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #fff; box-shadow: 0 4px 16px rgba(109,91,239,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #d45a9a);
  box-shadow: 0 6px 20px rgba(109,91,239,0.3);
  transform: translateY(-1px);
}
.btn-outline {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: transparent; color: var(--text-dim);
}
.btn-ghost:hover { color: var(--accent); }
.btn-block { width: 100%; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,248,255,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 32px;
}
.nav-logo {
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--heading); flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 28px;
}
.nav-links a {
  font-size: 0.875rem; color: var(--text-dim); transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 0 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(109,91,239,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(232,108,170,0.1) 0%, transparent 50%),
    var(--bg);
}
.hero-image-wrap {
  width: 100%; overflow: hidden;
  padding-top: 64px; /* clear fixed nav */
  background: linear-gradient(180deg, #e8dff5 0%, var(--bg) 100%);
}
.hero-image {
  width: 100%; height: auto; display: block;
  object-fit: cover; max-height: 480px;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding-top: 64px;
}
.hero-tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 16px;
  background: var(--accent-bg); padding: 6px 14px; border-radius: 20px;
}
.hero h1 {
  font-size: 3.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--heading); margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-dim); max-width: 520px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 32px; }
.hero-proof-item {
  display: flex; flex-direction: column; gap: 2px;
}
.hero-proof-item strong {
  font-size: 1.1rem; color: var(--heading); font-weight: 700;
}
.hero-proof-item span {
  font-size: 0.75rem; color: var(--text-dim);
}

/* Hero card (mock UI) */
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.hero-card-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 600; color: var(--heading); margin-bottom: 24px;
}
.hero-card-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.hero-card-dot.green { background: var(--green); }
.hero-card-row {
  display: grid; grid-template-columns: 140px 1fr 40px;
  align-items: center; gap: 12px; margin-bottom: 14px;
  font-size: 0.85rem; color: var(--text);
}
.hero-card-bar {
  height: 8px; background: var(--bg-alt); border-radius: 4px;
  position: relative; overflow: hidden;
}
.hero-card-bar::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--w);
  background: linear-gradient(90deg, var(--accent), var(--pink));
  border-radius: 4px;
}
.hero-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); margin-top: 10px; padding-top: 18px;
  font-size: 0.85rem; color: var(--text-dim);
}
.hero-card-footer strong { font-size: 1.3rem; color: var(--heading); }

/* ── Trust Strip ─────────────────────────────────────────── */
.trust-strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 16px 0; background: var(--bg-alt);
}
.trust-strip p {
  text-align: center; font-size: 0.8rem; color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 12px;
  background: var(--accent-bg); padding: 5px 14px; border-radius: 20px;
}
.section-header h2 {
  font-size: 2.4rem; font-weight: 700; color: var(--heading); letter-spacing: -0.02em;
}

/* ── How It Works (Steps) ────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  font-size: 2.5rem; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5; margin-bottom: 16px; line-height: 1;
}
.step-card h3 {
  font-size: 1.15rem; font-weight: 600; color: var(--heading); margin-bottom: 12px;
}
.step-card p { font-size: 0.9rem; color: var(--text-dim); }

/* ── Features Grid ───────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-bg), var(--pink-bg));
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--heading); margin-bottom: 10px;
}
.feature-card p { font-size: 0.875rem; color: var(--text-dim); }

/* ── For Charities ───────────────────────────────────────── */
.charity-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.charity-feature { margin-bottom: 36px; }
.charity-feature h3 {
  font-size: 1.15rem; font-weight: 600; color: var(--heading); margin-bottom: 8px;
}
.charity-feature p { font-size: 0.9rem; color: var(--text-dim); }

/* Charity mock card */
.charity-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; position: relative;
  box-shadow: var(--shadow-lg);
}
.charity-card-badge {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--accent-bg), var(--pink-bg));
  color: var(--accent);
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 4px 10px; border-radius: 20px;
}
.charity-card h4 {
  font-size: 1.2rem; font-weight: 700; color: var(--heading); margin-bottom: 4px;
}
.charity-card-org {
  font-size: 0.85rem; color: var(--text-dim); margin-bottom: 24px;
}
.charity-card-tiers {
  display: flex; gap: 10px; margin-bottom: 24px;
}
.tier {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 12px;
  text-align: center; transition: border-color 0.2s, background 0.2s;
}
.tier strong { display: block; font-size: 1.1rem; color: var(--heading); margin-bottom: 4px; }
.tier span { font-size: 0.7rem; color: var(--text-dim); }
.tier.active {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.charity-card-bar-wrap {
  height: 8px; background: var(--bg-alt); border-radius: 4px;
  overflow: hidden; margin-bottom: 10px;
}
.charity-card-progress {
  height: 100%; width: var(--p);
  background: linear-gradient(90deg, var(--green), #5be0a8);
  border-radius: 4px;
}
.charity-card-raised {
  font-size: 0.8rem; color: var(--text-dim);
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start;
}
.pricing-grid-2 {
  grid-template-columns: repeat(2, 1fr); max-width: 780px; margin: 0 auto;
}
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  position: relative; box-shadow: var(--shadow);
}
.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(109,91,239,0.12);
}
.price-card-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #fff;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 5px 16px; border-radius: 20px;
}
.price-card-header { margin-bottom: 28px; }
.price-card-header h3 {
  font-size: 1.1rem; font-weight: 600; color: var(--heading); margin-bottom: 8px;
}
.price {
  font-size: 2.8rem; font-weight: 700; color: var(--heading); line-height: 1;
  margin-bottom: 6px;
}
.price span { font-size: 1rem; font-weight: 400; color: var(--text-dim); }
.price-card-header p { font-size: 0.85rem; color: var(--text-dim); }
.price-features {
  margin-bottom: 28px;
}
.price-features li {
  font-size: 0.875rem; color: var(--text); padding: 8px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 22px; position: relative;
}
.price-features li::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid var(--green); border-radius: 50%;
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background:
    radial-gradient(ellipse 70% 60% at 30% 100%, rgba(109,91,239,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 70% 80%, rgba(232,108,170,0.08) 0%, transparent 50%),
    var(--bg);
}
.cta-inner { text-align: center; max-width: 580px; }
.cta-inner h2 {
  font-size: 2.4rem; font-weight: 700; color: var(--heading); margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-inner > p { font-size: 1rem; color: var(--text-dim); margin-bottom: 32px; }
.cta-form {
  display: flex; gap: 10px; margin-bottom: 12px;
}
.cta-form input {
  flex: 1; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--heading); font-size: 0.95rem; font-family: inherit;
  outline: none; transition: border-color 0.2s; box-shadow: var(--shadow);
}
.cta-form input::placeholder { color: var(--text-dim); }
.cta-form input:focus { border-color: var(--accent); }
.cta-fine { font-size: 0.75rem; color: var(--text-dim); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border); padding: 64px 0 0;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-logo {
  font-size: 1.1rem; font-weight: 700; color: var(--heading);
  display: inline-block; margin-bottom: 12px;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-dim); max-width: 280px; }
.footer-col h4 {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.875rem; color: var(--text-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }

/* ── Scroll Reveal Animation ─────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-visual { order: -1; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .charity-grid { grid-template-columns: 1fr; gap: 40px; }
  .charity-visual { order: -1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-grid-2 { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links,
  .nav.open .nav-actions {
    display: flex;
  }
  .nav.open .nav-inner {
    flex-wrap: wrap; height: auto; padding-bottom: 16px;
  }
  .nav.open .nav-links {
    flex-direction: column; width: 100%; gap: 12px; order: 3; padding-top: 12px;
  }
  .nav.open .nav-actions {
    width: 100%; order: 4; padding-top: 8px;
  }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: 0 0 60px; }
  .hero-image { max-height: 320px; }
  .hero-grid { padding-top: 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-proof { flex-direction: column; gap: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.8rem; }
  .cta-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
