/* ==========================================================================
   NANBAN AI - MODERN BILINGUAL SHOWCASE STYLES
   ========================================================================== */

:root {
  --bg-primary: #0A0F1D;
  --bg-secondary: #0F172A;
  --bg-tertiary: #1E293B;
  --bg-card: rgba(30, 41, 59, 0.65);
  --bg-glass: rgba(15, 23, 42, 0.75);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(96, 165, 250, 0.3);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --accent-blue: #3B82F6;
  --accent-indigo: #6366F1;
  --accent-purple: #8B5CF6;
  --accent-pink: #EC4899;
  --accent-cyan: #06B6D4;
  --accent-amber: #F59E0B;
  --accent-green: #10B981;

  --gradient-brand: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%);
  --gradient-cyan: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
  --gradient-amber: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --shadow-neon: 0 8px 32px 0 rgba(139, 92, 246, 0.25);
  --shadow-card: 0 12px 40px 0 rgba(0, 0, 0, 0.35);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-tamil: 'Mukta Malar', 'Plus Jakarta Sans', sans-serif;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Tamil Typography Enhancement */
html[lang="ta"], body.tamil-mode {
  font-family: var(--font-tamil);
  letter-spacing: 0.01em;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Glow Blobs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: 10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
}

.glow-2 {
  width: 600px;
  height: 600px;
  top: 35%;
  right: -100px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
}

.glow-3 {
  width: 550px;
  height: 550px;
  bottom: 5%;
  left: -50px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 29, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-icon {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-pink);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #FFF;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Bilingual Language Switcher */
.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-switch-btn:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

.lang-pill {
  color: var(--accent-cyan);
}

.lang-divider {
  color: var(--text-muted);
}

.lang-alt {
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #FFF;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-playstore {
  background: #000000;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  padding: 8px 20px;
  border-radius: 14px;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-playstore:hover {
  background: #0B1120;
  border-color: rgba(66, 133, 244, 0.6);
  box-shadow: 0 6px 25px rgba(66, 133, 244, 0.35);
  transform: translateY(-2px);
}

.btn-play-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.btn-play-sub {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.btn-play-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.01em;
}

.btn-playstore-large {
  padding: 12px 28px;
}

.btn-playstore-large .btn-play-sub {
  font-size: 0.72rem;
}

.btn-playstore-large .btn-play-title {
  font-size: 1.25rem;
}

/* Pill Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60A5FA;
  margin-bottom: 16px;
}

.pill-purple {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: #C084FC;
}

.pill-cyan {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: #22D3EE;
}

.pill-amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #FBBF24;
}

.pill-green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 10px #38BDF8;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 60px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   PHONE MOCKUP VISUAL (Jetpack Compose UI Representation)
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-frame {
  width: 360px;
  height: 680px;
  background: #020617;
  border-radius: 48px;
  padding: 12px;
  border: 4px solid #334155;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(59, 130, 246, 0.2);
  position: relative;
  transition: transform 0.4s ease;
}

.phone-frame:hover {
  transform: translateY(-8px) rotateY(-2deg) rotateX(2deg);
}

.phone-camera-hole {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
  z-index: 20;
  border: 1px solid #1E293B;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0A0F1D;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* In-App Header */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-avatar-wrap {
  position: relative;
}

.app-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.app-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #FFF;
  font-size: 0.95rem;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10B981;
  border: 2px solid #0A0F1D;
  border-radius: 50%;
}

.app-header-info {
  flex: 1;
  margin-left: 12px;
}

.app-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFF;
}

.app-subtitle {
  font-size: 0.7rem;
  color: #38BDF8;
}

