/* Basic Reset & Box Sizing */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-blue: #2c3e50; /* Dark Charcoal Blue */
    --accent-teal: #1abc9c; /* Bright Teal */
    --light-gray: #ecf0f1; /* Off-white */
    --dark-text: #34495e; /* Darker Charcoal */
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-text);
    background: linear-gradient(135deg, #005d7c 0%, #012936 100%); /* Soft blue gradient background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px; /* Add some padding for smaller screens */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 40px;
    max-width: 900px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header & Logo */
.main-header {
    margin-bottom: 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.8em;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block; /* To allow pseudo-elements positioning */
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-teal);
    border-radius: 2px;
}

/* Hero Section */
.hero-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-section .tagline {
    font-size: 1.1em;
    color: var(--dark-text);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Countdown Section */
.countdown-section {
    background-color: var(--light-gray);
    padding: 30px 20px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.countdown-section h3 {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 25px; /* Space between boxes */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.timer-box {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 20px 25px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.timer-box:hover {
    transform: translateY(-5px);
}

.timer-box .number {
    font-family: var(--font-heading);
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.timer-box .label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Launched State */
.launched {
    font-family: var(--font-heading);
    font-size: 2.2em;
    color: var(--accent-teal);
    font-weight: 700;
    margin: 20px 0;
}

.go-to-website-btn {
    display: inline-block;
    background-color: var(--accent-teal);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.go-to-website-btn:hover {
    background-color: #16a085; /* Slightly darker teal */
    transform: translateY(-2px);
}


/* Newsletter Section */
.newsletter-section h3 {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.newsletter-section p {
    font-size: 1em;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input[type="email"] {
    flex-grow: 1;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1em;
    color: var(--dark-text);
    min-width: 250px; /* Ensure input is not too small */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2); /* Teal shadow on focus */
}

.subscribe-form button {
    background-color: var(--accent-teal);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.subscribe-form button:hover {
    background-color: #16a085; /* Slightly darker teal */
    transform: translateY(-2px);
}

/* Footer */
.main-footer {
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    margin-top: 30px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.main-footer .social-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-footer .social-links a {
    color: var(--primary-blue);
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.main-footer .social-links a:hover {
    color: var(--accent-teal);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        gap: 20px;
    }

    .logo {
        font-size: 2.2em;
    }

    .hero-section h2 {
        font-size: 1.8em;
    }

    .hero-section .tagline {
        font-size: 1em;
    }

    .countdown-section h3,
    .newsletter-section h3 {
        font-size: 1.5em;
    }

    .timer-box {
        min-width: 80px;
        padding: 15px 18px;
    }

    .timer-box .number {
        font-size: 2.5em;
    }

    .timer-box .label {
        font-size: 0.8em;
    }

    .subscribe-form {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .subscribe-form input[type="email"],
    .subscribe-form button {
        width: 100%; /* Make them full width on small screens */
        max-width: 350px; /* Constrain max width for design */
    }

    .main-footer .social-links a {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 20px 15px;
    }
    .logo {
        font-size: 1.8em;
    }
    .logo::after {
        width: 40px;
        height: 3px;
        bottom: -5px;
    }
    .hero-section h2 {
        font-size: 1.5em;
    }
    .hero-section .tagline {
        font-size: 0.9em;
    }
    .countdown-timer {
        gap: 15px;
    }
    .timer-box {
        min-width: unset; /* Let content dictate width */
        padding: 12px 15px;
    }
    .timer-box .number {
        font-size: 2em;
    }
    .launched {
        font-size: 1.8em;
    }
    .go-to-website-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
}