:root {
    --primary-color: #f0f0f0;
    --secondary-color: #4CAF50;
    --background-color: #121212;
    --card-color: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
}

header.main-header {
    width: 100%;
    text-align: center;
    padding: 40px 0;
}

.logo {
    font-size: 4.5em;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
}

main {
    max-width: 900px;
    margin: auto;
    padding: 0 20px;
}

/* Animations */
.intro-section {
    padding: 100px 0;
    text-align: center;
}

.intro-text p {
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0;
    animation: pop-in 1s forwards;
}

.final-line {
    font-size: 2.5em;
    font-weight: 700;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1.2s; }

@keyframes pop-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Blocks */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 50px 0;
    text-align: center;
}

.feature-block {
    background-color: var(--card-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-10px);
}

.feature-block h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Signup Section */
.signup-section {
    text-align: center;
    padding: 50px 0;
}

#signup-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

#signup-form input {
    padding: 12px 15px;
    width: 300px;
    border: none;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: var(--primary-color);
}

#signup-form button {
    padding: 12px 25px;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    color: var(--background-color);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#signup-form button:hover {
    background-color: #3b873f;
}

footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8em;
    color: #888;
}

/* --- RESPONSIVE DESIGN (Media Queries) --- */

@media (max-width: 768px) {
    /* General Layout Adjustments */
    main {
        padding: 0 15px; /* Reduce side padding on small screens */
    }

    /* Logo and Header */
    .logo {
        font-size: 3em; /* Shrink logo size */
        padding-bottom: 5px;
    }

    header.main-header {
        padding: 20px 0; /* Reduce header padding */
    }

    /* Intro Section Text */
    .intro-section {
        padding: 50px 0; /* Reduce top/bottom padding */
    }

    .intro-text p {
        font-size: 1.2em; /* Shrink main intro text */
        margin-bottom: 15px;
    }

    .animated-subtext {
        font-size: 1em !important; /* Ensure subtext is readable */
    }

    /* Feature Blocks */
    .features-section {
        /* Change the grid to stack vertically on small screens */
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 30px 0;
    }

    .feature-block {
        padding: 20px;
    }

    /* Signup Form */
    .signup-section h2 {
        font-size: 1.5em;
    }

    #signup-form {
        /* Change the form layout to stack input and button vertically */
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    #signup-form input {
        width: 80%; /* Input takes up more width */
        max-width: 350px;
    }

    #signup-form button {
        width: 80%; /* Button takes up more width */
        max-width: 350px;
    }
}