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

:root {
  --primary: #4F46E5;
  --primary-light: #818CF8;
  --primary-dark: #3730A3;
  --accent: #F97316;
  --saffron: #FF9933;
  --green-india: #138808;
  --navy: #000080;
  --bg: #FAFAFE;
  --bg-dark: #0F0F1A;
  --text: #1E1B3A;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --gradient: linear-gradient(135deg, #4F46E5, #7C3AED, #F97316);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: rgba(250, 250, 254, 0.8);
  backdrop-filter: blur(20px);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.4rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient);
  color: white;
  border-radius: 10px;
  font-size: 1.3rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-cta { display: inline-flex; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* === Hero === */
.hero {
  position: relative;
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(79,70,229,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(249,115,22,0.06) 0%, transparent 50%);
  z-index: 0;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(255,153,51,0.1), rgba(19,136,8,0.1));
  border: 1px solid rgba(255,153,51,0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--saffron);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-languages {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-languages > span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-pill {
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 320px;
  background: var(--white);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
}

.phone-screen {
  background: #F3F4F6;
  border-radius: 26px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.chat-bubble:nth-child(1) { animation-delay: 0.3s; }
.chat-bubble:nth-child(2) { animation-delay: 0.8s; }
.chat-bubble:nth-child(3) { animation-delay: 1.3s; }
.chat-bubble:nth-child(4) { animation-delay: 1.8s; }
.chat-bubble:nth-child(5) { animation-delay: 2.3s; }

.chat-bubble.assistant {
  background: var(--white);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.chat-bubble.user {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

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

/* === Features === */
.features {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 1.15rem;
}

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

.feature-card {
  padding: 36px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === Languages === */
.languages {
  padding: 120px 0;
  background: var(--bg-dark);
  color: var(--white);
}

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

.languages-text p {
  color: rgba(255,255,255,0.7);
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.language-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

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

.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: all 0.3s;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.lang-card:hover, .lang-card.active {
  background: rgba(255,255,255,0.1);
  border-color: var(--primary-light);
  color: var(--white);
}

.lang-script {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

/* === How It Works === */
.how-it-works {
  padding: 120px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.step {
  text-align: center;
  padding: 40px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--gradient);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.step h3 {
  margin-bottom: 12px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === About === */
.about {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(255,153,51,0.04), rgba(19,136,8,0.04));
}

.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-flag {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.flag-stripe {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flag-stripe.saffron { background: var(--saffron); }
.flag-stripe.white { background: var(--white); }
.flag-stripe.green { background: var(--green-india); }

.ashoka-chakra {
  width: 36px;
  height: 36px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  position: relative;
}

.ashoka-chakra::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px dashed var(--navy);
  border-radius: 50%;
}

.about-content h2 {
  margin-bottom: 16px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* === Waitlist === */
.waitlist {
  padding: 120px 0;
}

.waitlist-card {
  text-align: center;
  padding: 80px 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.waitlist-card p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 1.1rem;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 36px auto 0;
}

.waitlist-form input {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input:focus {
  border-color: var(--primary);
}

.waitlist-note {
  font-size: 0.85rem !important;
  color: var(--text-muted);
  margin-top: 16px;
}

/* === Footer === */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle { margin: 20px auto 0; }
  .hero-actions { justify-content: center; }
  .hero-languages { align-items: center; }
  .lang-pills { justify-content: center; }

  .hero-visual { margin-top: 40px; }
  .phone-mockup { width: 280px; }

  .features-grid { grid-template-columns: 1fr; }

  .languages-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .language-stats { justify-content: center; }

  .lang-grid { grid-template-columns: repeat(3, 1fr); }

  .steps { grid-template-columns: 1fr; gap: 20px; }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-flag { width: 160px; }

  .waitlist-form {
    flex-direction: column;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 40px;
  }
}
