/* ============================================
   THE TRIBE — Global Stylesheet
   Dark cinematic theme with gold accents
   ============================================ */

:root {
    --bg-dark: #FDFBF7;
    --bg-section: #F5F0E8;
    --bg-card: #FFFFFF;
    --bg-input: #F8F5F0;
    --gold: #B8860B;
    --gold-light: #DAA520;
    --gold-dim: #C49B3A;
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A5A;
    --text-muted: #8888A0;
    --border: #E8E0D4;
    --border-light: #D8D0C4;
    --danger: #e74c3c;
    --success: #2ecc71;
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: #1A1A2E;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--bg-dark) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1008 50%, #0a0a0a 100%);
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23D4A843" fill-opacity="0.03" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 500;
    animation: fadeInUp 1s ease 0.2s both;
}

#hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 700;
    letter-spacing: 12px;
    color: #1A1A2E;
    margin-bottom: 24px;
    line-height: 1.1;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.8s both;
}

.btn-primary {
    background: var(--gold);
    color: #1A1A2E;
    margin-right: 16px;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.25);
}

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

.btn-secondary:hover {
    border-color: var(--gold);
    background: rgba(212, 168, 67, 0.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--gold-dim);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */

section {
    padding: 120px 0;
}

.section-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 500;
}

section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 60px;
    letter-spacing: 2px;
    color: #1A1A2E;
}

/* ============================================
   MANIFESTO
   ============================================ */

#manifesto {
    background: var(--bg-dark);
    text-align: center;
}

.manifesto-text {
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
}

.manifesto-text p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.manifesto-text p.visible {
    opacity: 1;
    transform: translateY(0);
}

.manifesto-text p.highlight {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
    text-align: center;
    padding: 24px 0;
    font-weight: 600;
}

.manifesto-text strong {
    color: #1A1A2E;
}

.manifesto-text em {
    color: var(--gold-light);
    font-style: italic;
}

/* ============================================
   PILLARS
   ============================================ */

#pillars {
    background: var(--bg-section);
    text-align: center;
}

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

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: left;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.pillar-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pillar-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.pillar-card-wide {
    grid-column: 1 / -1;
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.pillar-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================
   THE CODE
   ============================================ */

#code {
    background: var(--bg-dark);
    text-align: center;
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
}

.code-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(15px);
}

.code-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.code-item:hover {
    border-color: var(--gold-dim);
}

.code-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
    min-width: 36px;
    line-height: 1;
    padding-top: 4px;
}

.code-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.code-item p strong {
    color: #1A1A2E;
}

/* ============================================
   PLEDGE
   ============================================ */

#pledge {
    background: var(--bg-section);
    text-align: center;
    padding: 100px 0;
}

.pledge-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 48px;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.05) 0%, rgba(10, 10, 10, 0.3) 100%);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
}

.pledge-box p {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
    font-style: italic;
}

.pledge-final {
    font-size: 1.4rem !important;
    color: var(--gold) !important;
    font-weight: 600;
    margin-top: 32px !important;
    margin-bottom: 0 !important;
}

/* ============================================
   TRANSPARENCY
   ============================================ */

#transparency {
    background: var(--bg-dark);
    text-align: center;
}

.transparency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.transparency-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: left;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.transparency-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.transparency-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.trans-percent {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
    line-height: 1;
}

.transparency-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #1A1A2E;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.transparency-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.transparency-note {
    max-width: 800px;
    margin: 0 auto;
    padding: 28px 32px;
    background: rgba(212, 168, 67, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
}

.transparency-note p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

.transparency-note strong {
    color: #1A1A2E;
}

/* Contribution Preview */
.contribution-preview {
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(212, 168, 67, 0.06);
    border: 1px solid var(--gold-dim);
    border-radius: 8px;
    text-align: center;
}

.contribution-preview p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contribution-preview strong {
    color: var(--gold);
    font-size: 1.15rem;
}

input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #1A1A2E;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

/* ============================================
   JOIN FORM
   ============================================ */

#join {
    background: var(--bg-dark);
    text-align: center;
    padding-bottom: 140px;
}

.join-intro {
    color: var(--text-secondary);
    max-width: 600px;
    margin: -40px auto 60px;
    font-size: 1.05rem;
}

