:root {
    --primary: #592FE4;
    --rollover: #2F166F;
    --type: #180B39;
    --mid-tone: #625A75;
    --highlight: #EDE8F8;
    --ui-background: #F7F4FF;
    --page-background: #F7F4FF;
}

body {
    background-color: var(--page-background);
    color: var(--type);
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3C/defs%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.05"/%3E%3C/svg%3E');
}

.container {
    text-align: center;
    padding: 3rem;
    border-radius: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.1), 0 1rem 2rem rgba(0, 0, 0, 0.05);
    max-width: 90%;
    width: 600px;
}

h1 {
    color: var(--primary);
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
}

h2 {
    color: var(--mid-tone);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.countdown-item {
    background-color: var(--highlight);
    padding: 1rem;
    border-radius: 0.75rem;
    min-width: 80px;
}

.countdown-item span {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
}

.countdown-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mid-tone);
}

.subscription {
    margin-top: 2rem;
}

#subscription-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

#email {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--mid-tone);
    width: 300px;
    font-family: 'Poppins', sans-serif;
}

button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    box-shadow: 0 0.5rem 1rem rgba(89, 47, 228, 0.3);
}

button:hover {
    background-color: var(--rollover);
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(89, 47, 228, 0.4);
}

footer {
    margin-top: 3rem;
    color: var(--mid-tone);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--mid-tone);
    text-decoration: none;
    margin: 0 0.75rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.legal-text {
    text-align: left;
    max-width: 800px;
    background-color: white;
}

.legal-text h1,
.legal-text h2 {
    text-align: center;
}

.centered-heading {
    text-align: center;
}

@media (max-width: 600px) {
    .container {
        padding: 2rem;
    }
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1rem;
    }

    #subscription-form {
        flex-direction: column;
        align-items: center;
    }

    #email {
        width: 100%;
        max-width: 300px;
        margin-bottom: 0.5rem;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-item span {
        font-size: 2rem;
    }
}