/* --- Variables & Reset --- */
:root {
    /* Valentine's Palette */
    --color-pink: #FFD1DC;
    --color-red: #8B0000;

    /* Business Palette */
    --color-cream: #F5F5DC;
    --color-gold: #D4AF37;
    --color-text-dark: #1a1a1a;
    --color-text-light: #ffffff;

    /* Fonts */
    --font-romantic: 'Playfair Display', serif;
    --font-modern: 'Montserrat', sans-serif;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-slow: 1.2s var(--ease-out-expo);
    --transition-medium: 0.6s ease;
}

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

body,
html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: var(--font-modern);
}

/* --- Section 1: The Hook (Valentine's) --- */
.hook-section {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--color-pink) 0%, #fff0f5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    /* Fixed to cover everything initially */
    top: 0;
    left: 0;
    z-index: 20;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.content-wrapper {
    text-align: center;
    z-index: 2;
}

.valentine-title {
    font-family: var(--font-romantic);
    font-size: 3rem;
    color: var(--color-red);
    margin-bottom: 2rem;
    animation: float 4s ease-in-out infinite;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.5s, float 4s ease-in-out infinite;
}

.heart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.heart-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 6px rgba(139, 0, 0, 0.2));
    animation: heartbeat 1.5s infinite;
    transition: fill 0.3s ease;
}

.btn-text {
    margin-top: 1rem;
    font-family: var(--font-romantic);
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--color-red);
    opacity: 0.8;
}

.heart-btn:hover .heart-icon {
    /* Slightly faster beat on hover maybe? or scale up */
    transform: scale(1.1);
}

/* --- Section 2 & 3: The Reveal (Business) --- */
.reveal-container {
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    /* Hidden initially */
    pointer-events: none;
    /* Prevent clicking while hidden */
    transition: opacity 1s ease 0.5s;
    /* Delay visibility slightly */
    padding: 2rem;
    text-align: center;
}

/* Once revealed class is added to body/container */
body.revealed .hook-section {
    transform: translateY(-100%);
    pointer-events: none;
}

body.revealed .reveal-container {
    opacity: 1;
    pointer-events: all;
}

/* Reveal Content Styling */
.reveal-section {
    margin-bottom: 4rem;
}

.brand-name {
    font-family: var(--font-modern);
    font-weight: 600;
    font-size: 4rem;
    color: var(--color-text-dark);
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Letter animation will be handled by utility class in JS or CSS */
.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.revealed .letter {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for letters - simplified loop */
body.revealed .letter:nth-child(1) {
    transition-delay: 0.6s;
}

body.revealed .letter:nth-child(2) {
    transition-delay: 0.7s;
}

body.revealed .letter:nth-child(3) {
    transition-delay: 0.8s;
}

body.revealed .letter:nth-child(4) {
    transition-delay: 0.9s;
}

/* Space is child 5 */
body.revealed .letter:nth-child(6) {
    transition-delay: 1.0s;
}

body.revealed .letter:nth-child(7) {
    transition-delay: 1.1s;
}

body.revealed .letter:nth-child(8) {
    transition-delay: 1.2s;
}

body.revealed .letter:nth-child(9) {
    transition-delay: 1.3s;
}

body.revealed .letter:nth-child(10) {
    transition-delay: 1.4s;
}

body.revealed .letter:nth-child(11) {
    transition-delay: 1.5s;
}

.tagline {
    font-size: 1.2rem;
    color: var(--color-gold);
    letter-spacing: 2px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease 1.8s, transform 0.8s ease 1.8s;
}

body.revealed .tagline {
    opacity: 1;
    transform: translateY(0);
}

.love-note {
    font-family: var(--font-romantic);
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 1s ease 2.5s;
}

body.revealed .love-note {
    opacity: 1;
}

/* --- CTA Section --- */
.cta-section {
    width: 100%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 3s, transform 1s ease 3s;
}

body.revealed .cta-section {
    opacity: 1;
    transform: translateY(0);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

input[type="email"] {
    padding: 1rem;
    border: 1px solid var(--color-gold);
    background: transparent;
    border-radius: 4px;
    /* Slight roundness */
    font-family: var(--font-modern);
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease;
}

input[type="email"]:focus {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.gold-btn {
    padding: 1rem 2rem;
    background-color: var(--color-gold);
    color: white;
    border: none;
    font-family: var(--font-modern);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.gold-btn:hover {
    background-color: #bfa34a;
    /* Slightly darker gold */
    transform: translateY(-2px);
}

.footer {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 1px;
}

/* --- Animations --- */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .brand-name {
        font-size: 2.5rem;
        /* Smaller on mobile */
        letter-spacing: 0.2rem;
    }

    .valentine-title {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .input-group {
        flex-direction: row;
    }

    .gold-btn {
        width: auto;
    }

    .input-group input {
        flex: 1;
    }
}