/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* === Typography === */
h1, h2, h3, h4 { line-height: 1.2; }
h2 { font-size: 2.2rem; font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: #4a5568; }
a { text-decoration: none; color: inherit; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 12px; font-weight: 600;
    font-size: 1rem; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-sm { padding: 8px 20px; font-size: 0.9rem; border-radius: 10px; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-primary {
    background: #2D6A4F; color: #fff;
    box-shadow: 0 4px 14px rgba(45,106,79,0.3);
}
.btn-primary:hover { background: #245a42; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,106,79,0.4); }
.btn-outline {
    background: transparent; color: #2D6A4F;
    border: 2px solid #2D6A4F;
}
.btn-outline:hover { background: #2D6A4F; color: #fff; }

/* === Nav === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 16px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 1.6rem; }
.logo-text { font-size: 1.4rem; font-weight: 800; color: #2D6A4F; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-weight: 500; color: #4a5568; transition: color 0.2s; }
.nav-links a:hover { color: #2D6A4F; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: #1a1a2e; transition: all 0.3s; }

/* === Hero === */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 40%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(45,106,79,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
    display: inline-block; padding: 6px 16px; background: rgba(45,106,79,0.1);
    color: #2D6A4F; border-radius: 100px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 20px;
}
.hero-tamil {
    display: block; font-size: 4rem; font-weight: 800; color: #2D6A4F;
    font-family: 'Noto Sans Tamil', 'Inter', sans-serif;
    margin-bottom: 8px;
}
.hero-en { display: block; font-size: 1.5rem; font-weight: 600; color: #4a5568; }
.hero-desc { font-size: 1.15rem; color: #4a5568; margin-top: 20px; max-width: 520px; }
.hero-desc-ta {
    font-size: 1rem; color: #6b7280; margin-top: 8px; max-width: 520px;
    font-family: 'Noto Sans Tamil', 'Inter', sans-serif;
}
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: #2D6A4F; }
.stat-label { font-size: 0.85rem; color: #6b7280; font-weight: 500; }

/* === Phone Mock === */
.phone-mock {
    width: 280px; margin: 0 auto;
    background: #1a1a2e; border-radius: 36px; padding: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1) inset;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}
.phone-screen {
    background: #fff; border-radius: 26px; padding: 20px 16px;
    min-height: 420px;
}
.mock-header {
    font-weight: 800; font-size: 1.2rem; color: #2D6A4F;
    padding-bottom: 12px; border-bottom: 2px solid #f0fdf4;
    margin-bottom: 16px;
}
.mock-greeting { font-size: 0.95rem; font-weight: 600; color: #1a1a2e; margin-bottom: 12px; }
.mock-weather {
    display: flex; justify-content: space-between; background: #f0fdf4;
    padding: 10px 14px; border-radius: 12px; font-size: 0.85rem;
    color: #2D6A4F; font-weight: 600; margin-bottom: 16px;
}
.mock-plot {
    background: #fafafa; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 14px; margin-bottom: 10px;
}
.mock-plot-name { font-weight: 700; font-size: 0.9rem; color: #1a1a2e; }
.mock-plot-detail { font-size: 0.8rem; color: #6b7280; margin-top: 2px; }
.mock-stage {
    font-size: 0.75rem; color: #2D6A4F; font-weight: 600;
    background: #f0fdf4; display: inline-block; padding: 3px 10px;
    border-radius: 100px; margin-top: 8px;
}

/* === Sections === */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { color: #6b7280; font-size: 1.1rem; margin-top: 8px; font-family: 'Noto Sans Tamil', 'Inter', sans-serif; }

/* === Features === */
.features { padding: 100px 0; background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
    padding: 32px 28px; border-radius: 20px;
    background: #fafbfc; border: 1px solid #e8ecf1;
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #c6e9d7;
}
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 10px; color: #1a1a2e; }
.feature-card p { font-size: 0.95rem; line-height: 1.6; }
.feature-ta { display: block; margin-top: 12px; font-size: 0.85rem; color: #2D6A4F; font-weight: 500; font-family: 'Noto Sans Tamil', 'Inter', sans-serif; }

/* === Crops === */
.crops { padding: 100px 0; background: #f8faf9; }
.crops-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.crop-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: #fff; border: 1px solid #d1e7dd;
    border-radius: 100px; font-size: 0.9rem; font-weight: 500;
    transition: all 0.2s;
}
.crop-tag:hover { background: #2D6A4F; color: #fff; border-color: #2D6A4F; transform: scale(1.05); }
.crop-tag span { font-size: 1.1rem; }

/* === How it works === */
.how-it-works { padding: 100px 0; background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { text-align: center; padding: 20px; }
.step-num {
    width: 56px; height: 56px; background: #2D6A4F; color: #fff;
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 800; margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; }

/* === Download === */
.download {
    padding: 100px 0; text-align: center;
    background: linear-gradient(135deg, #2D6A4F 0%, #1B4332 100%);
    color: #fff;
}
.download h2 { color: #fff; }
.download p { color: rgba(255,255,255,0.8); }
.download-note { font-size: 1rem; margin-top: 8px; }
.download-buttons { margin-top: 32px; }
.play-store-btn { font-size: 1.1rem; background: #fff; color: #2D6A4F; }
.play-store-btn:hover { background: #f0fdf4; transform: translateY(-2px); }
.download-sub { margin-top: 20px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* === Footer === */
.footer { padding: 60px 0 0; background: #0f1f17; color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #6ee7b7; }
.footer-bottom {
    margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.3); }

/* === Language Toggle Button === */
.lang-toggle {
    background: #f0fdf4; border: 1px solid #d1e7dd; border-radius: 8px;
    padding: 6px 12px; font-weight: 700; font-size: 0.85rem; color: #2D6A4F;
    cursor: pointer; transition: all 0.2s;
}
.lang-toggle:hover { background: #2D6A4F; color: #fff; }

/* === Language Overlay === */
.lang-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lang-overlay.show { opacity: 1; pointer-events: all; }
.lang-overlay-content {
    background: #fff; border-radius: 24px; padding: 48px 40px;
    max-width: 480px; width: 90%; text-align: center;
    transform: scale(0.95); transition: transform 0.3s;
}
.lang-overlay.show .lang-overlay-content { transform: scale(1); }
.lang-overlay-icon { font-size: 3rem; margin-bottom: 16px; }
.lang-overlay-content h2 { font-size: 1.6rem; margin-bottom: 4px; }
.lang-overlay-content > p { color: #6b7280; margin-bottom: 28px; font-family: 'Noto Sans Tamil', sans-serif; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lang-grid .lang-btn:first-child { grid-column: 1 / -1; }
.lang-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 16px 12px; border: 2px solid #e5e7eb; border-radius: 16px;
    background: #fff; cursor: pointer; transition: all 0.2s;
}
.lang-btn:hover { border-color: #2D6A4F; background: #f0fdf4; }
.lang-btn.active { border-color: #2D6A4F; background: #f0fdf4; box-shadow: 0 0 0 3px rgba(45,106,79,0.15); }
.lang-label { font-size: 1.3rem; font-weight: 700; color: #1a1a2e; }
.lang-sub { font-size: 0.8rem; color: #6b7280; margin-top: 2px; }

/* === Languages Section === */
.languages-section { padding: 100px 0; background: #fff; }
.lang-cards { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.lang-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 28px 32px; background: #fafbfc; border: 1px solid #e8ecf1;
    border-radius: 20px; min-width: 160px; transition: all 0.3s;
}
.lang-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.lang-card-script { font-size: 1.8rem; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.lang-card-name { font-size: 0.9rem; color: #6b7280; margin-bottom: 12px; }
.lang-card-status {
    font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 100px;
}
.lang-card-status.available { background: #f0fdf4; color: #2D6A4F; }
.lang-card-status.coming { background: #fef3c7; color: #92400e; }

/* === Mobile === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; padding: 20px 24px; gap: 16px;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav-toggle { display: flex; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-tamil { font-size: 3rem; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .lang-grid { grid-template-columns: 1fr 1fr; }
    .lang-cards { gap: 10px; }
    .lang-card { min-width: 140px; padding: 20px 24px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; gap: 24px; }
    .phone-mock { transform: none; width: 240px; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { grid-template-columns: 1fr; }
    h2 { font-size: 1.7rem; }
}
@media (max-width: 480px) {
    .hero { padding: 120px 0 60px; }
    .hero-tamil { font-size: 2.4rem; }
    .hero-en { font-size: 1.2rem; }
    .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
    .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
}
