:root {
    --color-text: #f4ede4;
    --color-text-muted: #bdae9d;
    --color-accent: #c48b5d;
    --color-accent-hover: #b07647;
    --color-bg-dark: #12100e;
    --glass-bg: rgba(20, 18, 16, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* We use the locally saved generated image */
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.65) contrast(1.1);
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 25s infinite alternate linear;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Elegant gradient to make text readable */
    background: linear-gradient(135deg, rgba(18, 16, 14, 0.95) 0%, rgba(18, 16, 14, 0.3) 100%);
    z-index: -1;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 3rem 8%;
    position: relative;
    z-index: 1;
}

.logo-container {
    animation: fadeInDown 1s ease forwards;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.hero-text {
    max-width: 700px;
    margin-top: auto;
    margin-bottom: auto;
}

.headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.subheadline {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 550px;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.waitlist-form {
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    border-radius: 100px;
    display: inline-block;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
}

input[type="email"]::placeholder {
    color: rgba(244, 237, 228, 0.4);
}

.btn-submit {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 0 2.5rem;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-submit:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(196, 139, 93, 0.2);
}

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

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-message {
    color: var(--color-accent);
    padding: 1.25rem;
    text-align: center;
    font-weight: 500;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
    padding-top: 2rem;
}

/* Animations */
@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 2rem 5%;
    }
    .headline {
        font-size: 3rem;
    }
    .input-group {
        flex-direction: column;
    }
    .waitlist-form {
        border-radius: 1rem;
        padding: 1.5rem;
        background: transparent;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
        max-width: 100%;
    }
    input[type="email"] {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        margin-bottom: 1rem;
        width: 100%;
    }
    .btn-submit {
        padding: 1.25rem;
        border-radius: 8px;
        width: 100%;
    }
    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
