/* xanadu.quest — Design Language Stylesheet */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Space Grotesk (Swiss precision), Inter (warm humanist) */

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

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #f5f0e8;
    background-color: #1a1a2e;
    overflow-x: hidden;
    line-height: 1.7;
}

/* ========================================
   Bokeh Background
   ======================================== */

#bokeh-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   Candle Atmospheric Glow
   ======================================== */

#candle-glow {
    position: fixed;
    bottom: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 80%;
    background: radial-gradient(ellipse at center bottom, rgba(232, 184, 75, 0.08) 0%, rgba(232, 184, 75, 0.03) 40%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* ========================================
   Eclectic-Hybrid Typography
   ======================================== */

.eclectic-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    letter-spacing: -0.02em;
}

/* ========================================
   Sections — Ma Negative Space
   ======================================== */

.section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 80px;
}

.section-inner {
    max-width: 1100px;
    width: 100%;
}

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #e8b84b;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.section-heading {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    margin-bottom: 60px;
    color: #f5f0e8;
}

.section-text {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.8;
    color: #6c757d;
    max-width: 600px;
}

/* ========================================
   Slide Reveal Animation
   ======================================== */

.slide-reveal {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-reveal.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   Hero Section
   ======================================== */

#hero {
    flex-direction: column;
    justify-content: center;
    padding-bottom: 60px;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 9rem);
    line-height: 1;
    margin-bottom: 32px;
    letter-spacing: -0.04em;
}

.title-precise {
    color: #f5f0e8;
}

.title-warm {
    color: #e8b84b;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 300;
    color: #6c757d;
    letter-spacing: 0.08em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #e8b84b, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   Journey Section — Swiss Grid
   ======================================== */

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.grid-left {
    position: sticky;
    top: 200px;
}

.grid-right {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.journey-card {
    padding: 48px;
    border-left: 1px solid rgba(232, 184, 75, 0.2);
    transition: border-color 0.4s ease;
}

.journey-card:hover {
    border-left-color: #e8b84b;
}

.card-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #e8b84b;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #f5f0e8;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #6c757d;
}

/* ========================================
   Philosophy Section
   ======================================== */

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 20px;
}

.philosophy-item {
    text-align: center;
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
}

.philosophy-icon svg {
    width: 100%;
    height: 100%;
}

.philosophy-item h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #f5f0e8;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.philosophy-item p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #6c757d;
}

/* ========================================
   Quote Section
   ======================================== */

#quote {
    min-height: 80vh;
}

.quote-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.quote-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.4;
    color: #f5f0e8;
    max-width: 800px;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.quote-cite {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 0.85rem;
    color: #e8b84b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========================================
   Call to Quest Section
   ======================================== */

.quest-cta {
    margin-top: 60px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a2e;
    background: #e8b84b;
    padding: 18px 42px;
    border: none;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.3s ease, gap 0.3s ease;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    background: #f5f0e8;
    transform: translateY(-2px);
    gap: 24px;
}

.cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* ========================================
   Footer
   ======================================== */

#footer {
    position: relative;
    z-index: 2;
    padding: 60px 80px;
    border-top: 1px solid rgba(232, 184, 75, 0.1);
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 500;
    color: #f5f0e8;
    letter-spacing: -0.01em;
}

.footer-divider {
    color: rgba(232, 184, 75, 0.3);
}

.footer-tagline {
    font-size: 0.8rem;
    color: #6c757d;
    letter-spacing: 0.05em;
}

/* ========================================
   Responsive — Maintain Ma proportions
   ======================================== */

@media (max-width: 1024px) {
    .section {
        padding: 100px 48px;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .grid-left {
        position: static;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    #footer {
        padding: 48px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 80px 24px;
    }

    .journey-card {
        padding: 32px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 14vw, 5rem);
    }

    #footer {
        padding: 40px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
    }

    .footer-divider {
        display: none;
    }
}
