/* ============================================================
   lunar.quest - Archival Mission Aesthetic
   ============================================================ */

:root {
    /* Color Palette - NASA Archive Tones */
    --color-bg-dark: #1C1610;
    --color-bg-medium: #231C14;
    --color-accent-gold: #D4943A;
    --color-accent-bronze: #B87333;
    --color-text-primary: #E8DCD0;
    --color-text-secondary: #8A7A6A;
    --color-text-tertiary: #5A4A3A;

    /* Typography */
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #1C1610 0%, #231C14 50%, #1C1610 100%);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   Section 1: Mission Header
   ============================================================ */

.mission-header {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 4rem;
    background: linear-gradient(135deg, #231C14 0%, #1C1610 100%);
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(184, 115, 51, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(212, 148, 58, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 40% 80%, rgba(138, 122, 106, 0.04) 0%, transparent 50%);
    background-blend-mode: multiply;
    overflow: hidden;
}

.mission-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 9rem);
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
    line-height: 0.95;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
}

.mission-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--color-text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.2s forwards;
}

.header-divider {
    width: 200px;
    height: 2px;
    background: var(--color-accent-gold);
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.4s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   Section 2: Expedition Modules
   ============================================================ */

.expedition-section {
    background: var(--color-bg-dark);
    padding: 4rem 2rem;
    min-height: auto;
}

.modules-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.module {
    background: linear-gradient(135deg, #2C2218 0%, #1C1610 100%);
    border: 1px solid rgba(212, 148, 58, 0.15);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: moduleSlideIn 0.6s ease-out forwards;
}

.module:nth-child(1) { animation-delay: 0.1s; }
.module:nth-child(2) { animation-delay: 0.2s; }
.module:nth-child(3) { animation-delay: 0.3s; }
.module:nth-child(4) { animation-delay: 0.4s; }
.module:nth-child(5) { animation-delay: 0.5s; }
.module:nth-child(6) { animation-delay: 0.6s; }

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

.module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(184, 115, 51, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 148, 58, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.module:hover {
    border-color: rgba(212, 148, 58, 0.3);
    background: linear-gradient(135deg, #322819 0%, #1C1610 100%);
}

.module-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--color-accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
}

.module-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.module-marker {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(212, 148, 58, 0.2);
    line-height: 1;
    z-index: 0;
}

@media (max-width: 768px) {
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .module {
        padding: 2rem;
    }
}

/* ============================================================
   Section 3: Stats Section
   ============================================================ */

.stats-section {
    background: var(--color-bg-medium);
    padding: 4rem 2rem;
    border-top: 2px solid rgba(212, 148, 58, 0.2);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: var(--color-accent-gold);
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-block {
    background: rgba(44, 34, 24, 0.5);
    border-left: 3px solid var(--color-accent-gold);
    padding: 2rem;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-block:nth-child(1) { animation-delay: 0.1s; }
.stat-block:nth-child(2) { animation-delay: 0.2s; }
.stat-block:nth-child(3) { animation-delay: 0.3s; }
.stat-block:nth-child(4) { animation-delay: 0.4s; }

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

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-accent-gold);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   Section 4: Closing
   ============================================================ */

.closing-section {
    background: linear-gradient(135deg, #1C1610 0%, #231C14 100%);
    padding: 6rem 2rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.closing-content {
    max-width: 800px;
}

.closing-text {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.closing-subtitle {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--color-accent-bronze);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .mission-header {
        padding: 2rem;
    }

    .expedition-section {
        padding: 2rem 1rem;
    }

    .stats-section {
        padding: 2rem 1rem;
    }

    .closing-section {
        padding: 3rem 1rem;
    }
}