.chip-lang-badge {
  background: rgba(139, 92, 246, 0.2);
  color: #C084FC;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Chat Messages in Phone Mockup */
.app-chat-area {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.chat-row {
  display: flex;
  gap: 8px;
}

.user-row {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.user-bubble {
  background: #2563EB;
  color: #FFF;
  border-bottom-right-radius: 4px;
}

.bot-row {
  align-items: flex-start;
}

.bot-avatar-mini-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bot-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #FFF;
  font-weight: 800;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.bot-bubble {
  background: #1E293B;
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.thinking-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.spin-icon {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.bubble-media-preview {
  margin: 6px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-preview-svg {
  width: 100%;
  display: block;
}

.chat-time {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

/* Phone Input Bar */
.phone-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #0B1120;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-attach-btn {
  color: var(--text-secondary);
  cursor: pointer;
}

.phone-text-field {
  flex: 1;
  background: #1E293B;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   FEATURE CONTENT SECTIONS
   ========================================================================== */
.content-section {
  padding: 90px 0;
  position: relative;
}

.bg-alt {
  background: rgba(15, 23, 42, 0.55);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.reverse-grid {
  grid-template-columns: 1fr 1fr;
}

.reverse-grid .section-visual {
  order: 1;
}

.reverse-grid .section-text {
  order: 2;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.check-icon {
  width: 22px;
  height: 22px;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
  margin-top: 3px;
}

.bullet-content strong {
  display: block;
  font-size: 0.98rem;
  color: #FFF;
  margin-bottom: 3px;
}

.bullet-content span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Rich SVG Visual Containers */
.visual-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.visual-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.feature-vector {
  width: 100%;
  height: auto;
  display: block;
}

.visual-caption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

/* ==========================================================================
   INTERACTIVE CHAT DEMO SECTION
   ========================================================================== */
.demo-section {
  padding: 100px 0;
  position: relative;
}

.section-header.text-center {
  text-align: center;
  margin-bottom: 48px;
}

.max-w-2xl {
  max-width: 680px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.demo-box {
  max-width: 840px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.preset-prompts-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #0B1120;
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
}

.preset-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.prompt-chip {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-chip:hover, .prompt-chip.active {
  background: var(--gradient-brand);
  color: #FFF;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.demo-chat-window {
  padding: 24px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#demoDynamicArea {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.demo-msg.user {
  justify-content: flex-end;
}

.demo-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.demo-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #FFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-bubble {
  max-width: 78%;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.demo-msg.user .demo-bubble {
  background: #2563EB;
  color: #FFF;
  border: none;
}

.demo-media-embed {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.typing-animation {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #38BDF8;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

/* ==========================================================================
   TECH STACK SPECIFICATIONS
   ========================================================================== */
.tech-stack-section {
  padding: 80px 0 100px;
  background: #080D1A;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.25s ease;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.tech-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tech-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 10px;
}

.tech-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   DOWNLOAD ON GOOGLE PLAY STORE CTA SECTION
   ========================================================================== */
.download-cta-section {
  padding: 80px 0 100px;
  position: relative;
}

.download-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.35);
  border-radius: 32px;
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
}

.download-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 250px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.download-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.download-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.download-action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.version-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #050811;
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 380px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-lang-btn {
  display: block;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.footer-lang-btn:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (FULL MOBILE & TABLET OPTIMIZATION)
   ========================================================================== */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    gap: 40px;
  }
}

/* Tablets Portrait & Large Phones (<= 860px) */
@media (max-width: 860px) {
  .container {
    padding: 0 20px;
  }
  .navbar {
    padding: 12px 0;
  }
  .nav-container {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .hero-section {
    padding: 40px 0 70px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
  }
  .content-section {
    padding: 60px 0;
  }
  .section-grid, .reverse-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .reverse-grid .section-visual {
    order: 2;
  }
  .reverse-grid .section-text {
    order: 1;
  }
  .section-title {
    font-size: 2rem;
  }
  .visual-card {
    padding: 20px;
  }
  .tech-card {
    padding: 22px 20px;
  }
  .download-card {
    padding: 44px 28px;
  }
  .download-title {
    font-size: 2.2rem;
  }
  .footer-links {
    gap: 40px;
  }
}

/* Mobile Phones (<= 640px) */
@media (max-width: 640px) {
  .container, .nav-container {
    padding: 0 16px;
  }
  .brand-logo-img {
    width: 38px;
    height: 38px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-sub {
    font-size: 0.68rem;
  }
  .nav-actions {
    gap: 8px;
  }
  .lang-switch-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    gap: 6px;
  }
  .navbar .btn {
    padding: 7px 12px;
    font-size: 0.82rem;
  }
  .hero-title {
    font-size: clamp(1.85rem, 6vw, 2.3rem);
    line-height: 1.2;
  }
  .hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .stat-item .stat-number {
    font-size: 1.4rem;
  }
  .stat-item .stat-label {
    font-size: 0.75rem;
  }
  .phone-frame {
    width: 310px;
    height: 560px;
    border-radius: 36px;
    padding: 8px;
    border-width: 3px;
  }
  .phone-screen {
    border-radius: 28px;
  }
  .phone-status-bar {
    padding: 8px 14px 2px;
    font-size: 0.7rem;
  }
  .app-topbar {
    padding: 8px 12px;
  }
  .app-avatar-img, .app-avatar {
    width: 30px;
    height: 30px;
  }
  .app-title {
    font-size: 0.8rem;
  }
  .app-subtitle {
    font-size: 0.65rem;
  }
  .app-chat-area {
    padding: 10px 8px;
    gap: 10px;
  }
  .chat-bubble {
    padding: 9px 11px;
    font-size: 0.76rem;
  }
  .bot-avatar-mini-img, .bot-avatar-mini {
    width: 24px;
    height: 24px;
  }
  .phone-input-bar {
    padding: 8px 10px;
    gap: 8px;
  }
  .phone-text-field {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
  .phone-send-btn {
    width: 28px;
    height: 28px;
  }
  .content-section {
    padding: 48px 0;
  }
  .section-title {
    font-size: clamp(1.55rem, 5vw, 1.9rem);
    line-height: 1.25;
    margin-bottom: 14px;
  }
  .section-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }
  .feature-bullets {
    gap: 14px;
  }
  .bullet-content strong {
    font-size: 0.92rem;
  }
  .bullet-content span {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .visual-card {
    padding: 14px;
    border-radius: 18px;
  }
  .visual-caption {
    font-size: 0.78rem;
    margin-top: 10px;
    padding-top: 10px;
  }
  .demo-section {
    padding: 60px 0;
  }
  .demo-box {
    border-radius: 18px;
  }
  .preset-prompts-bar {
    padding: 12px 14px;
    gap: 8px;
  }
  .preset-label {
    width: 100%;
    margin-bottom: 4px;
    font-size: 0.8rem;
  }
  .prompt-chip {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .demo-chat-window {
    padding: 16px 12px;
    min-height: 260px;
    gap: 14px;
  }
  #demoDynamicArea {
    gap: 14px;
  }
  .demo-avatar-img, .demo-avatar {
    width: 32px;
    height: 32px;
  }
  .demo-bubble {
    max-width: 88%;
    padding: 12px 14px;
    font-size: 0.88rem;
    border-radius: 14px;
  }
  .tech-stack-section {
    padding: 50px 0 70px;
  }
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }
  .download-cta-section {
    padding: 50px 0 70px;
  }
  .download-card {
    padding: 36px 18px;
    border-radius: 24px;
  }
  .download-title {
    font-size: clamp(1.65rem, 5vw, 2.1rem);
    line-height: 1.25;
  }
  .download-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .btn-playstore-large {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 10px 18px;
  }
  .footer {
    padding: 40px 0 24px;
  }
  .footer-content {
    flex-direction: column;
    gap: 28px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
  }
  .legal-container {
    padding: 24px 16px;
    margin: 20px auto 60px;
    border-radius: 20px;
  }
  .legal-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }
  .legal-header .section-title {
    font-size: 1.7rem;
  }
  .legal-body h2 {
    font-size: 1.2rem;
    margin: 24px 0 10px;
  }
  .legal-body p, .legal-body li {
    font-size: 0.92rem;
    line-height: 1.6;
  }
  .legal-body ul {
    margin-left: 18px;
  }
}

/* Small Compact Mobile Screens (<= 420px) */
@media (max-width: 420px) {
  .brand-name {
    font-size: 1.15rem;
    line-height: 1.1;
  }
  .brand-sub {
    font-size: 0.65rem;
    line-height: 1;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
  .hero-cta-group .btn {
    width: 100%;
    max-width: 290px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }
  .phone-frame {
    width: 290px;
    height: 520px;
    border-radius: 32px;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
