/* --- CSS Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #E03351;
    --primary-color-dark: #F7971E;
    --secondary-color: #FFF1F3;
    --text-color-dark: #1e293b;
    --text-color-light: #475569;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --border-color: #e2e8f0;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1100px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color-light);
    background-color: var(--background-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Typography --- */
h1, h2, h3 {
    color: var(--text-color-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-image: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color-dark) 51%, var(--primary-color) 100%);
    background-size: 200% auto;
    color: white;
}
.btn-primary:hover {
    background-position: right center;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: #FADDE1;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* --- Header --- */
.main-header {
    padding: var(--spacing-md) 0;
    background-color: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.main-nav {
    display: none; /* Hidden on mobile */
}

/* --- Hero Section --- */
.hero {
    padding: var(--spacing-xl) 0;
    text-align: center;
}
.hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: var(--spacing-md) auto var(--spacing-lg);
}
.social-proof-small {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}
.hero-visual {
    margin-top: var(--spacing-lg);
}
.video-chat-mockup {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.video-participant-main img {
    border-radius: 16px;
}
.video-participant-main span, .video-participant-small span {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}
.video-participant-small {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30%;
    border: 2px solid white;
    border-radius: 12px;
    overflow: hidden;
}
.video-participant-small span {
    font-size: 0.7rem;
}
.timer-overlay {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.timer-overlay svg {
    width: 18px;
    height: 18px;
}

.hero-subtitle {
    margin: var(--spacing-md) auto var(--spacing-md);
}

.hero-form {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Key change: makes children fill the container width */
    gap: var(--spacing-md);
    max-width: 400px;     /* Sets a consistent width for the form */
    margin: var(--spacing-lg) auto 0; /* Centers the form block */
}

/* REPLACE the existing .hero-form .email-input rule with this one */
.hero-form .email-input {
    text-align: center; /* The min-width is no longer needed */
}


/* --- Sections General Styling --- */
section {
    padding: var(--spacing-xl) 0;
}
.how-it-works, .features, .final-cta {
    background-color: var(--surface-color);
}

/* --- How It Works Section --- */
.steps-grid {
    display: grid;
    gap: var(--spacing-lg);
    text-align: center;
}
.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    margin: 0 auto var(--spacing-md);
}
.step h3 {
    margin-bottom: var(--spacing-sm);
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    gap: var(--spacing-lg);
}
.feature-card {
    background: var(--background-color);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.feature-icon {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    gap: var(--spacing-lg);
}
.testimonial-card {
    background: var(--surface-color);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
}
.testimonial-card blockquote {
    font-style: italic;
    color: var(--text-color-dark);
    margin-bottom: var(--spacing-md);
}
.testimonial-card cite {
    font-weight: 600;
    color: var(--text-color-light);
    font-style: normal;
}

/* --- Final CTA Section --- */
.final-cta {
    text-align: center;
}
.cta-title {
    font-size: 2.2rem;
}
.final-cta p {
    margin-bottom: var(--spacing-lg);
}

.cta-form {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}
.email-input {
    padding: 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-width: 300px;
    font-family: var(--font-family);
}
.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--secondary-color);
}

/* --- Footer --- */
.main-footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    color: #64748b;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}
.footer-links a {
    color: #64748b;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--primary-color);
}
.footer-copyright {
    font-size: 0.9rem;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Media Queries (Tablet and up) --- */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    
    .main-nav {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
    }
    .main-nav a {
        color: var(--text-color-light);
        text-decoration: none;
        font-weight: 600;
    }
    .main-nav a:hover {
        color: var(--primary-color);
    }
    
    .hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--spacing-xl);
        text-align: left;
    }
    .hero-content {
        order: -1;
    }
    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 500px) {
    .cta-form, .hero-form  {
        flex-direction: column;
        align-items: stretch;
    }
    .email-input {
        min-width: 100%;
        text-align: center;
    }
    .hero-form .email-input {
        min-width: 100%;
    }
}
