/* namu.land - Where digital roots grow deep */
/* Colors: #1a2f23 #3d5a45 #7a9e7e #c8e6c9 #5d4037 #fff8e1 #ffb74d #e8f5e9 */

:root {
    --deep-forest: #1a2f23;
    --moss: #3d5a45;
    --sage: #7a9e7e;
    --canopy-light: #c8e6c9;
    --bark: #5d4037;
    --sunlight: #fff8e1;
    --golden-hour: #ffb74d;
    --mist: #e8f5e9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--sunlight);
    background: var(--deep-forest);
    overflow-x: hidden;
}

/* Leaf Particles Overlay */
#leaf-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.leaf {
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.leaf svg {
    width: 100%;
    height: 100%;
}

/* ===== HERO SECTION ===== */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #0d1a12 0%, var(--deep-forest) 50%, #162219 100%);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(48px, 10vw, 96px);
    color: var(--sunlight);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.5s ease-out 0.5s forwards;
}

.hero-title .dot {
    color: var(--golden-hour);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 2vw, 20px);
    color: var(--canopy-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.5s ease-out 1s forwards;
}

.hero-korean {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(20px, 3vw, 28px);
    color: var(--sage);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.5s ease-out 1.5s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s ease-out 2.5s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--sage));
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 1px;
    height: 60px;
    background: var(--golden-hour);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -60px; }
    100% { top: 60px; }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===== GROWTH SECTION ===== */
#growth {
    position: relative;
    padding: 120px 40px;
    background: var(--deep-forest);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(32px, 5vw, 56px);
    color: var(--sunlight);
    margin-bottom: 16px;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--sage);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.growth-rings {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    width: 100%;
}

.ring {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid var(--moss);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: scale(0.8);
}

.ring.visible {
    opacity: 1;
    transform: scale(1);
}

.ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: border-color 0.6s ease;
}

.ring:hover {
    border-color: var(--sage);
    background: rgba(61, 90, 69, 0.2);
    transform: scale(1.05);
}

.ring:hover::before {
    border-color: var(--sage);
}

.ring-content {
    text-align: center;
    padding: 20px;
}

.ring-label {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 22px;
    color: var(--canopy-light);
    display: block;
    margin-bottom: 8px;
}

.ring-content p {
    font-size: 12px;
    font-weight: 300;
    color: var(--sage);
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ring:hover .ring-content p {
    opacity: 1;
}

/* ===== SEASONS SECTION ===== */
#seasons {
    position: relative;
    padding: 120px 40px;
    background: linear-gradient(180deg, var(--deep-forest) 0%, #0f1f15 100%);
}

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

.season-panel {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.season-panel:hover {
    transform: scale(1.02);
}

.season-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.season-panel[data-season="spring"] { background: linear-gradient(135deg, #2d1b3d, #4a2040, #3d2535); }
.season-panel[data-season="summer"] { background: linear-gradient(135deg, #1a3320, #2d5a35, #1a4025); }
.season-panel[data-season="autumn"] { background: linear-gradient(135deg, #3d2a1a, #5d3a1a, #4a3020); }
.season-panel[data-season="winter"] { background: linear-gradient(135deg, #1a2030, #2a3545, #1d2535); }

.season-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.season-panel.visible .season-overlay {
    transform: translateY(0);
    opacity: 1;
}

.season-overlay h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 28px;
    color: var(--sunlight);
    margin-bottom: 12px;
}

.season-korean {
    font-size: 20px;
    color: var(--golden-hour);
    margin-left: 8px;
}

.haiku {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 16px;
    color: var(--canopy-light);
    line-height: 2;
    font-style: italic;
}

/* ===== ROOTS SECTION ===== */
#roots {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0a1510 0%, #050d08 50%, #0a0a0a 100%);
    overflow: hidden;
}

#roots-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.roots-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 40px;
}

.roots-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(36px, 5vw, 56px);
    color: var(--sunlight);
    margin-bottom: 24px;
}

.roots-korean {
    color: var(--sage);
    font-size: 0.7em;
}

.roots-content > p {
    font-weight: 300;
    font-size: 16px;
    color: var(--canopy-light);
    line-height: 1.8;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.roots-content > p.visible {
    opacity: 1;
    transform: translateY(0);
}

.root-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 48px;
    color: var(--golden-hour);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    font-weight: 300;
    color: var(--sage);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ===== FOOTER ===== */
#footer {
    position: relative;
    padding: 80px 40px;
    background: #050d08;
    text-align: center;
}

.footer-korean {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    color: var(--moss);
    margin-bottom: 16px;
}

.footer-tagline {
    font-weight: 300;
    font-size: 14px;
    color: var(--sage);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-copy {
    font-size: 12px;
    color: var(--moss);
    font-weight: 300;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .seasons-grid {
        grid-template-columns: 1fr;
    }
    
    .season-panel {
        height: 300px;
    }
    
    .growth-rings {
        gap: 24px;
    }
    
    .ring {
        width: 160px;
        height: 160px;
    }
    
    .root-stats {
        gap: 30px;
    }
    
    #growth, #seasons {
        padding: 80px 24px;
    }
}

@media (max-width: 480px) {
    .seasons-grid {
        gap: 12px;
    }
    
    .growth-rings {
        gap: 16px;
    }
    
    .ring {
        width: 140px;
        height: 140px;
    }
}
