/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007AFF; /* Blue from your Login/Profile Setup */
    /* --primary-color: #34C759; */ /* Alternative: Green from your SignUp */
    --dark-color: #1c1c1e;
    --mid-gray-color: #636366;
    --light-gray-color: #f2f2f7;
    --bg-color: #ffffff;
    --sans-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--sans-font);
    background-color: var(--bg-color);
    color: var(--dark-color);
    line-height: 1.6;
}

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

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3rem; /* 48px */
}

h2 {
    font-size: 2.25rem; /* 36px */
    text-align: center;
    margin-bottom: 40px;
}

p {
    font-size: 1.125rem; /* 18px */
    color: var(--mid-gray-color);
}

section {
    padding: 80px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #005ec4;
}

.btn-secondary {
    background-color: var(--light-gray-color);
    color: var(--dark-color);
}
.btn-secondary:hover {
    background-color: #e5e5ea;
}

.btn-secondary-outline {
    border-color: #e5e5ea;
    font-weight: 600;
}
.btn-secondary-outline:hover {
    background-color: #f2f2f7;
}

.cta-buttons {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

/* --- Header & Navigation --- */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray-color);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--mid-gray-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 1.25rem;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Features Section --- */
.features {
    background-color: var(--light-gray-color);
}

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

.feature-card {
    background-color: var(--bg-color);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 1rem;
    color: var(--mid-gray-color);
}

/* --- How It Works Section --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.step-card {
    padding: 24px;
}

.step-card span {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--light-gray-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 1rem;
}

/* --- Final CTA Section --- */
.final-cta {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}

.final-cta h2 {
    color: #fff;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.final-cta .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
}
.final-cta .btn-primary:hover {
    background-color: #f2f2f7;
}
.final-cta .btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.final-cta .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* --- Footer --- */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--light-gray-color);
}

footer p {
    font-size: 0.9rem;
    color: var(--mid-gray-color);
}

/* --- Animation --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none; /* Simple hiding for demo. You could add a hamburger menu. */
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-text p {
        font-size: 1.125rem;
    }
    .cta-buttons {
        justify-content: center;
        flex-direction: column;
    }
    .hero-image img {
        max-width: 280px;
    }

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