/* Design Tokens & Theme Variables */
:root {
    --bg-dark: #06150f;
    --bg-card: rgba(14, 38, 28, 0.45);
    --primary: #cba37b;
    --primary-light: #dfbe9e;
    --primary-dark: #a27b56;
    --text-light: #f4f7f5;
    --text-muted: #a3b5ad;
    --border-color: rgba(203, 163, 123, 0.2);
    --border-hover: rgba(203, 163, 123, 0.5);
    --glow-color: rgba(203, 163, 123, 0.15);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
}

/* Background Gradients & Effects */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, #0e2a1e 0%, var(--bg-dark) 70%);
    z-index: -2;
}

/* Grain Noise Overlay for Premium Organic Feel */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}

/* Coffee Steam Micro-Animations */
.steam-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 400px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
}

.steam-line {
    position: absolute;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to top, rgba(203, 163, 123, 0.4), transparent);
    filter: blur(8px);
    border-radius: 50%;
}

.steam-1 {
    left: 30%;
    height: 80%;
    animation: steamRise 7s infinite ease-in-out;
}

.steam-2 {
    left: 50%;
    height: 90%;
    animation: steamRise 9s infinite ease-in-out 1.5s;
}

.steam-3 {
    left: 70%;
    height: 75%;
    animation: steamRise 8s infinite ease-in-out 3s;
}

@keyframes steamRise {
    0% {
        transform: translateY(100%) scaleX(1);
        opacity: 0;
    }
    15% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(20%) scaleX(2.5) skewX(10deg);
        opacity: 0.4;
    }
    95% {
        opacity: 0;
    }
    100% {
        transform: translateY(-80%) scaleX(4) skewX(-15deg);
        opacity: 0;
    }
}

/* Main Container Layout */
.main-container {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Logo Design */
.logo-section {
    margin-bottom: 2.5rem;
}

.logo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(253, 230, 200, 0.1);
    transform: rotate(0deg);
    transition: var(--transition-smooth);
}

.logo-wrapper:hover .brand-logo {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 
                0 0 15px var(--border-hover);
}

.logo-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.05);
        opacity: 1.2;
    }
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--primary);
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Headings & Content */
.content-section {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.main-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
    color: var(--text-light);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.sub-heading {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

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

/* Countdown Timer */
.countdown-section {
    margin-bottom: 3.5rem;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

.countdown-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.time-number {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.4rem;
    transition: var(--transition-smooth);
    background: linear-gradient(135deg, #fff 30%, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.time-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    font-weight: 500;
}

.time-divider {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 0 0.8rem -0.5rem;
    opacity: 0.5;
}

/* Newsletter Signup */
.newsletter-section {
    width: 100%;
    max-width: 500px;
    margin-bottom: 3.5rem;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.subscribe-form {
    width: 100%;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.35rem;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.input-group:focus-within {
    border-color: var(--border-hover);
    box-shadow: 0 0 20px var(--glow-color), 0 4px 20px rgba(0,0,0,0.25);
    background: rgba(255, 255, 255, 0.04);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    font-weight: 300;
    width: 100%;
}

.input-group input::placeholder {
    color: rgba(163, 181, 173, 0.45);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #1b1612;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0 1.8rem;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(203, 163, 123, 0.2);
}

.submit-btn i {
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(203, 163, 123, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.submit-btn:hover i {
    transform: translateX(4px);
}

.submit-btn:active {
    transform: translateY(1px);
}

/* Subscription Messages */
.form-message {
    margin-top: 1rem;
    font-size: 0.85rem;
    min-height: 20px;
    transition: var(--transition-smooth);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.form-message.success {
    color: #8ccba4;
}

.form-message.error {
    color: #e28f8f;
}

/* Footer Section & Socials */
.footer-section {
    margin-top: auto;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 1.5rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.social-link:hover {
    color: var(--primary-light);
    border-color: var(--border-hover);
    background: rgba(203, 163, 123, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(203, 163, 123, 0.1);
}

.copyright {
    font-size: 0.75rem;
    color: rgba(163, 181, 173, 0.4);
    letter-spacing: 0.05em;
}

/* Responsive Breakpoints */
@media (max-width: 576px) {
    body {
        padding: 1.5rem 0.75rem;
    }
    
    .logo-wrapper {
        width: 120px;
        height: 120px;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .countdown-container {
        padding: 1.2rem 1.5rem;
        border-radius: 30px;
    }

    .time-block {
        min-width: 50px;
    }

    .time-divider {
        margin: 0 0.4rem -0.4rem;
        font-size: 1.5rem;
    }

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 0.8rem;
    }

    .input-group:focus-within {
        box-shadow: none;
        background: transparent;
    }

    .input-group input {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-color);
        border-radius: 30px;
        padding: 0.9rem 1.5rem;
    }

    .input-group input:focus {
        border-color: var(--border-hover);
        background: rgba(255, 255, 255, 0.04);
        box-shadow: 0 0 15px var(--glow-color);
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.8rem;
        border-radius: 30px;
    }
}
