:root {
    --background-start: #0a0014;
    --background-end: #0d001c;
    --primary-surface: #170037;
    --secondary-surface: #2a1a4a;
    --text-primary: #e6e6fa;
    --text-secondary: #a9a9a9;
    --accent-primary: #ffc0cb;
    --accent-secondary: #ffd700;
    --border-color: rgba(255, 192, 203, 0.2);
    --glow-color: rgba(255, 192, 203, 0.1);
    --font-family:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
}

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

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--background-start);
    background-image: linear-gradient(
        180deg,
        var(--background-start) 0%,
        var(--background-end) 100%
    );
    display: flex;
    flex-direction: column;
}

/* --- Layout Containers --- */

header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

main {
    flex-grow: 1;
    width: 100%;
    max-width: 1200px; /* Wider for feature grid */
    margin: 4rem auto; /* More vertical space */
    padding: 2rem;
    display: flex;
    flex-direction: column; /* Stack hero and features */
    align-items: center;
    gap: 5rem; /* Space between sections */
    text-align: center;
}

footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    text-align: center;
}

/* --- Typography & Elements --- */

h1 {
    font-size: 1rem; /* Reset browser default */
    font-weight: normal; /* Reset browser default */
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
}

#main-content {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
}

footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-primary);
}

.footer-separator {
    margin: 0 0.5rem;
    color: var(--border-color);
}

/* --- Components --- */

.button {
    display: inline-block;
    background-color: var(--secondary-surface);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.25rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
    font-family: var(--font-family);
    font-size: 0.9rem;
}

.button:hover {
    background-color: var(--primary-surface);
    box-shadow: 0 0 10px var(--glow-color);
}

/* --- Marketing & Waitlist Content --- */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
}

.hero-headline {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -1.5px;
}

.hero-subheadline {
    font-size: 1.25rem;
    max-width: 650px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.waitlist-container {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 500px;
}

.waitlist-prompt {
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

#waitlist-form {
    display: flex;
    gap: 0.5rem;
}

#waitlist-email {
    flex-grow: 1;
    background-color: var(--primary-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: box-shadow 0.2s ease;
}

#waitlist-email::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

#waitlist-email:focus {
    outline: none;
    box-shadow: 0 0 10px var(--glow-color);
}

#waitlist-submit {
    /* Reuse button styles */
    display: inline-block;
    background-color: var(--secondary-surface);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
    font-family: var(--font-family);
    font-size: 1rem;
    white-space: nowrap;
}

#waitlist-submit:hover {
    background-color: var(--primary-surface);
    box-shadow: 0 0 10px var(--glow-color);
}

#waitlist-status {
    margin-top: 1rem;
    min-height: 1.2em;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-secondary);
    transition: color 0.3s ease;
}

#waitlist-status.error {
    color: var(--accent-primary);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.feature-card {
    background-color: rgba(23, 0, 55, 0.5); /* Slightly transparent surface */
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-icon {
    width: 100%;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- Responsive adjustments --- */
@media (max-width: 960px) {
    .features {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 500px) {
    main {
        margin-top: 2rem;
        gap: 3rem;
    }
    .hero-headline {
        font-size: 2.2rem;
    }
    .hero-subheadline {
        font-size: 1.1rem;
    }
    #waitlist-form {
        flex-direction: column;
    }
}
