/* Sheep Jam: Animal Farm - Landing page styles
   Grass green + white, cozy farm theme */

:root {
    --green-primary: #4CAF50;
    --green-dark: #2E7D32;
    --green-light: #66BB6A;
    --green-pale: #C8E6C9;
    --green-bg: #E8F5E9;
    --white: #ffffff;
    --text-dark: #1B5E20;
    --text-muted: #388E3C;
    --shadow: rgba(46, 125, 50, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Nunito', sans-serif;
}

body.dark {
    --green-bg: #1B3D1F;
    --white: #0D1F0F;
    --text-dark: #C8E6C9;
    --text-muted: #A5D6A7;
    --shadow: rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--green-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    transition: background 0.3s, box-shadow 0.3s;
}

body.dark .navbar {
    background: rgba(13, 31, 15, 0.95);
}

.navbar.scrolled {
    box-shadow: 0 4px 24px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--green-dark);
}

body.dark .nav-menu a:hover {
    color: var(--green-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--green-light);
    background: transparent;
    color: var(--green-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.theme-toggle:hover {
    background: var(--green-pale);
    transform: scale(1.05);
}

body.dark .theme-toggle {
    border-color: var(--green-light);
    color: var(--green-light);
}

.btn-download-nav {
    display: inline-block;
    padding: 10px 20px;
    background: var(--green-primary);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-download-nav:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--green-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
    min-height: 100vh;
    padding: 100px 24px 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-bg) 0%, var(--green-pale) 50%, var(--green-bg) 100%);
    z-index: -1;
}

body.dark .hero-bg {
    background: linear-gradient(135deg, var(--green-bg) 0%, #0D2810 50%, var(--green-bg) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--green-dark);
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow);
}

.btn-app-store {
    background: #000;
    color: #fff;
}

.btn-app-store:hover {
    background: #333;
}

.btn-google-play {
    background: var(--green-primary);
    color: var(--white);
}

.btn-google-play:hover {
    background: var(--green-dark);
}

.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 0 4px #333;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
}

.banner-section {
    padding: 40px 0;
    background: var(--white);
}

body.dark .banner-section {
    background: var(--green-bg);
}

.banner-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
}

/* ========== Features ========== */
.features {
    padding: 80px 0;
    background: var(--white);
}

body.dark .features {
    background: var(--green-bg);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--green-bg);
    padding: 28px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid var(--green-pale);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--shadow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--green-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ========== Testimonials ========== */
.testimonials {
    padding: 60px 0;
    background: var(--green-pale);
}

body.dark .testimonials {
    background: #0D2810;
}

.testimonial-quote {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-quote p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.testimonial-quote span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.screenshots {
    padding: 80px 0;
    background: var(--white);
}

body.dark .screenshots {
    background: var(--green-bg);
}

.screenshots .section-desc {
    margin-bottom: 40px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow);
    transition: transform 0.3s;
}

.screenshot-item:hover {
    transform: scale(1.03);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 9 / 16;
}

.faq {
    padding: 60px 0;
    background: var(--white);
}

body.dark .faq {
    background: var(--green-bg);
}

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

.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--green-pale);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========== Download 下载区 ========== */
.download {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--green-pale) 0%, var(--green-bg) 100%);
    text-align: center;
}

body.dark .download {
    background: linear-gradient(180deg, #0D2810 0%, var(--green-bg) 100%);
}

.download-desc {
    color: var(--text-muted);
    margin-bottom: 28px;
}

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

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 360px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

body.dark .modal-content {
    background: #1B3D1F;
    color: var(--text-dark);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-message {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 8px;
}


.footer {
    padding: 48px 24px 24px;
    background: var(--green-dark);
    color: var(--white);
    text-align: center;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.footer-app-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-link {
    color: var(--green-pale);
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.95rem;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

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

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

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 24px 24px;
        box-shadow: -4px 0 20px var(--shadow);
        transition: right 0.3s;
        z-index: 999;
    }

    body.dark .nav-menu {
        background: #1B3D1F;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-actions {
        position: fixed;
        top: 12px;
        right: 60px;
        z-index: 1001;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hero {
        padding-top: 80px;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
        border-radius: 28px;
    }

    .phone-screen {
        border-radius: 20px;
    }

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

@media (max-width: 480px) {
    .hero-cta,
    .download-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
