/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e63946;
    --secondary-color: #f1faee;
    --accent-color: #a8dadc;
    --dark-color: #1d3557;
    --text-color: #333;
    --success-color: #06d6a0;
    --error-color: #ef476f;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px 40px;
}

.logo {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.3rem;
    color: var(--dark-color);
    font-style: italic;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 60px;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.subtitle {
    font-size: 1.4rem;
    color: #666;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.feature {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature p {
    color: #666;
    line-height: 1.7;
}

/* Value Proposition */
.value-prop {
    background: white;
    padding: 50px;
    border-radius: 12px;
    margin: 0 20px 60px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.value-prop h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}

.value-prop > p {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.benefits {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.benefits li {
    font-size: 1.1rem;
    padding: 12px 0;
    color: var(--dark-color);
    border-bottom: 1px solid #eee;
}

.benefits li:last-child {
    border-bottom: none;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #d62828 100%);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin: 0 20px 40px;
    color: white;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.cta > p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Signup Form */
.signup-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.form-group.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

#email {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: 3px solid white;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

#email:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(168, 218, 220, 0.3);
}

#submit-btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--dark-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

#submit-btn:hover:not(:disabled) {
    background: #0d1b2a;
    transform: scale(1.05);
}

#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    font-size: 1.1rem;
    min-height: 30px;
    font-weight: 600;
}

.form-message.success {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.form-message.error {
    color: white;
    background: rgba(0, 0, 0, 0.15);
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.message-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

#message {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    border: 3px solid white;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
}

#message:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(168, 218, 220, 0.3);
}

#message:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.character-count {
    text-align: right;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.privacy {
    margin-top: 30px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

footer a {
    color: #666;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .value-prop {
        padding: 30px 20px;
    }

    .cta {
        padding: 40px 20px;
    }

    .cta h2 {
        font-size: 1.6rem;
    }

    .form-group {
        flex-direction: column;
    }

    #email,
    #submit-btn {
        width: 100%;
        min-width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature,
.value-prop,
.cta {
    animation: fadeIn 0.6s ease-out;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }
