/* ===== Font Face ===== */
@font-face {
    font-family: 'AliFont';
    src: url('../static/fonts/ali.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #FCFDF9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Colors ===== */
:root {
    --primary-green: #096f3d;
    --primary-light: #4cbf56;
    --bg-warm: #FCFDF9;
    --bg-light: #E0F2F1;
    --gradient: linear-gradient(135deg, #4cbf56, #096f3d);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-btn: 0 4px 16px rgba(9,111,61,0.3);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    padding: 16px 0;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
    font-family: AliFont, serif;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    color: #555;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-block;
    padding: 10px 24px;
    background: var(--gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s;
    box-shadow: var(--shadow-btn);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9,111,61,0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-green);
    transition: all 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(76,191,86,0.12), rgba(9,111,61,0.08));
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(76,191,86,0.08);
    bottom: 100px;
    left: -50px;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: rgba(9,111,61,0.06);
    top: 40%;
    left: 30%;
    animation-delay: 4s;
}

.circle-4 {
    width: 100px;
    height: 100px;
    background: rgba(76,191,86,0.1);
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Clouds */
.cloud {
    position: absolute;
    background: rgba(255,255,255,0.6);
    border-radius: 50px;
    animation: cloudMove 20s linear infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud-1 {
    width: 100px;
    height: 30px;
    top: 15%;
    left: 10%;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 20px;
}

.cloud-1::after {
    width: 40px;
    height: 40px;
    top: -15px;
    left: 50px;
}

.cloud-2 {
    width: 80px;
    height: 25px;
    top: 25%;
    right: 15%;
    animation-delay: 5s;
}

.cloud-2::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
}

.cloud-2::after {
    width: 30px;
    height: 30px;
    top: -12px;
    left: 40px;
}

.cloud-3 {
    width: 120px;
    height: 35px;
    top: 35%;
    left: 50%;
    animation-delay: 10s;
}

.cloud-3::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 25px;
}

.cloud-3::after {
    width: 45px;
    height: 45px;
    top: -18px;
    left: 60px;
}

@keyframes cloudMove {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

/* Mountains */
.hero-mountain {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 0;
    pointer-events: none;
}

.mountain {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.mountain-1 {
    left: -50px;
    border-width: 0 150px 120px 150px;
    border-color: transparent transparent rgba(168,213,162,0.3) transparent;
    animation: breathe 8s ease-in-out infinite;
}

.mountain-2 {
    left: 150px;
    border-width: 0 180px 100px 180px;
    border-color: transparent transparent rgba(123,196,127,0.25) transparent;
    animation: breathe 10s ease-in-out infinite reverse;
}

.mountain-3 {
    right: -60px;
    border-width: 0 160px 90px 160px;
    border-color: transparent transparent rgba(76,191,86,0.2) transparent;
    animation: breathe 7s ease-in-out infinite 1s;
}

@keyframes breathe {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.05); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px 0;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: AliFont, serif;
}

.title-highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slogan {
    font-size: 18px;
    color: var(--primary-light);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(9,111,61,0.4);
}

.btn-secondary {
    background: #fff;
    color: var(--primary-green);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
}

/* Phone Mockup */
.hero-phone {
    flex: 0 0 400px;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    margin: 0 auto;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Stats Section ===== */
.stats-section {
    background: var(--gradient);
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    color: #fff;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    display: inline;
    font-family: AliFont, serif;
}

.stat-unit {
    font-size: 24px;
    font-weight: 600;
    display: inline;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 8px;
}

/* ===== Features Section ===== */
.features-section {
    padding: 100px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    font-family: AliFont, serif;
}

.section-subtitle {
    font-size: 16px;
    color: #999;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.features-grid-3 {
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(76,191,86,0.1), rgba(9,111,61,0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
    background: var(--gradient);
}

.feature-card:hover .feature-icon-wrapper svg {
    fill: #fff;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
}

/* ===== Screenshots Section ===== */
.screenshots-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.screenshots-swiper {
    padding: 40px 60px;
}

.screenshot-card {
    text-align: center;
}

.screenshot-phone {
    width: 220px;
    height: 440px;
    margin: 0 auto 16px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.screenshot-phone:hover {
    transform: scale(1.05);
}

.screenshot-phone img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
}

.screenshot-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Swiper Custom */
.screenshots-swiper .swiper-button-prev,
.screenshots-swiper .swiper-button-next {
    color: var(--primary-green);
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.screenshots-swiper .swiper-button-prev::after,
.screenshots-swiper .swiper-button-next::after {
    font-size: 18px;
}

.screenshots-swiper .swiper-pagination-bullet {
    background: var(--primary-green);
    opacity: 0.3;
}

.screenshots-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ===== Process Section ===== */
.process-section {
    padding: 100px 0;
    background: #fff;
}

.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.process-step {
    text-align: center;
    flex: 0 0 200px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: #888;
}

.process-connector {
    flex: 0 0 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-green));
    margin-top: 25px;
    position: relative;
}

.process-connector::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--primary-green);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-avatar {
    margin-bottom: 20px;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.author-info {
    font-size: 13px;
    color: #999;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 100px 0;
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-item.active {
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(9,111,61,0.1);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
}

.faq-question:hover {
    color: var(--primary-green);
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 0;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.cta-bg .circle-1 {
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    top: -50px;
    right: 10%;
}

.cta-bg .circle-2 {
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.08);
    bottom: -30px;
    left: 10%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    font-family: AliFont, serif;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-download {
    background: #fff;
    color: var(--primary-green);
    padding: 16px 40px;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.btn-download-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 16px 40px;
    font-size: 18px;
}

.btn-download-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.cta-qr {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 12px;
}

.qr-item span {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

/* ===== Footer ===== */
.footer {
    background: #1a1a1a;
    padding: 60px 0 30px;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    font-family: AliFont, serif;
}

.footer-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #999;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #999;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-btn);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-phone {
        flex: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        flex-direction: column;
        align-items: center;
    }
    
    .process-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }
    
    .process-connector::after {
        right: auto;
        top: auto;
        bottom: -5px;
        left: -4px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 8px solid var(--primary-green);
        border-bottom: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-qr {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-slogan {
        font-size: 14px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshots-swiper {
        padding: 20px 40px;
    }
    
    .screenshot-phone {
        width: 160px;
        height: 320px;
    }
}
