/* ========================================
   prototypic.dev -- Zen Prototype Garden
   ======================================== */

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

:root {
    --stone-white: #F5F2EB;
    --moss-dark: #2A3A22;
    --warm-earth: #5C4A3A;
    --terracotta: #C4663A;
    --sage: #7B8A6E;
    --dark-soil: #1A1410;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--stone-white);
    color: var(--warm-earth);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Candle-Atmospheric Lantern Gradient Spots --- */
.lantern {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: candleFlicker 6s ease-in-out infinite;
}

.lantern-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -150px;
    background: radial-gradient(circle, rgba(196, 102, 58, 0.08) 0%, transparent 70%);
    animation-delay: 0s;
}

.lantern-2 {
    width: 500px;
    height: 500px;
    bottom: 200px;
    left: -200px;
    background: radial-gradient(circle, rgba(196, 102, 58, 0.06) 0%, transparent 70%);
    animation-delay: 2s;
}

.lantern-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: 10%;
    background: radial-gradient(circle, rgba(123, 138, 110, 0.07) 0%, transparent 70%);
    animation-delay: 4s;
}

@keyframes candleFlicker {
    0%, 100% { opacity: 1; }
    30% { opacity: 0.6; }
    50% { opacity: 0.9; }
    70% { opacity: 0.5; }
    90% { opacity: 0.85; }
}

/* --- Nature-Element Ambient Decorations: Stones --- */
.stone {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.stone-1 {
    width: 80px;
    height: 60px;
    bottom: 15%;
    right: 8%;
    background: radial-gradient(ellipse, rgba(92, 74, 58, 0.12) 0%, rgba(92, 74, 58, 0.04) 60%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.stone-2 {
    width: 50px;
    height: 40px;
    bottom: 18%;
    right: 12%;
    background: radial-gradient(ellipse, rgba(92, 74, 58, 0.1) 0%, rgba(92, 74, 58, 0.03) 60%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
}

.stone-3 {
    width: 35px;
    height: 28px;
    top: 40%;
    left: 5%;
    background: radial-gradient(ellipse, rgba(42, 58, 34, 0.1) 0%, rgba(42, 58, 34, 0.03) 60%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 55% 45% 40%;
}

/* --- Nature-Element: Leaves --- */
.leaf {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.leaf-1 {
    width: 40px;
    height: 60px;
    top: 25%;
    left: 3%;
    background: radial-gradient(ellipse at 30% 50%, rgba(123, 138, 110, 0.12) 0%, transparent 70%);
    border-radius: 0 80% 0 80%;
    transform: rotate(-30deg);
}

.leaf-2 {
    width: 30px;
    height: 45px;
    top: 60%;
    right: 4%;
    background: radial-gradient(ellipse at 30% 50%, rgba(123, 138, 110, 0.1) 0%, transparent 70%);
    border-radius: 0 80% 0 80%;
    transform: rotate(15deg);
}

/* --- Nature-Element: Water Ripples --- */
.ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    border: 1px solid rgba(123, 138, 110, 0.08);
}

.ripple-1 {
    width: 200px;
    height: 200px;
    bottom: 30%;
    left: 10%;
    animation: rippleExpand 8s ease-out infinite;
}

.ripple-2 {
    width: 150px;
    height: 150px;
    top: 15%;
    right: 15%;
    animation: rippleExpand 8s ease-out infinite;
    animation-delay: 4s;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
}

/* --- Header --- */
.site-header {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 120px 24px 60px;
    text-align: left;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--moss-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.site-title .accent {
    color: var(--terracotta);
}

.site-tagline {
    margin-top: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--sage);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* --- Main Garden Area --- */
.garden {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 24px 100px;
}

/* --- Prototype Cards: Organic-flow with margin-left offsets --- */
.prototype-card {
    position: relative;
    background: rgba(245, 242, 235, 0.7);
    border-left: 3px solid var(--terracotta);
    padding: 36px 32px;
    margin-bottom: 48px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.4s ease;
    cursor: default;
}

/* Organic offsets -- each card finds its own position */
.card-1 { margin-left: 0; }
.card-2 { margin-left: 60px; }
.card-3 { margin-left: 20px; }
.card-4 { margin-left: 80px; }
.card-5 { margin-left: 10px; }
.card-6 { margin-left: 50px; }

/* Zoom-focus on hover */
.prototype-card:hover {
    transform: scale(1.03);
    background: rgba(245, 242, 235, 0.95);
    box-shadow: 0 12px 40px rgba(26, 20, 16, 0.08),
                0 4px 12px rgba(196, 102, 58, 0.06);
}

.card-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sage);
    background: rgba(123, 138, 110, 0.1);
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 16px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--moss-dark);
    line-height: 1.2;
    margin-bottom: 12px;
}

.card-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--warm-earth);
    margin-bottom: 20px;
}

.card-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(123, 138, 110, 0.15);
}

.detail-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sage);
}

.detail-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--terracotta);
}

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer --- */
.site-footer {
    position: relative;
    z-index: 1;
    background-color: var(--dark-soil);
    padding: 60px 24px;
    text-align: center;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(245, 242, 235, 0.5);
    letter-spacing: 0.02em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .site-header {
        padding: 80px 20px 40px;
    }

    .garden {
        padding: 10px 20px 60px;
    }

    .prototype-card {
        padding: 28px 24px;
        margin-bottom: 36px;
    }

    .card-1,
    .card-2,
    .card-3,
    .card-4,
    .card-5,
    .card-6 {
        margin-left: 0;
    }

    .lantern-1 {
        width: 300px;
        height: 300px;
    }

    .lantern-2 {
        width: 250px;
        height: 250px;
    }

    .lantern-3 {
        width: 200px;
        height: 200px;
    }
}
