@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #3c5e40;
    --primary-hover: #2d4630;
    --secondary-color: #e8f5e9;
    --accent-color: #bbdefb;
    --text-dark: #1a1a1a;
    --text-muted: #5f6368;
    --bg-light: #fdfdfc;
    --white: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --header-height: 80px;
    --container-max: 1440px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(253, 253, 252, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-header {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(60, 94, 64, 0.2);
    display: inline-block;
}

.btn-header:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(60, 94, 64, 0.3);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(60, 94, 64, 0.2);
}

.btn-primary span {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(60, 94, 64, 0.3);
}

.btn-secondary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(60, 94, 64, 0.08);
}

.mobile-only {
    display: none;
}

.hero-content p.microcopy {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Hero Media */
.hero-media {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    animation: fadeInRight 1s ease-out forwards;
}

.hero-person {
    width: 100%;
    max-width: 540px;
    z-index: 1;
}

.hero-person img {
    width: 100%;
    display: block;
    border-radius: 40px;
}

.app-mockup {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 260px;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

.app-mockup img {
    width: 100%;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
}

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

.step-card {
    text-align: center;
    padding: 20px;
    animation: fadeInUp 1s ease-out forwards;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--primary-color);
    color: var(--white);
}

.step-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.step-card p {
    font-size: 16px;
    color: var(--text-muted);
}

/* Responsive */


@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        align-items: center;
    }

    .hero-media {
        order: 2;
        margin-top: 40px;
        min-height: 400px;
        /* Ensure space for absolute elements */
    }

    .app-mockup {
        width: 160px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
    }

    .app-mockup img {
        width: 100%;
    }

    @keyframes float-mobile {
        0% {
            transform: translate(-50%, 0px);
        }

        50% {
            transform: translate(-50%, -15px);
        }

        100% {
            transform: translate(-50%, 0px);
        }
    }

    .app-mockup {
        animation: float-mobile 6s ease-in-out infinite;
    }

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

    .how-it-works {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .nav-links {
        display: none;
    }

    .mobile-only {
        display: inline-flex;
    }
}
