/**
 * PlantKeeper Website Styles
 * Color Scheme: Fresh Leaf Green / Deep Forest / Sun Yellow
 */

:root {
    --color-primary: #2FB67A;
    --color-primary-light: #5FD49E;
    --color-primary-dark: #1F8758;
    --color-primary-pale: #E8F8F0;
    --color-secondary: #0F2E22;
    --color-bg-light: #F5FBF7;
    --color-bg-mint: #E8F8F0;
    --color-bg-card: #FFFFFF;
    --color-accent: #FFC857;
    --color-accent-light: #FFE0A3;
    --color-water: #4FB6E0;
    --color-disease: #9B5DE5;
    --color-danger: #E5594F;
    --color-warm: #FF8E5A;
    --color-text: #0F2E22;
    --color-text-secondary: #3D5A4D;
    --color-text-muted: #789487;
    --color-border: rgba(15, 46, 34, 0.14);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Nunito Sans', Verdana, sans-serif;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 48px;
    --spacing-2xl: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 32px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img, svg {
    max-width: 100%;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-primary-light));
    color: #fff;
    box-shadow: 0 12px 30px rgba(47, 182, 122, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(47, 182, 122, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.64);
    color: var(--color-primary-dark);
    border: 2px solid rgba(47, 182, 122, 0.36);
}

.btn-secondary:hover {
    background: var(--color-primary-pale);
    border-color: var(--color-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.08rem;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(245, 251, 247, 0.94);
    backdrop-filter: blur(16px);
    padding: 14px 0;
    box-shadow: 0 2px 24px rgba(15, 46, 34, 0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.42rem;
    font-weight: 800;
    color: var(--color-text);
}

.logo img {
    height: 42px;
    width: 42px;
    border-radius: 12px;
    object-fit: cover;
}

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

.nav-links a {
    font-weight: 800;
    color: var(--color-text-secondary);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

.hero {
    min-height: 100vh;
    padding: 150px 0 92px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 200, 87, 0.16) 0%, rgba(255, 200, 87, 0) 35%),
        linear-gradient(180deg, #F5FBF7 0%, #E8F8F0 54%, #F5FBF7 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 610px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(47, 182, 122, 0.12);
    border: 1px solid rgba(47, 182, 122, 0.2);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 24px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: clamp(2.55rem, 6vw, 4.85rem);
    margin-bottom: 22px;
    color: var(--color-text);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), #74DFAE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 540px;
    margin-bottom: 32px;
    font-size: 1.18rem;
    color: var(--color-text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 42px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.stat-label {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 620px;
    background:
        linear-gradient(140deg, rgba(47, 182, 122, 0.14), rgba(255, 200, 87, 0.12)),
        url("https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?auto=format&fit=crop&w=1200&q=80") center/cover;
    border-radius: 42px;
    box-shadow: 0 34px 90px rgba(15, 46, 34, 0.16);
}

.phone-frame {
    width: min(340px, 86vw);
    padding: 12px;
    border-radius: 42px;
    background: linear-gradient(145deg, #0A1F17, #245F43);
    box-shadow: 0 32px 70px rgba(15, 46, 34, 0.35);
}

.real-phone {
    overflow: hidden;
    background: #0A1F17;
}

.real-phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
}

section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.features {
    background: var(--color-bg-light);
}

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

.feature-card, .category-card, .pricing-card, .screenshot-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.feature-card {
    padding: 30px;
}

.feature-card:hover, .category-card:hover, .screenshot-card:hover {
    transform: translateY(-5px);
    border-color: rgba(47, 182, 122, 0.46);
    box-shadow: 0 22px 44px rgba(15, 46, 34, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(47, 182, 122, 0.14), rgba(255, 200, 87, 0.14));
}

.feature-icon svg {
    width: 29px;
    height: 29px;
    color: var(--color-primary-dark);
}

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

.feature-card p, .category-card p {
    color: var(--color-text-secondary);
    font-size: 0.96rem;
}

.how-it-works, .faq {
    background: var(--color-bg-mint);
}

.steps {
    max-width: 940px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.step:last-child {
    margin-bottom: 0;
}

.step:nth-child(even) {
    direction: rtl;
}

.step:nth-child(even) > * {
    direction: ltr;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
}

.step-content h3 {
    font-size: 1.55rem;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--color-text-secondary);
    max-width: 380px;
}

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

.mini-phone {
    width: 230px;
    height: 380px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    border-radius: 34px;
    border: 10px solid var(--color-secondary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 24px 54px rgba(15, 46, 34, 0.18);
}

.real-step-phone {
    height: auto;
    padding: 8px;
    align-items: center;
    background: #0A1F17;
    overflow: hidden;
}

.real-step-phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.screenshots, .categories {
    background: var(--color-bg-light);
}

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

.screenshot-card {
    padding: 24px;
    box-shadow: 0 18px 38px rgba(15, 46, 34, 0.07);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.screenshot-img-wrap {
    flex: 1;
    border-radius: 28px;
    overflow: hidden;
    background: #F0F7F2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 560px;
}

.screenshot-caption {
    padding: 0 4px;
}

.screenshot-caption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.screenshot-caption p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

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

.category-card {
    padding: 32px;
    text-align: center;
}

.category-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: var(--color-primary-pale);
    position: relative;
}

.category-icon::before {
    content: "";
    position: absolute;
}

.water-icon::before {
    width: 24px;
    height: 32px;
    left: 17px;
    top: 13px;
    border-radius: 50% 50% 54% 54%;
    background: var(--color-water);
    transform: rotate(16deg);
}

.light-icon::before {
    width: 28px;
    height: 28px;
    left: 15px;
    top: 15px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 8px rgba(255, 200, 87, 0.22);
}

.disease-icon::before {
    width: 34px;
    height: 34px;
    left: 12px;
    top: 12px;
    border-radius: 50% 0 50% 50%;
    background: var(--color-disease);
    transform: rotate(-18deg);
}

.pest-icon::before {
    width: 30px;
    height: 24px;
    left: 14px;
    top: 17px;
    border-radius: 50%;
    background: var(--color-danger);
}

.journal-icon::before {
    width: 30px;
    height: 36px;
    left: 14px;
    top: 11px;
    border-radius: 6px;
    background: var(--color-primary);
}

.pet-icon::before {
    width: 30px;
    height: 20px;
    left: 14px;
    top: 22px;
    border-radius: 20px 20px 14px 14px;
    background: var(--color-warm);
}

.category-card h3 {
    margin-bottom: 9px;
    font-size: 1.18rem;
}

.pricing {
    background: var(--color-bg-card);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 850px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 40px;
    background: var(--color-bg-light);
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 24px 64px rgba(47, 182, 122, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: #5C4300;
    font-size: 0.84rem;
    font-weight: 900;
}

.pricing-header h3 {
    font-size: 1.45rem;
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.price .currency {
    font-size: 1.45rem;
    color: var(--color-text-secondary);
}

.price .amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text);
}

.price .period, .pricing-header p {
    color: var(--color-text-muted);
}

.pricing-header p {
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-weight: 700;
}

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

.pricing-features li.disabled {
    color: var(--color-text-muted);
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
}

.pricing-features li.disabled svg {
    stroke: var(--color-text-muted);
}

.pricing-card .btn {
    width: 100%;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-primary-dark);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--color-text-secondary);
    stroke-width: 2;
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 220px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--color-text-secondary);
}

.download {
    background: linear-gradient(180deg, var(--color-bg-mint) 0%, var(--color-bg-light) 100%);
    text-align: center;
}

.download-content {
    max-width: 650px;
    margin: 0 auto;
}

.download-icon {
    width: 86px;
    height: 86px;
    margin-bottom: 18px;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(15, 46, 34, 0.18);
}

.download h2 {
    margin-bottom: 16px;
}

.download p {
    color: var(--color-text-secondary);
    font-size: 1.12rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 40px 0 24px;
    flex-wrap: wrap;
}

.store-badge img {
    height: 54px;
    transition: var(--transition);
}

.store-badge:hover img {
    transform: scale(1.04);
}

.download-note {
    color: var(--color-text-muted) !important;
    font-size: 0.92rem !important;
}

.footer {
    background: var(--color-bg-card);
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    margin-top: 16px;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-weight: 700;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons, .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        min-height: 560px;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .navbar .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.active {
        position: absolute;
        top: 76px;
        left: 24px;
        right: 24px;
        display: grid;
        gap: 14px;
        padding: 20px;
        background: rgba(245, 251, 247, 0.98);
        border: 1px solid var(--color-border);
        border-radius: 20px;
        box-shadow: 0 18px 40px rgba(15, 46, 34, 0.12);
    }

    .hero {
        padding-top: 112px;
    }

    .hero-image {
        min-height: auto;
        padding: 28px 0;
        border-radius: 32px;
    }

    .hero-phone {
        transform: scale(0.92);
    }

    .features-grid, .screenshots-grid, .categories-grid, .pricing-cards {
        grid-template-columns: 1fr;
    }

    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step:nth-child(even) {
        direction: ltr;
    }

    .step-number {
        margin: 0 auto 16px;
    }

    .step-content p {
        max-width: none;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .hero-stats, .hero-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .btn-lg {
        width: 100%;
    }

    .phone-frame {
        width: 100%;
    }

    .hero-phone {
        transform: none;
    }

    .pricing-card {
        padding: 32px 24px;
    }
}
