/* ============ Variables ============ */
:root {
    --primary: #0D8F4E;
    --primary-dark: #0A7340;
    --primary-light: #E8F5E9;
    --secondary: #FF9800;
    --accent: #8B4513;
    --text-primary: #1A1A2E;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --bg-light: #F8FAFC;
    --bg-cream: #FFF9E6;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* ============ Reset & Base ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(13, 143, 78, 0.3);
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 143, 78, 0.4);
}

.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

/* ============ Navigation ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

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

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

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

.nav-links .btn {
    color: var(--white) !important;
    font-weight: 700;
}

.nav-links .btn-primary {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(13, 143, 78, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(13, 143, 78, 0.5);
    }
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============ Hero Section ============ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--white) 50%, var(--primary-light) 100%);
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, var(--bg-cream) 0%, var(--white) 50%, var(--primary-light) 100%);
    }
    50% {
        background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-cream) 50%, var(--white) 100%);
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="50" fill="%230D8F4E" opacity="0.05"/><circle cx="90" cy="60" r="30" fill="%23FF9800" opacity="0.05"/></svg>');
    background-size: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary) 0%, #FFA726 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: slideInLeft 1s ease 0.2s both;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    animation: slideInLeft 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: slideInLeft 1s ease 0.6s both;
}

.hero-text h1 .highlight {
    color: var(--primary);
    position: relative;
    background: linear-gradient(120deg, var(--primary) 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    opacity: 0.2;
    z-index: -1;
    border-radius: 4px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: slideInLeft 1s ease 0.8s both;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Phone Mockup */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease 0.4s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: floatPhone 3s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #000;
    border-radius: 15px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
}

.app-preview {
    padding: 50px 15px 15px;
}

.app-header {
    background: var(--primary);
    color: var(--white);
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 15px;
}

.app-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.cat-item {
    background: var(--bg-light);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.app-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    padding: 12px;
    border-radius: 12px;
}

.product-img {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.product-info {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.product-info strong {
    color: var(--primary);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    color: var(--primary);
    font-size: 18px;
}

.card-1 {
    top: 100px;
    left: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 180px;
    left: -50px;
    animation-delay: 1s;
}

.card-3 {
    top: 200px;
    right: -30px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============ Section Styles ============ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ Features Section ============ */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.step {
    text-align: center;
    max-width: 280px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-icon {
    width: 120px;
    height: 120px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step-icon i {
    font-size: 48px;
    color: var(--primary);
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step p {
    font-size: 15px;
    color: var(--text-secondary);
}

.step-connector {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin-top: 60px;
    border-radius: 2px;
}

/* ============ For Farmers Section ============ */
.for-farmers {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--white) 100%);
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-content.reverse {
    direction: rtl;
}

.split-content.reverse > * {
    direction: ltr;
}

.split-text .section-badge {
    display: inline-block;
    margin-bottom: 16px;
}

.split-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.split-text > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.benefit-list {
    margin-bottom: 32px;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.benefit-list li i {
    color: var(--primary);
    font-size: 22px;
    margin-top: 2px;
}

.benefit-list li strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.benefit-list li span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Dashboard Illustrations */
.farmer-dashboard,
.business-dashboard {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    margin: 0 auto;
}

.dashboard-header {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    margin-bottom: 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.dash-stat {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius);
    text-align: center;
}

.dash-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.dash-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.dashboard-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 14px;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status.live {
    background: var(--primary-light);
    color: var(--primary);
}

.status.pending {
    background: #FEF3C7;
    color: #D97706;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.action-btn {
    background: var(--bg-light);
    padding: 15px 10px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.action-btn i {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--primary);
}

/* ============ For Business Section ============ */
.for-business {
    padding: 100px 0;
    background: var(--white);
}

/* ============ Testimonials ============ */
.testimonials {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow);
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: var(--primary-light);
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.author-info strong {
    display: block;
    font-size: 16px;
}

.author-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============ Download Section ============ */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

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

.download-text h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.download-text p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

.store-btn i {
    font-size: 32px;
}

.store-btn span {
    font-size: 11px;
    opacity: 0.8;
}

.store-btn strong {
    display: block;
    font-size: 16px;
}

.app-features-mini {
    display: flex;
    gap: 30px;
}

.app-features-mini span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.phone-mockup-download {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-code i {
    font-size: 120px;
    opacity: 0.9;
}

.qr-code span {
    font-size: 16px;
    font-weight: 500;
}

/* ============ Footer ============ */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 80px 0 30px;
}

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

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.footer-brand h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition);
}

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

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.7;
}

.footer-contact ul li i {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.7;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .floating-card {
        display: none;
    }
    
    .steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .step-connector {
        width: 3px;
        height: 50px;
        margin: 0 auto;
    }
    
    .split-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .split-content.reverse {
        direction: ltr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .download-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .app-features-mini {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-text h2 {
        font-size: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}
