/* --- Root Variables --- */
:root {
    --bg-color: #1a1d24;      /* Dark graphite blue */
    --text-color: #e0e0e0;     /* Light gray */
    --accent-color: #00f0c0;   /* Bright cyan/turquoise */
    --input-bg: #2a2d34;
    --footer-color: #888;
    --error-color: #ff6b6b;   /* Red for errors */
}

/* --- Base Styles --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    overflow-x: hidden; /* Prevent horizontal scroll on animations */
}

.container {
    max-width: 650px;
    padding: 20px;
}

/* --- Logo --- */
.logo {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff; /* White for better glow effect */
    letter-spacing: 1px;
}

/* --- Headlines & Text --- */
.headline {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--accent-color); /* Accent color for main headline */
    min-height: 2.4em; /* Reserve space for typewriter text */
    font-weight: 700;
}

.subheadline {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 300;
}

.subheadline strong { /* Style the word "offers" slightly */
    font-weight: 400;
    color: #fff;
}


/* --- Signup Form --- */
.signup-form input[type="email"] {
    padding: 14px 18px;
    border: 1px solid var(--input-bg); /* Subtle border */
    background-color: var(--input-bg);
    color: var(--text-color);
    border-radius: 5px;
    margin-right: 8px;
    min-width: 300px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.signup-form input[type="email"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 240, 192, 0.5); /* Glow effect on focus */
    outline: none;
}

.cta-button {
    padding: 14px 30px;
    background-color: var(--accent-color);
    color: #111; /* Dark text on bright button */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background-color: #00d8ac; /* Slightly darker accent on hover */
    transform: translateY(-3px); /* Slight lift effect */
    box-shadow: 0 5px 15px rgba(0, 240, 192, 0.4); /* Stronger glow on hover */
}

/* --- Honeypot Field Styling --- */
/* Hides the honeypot field visually and from interaction */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* --- Form Message Area (for Fetch API) --- */
.form-message {
    margin-top: 20px;
    min-height: 1.5em; /* Reserve space for messages */
    font-weight: 400;
}

/* --- Footer --- */
footer {
    margin-top: 50px;
    font-size: 0.9em;
    color: var(--footer-color);
    font-weight: 300;
}

/* --- ANIMATIONS --- */

/* 1. Fade-In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    opacity: 0; /* Start hidden */
    animation: fadeIn 1s ease-out forwards; /* Apply animation */
}

/* 2. Glow for Logo */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color), 0 0 15px rgba(0, 240, 192, 0.5);
    }
    50% {
        text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color), 0 0 30px rgba(0, 240, 192, 0.7);
    }
}
.animate-glow {
    /* Apply a subtle, slow glow animation */
    animation: glow 4s infinite ease-in-out;
}

/* 3. Typewriter Cursor Blink */
.typewriter::after {
    content: '|';
    display: inline-block;
    margin-left: 3px; /* Small space after text */
    opacity: 1;
    color: var(--accent-color);
    animation: blink 0.7s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* Optional: Hide cursor when typing is complete */
.typewriter.typing-complete::after {
   animation: none;
   opacity: 0;
}


/* --- Animation Delays --- */
/* Stagger the appearance of elements */
.delay-1 { animation-delay: 1.5s; } /* Delay after typewriter likely finishes */
.delay-2 { animation-delay: 2.0s; }
.delay-3 { animation-delay: 2.5s; }

/* --- Responsive Adjustments --- */
@media (max-width: 520px) {
    .signup-form input[type="email"] {
        min-width: auto;
        width: calc(100% - 40px); /* Adjust width considering padding */
        margin-right: 0;
        margin-bottom: 10px; /* Stack elements */
    }
    .cta-button {
        width: 100%;
    }
    .headline {
        font-size: 1.8em;
        min-height: 3em; /* Allow more space for text wrapping */
    }
    .logo {
        font-size: 2.4em;
    }
}