@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg-primary: #06070f;
    --bg-secondary: #101228;
    --accent: #7c5cff;
    --accent-soft: rgba(124, 92, 255, 0.2);
    --text-primary: #f5f6ff;
    --text-muted: rgba(245, 246, 255, 0.68);

    /* Badge Colors */
    --bronze: #CD7F32;
    --bronze-glow: rgba(205, 127, 50, 0.3);
    --silver: #C0C0C0;
    --silver-glow: rgba(192, 192, 192, 0.3);
    --gold: #FFD700;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --platinum: #10c6ff;
    --platinum-glow: rgba(16, 198, 255, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(140% 140% at 12% 16%, rgba(124, 92, 255, 0.26) 0%, transparent 55%),
                radial-gradient(120% 150% at 88% -10%, rgba(16, 198, 255, 0.18) 0%, transparent 60%),
                linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 40px 24px;
    display: flex;
    justify-content: center;
}

.page {
    position: relative;
    width: 100%;
    max-width: 1180px;
    padding: 56px clamp(24px, 6vw, 80px);
    border-radius: 36px;
    background: rgba(6, 7, 15, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.glow {
    position: absolute;
    filter: blur(60px);
    opacity: 0.9;
    z-index: -1;
}

.glow.one {
    top: -160px;
    left: -140px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.5) 0%, transparent 70%);
}

.glow.two {
    bottom: -200px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(16, 198, 255, 0.35) 0%, transparent 70%);
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    letter-spacing: 0.16em;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.brand::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #7c5cff, #54e0ff);
    box-shadow: 0 0 18px rgba(124, 92, 255, 0.45);
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

nav a.active,
nav a[aria-current="page"] {
    color: var(--text-primary);
    position: relative;
}

nav a.active::after,
nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.platform-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    font-weight: 600;
    background: linear-gradient(135deg, #f5f6ff, #7c5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.cta {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta:hover::before {
    left: 100%;
}

.cta.primary {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    border: none;
}

.cta.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.cta.secondary {
    color: var(--text-primary);
    border: 2px solid rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.05);
}

.cta.secondary:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.8);
    background: rgba(102, 126, 234, 0.15);
}

/* Donors Section */
.donors-section {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

.donors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Donor Cards */
.donor-card {
    position: relative;
    border-radius: 20px;
    padding: 32px;
    background: rgba(12, 15, 32, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.donor-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donor-card:hover {
    transform: translateY(-4px);
}

.donor-card:hover::before {
    opacity: 1;
}

/* Badge Styling */
.donor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-label {
    font-size: 0.8rem;
}

/* Bronze Badge */
.donor-card.bronze {
    border-color: var(--bronze);
}

.donor-card.bronze::before {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), transparent);
}

.donor-card.bronze:hover {
    border-color: var(--bronze);
    box-shadow: 0 10px 30px var(--bronze-glow);
}

.donor-card.bronze .donor-badge {
    background: rgba(205, 127, 50, 0.2);
    color: var(--bronze);
    border: 1px solid var(--bronze);
}

/* Silver Badge */
.donor-card.silver {
    border-color: var(--silver);
}

.donor-card.silver::before {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), transparent);
}

.donor-card.silver:hover {
    border-color: var(--silver);
    box-shadow: 0 10px 30px var(--silver-glow);
}

.donor-card.silver .donor-badge {
    background: rgba(192, 192, 192, 0.2);
    color: var(--silver);
    border: 1px solid var(--silver);
}

/* Gold Badge */
.donor-card.gold {
    border-color: var(--gold);
}

.donor-card.gold::before {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
}

.donor-card.gold:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px var(--gold-glow);
}

.donor-card.gold .donor-badge {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
    border: 1px solid var(--gold);
}

/* Platinum Badge */
.donor-card.platinum {
    border-color: var(--platinum);
}

.donor-card.platinum::before {
    background: linear-gradient(135deg, rgba(16, 198, 255, 0.15), transparent);
}

.donor-card.platinum:hover {
    border-color: var(--platinum);
    box-shadow: 0 15px 40px var(--platinum-glow);
}

.donor-card.platinum .donor-badge {
    background: rgba(16, 198, 255, 0.2);
    color: var(--platinum);
    border: 1px solid var(--platinum);
}

/* Donor Info */
.donor-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donor-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.donor-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

.donor-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.donor-message {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Impact Section */
.impact-section {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 48px 32px;
    border-radius: 24px;
    background: rgba(10, 12, 26, 0.5);
    border: 1px solid rgba(124, 92, 255, 0.2);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.impact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 28px;
    border-radius: 16px;
    background: rgba(12, 15, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.3);
    background: rgba(12, 15, 32, 0.7);
}

.impact-icon {
    font-size: 2.5rem;
}

.impact-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.impact-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 48px 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.cta-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 600;
}

.cta-section p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.btn-cta {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-cta.primary {
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-cta.secondary {
    color: var(--text-primary);
    border: 2px solid rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.05);
}

.btn-cta.secondary:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.8);
    background: rgba(102, 126, 234, 0.15);
}

/* Footer */
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    gap: 18px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 860px) {
    body {
        padding: 32px 18px;
    }

    .page {
        padding: 44px clamp(20px, 7vw, 48px);
        gap: 48px;
    }

    main {
        gap: 64px;
    }

    .donors-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .platform-nav {
        display: flex;
        justify-content: flex-end;
    }

    .hamburger {
        display: flex;
        z-index: 101;
    }

    .platform-nav nav {
        position: fixed;
        top: 80px;
        right: 24px;
        background: rgba(8, 9, 20, 0.98);
        border: 1px solid rgba(124, 92, 255, 0.35);
        border-radius: 20px;
        padding: 20px;
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
        min-width: 220px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 100;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
    }

    .platform-nav nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .platform-nav nav a {
        color: var(--text-muted);
        font-size: 0.95rem;
        padding: 8px 0;
    }

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

@media (max-width: 640px) {
    body {
        padding: 24px 16px;
    }

    .page {
        border-radius: 28px;
        gap: 40px;
    }

    main {
        gap: 48px;
    }

    .donors-grid {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .cta-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cta,
    .btn-cta {
        width: 100%;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .impact-section,
    .cta-section {
        padding: 32px 20px;
    }

    .donor-card {
        padding: 24px;
    }
}
