/* CSS Variables - Strict Palette */
:root {
    --royal-black: #0A0A0A;
    --soft-gold: #D4AF37;
    --gold-highlight: #FFD95E;
    --deep-gold: #B8831B;
    --off-white: #F7FAFC;
    
    --halo-alpha: rgba(212, 175, 55, 0.22);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--royal-black);
    color: var(--off-white);
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover,
.logo-link:focus {
    transform: scale(1.05);
    outline: 2px solid var(--soft-gold);
    outline-offset: 4px;
}

.logo {
    height: 32px;
    width: auto;
    filter: drop-shadow(var(--shadow-strong));
}

/* Main Canvas Container */
.main {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.solar-canvas {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    cursor: default;
}

/* Invisible Sun Button for Accessibility */
.sun-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
}

.sun-button:focus {
    outline: 3px solid var(--soft-gold);
    outline-offset: 8px;
    box-shadow: 0 0 20px var(--halo-alpha);
}

.sun-button:hover {
    background: var(--halo-alpha);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Choice Section */
.choice-section {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    width: 90%;
    max-width: 1000px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

.choice-container {
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-strong);
}

.choice-title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 300;
    letter-spacing: 3px;
    text-align: center;
    color: var(--soft-gold);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.choice-card {
    position: relative;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
    cursor: pointer;
}

.choice-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, var(--soft-gold), var(--deep-gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

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

.choice-invest {
    background: rgba(212, 175, 55, 0.08);
}

.choice-invest:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-5px);
}

.choice-extinction {
    background: rgba(184, 131, 27, 0.08);
}

.choice-extinction:hover {
    background: rgba(184, 131, 27, 0.15);
    transform: translateY(-5px);
}

.choice-number {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--deep-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.choice-card h3 {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--gold-highlight);
    margin-bottom: 10px;
}

.choice-card p {
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--off-white);
    opacity: 0.8;
    line-height: 1.5;
}

.choice-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--soft-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.choice-card:hover .choice-glow {
    opacity: 0.6;
}

.choice-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--soft-gold);
    letter-spacing: 2px;
    padding: 0 10px;
}

.choice-divider span {
    padding: 8px 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.6);
}

.un-quote {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.un-quote p {
    font-size: clamp(14px, 2vw, 16px);
    font-style: italic;
    color: var(--off-white);
    margin-bottom: 10px;
    opacity: 0.9;
}

.un-quote a {
    display: inline-block;
    color: var(--soft-gold);
    text-decoration: none;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.un-quote a:hover,
.un-quote a:focus {
    color: var(--gold-highlight);
    border-bottom-color: var(--soft-gold);
    outline: none;
}

/* Footer CTA */
.footer {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.cta-link {
    color: var(--soft-gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid transparent;
}

.cta-link:hover,
.cta-link:focus {
    color: var(--gold-highlight);
    border-color: var(--soft-gold);
    text-shadow: 0 0 10px var(--halo-alpha);
    outline: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .logo {
        height: 28px;
    }
    
    .sun-button {
        width: 100px;
        height: 100px;
    }
    
    .choice-section {
        bottom: 80px;
        width: 95%;
    }
    
    .choice-container {
        padding: 30px 20px;
    }
    
    .choice-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .choice-divider {
        order: 2;
        margin: 10px 0;
    }
    
    .choice-invest {
        order: 1;
    }
    
    .choice-extinction {
        order: 3;
    }
    
    .choice-card {
        padding: 25px 15px;
    }
    
    .footer {
        bottom: 20px;
    }
    
    .cta-link {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .choice-section {
        bottom: 60px;
    }
    
    .choice-title {
        margin-bottom: 20px;
    }
    
    .choice-card {
        padding: 20px 15px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .logo-link,
    .sun-button,
    .cta-link,
    .choice-card,
    .choice-glow,
    .un-quote a {
        transition: none;
    }
    
    .choice-section {
        animation: none;
        opacity: 1;
        transform: translateX(-50%);
    }
}

/* High DPI Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .solar-canvas {
        image-rendering: crisp-edges;
    }
}
.choice-link {
    text-decoration: none;
    color: transparent;
    display: block;
}
