:root {
    --bg-color: #0c0806;
    --text-primary: #fcfaf8;
    --text-secondary: #d1b5a5;
    --accent-color: #d87c4a;
    --accent-hover: #ef8d58;
    --border-color: rgba(216, 124, 74, 0.2);
    --font-heading: 'Cinzel', serif;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

/* Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(to right, rgba(12, 8, 6, 0.35), rgba(12, 8, 6, 0.9)), url('bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Image Section (Left) */
.image-section {
    flex: 1;
    position: relative;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Content Section (Right) */
.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 6rem;
    position: relative;
    background: rgba(12, 8, 6, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%);
}

.content-wrapper {
    max-width: 600px;
    text-align: center;
}

/* Typography */
header {
    margin-top: -2rem;
    margin-bottom: 1rem;
}

.logo {
    display: block;
    max-width: 180px;
    height: auto;
    margin: 0 auto;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 400;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    justify-content: center;
}

.time-block {
    display: flex;
    flex-direction: column;
}

.time-val {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.time-label {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Form */
.interactive-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
    border: 1px solid rgba(216, 124, 74, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.notify-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group {
    display: flex;
    position: relative;
    border-bottom: 1px solid rgba(209, 181, 165, 0.3);
    transition: border-color 0.3s;
}

.input-group:focus-within {
    border-color: var(--accent-color);
}

input[type="email"] {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-main);
    padding: 1rem 0;
    width: 100%;
    outline: none;
}

input[type="email"]::placeholder {
    color: rgba(209, 181, 165, 0.3);
}

.submit-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s;
    outline: none;
    cursor: pointer;
}

.submit-btn:hover {
    color: var(--accent-color);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

.success-msg {
    display: none;
    color: var(--accent-color);
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s;
}

.success-msg.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    margin-top: 5rem;
    font-size: 0.8rem;
    color: rgba(209, 181, 165, 0.4);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

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

/* Responsive */
@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
        background-image: linear-gradient(to bottom, rgba(12, 8, 6, 0.1), rgba(12, 8, 6, 0.3)), url('bg.png');
        background-size: cover;
        background-position: center 85%;
        background-attachment: scroll;
        min-height: 100dvh;
        height: auto;
    }
    .image-section {
        display: none;
    }
    .content-section {
        padding: 1.5rem;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        align-items: center;
        border-left: none;
        border-top: none;
        -webkit-mask-image: none;
        mask-image: none;
        flex: 1;
        justify-content: center;
    }
    @keyframes spin-border {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    .content-wrapper {
        width: 100%;
        max-width: 600px;
        padding: 3rem 2rem;
        border-radius: 24px;
        position: relative;
        overflow: hidden;
        z-index: 1;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    }
    .content-wrapper::before {
        content: "";
        position: absolute;
        top: -50%; left: -50%;
        width: 200%; height: 200%;
        background: conic-gradient(transparent 65%, rgba(197, 154, 92, 0.2) 85%, #C59A5C 100%);
        animation: spin-border 4s linear infinite;
        z-index: -2;
    }
    .content-wrapper::after {
        content: "";
        position: absolute;
        inset: 2px;
        border-radius: 22px;
        background: linear-gradient(135deg, rgba(30, 20, 15, 0.65) 0%, rgba(10, 5, 0, 0.85) 100%);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        z-index: -1;
        box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.15);
    }
    header {
        margin-top: 0;
        margin-bottom: 2rem;
    }
    h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    .subtitle {
        margin-bottom: 2.5rem;
    }
    .countdown {
        gap: 1.5rem;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    header {
        margin-bottom: 1.5rem;
    }
    h1 {
        font-size: 3rem;
        margin-bottom: 1.2rem;
    }
    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .time-val {
        font-size: 2.5rem;
    }
    .countdown {
        gap: 1.2rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    header {
        margin-bottom: 1.5rem;
    }
    h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    .time-val {
        font-size: 2.2rem;
    }
    .time-label {
        font-size: 0.75rem;
    }
    .countdown {
        gap: 1rem;
    }
    .content-section {
        padding: 1rem;
    }
    .content-wrapper {
        padding: 2.5rem 1rem 3rem;
    }
    .logo {
        max-width: 150px;
    }
}

/* Spice Dust Particles */
.spice-dust {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9998;
    animation: dustFall 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    /* Mix blend for a more natural lighting effect over the background */
    mix-blend-mode: screen; 
}

@keyframes dustFall {
    0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}