.tribe-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.form-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-section-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.req {
    color: var(--gold);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #1A1A2E;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a09888' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--gold-dim);
    background: rgba(212, 168, 67, 0.03);
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.file-upload-label p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-browse {
    color: var(--gold);
    text-decoration: underline;
}

.file-hint {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin-top: 4px;
}

.file-name {
    display: none;
    margin-top: 12px;
    color: var(--gold);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Checkboxes */
.checkbox-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.checkbox-label:hover {
    border-color: var(--gold-dim);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.pledge-agreement {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.05) 0%, var(--bg-card) 100%);
    border-color: var(--gold-dim) !important;
}

.pledge-check {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.pledge-check span {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Submit Button */
.btn-submit {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0;
    padding: 18px 48px;
    background: var(--gold);
    color: #1A1A2E;
    border: none;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-msg {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.success-msg h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.success-msg p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.success-pledge {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold) !important;
    margin-top: 24px;
    font-size: 1.1rem !important;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 6px;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .btn-primary, .btn-secondary {
        display: block;
        margin: 8px auto;
        text-align: center;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    section {
        padding: 80px 0;
    }

    .pledge-box {
        padding: 40px 24px;
    }

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

    .form-section {
        padding: 24px;
    }

    .story-grid {
        grid-template-columns: 1fr !important;
    }

    .mission-grid {
        grid-template-columns: 1fr !important;
    }

    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    .blog-featured {
        grid-column: 1 !important;
    }

    .blog-featured .blog-card-image {
        height: 200px !important;
    }

    .page-hero-content h1 {
        font-size: 2.5rem !important;
    }

    .footer-nav {
        flex-wrap: wrap;
    }
}

/* ============================================
   PAGE HERO (About / Blog subpages)
   ============================================ */

.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3) saturate(0.7);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.9) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 100px 24px 60px;
}

.page-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 6px;
    color: #1A1A2E;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease 0.3s both;
}

.page-hero-content .hero-eyebrow {
    animation: fadeInUp 1s ease 0.1s both;
}

.page-hero-content .hero-tagline {
    animation: fadeInUp 1s ease 0.5s both;
}

.nav-active {
    color: var(--gold) !important;
}

/* ============================================
   ABOUT PAGE — Story Grid
   ============================================ */

.story-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.story-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-text p.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-text em {
    color: var(--gold-light);
}

.story-text strong {
    color: #1A1A2E;
}

.story-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(15px);
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   ABOUT PAGE — Mission Grid
   ============================================ */

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mission-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: left;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.mission-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.mission-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.mission-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.mission-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.mission-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.8;
}

/* ============================================
   ABOUT PAGE — Values
   ============================================ */

.values-list {
    max-width: 800px;
    margin: 0 auto;
}

.value-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-item:last-child {
    border-bottom: none;
}

.value-marker {
    width: 12px;
    height: 12px;
    min-width: 12px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 8px;
}

.value-item h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================
   BLOG PAGE
   ============================================ */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 80px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.08);
}

.blog-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.blog-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) saturate(0.8);
    transition: var(--transition);
}

.blog-card:hover .blog-card-image {
    filter: brightness(0.85) saturate(1);
}

.blog-featured .blog-card-image {
    height: 100%;
    min-height: 350px;
}

.blog-card-body {
    padding: 28px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.blog-category {
    background: rgba(212,168,67,0.12);
    color: var(--gold);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-meta time {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.blog-card h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #1A1A2E;
    margin-bottom: 16px;
    letter-spacing: 1px;
    line-height: 1.4;
}

.blog-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #1A1A2E;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.blog-card-body p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.blog-author-avatar {
    width: 42px;
    height: 42px;
    background: var(--gold);
    color: #1A1A2E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.blog-author div {
    display: flex;
    flex-direction: column;
}

.blog-author strong {
    color: #1A1A2E;
    font-size: 0.9rem;
}

.blog-author span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   NEWSLETTER
   ============================================ */

.blog-newsletter {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-inner {
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
}

.newsletter-inner h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.newsletter-inner p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #1A1A2E;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--gold);
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--gold);
    color: #1A1A2E;
    border: none;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--gold-light);
}

/* ============================================
   FOOTER — Enhanced
   ============================================ */

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-social a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.footer-social a:hover {
    color: var(--gold);
    border-color: var(--gold-dim);
    background: rgba(212,168,67,0.05);
}

.optional-label { color: #777; font-size: 0.85em; font-weight: normal; font-style: italic; }

/* ============================================
   SOCIAL PROOF BAR
   ============================================ */
#social-proof {
    background: linear-gradient(135deg, rgba(245,240,232,0.98), rgba(253,251,247,0.98));
    border-top: 1px solid rgba(184,134,11,0.15);
    border-bottom: 1px solid rgba(184,134,11,0.15);
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
}

#social-proof::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212,175,55,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.proof-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.proof-stat {
    text-align: center;
    min-width: 160px;
}

