:root {
    --primary-red: #8B0000; /* Deep Red, from your logo */
    --secondary-red: #C02E2E; /* Slightly lighter red */
    --dark-text: #2c3e50;
    --light-text: #ecf0f1;
    --background-light: #f4f7f6;
    --background-dark: #29323c;
    --card-background: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--background-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative; /* For background animation positioning */
}

/* Subtle background animation */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    opacity: 0.3;
    z-index: -1;
    animation: gradientShift 20s ease infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}


.header {
    background-color: var(--card-background);
    padding: 20px 40px;
    box-shadow: 0 2px 10px var(--shadow-light);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px; /* Smaller for header */
    height: auto;
    margin-right: 15px;
}

.app-name {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 1px;
}

.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically if space allows */
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    margin-bottom: 60px;
}

.hero-section h1 {
    font-size: 3.5em;
    color: var(--primary-red);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .sub-headline {
    font-size: 1.4em;
    color: var(--dark-text);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    width: 100%;
}

.feature-item {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.feature-icon {
    font-size: 3em;
    color: var(--secondary-red);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.6em;
    color: var(--primary-red);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
}

.cta-section {
    background-color: var(--background-dark);
    color: var(--light-text);
    padding: 60px 20px;
    border-radius: 12px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.cta-section h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--light-text);
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 300;
}

.signup-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allows wrapping on small screens */
}

.signup-form input[type="email"] {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    width: 350px; /* Fixed width, will adjust with flex-wrap */
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-text);
}

.signup-form button {
    background-color: var(--secondary-red);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.signup-form button:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
}

.privacy-note {
    font-size: 0.9em;
    margin-top: 20px;
    opacity: 0.8;
}

.footer {
    background-color: var(--background-dark);
    color: var(--light-text);
    padding: 30px 20px;
    text-align: center;
    width: 100%;
}

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.8em;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-red);
}

.footer p {
    font-size: 0.9em;
    opacity: 0.7;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 3em;
    }
    .hero-section .sub-headline {
        font-size: 1.2em;
    }
    .features-section {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    .cta-section h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    .app-name {
        font-size: 1.8em;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section .sub-headline {
        font-size: 1.1em;
    }
    .features-section {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        max-width: 400px; /* Constrain width for stacked items */
        margin: 0 auto 50px auto;
    }
    .feature-item {
        padding: 25px;
    }
    .cta-section {
        padding: 40px 20px;
    }
    .cta-section h2 {
        font-size: 1.8em;
    }
    .signup-form {
        flex-direction: column;
        align-items: center;
    }
    .signup-form input[type="email"] {
        width: 100%;
        max-width: 300px;
    }
    .signup-form button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
    }
    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .app-name {
        font-size: 1.5em;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section .sub-headline {
        font-size: 1em;
    }
    .cta-section h2 {
        font-size: 1.5em;
    }
    .social-links a {
        font-size: 1.5em;
        margin: 0 10px;
    }
}