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

body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.76;
    color: #3A5A50;
    overflow-x: hidden;
    position: relative;
}

.bg-gradient {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2;
    background: linear-gradient(180deg, #D4F1FF 0%, #B8E6D0 50%, #FFF4D4 100%);
    background-size: 100% 300%;
    background-position: 0% 0%;
    transition: background-position 0.1s linear;
}

.floating-molecules {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.molecule {
    position: absolute;
    opacity: 0.2;
    animation: floatMolecule 25s ease-in-out infinite;
}

.molecule circle { fill: #7BB5A0; }
.molecule line { stroke: #7BB5A0; stroke-width: 1.5; }

@keyframes floatMolecule {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-40px) rotate(7deg); }
}

.progress-sidebar {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.progress-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(123, 181, 160, 0.3);
    border: 2px solid #7BB5A0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #7BB5A0;
    box-shadow: 0 0 12px rgba(123, 181, 160, 0.6);
}

main { position: relative; z-index: 1; }

.phase {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
}

.blob-bg {
    position: absolute;
    width: 500px;
    height: 400px;
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 55%;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.blob-sky { background: #D4F1FF; top: 10%; left: 50%; transform: translateX(-50%); }
.blob-mint { background: #B8E6D0; top: 15%; left: 45%; }
.blob-green { background: #7BB5A0; top: 10%; right: 40%; }
.blob-warm { background: #FFF4D4; top: 12%; left: 48%; }
.blob-cream { background: #F5A623; top: 15%; left: 50%; transform: translateX(-50%); opacity: 0.08; }

.site-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 40px;
    letter-spacing: -0.01em;
    color: #1A5C4A;
    margin-bottom: 32px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.site-title.visible {
    opacity: 1;
    transform: scale(1);
}

.glass-card {
    max-width: 640px;
    width: 100%;
    padding: 40px 48px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 80, 60, 0.08);
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(30px);
}

.glass-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-card:hover {
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 80, 60, 0.12);
}

.specimen-card { text-align: center; }

.botanical-svg {
    width: 320px;
    height: 280px;
    margin: 0 auto 20px;
    display: block;
}

.svg-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.2s ease-out;
}

.specimen-card.visible .svg-draw {
    stroke-dashoffset: 0;
}

h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.01em;
    color: #1A5C4A;
    margin-bottom: 16px;
}

.label-text {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #7BB5A0;
    display: block;
    margin-top: 16px;
}

.phase-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 24px;
    position: relative;
    background: linear-gradient(135deg, #7BB5A0, #1A5C4A);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phase-icon::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px;
    width: 48px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
}

.hypothesis-icon::after { content: '?'; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 24px; color: white; }
.experiment-icon::after { content: '\2697'; font-size: 22px; color: white; }
.analysis-icon::after { content: '\2609'; font-size: 22px; color: white; }
.conclusion-icon::after { content: '\2713'; font-size: 22px; color: white; }

.icon-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: transparent;
    transition: box-shadow 0.3s ease;
}

.phase-content {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.phase-content.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.wave-divider {
    width: 100%;
    height: 40px;
    margin-top: 60px;
}

.final-message {
    margin-top: 40px;
    text-align: center;
    max-width: 480px;
}

.final-message p {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #1A5C4A;
}

@media (max-width: 768px) {
    .glass-card { margin: 0 12px; padding: 28px 24px; max-width: 100%; }
    .site-title { font-size: 28px; }
    h2 { font-size: 22px; }
    .progress-sidebar {
        position: fixed;
        bottom: 16px;
        right: auto;
        left: 50%;
        top: auto;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 16px;
    }
    .blob-bg { width: 300px; height: 250px; }
}
