/* General Body Styles */
body {
    font-family: "Inter", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f2f5; /* Light mode background */
    font-size: 16px;
    line-height: 1.6;
    color: #333; /* Light mode default text color */
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for dark mode toggle */
}

/* Wrapper to push footer to the bottom */
.main-content-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
}

/* Main Container Styling */
.container {
    background-color: #ffffff; /* Light mode container background */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Light mode shadow */
    max-width: 600px;
    width: 90%;
    box-sizing: border-box;
    text-align: center; /* Center all text and inline-block elements within the container */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

/* Logo Styling */
.logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Heading Styles */
h1 {
    color: #2c3e50; /* Darker heading color */
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1.2;
    transition: color 0.3s ease; /* Smooth transition */
}

h2 {
    color: #34495e; /* Slightly lighter heading color */
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
    transition: color 0.3s ease; /* Smooth transition */
}

/* Paragraph Styles */
p {
    color: #666; /* Grey text color */
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Feature List Styles */
.features-teaser ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    display: flex; /* Use flexbox for list items */
    flex-direction: column; /* Stack them vertically */
    align-items: center; /* Center list items horizontally */
}

.features-teaser li {
    background-color: #ecf0f1; /* Light mode list item background */
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 1em;
    color: #555; /* Light mode list item text color */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
    max-width: 90%; /* Limit width to allow centering */
    width: auto; /* Allow content to dictate width up to max-width */
}

/* Signup Section Styles */
.signup-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f7f9fb; /* Light mode signup section background */
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle inner shadow */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.signup-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.signup-section input[type="email"] {
    width: 80%;
    max-width: 350px;
    padding: 15px;
    border: 1px solid #ddd; /* Light mode border */
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    background-color: #ffffff; /* Light mode input background */
    color: #333; /* Light mode input text */
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.signup-section button {
    width: 80%;
    max-width: 350px;
    padding: 15px 25px;
    background-color: #007bff; /* Primary button color */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.signup-section button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Social Links Styling */
.social-links {
    margin-top: 30px;
    margin-bottom: 20px;
    /* text-align: center; -- This is now handled by the .container's text-align */
}

.social-links p {
    margin-bottom: 15px;
    font-weight: bold;
}

.social-links a {
    color: #007bff; /* Light mode link color */
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Footer Styling */
footer {
    padding: 20px;
    border-top: 1px solid #eee; /* Light mode border */
    font-size: 0.85em;
    color: #999; /* Light mode footer text */
    width: 100%;
    box-sizing: border-box;
    background-color: #f0f2f5; /* Light mode footer background */
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* Smooth transition */
}

footer a {
    color: #999; /* Light mode footer link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #666;
    text-decoration: underline;
}

/* --- Dark Mode Styles --- */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .container {
        background-color: #2c2c2c;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }

    h1, h2 {
        color: #f0f0f0;
    }

    p {
        color: #c0c0c0;
    }

    .features-teaser li {
        background-color: #3a3a3a;
        color: #e0e0e0;
    }

    .signup-section {
        background-color: #333333;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .signup-section input[type="email"] {
        background-color: #444444;
        border-color: #555555;
        color: #e0e0e0;
    }

    .signup-section input[type="email"]::placeholder {
        color: #a0a0a0;
    }

    .social-links a {
        color: #87ceeb;
    }

    .social-links a:hover {
        color: #5cb3e0;
    }

    footer {
        background-color: #1a1a1a;
        border-top-color: #3a3a3a;
        color: #a0a0a0;
    }

    footer a {
        color: #a0a0a0;
    }

    footer a:hover {
        color: #e0e0e0;
    }
}

/* --- Responsive Adjustments with Media Queries --- */

/* For screens smaller than 768px (e.g., tablets in portrait, large phones) */
@media (max-width: 768px) {
    .container {
        padding: 30px;
    }
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.6em;
    }
    p {
        font-size: 1em;
    }
    .logo {
        max-width: 200px;
    }
    .signup-section input[type="email"],
    .signup-section button {
        width: 90%;
    }
}

/* For screens smaller than 480px (e.g., most mobile phones) */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        width: 95%;
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.4em;
    }
    p {
        font-size: 0.95em;
    }
    .logo {
        max-width: 150px;
    }
    .signup-section form {
        gap: 10px;
    }
    .signup-section input[type="email"],
    .signup-section button {
        width: 100%;
    }
    .social-links a {
        margin: 0 10px;
        font-size: 1em;
    }
}
