/* ── Shared stylesheet for all Tamil app landing pages ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #5B4FD9;
  --primary-dark: #4338CA;
  --accent: #F59E0B;
  --orange: #F97316;
  --green: #10B981;
  --text: #1E293B;
  --muted: #64748B;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --border: #E2E8F0;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 40px rgba(91,79,217,0.18);
}

html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 0 24px;
}
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.2rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { background: var(--primary) !important; color: #fff !important; padding: 8px 18px; border-radius: 8px; font-weight: 600 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--primary-dark) !important; }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, #EEF2FF 0%, #FEF9EE 60%, #FEF3C7 100%); padding: 90px 24px 80px; }
.hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); color: var(--primary); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.5px; padding: 5px 14px; border-radius: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 1rem; color: var(--muted); margin-bottom: 32px; line-height: 1.7; max-width: 460px; }
.download-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-store { display: inline-block; line-height: 0; transition: transform 0.2s, opacity 0.2s; }
.btn-store:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-store img { height: 50px; width: auto; display: block; }
.hero-visual { display: flex; flex-direction: column; gap: 14px; }
.flashcard-preview { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fc-item { background: var(--bg-alt); border-radius: 12px; padding: 14px 10px; text-align: center; }
.fc-item .script { font-size: 1.5rem; margin-bottom: 4px; }
.fc-item .label { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.rating-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow); }
.stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; }
.rating-text { font-size: 0.82rem; color: var(--muted); }
.rating-text strong { color: var(--text); }

/* ── SECTIONS ── */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .label { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; }
.section-header p { font-size: 0.95rem; color: var(--muted); max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* ── FEATURES GRID ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: transform 0.25s, box-shadow 0.25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: #EEF2FF; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ── CATEGORY GRID ── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 20px 16px; text-align: center; box-shadow: var(--shadow); transition: transform 0.2s; }
.cat-card:hover { transform: translateY(-3px); }
.cat-icon { font-size: 2rem; margin-bottom: 8px; }
.cat-name { font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.cat-kannada { font-size: 0.75rem; color: var(--muted); }
.cat-badge { display: inline-block; margin-top: 6px; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.free-badge { background: #D1FAE5; color: #065F46; }
.premium-badge { background: #FEF3C7; color: #92400E; }

/* ── STEPS ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; padding: 8px; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ── CONTENT BLOCK ── */
.content-block { max-width: 720px; margin: 0 auto; }
.content-block h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.3px; }
.content-block p { font-size: 0.95rem; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.content-block ul { margin: 0 0 20px 20px; }
.content-block ul li { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }

/* ── FAQ ── */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; }
.faq-item h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.faq-item p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ── RELATED LINKS ── */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.related-card { display: block; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 14px; font-size: 0.82rem; font-weight: 600; color: var(--text); transition: border-color 0.2s, color 0.2s; line-height: 1.4; }
.related-card:hover { border-color: var(--primary); color: var(--primary); }
.related-card .rel-icon { font-size: 1.2rem; display: block; margin-bottom: 6px; }

/* ── CTA BANNER ── */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%); color: #fff; text-align: center; padding: 80px 24px; }
.cta-section h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.cta-section p { opacity: 0.85; margin-bottom: 32px; font-size: 1rem; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-btn-dark, .cta-btn-white { display: inline-block; line-height: 0; transition: transform 0.2s, opacity 0.2s; }
.cta-btn-dark:hover, .cta-btn-white:hover { transform: scale(1.04); opacity: 0.9; }
.cta-btn-dark img, .cta-btn-white img { height: 50px; width: auto; display: block; }

/* ── FOOTER ── */
footer { background: #0F172A; color: #94A3B8; padding: 56px 24px 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 240px; }
.footer-col h4 { color: #fff; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 0.85rem; color: #64748B; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: #475569; }

/* ── BREADCRUMB ── */
.breadcrumb { padding: 12px 24px; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ── STAT PILLS ── */
.stat-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.stat-pill { background: #fff; border: 1px solid var(--border); border-radius: 30px; padding: 7px 18px; font-size: 0.82rem; font-weight: 600; color: var(--text); box-shadow: var(--shadow); }
.stat-pill span { color: var(--primary); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 64px 24px 52px; }
  section { padding: 56px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-visual { display: none; }
}

/* ── SCREENSHOT GALLERY HERO ── */
.screenshot-gallery-hero { display: flex; gap: 12px; align-items: flex-end; }
.screenshot-hero-img { border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.22); max-height: 420px; width: auto; }
@media (max-width: 600px) { .screenshot-gallery-hero { display: none; } }