/* Sophisticated Wealth Management with Muted Rainbow */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Muted rainbow gradient for logo */
    --gradient-rainbow: linear-gradient(90deg, 
        #D4A5A5 0%,      /* Dusty Rose */
        #E8B4A0 14.29%,  /* Muted Coral */
        #E5D5B8 28.57%,  /* Soft Gold */
        #A8B5A0 42.86%,  /* Sage Green */
        #9FB4B8 57.14%,  /* Soft Teal */
        #A4A8C1 71.43%,  /* Periwinkle */
        #B5A4B8 85.71%,  /* Soft Mauve */
        #C7B299 100%     /* Warm Gold */
    );
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #6a6a6a;
    --background: #ffffff;
    --background-subtle: #fafafa;
    --border: #e5e5e5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Particle canvas background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ensure content is above particles */
nav,
header,
section,
footer {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Gradient text utility class */
.gradient-text {
    background: var(--gradient-rainbow);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 15s ease infinite;
    font-weight: 500;
}

/* Serif headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tagline */
.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* Logo in Nav */
.logo-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.logo-text .the {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
}

.logo-text .queer-trust {
    display: flex;
    gap: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-text .queer {
    background: var(--gradient-rainbow);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 15s ease infinite;
    font-weight: 500;
}

.logo-text .trust {
    color: #C7B299;
    font-weight: 500;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Buttons */
.btn-donate,
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-donate {
    background: var(--text-primary);
    color: white;
}

.btn-donate:hover {
    background: var(--text-secondary);
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    padding: 14px 40px;
    font-size: 15px;
}

.btn-primary:hover {
    background: var(--text-secondary);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: white;
}

/* Hero Section */
.hero {
    background: var(--background);
    padding: 120px 0 140px;
    text-align: center;
}

.logo-hero {
    margin-bottom: 60px;
}

.the-small {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

.queer-trust-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.queer-large,
.trust-large {
    font-family: 'Cormorant Garamond', serif;
    font-size: 84px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
}

.queer-large {
    background: var(--gradient-rainbow);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 15s ease infinite;
}

.trust-large {
    color: #C7B299;
}

.hero h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Mission Section */
.mission {
    padding: 100px 0;
    background: var(--background-subtle);
}

.mission .container {
    max-width: 800px;
}

.mission .lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.mission .statement {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-style: italic;
}

.mission .body {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Why Spaces Section */
.why-spaces {
    padding: 100px 0;
    background: var(--background);
}

.why-spaces .container {
    max-width: 800px;
}

.why-spaces h2 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.why-spaces p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

/* How to Give Section */
.how-to-give {
    padding: 100px 0;
    background: var(--background-subtle);
}

.how-to-give h2 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 60px;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.01em;
}

.giving-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.giving-card {
    background: var(--background);
    padding: 40px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.giving-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.giving-card h3 {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.giving-card p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.giving-card .fine-print {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 20px;
    font-style: italic;
}

/* Footer */
footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.footer-col a:hover {
    border-bottom-color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    .hero {
        padding: 80px 0 100px;
    }
    
    .queer-large,
    .trust-large {
        font-size: 56px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .mission .lead {
        font-size: 26px;
    }
    
    .mission .statement {
        font-size: 24px;
    }
    
    .why-spaces h2,
    .how-to-give h2 {
        font-size: 32px;
    }
    
    .giving-grid {
        grid-template-columns: 1fr;
    }
    
    nav .container {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .queer-large,
    .trust-large {
        font-size: 42px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .mission,
    .why-spaces,
    .how-to-give {
        padding: 60px 0;
    }
    
    .mission .lead {
        font-size: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}