/* ============================================================
   landing.css — Kinnauri Translator Landing Page Styles
   ============================================================ */

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

:root {
  --bg:      #0d1117;
  --bg2:     #161b22;
  --bg3:     #1c2128;
  --border:  #30363d;
  --accent:  #6366f1;
  --accent2: #8b5cf6;
  --gold:    #f59e0b;
  --success: #3fb950;
  --danger:  #f85149;
  --info:    #58a6ff;
  --text:    #e6edf3;
  --muted:   #8b949e;
  --font:    'Inter', 'Noto Sans Devanagari', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(48,54,61,0.5);
  transition: all 0.3s ease;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(99,102,241,0.4);
}
.nav-logo .logo-text { font-weight: 800; font-size: 1.05rem; }
.nav-logo .logo-sub  { font-size: .65rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 12px; }
.btn-nav {
  padding: 8px 22px; border-radius: 8px; font-size: .875rem;
  font-weight: 600; font-family: var(--font); cursor: pointer;
  transition: all 0.2s ease; border: none; display: inline-block;
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg2); border-color: var(--accent); color: var(--accent); }
.btn-fill {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.45); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}
.hero-bg-blob {
  position: absolute; top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(99,102,241,0.2) 0%, rgba(139,92,246,0.1) 40%, transparent 70%);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}
.hero-fade-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50%       { transform: translateX(-50%) scale(1.1); opacity: 1; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.35);
  color: #a5b4fc; padding: 6px 16px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 28px; position: relative; z-index: 1;
  animation: fadeUp 0.6s ease both;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: 24px; position: relative; z-index: 1;
  animation: fadeUp 0.7s ease 0.1s both;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 40%, #8b5cf6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted);
  max-width: 580px; margin: 0 auto 40px; line-height: 1.7;
  position: relative; z-index: 1; animation: fadeUp 0.7s ease 0.2s both;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1; animation: fadeUp 0.7s ease 0.3s both;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 1rem; font-weight: 700; font-family: var(--font);
  border: none; cursor: pointer; transition: all 0.25s;
  box-shadow: 0 8px 30px rgba(99,102,241,0.4);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(99,102,241,0.5); }
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 12px; background: rgba(255,255,255,0.06);
  color: var(--text); font-size: 1rem; font-weight: 600; font-family: var(--font);
  border: 1px solid var(--border); cursor: pointer; transition: all 0.25s; backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); color: var(--accent); }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  margin-top: 64px; position: relative; z-index: 1;
  animation: fadeUp 0.7s ease 0.4s both;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.stat-lbl { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.stat-sep { width: 1px; background: var(--border); }
.mountain-decor {
  position: absolute; bottom: 60px; left: 0; right: 0;
  display: flex; justify-content: center;
  pointer-events: none; z-index: 0; opacity: 0.06;
}
.mountain-decor svg { width: 100%; max-width: 900px; }

@keyframes fadeUp {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ========== SECTIONS ========== */
.landing-section { padding: 80px 24px; }
.landing-section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3); color: #a5b4fc;
  padding: 4px 14px; border-radius: 999px; font-size: .75rem;
  font-weight: 600; margin-bottom: 16px; letter-spacing: .06em; text-transform: uppercase;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ========== FEATURES ========== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.feature-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; padding: 32px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 18px;
  background: radial-gradient(ellipse at top left, rgba(99,102,241,0.06), transparent 60%);
  pointer-events: none;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.4); transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(99,102,241,0.1);
}
.feature-icon {
  width: 54px; height: 54px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px;
}
.fi-purple { background: rgba(99,102,241,0.15); color: var(--accent); }
.fi-green  { background: rgba(63,185,80,0.12);  color: #3fb950; }
.fi-gold   { background: rgba(245,158,11,0.12); color: var(--gold); }
.fi-blue   { background: rgba(88,166,255,0.12); color: #58a6ff; }
.fi-pink   { background: rgba(236,72,153,0.12); color: #ec4899; }
.fi-teal   { background: rgba(20,184,166,0.12); color: #14b8a6; }
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc  { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ========== HOW IT WORKS ========== */
.how-bg { background: var(--bg2); }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 0; margin-top: 60px; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute; top: 36px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.4;
}
.step-item { text-align: center; padding: 24px 20px; position: relative; z-index: 1; }
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(99,102,241,0.4);
}
.step-title { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.step-desc  { font-size: .78rem; color: var(--muted); line-height: 1.6; }

/* ========== PLANS PREVIEW ========== */
.plans-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 60px; }
.plan-mini {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 22px; text-align: center; transition: 0.3s;
}
.plan-mini:hover { transform: translateY(-5px); border-color: rgba(99,102,241,0.4); }
.plan-mini.featured {
  border-color: var(--accent); background: linear-gradient(145deg, rgba(99,102,241,0.08), var(--bg2));
  box-shadow: 0 0 40px rgba(99,102,241,0.15);
}
.pm-badge {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 16px;
  display: inline-block; letter-spacing: .05em;
}
.pm-free  { background: rgba(88,166,255,0.15);  color: #58a6ff; }
.pm-basic { background: rgba(99,102,241,0.15);  color: #a5b4fc; }
.pm-pro   { background: rgba(245,158,11,0.15);  color: var(--gold); }
.pm-price  { font-size: 2rem; font-weight: 900; margin-bottom: 4px; }
.pm-period { font-size: .75rem; color: var(--muted); margin-bottom: 16px; }
.pm-features { list-style: none; text-align: left; }
.pm-features li { font-size: .78rem; color: var(--muted); padding: 4px 0; display: flex; gap: 8px; }
.pm-features li::before { content: '✓'; color: var(--success); flex-shrink: 0; }

/* ========== CTA ========== */
.cta-section { padding: 100px 24px; text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.12), transparent 70%);
  pointer-events: none;
}
.cta-box {
  max-width: 680px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.3); border-radius: 24px; padding: 60px 40px;
  position: relative; z-index: 1;
}
.cta-title { font-size: clamp(1.8rem,4vw,2.4rem); font-weight: 800; margin-bottom: 16px; }
.cta-sub   { color: var(--muted); margin-bottom: 36px; }
.cta-btns  { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ========== SITE FOOTER ========== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .fb-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.footer-brand .fb-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1rem;
}
.footer-brand .fb-name { font-weight: 800; font-size: 1rem; }
.footer-brand .fb-tagline { font-size: .78rem; color: var(--muted); line-height: 1.6; max-width: 220px; }
.footer-col h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.footer-col a {
  display: block; font-size: .83rem; color: var(--muted);
  padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: .75rem; color: var(--muted);
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: var(--muted); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--text); }

/* App shell footer (inside dashboard etc.) */
.app-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: .75rem; color: var(--muted);
  background: var(--bg-secondary, #161b22);
  flex-shrink: 0;
}
.app-footer-links { display: flex; gap: 16px; }
.app-footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; font-size: .75rem; }
.app-footer-links a:hover { color: var(--text-primary, #e6edf3); }

/* ========== PAGE (About/Privacy) ========== */
.page-view {
  max-width: 780px; margin: 0 auto; padding: 120px 24px 60px;
}
.page-view h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.page-view .page-meta { font-size: .78rem; color: var(--muted); margin-bottom: 40px; }
.page-view .page-content {
  font-size: .95rem; line-height: 1.9; color: var(--muted);
}
.page-view .page-content h2 { color: var(--text); font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; }
.page-view .page-content h3 { color: var(--text); font-size: 1.1rem; font-weight: 600; margin: 24px 0 8px; }
.page-view .page-content p  { margin-bottom: 16px; }
.page-view .page-content ul, .page-view .page-content ol { margin: 0 0 16px 24px; }
.page-view .page-content li { margin-bottom: 6px; }
.page-view .page-content strong { color: var(--text); }
.page-view .page-content a { color: var(--accent); }

/* ========== REVEAL ANIMATION ========== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .plans-row { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .hero-stats { gap: 20px; }
  .stat-sep { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }  /* brand full width pe */
  .nav-links .btn-outline { display: none; }
}
