/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0d0a08;
    --bg-2: #14100c;
    --bg-3: #1c1611;
    --surface: #1f1812;
    --surface-2: #2a2018;
    --border: #3a2d22;
    --text: #f5ead8;
    --text-dim: #b8a891;
    --text-mute: #7a6a58;
    --accent: #ff7a2e;
    --accent-2: #ffb347;
    --accent-glow: rgba(255, 122, 46, 0.35);
    --red: #e85a4f;
    --green: #7bc47f;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 40px rgba(0,0,0,0.4);
    --font-display: 'Unbounded', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.accent { color: var(--accent); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #1a0f05;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-ghost {
    border-color: var(--border);
    color: var(--text);
    background: rgba(255,255,255,0.02);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ============ NAV ============ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(13, 10, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    width: 42px;
    height: 42px;
}
.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: 0.5px;
}
.logo-text small {
    font-weight: 400;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    font-weight: 500;
}
.nav-links a {
    color: var(--text-dim);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.burger {
    display: none;
    font-size: 24px;
    color: var(--text);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 122, 46, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(232, 90, 79, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    z-index: -1;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 179, 71, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
}
.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 24px;
    background: rgba(255, 122, 46, 0.05);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, var(--text) 0%, var(--text-dim) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title .accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 680px;
    margin: 0 auto 48px;
    line-height: 1.7;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 720px;
    margin: 0 auto 48px;
    padding: 32px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}
.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ SECTIONS ============ */
.section {
    padding: 100px 0;
    position: relative;
}
.section-dark {
    background: var(--bg-2);
}
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.section-sub {
    color: var(--text-dim);
    font-size: 17px;
    margin-top: 12px;
}

/* ============ ABOUT ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
}
.about-text p {
    font-size: 17px;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.75;
}
.about-text strong { color: var(--accent); }
.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: sticky;
    top: 100px;
}
.about-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 20px;
}
.feature-list {
    list-style: none;
}
.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-dim);
}
.feature-list li:last-child { border-bottom: none; }

/* ============ PROGRESS ============ */
.progress-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.progress-amount {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.progress-label {
    color: var(--text-mute);
    font-size: 14px;
    margin-top: 8px;
}
.progress-percent {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--text);
}
.progress-bar {
    height: 16px;
    background: var(--bg);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    border-radius: 999px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    box-shadow: 0 0 20px var(--accent-glow);
}
.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2.5s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 12px;
}
.progress-meta strong { color: var(--text); }

/* ============ TABLE ============ */
.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.funding-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.funding-table th {
    text-align: left;
    padding: 16px 20px;
    background: var(--surface-2);
    color: var(--text-mute);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
}
.funding-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
}
.funding-table tr:last-child td { border-bottom: none; }
.funding-table tr:hover td { background: rgba(255, 122, 46, 0.03); }
.funding-table .amount-cell {
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-display);
}
.loading-row td {
    text-align: center;
    color: var(--text-mute);
    padding: 40px;
}

/* ============ BUDGET GRID ============ */
.budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.budget-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.budget-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.budget-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(255, 122, 46, 0.15);
}
.budget-card:hover::before { transform: scaleX(1); }
.budget-icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.budget-amount {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}
.budget-card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}
.budget-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 16px;
}
.budget-bar {
    height: 4px;
    background: var(--bg);
    border-radius: 999px;
    overflow: hidden;
}
.budget-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    border-radius: 999px;
}

/* ============ DONATE ============ */
.donate-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}
.donate-qr {
    text-align: center;
}
.qr-frame {
    display: inline-block;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 0 40px var(--accent-glow);
}
#qrcode {
    width: 220px;
    height: 220px;
}
#qrcode img, #qrcode canvas {
    width: 100% !important;
    height: 100% !important;
}
.qr-hint {
    margin-top: 16px;
    color: var(--text-mute);
    font-size: 13px;
}

.donate-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-mute);
    margin-bottom: 10px;
    font-weight: 600;
}
.wallet-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.wallet-box code {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text);
    word-break: break-all;
    line-height: 1.5;
}
.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.copy-btn.copied {
    background: var(--green);
    color: #0d0a08;
    border-color: var(--green);
}
.donate-note {
    padding: 14px 18px;
    background: rgba(232, 90, 79, 0.08);
    border: 1px solid rgba(232, 90, 79, 0.25);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 28px;
}
.donate-note strong { color: var(--red); }

.amount-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.chip {
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.chip:hover, .chip.active {
    background: var(--accent);
    color: #1a0f05;
    border-color: var(--accent);
}

.donate-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-mute);
    font-size: 13px;
}
.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.2s;
}
.share-btn:hover {
    background: var(--accent);
    color: #1a0f05;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}
.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
}
.footer-sub {
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 14px;
}
.footer-links a {
    color: var(--text-dim);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
    font-size: 13px;
    color: var(--text-mute);
    text-align: right;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .burger { display: block; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: var(--bg-2);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .about-grid,
    .donate-grid {
        grid-template-columns: 1fr;
    }
    .about-card { position: static; }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand, .footer-links, .footer-copy {
        justify-content: center;
    }
    .section { padding: 64px 0; }
}

@media (max-width: 500px) {
    .hero { padding: 100px 0 60px; }
    .progress-card { padding: 24px; }
    .progress-amount { font-size: 36px; }
    .progress-percent { font-size: 36px; }
    .wallet-box { flex-direction: column; align-items: stretch; }
    .donate-actions { flex-direction: column; align-items: stretch; }
    #open-wallet-btn { width: 100%; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
    animation: fadeInUp 0.8s ease backwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }