/* === PALETTE === */
:root {
    --deep: #0A7E8C;
    --accent: #40BFC1;
    --light: #B2E4E6;
    --pale: #E8F6F7;
    --cream: #FFF8F0;
    --pink: #E8546C;
    --gold: #D4A843;
    --dark-bg: #064E57;
    --dark-alt: #0B6B76;
    --text-dark: #1a1a1a;
    --text-light: #f0f0f0;
    --text-muted: #6b7280;
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background: var(--dark-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === LOADING SCREEN === */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    transition: opacity 0.4s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    color: var(--accent);
}

#loading-done {
    opacity: 0;
    animation: loadDone 0.3s ease 0.3s forwards;
}

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

/* === SECTION COUNTER === */
#section-counter {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 100;
    transition: color 0.3s ease;
    pointer-events: none;
}

#section-counter.dark-text {
    color: rgba(0, 0, 0, 0.25);
}

/* === SCROLL CONTAINER === */
#scroll-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

/* === SECTIONS === */
.section {
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1.5rem;
    overflow: hidden;
}

.section-content {
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Section backgrounds */
.section-dark {
    background: linear-gradient(160deg, var(--dark-bg) 0%, #083d44 50%, var(--deep) 100%);
    color: var(--text-light);
}

.section-cream {
    background: var(--cream);
    color: var(--text-dark);
}

.section-light {
    background: var(--pale);
    color: var(--text-dark);
}

.section-dark-alt {
    background: linear-gradient(160deg, var(--dark-alt) 0%, var(--deep) 100%);
    color: var(--text-light);
}

.section-celebration {
    background: linear-gradient(160deg, var(--pink) 0%, #c44058 50%, var(--gold) 100%);
    color: var(--text-light);
}

/* === HEADINGS === */
.section-heading {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.section-heading-light {
    color: var(--text-light);
}

.section-subheading {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

/* === FLOATING PETALS === */
.floating-petals {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.petal {
    position: absolute;
    width: 20px;
    height: 28px;
    background: var(--accent);
    opacity: 0.15;
    border-radius: 50% 50% 50% 0;
    top: -40px;
    animation: petalFall linear infinite;
}

.petal-1 { left: 10%; animation-duration: 8s; animation-delay: 0s; width: 16px; height: 22px; }
.petal-2 { left: 25%; animation-duration: 11s; animation-delay: 1s; width: 22px; height: 30px; }
.petal-3 { left: 40%; animation-duration: 9s; animation-delay: 3s; }
.petal-4 { left: 55%; animation-duration: 12s; animation-delay: 2s; width: 18px; height: 25px; }
.petal-5 { left: 70%; animation-duration: 10s; animation-delay: 4s; width: 14px; height: 20px; }
.petal-6 { left: 85%; animation-duration: 13s; animation-delay: 1.5s; }
.petal-7 { left: 15%; animation-duration: 14s; animation-delay: 5s; width: 12px; height: 16px; }
.petal-8 { left: 60%; animation-duration: 9.5s; animation-delay: 3.5s; width: 24px; height: 32px; }

@keyframes petalFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(calc(100vh + 40px)) rotate(360deg) translateX(30px);
        opacity: 0;
    }
}

/* === SECTION 1: LANDING === */
.landing-content {
    text-align: center;
}

.landing-line {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.2rem;
    opacity: 0;
    transform: translateY(20px);
}

.landing-line-1 {
    animation: fadeInUp 1s ease 0.8s forwards;
    font-size: 2.5rem;
}

.landing-line-2 {
    animation: fadeInUp 1s ease 2s forwards;
    font-size: 1.6rem;
    color: var(--light);
    margin-top: 1rem;
}

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

.scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    opacity: 0;
    animation: fadeInUp 0.6s ease 3.2s forwards, pulse 2s ease-in-out 3.8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* === SECTION 2: TITLE BLOCK === */
.eng-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--deep);
}

.title-block-box {
    border: 2px solid var(--gold);
    padding: 1.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    background: white;
}

.title-block-row {
    margin-bottom: 0.6rem;
    display: flex;
    gap: 0.5rem;
}

.title-block-row:last-child {
    margin-bottom: 0;
}

.title-block-row-triple {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.tb-label {
    font-weight: bold;
    color: var(--text-muted);
}

.tb-value {
    color: var(--text-dark);
}

.tb-status {
    color: var(--pink);
    font-weight: bold;
}

.abstract {
    background: white;
    padding: 1.5rem;
    border-left: 3px solid var(--deep);
}

.abstract-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    color: var(--deep);
    margin-bottom: 0.75rem;
}

.abstract p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Tulip background pattern */
.tulip-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-tulip {
    position: absolute;
    color: var(--deep);
    opacity: 0.06;
}

.bg-tulip-1 { width: 60px; top: 10%; right: 5%; transform: rotate(15deg); }
.bg-tulip-2 { width: 45px; bottom: 15%; left: 8%; transform: rotate(-10deg); }
.bg-tulip-3 { width: 50px; top: 50%; right: 12%; transform: rotate(25deg); }

/* === SECTION 3: EVIDENCE === */
.findings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.finding {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.finding-critical {
    border-left: 4px solid var(--pink);
}

.finding-num {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--deep);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.finding-body h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.finding-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a4a4a;
}

.critical-tag {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--pink);
    font-weight: bold;
}

.no-description {
    font-style: italic;
    color: var(--text-muted) !important;
}

/* Polaroid */
.polaroid {
    margin-top: 1rem;
    background: white;
    padding: 0.6rem 0.6rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    display: inline-block;
}

.polaroid-img {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 4/3;
    background: var(--light);
    overflow: hidden;
}

.polaroid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.polaroid-caption {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.5rem 0;
}

/* === SECTION 4: COMPATIBILITY === */
.compat-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compat-card {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-left: 3px solid var(--accent);
}

.compat-category {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.7rem;
    color: var(--deep);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.compat-pref {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.compat-ready {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* === SECTION 5: BICEP === */
.bicep-container {
    text-align: center;
}

.spotlight {
    display: inline-block;
    position: relative;
    margin-bottom: 1.5rem;
}

.spotlight::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 191, 193, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.bicep-img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent);
    position: relative;
    z-index: 1;
    background: var(--dark-bg);
}

.bicep-text {
    max-width: 400px;
    margin: 0 auto;
}

.bicep-intro {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.bicep-specs {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.bicep-aside {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--accent);
}

/* === SECTION 6: TERMS === */
.terms-list {
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.term {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0;
}

.term.visible {
    opacity: 1;
}

.term-num {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--deep);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Typewriter cursor */
.term.typing::after {
    content: '|';
    color: var(--deep);
    animation: blink 0.7s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* === SECTION 7: THE QUESTION === */
.question-content {
    text-align: center;
}

.question-preamble {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    color: var(--light);
    margin-bottom: 1.25rem;
}

.question-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--light);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.question-big {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
}

.question-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.btn {
    border: none;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-yes {
    background: var(--pink);
    color: white;
    padding: 1rem 3rem;
    box-shadow: 0 4px 15px rgba(232, 84, 108, 0.4);
}

.btn-yes:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(232, 84, 108, 0.5);
}

.btn-yes:active {
    transform: scale(0.98);
}

.btn-no {
    background: #9ca3af;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    position: relative;
    transition: all 0.15s ease;
}

.btn-no:hover {
    background: #6b7280;
}

.btn-no.runaway {
    position: fixed;
    z-index: 200;
}

.btn-no.disappearing {
    animation: shrinkAway 0.5s ease forwards;
}

@keyframes shrinkAway {
    to {
        transform: scale(0);
        opacity: 0;
    }
}

.no-message {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 1rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

/* === SECTION 8: CELEBRATION === */
.celebration-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.celebration-line {
    opacity: 0;
    transform: translateY(20px);
}

.celebration-line-1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.celebration-line-2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.celebration-line-3 {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInUp 0.8s ease 1.7s forwards;
    margin-bottom: 2rem;
}

.celebration-sign {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 0.8s ease 2.4s forwards;
}

/* Confetti hearts */
#confetti-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.confetti-heart {
    position: absolute;
    top: -30px;
    font-size: 20px;
    animation: confettiFall linear forwards;
    opacity: 0.8;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100vh + 40px)) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

/* === FADE IN ON SCROLL === */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* === RESPONSIVE === */
@media (min-width: 768px) {
    .section {
        padding: 3rem 2rem;
    }

    .section-content {
        max-width: 700px;
    }

    .landing-line-1 {
        font-size: 3.5rem;
    }

    .landing-line-2 {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 2.2rem;
    }

    .question-big {
        font-size: 2.5rem;
    }

    .compat-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .polaroid-img {
        max-width: 350px;
    }

    .celebration-line-1 {
        font-size: 3rem;
    }
}
