/* namu.style - Digital Terrarium Collection */
/* Colors: #1A2420 Deep Forest, #C8D3D0 Frost, #D4A0B0 Bloom Pink, #3D5A47 Terrarium Green, #B8A04C Pollen Gold, #F2F0ED Mist, #E8EDE9 Glass */

*,
*::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: #1A2420;
    background-color: #1A2420;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ===== Background ===== */
#bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(145deg, #1A2420 0%, #2A3A30 30%, #1A2420 60%, #253028 100%);
    background-size: 200% 200%;
    animation: bgDrift 30s ease-in-out infinite;
}

@keyframes bgDrift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Sections ===== */
#terrarium-header,
#collection,
#terrarium-footer {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
}

#terrarium-header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#collection {
    padding-bottom: 4rem;
}

/* ===== Bento Grid ===== */
.bento-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.header-grid {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    width: 90%;
    max-width: 800px;
}

.collection-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* ===== Terrarium Card ===== */
.terrarium-card {
    background: rgba(232, 237, 233, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 211, 208, 0.12);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0;
    transform: scale(0.9);
}

.terrarium-card.assembled {
    opacity: 1;
    transform: scale(1);
}

.terrarium-card:hover {
    border-color: rgba(200, 211, 208, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.terrarium-card.assembled:hover {
    transform: scale(1.02);
}

/* Card botanical ghost */
.card-botanical {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
}

.card-botanical svg {
    width: 60%;
    height: 60%;
    opacity: 0.6;
}

/* ===== Card Types ===== */
.card-hero {
    grid-column: 1;
    grid-row: 1;
}

.card-info {
    grid-column: 2;
    grid-row: 1;
}

.card-accent {
    grid-column: 1;
    grid-row: 2;
}

.card-stat {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.card-tall {
    grid-row: span 2;
}

/* ===== Typography ===== */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #F2F0ED;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    color: #C8D3D0;
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

.card-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #B8A04C;
    display: block;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
}

.card-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #F2F0ED;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
}

.card-heading-sm {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #F2F0ED;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 2;
}

.card-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: #C8D3D0;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    opacity: 0.8;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.5rem;
    color: #D4A0B0;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C8D3D0;
    opacity: 0.6;
    position: relative;
    z-index: 2;
}

/* ===== Breathing Dot ===== */
.breathing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4A0B0;
    margin-top: 1.5rem;
    animation: breathe 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* ===== Footer ===== */
#terrarium-footer {
    padding: 2rem;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.card-footer {
    text-align: center;
    padding: 3rem 2rem;
}

.footer-domain {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #D4A0B0;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 2;
}

.footer-hangul {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #B8A04C;
    opacity: 0.5;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.footer-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E8EDE9;
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-grid {
        grid-template-columns: 1fr;
        width: 95%;
    }

    .card-hero {
        grid-column: 1;
    }

    .card-info,
    .card-accent,
    .card-stat {
        grid-column: 1;
    }

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

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

    .card-tall {
        grid-row: span 1;
    }

    #terrarium-header,
    #collection,
    #terrarium-footer {
        padding: 2rem 1rem;
    }

    .terrarium-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}