.proof-number {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.proof-unit {
    font-size: 1.8rem;
}

.proof-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Ticker */
.proof-ticker {
    position: relative;
    height: 32px;
    overflow: hidden;
    text-align: center;
}

.ticker-item {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticker-item.ticker-visible {
    opacity: 1;
    transform: translateY(0);
}

.ticker-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse-dot 2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.ticker-item strong {
    color: #1A1A2E;
}

.ticker-item em {
    color: #d4af37;
    font-style: normal;
}

@media (max-width: 768px) {
    .proof-grid { gap: 2rem; }
    .proof-number { font-size: 2.2rem; }
    .proof-stat { min-width: 120px; }
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */

/* Hero keeps cinematic dark gradient with warm tones */
#hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%) !important;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(26,26,46,0.3) 0%, rgba(15,52,96,0.5) 100%) !important;
}

#hero h1, #hero .hero-tagline, #hero .hero-eyebrow {
    color: #fff !important;
}

#hero .btn-primary {
    background: #DAA520;
    color: #1A1A2E;
    border: none;
}

#hero .btn-secondary {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

#hero .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.scroll-indicator span {
    color: rgba(255,255,255,0.5) !important;
}

/* Navbar on light bg */
#navbar.scrolled {
    border-bottom: 1px solid #E8E0D4;
}

.nav-logo {
    color: #1A1A2E !important;
}

#navbar:not(.scrolled) .nav-logo {
    color: #fff !important;
}

#navbar:not(.scrolled) .nav-links a {
    color: rgba(255,255,255,0.8) !important;
}

#navbar:not(.scrolled) .nav-cta {
    border-color: #DAA520 !important;
    color: #DAA520 !important;
}

/* Alternating sections */
#manifesto {
    background: #F5F0E8;
}

#pillars {
    background: #FDFBF7;
}

#code {
    background: #F5F0E8;
}

#transparency {
    background: #FDFBF7;
}

/* Pillar cards on light bg */
.pillar-card {
    background: #FFFFFF;
    border: 1px solid #E8E0D4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.pillar-card:hover {
    border-color: #C49B3A;
    box-shadow: 0 8px 30px rgba(184,134,11,0.1);
}

/* Code items */
.code-item {
    border-color: #E8E0D4;
}

.code-num {
    color: #B8860B;
}

/* Form section */
#join {
    background: linear-gradient(180deg, #FDFBF7 0%, #F0EBE0 100%);
}

.form-group label {
    color: #1A1A2E;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #FFFFFF;
    border: 1px solid #D8D0C4;
    color: #1A1A2E;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #B8860B;
    box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

/* Pledge box */
.pledge-box {
    background: #FFF9ED;
    border-color: #DAA520;
}

/* Submit button */
#submitBtn {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    color: #fff;
    font-weight: 700;
}

#submitBtn:hover {
    background: linear-gradient(135deg, #DAA520 0%, #E8C96A 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184,134,11,0.25);
}

/* Footer warm */
footer {
    background: #1A1A2E !important;
    color: #E8E0D4 !important;
}

footer .nav-logo,
footer .footer-logo {
    color: #DAA520 !important;
}

footer p, footer span {
    color: #8888A0 !important;
}

.footer-nav a {
    color: #8888A0 !important;
}

.footer-social a {
    color: #8888A0 !important;
    border-color: #333 !important;
}

.footer-social a:hover {
    color: #DAA520 !important;
    border-color: #DAA520 !important;
}

/* Social proof bar — warm light */
#social-proof {
    background: linear-gradient(135deg, #F5F0E8 0%, #FDF8F0 100%) !important;
}

.proof-number {
    color: #B8860B !important;
    text-shadow: none !important;
}

.proof-label {
    color: #666 !important;
}

/* Highlight text in manifesto */
.highlight {
    color: #B8860B;
}

/* Section headings */
.section-eyebrow {
    color: #B8860B !important;
}

/* File upload zone */
.file-upload {
    background: #FFFFFF;
    border: 2px dashed #D8D0C4;
}

.file-upload:hover {
    border-color: #B8860B;
}

/* Success message */
#successMessage {
    background: #FFFFFF;
    border: 1px solid #E8E0D4;
}

/* Checkbox styling */
input[type="checkbox"] {
    accent-color: #B8860B;
}

/* Mobile menu on light bg */
@media (max-width: 768px) {
    .nav-links.active {
        background: rgba(253,251,247,0.98) !important;
        backdrop-filter: blur(20px);
    }
    
    .nav-links.active a {
        color: #1A1A2E !important;
    }
}
