/* ==========================================================================
   LOQUILINGUA ECOSYSTEM DESIGN SYSTEM (NIMETRI)
   Dark Luxury, Glassmorphism, Micro-Interactions, Mobile-First Responsiveness
   ========================================================================== */

:root {
  --bg-deep: #050811;
  --bg-surface: #0a0f1d;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(26, 38, 66, 0.85);
  --bg-glass: rgba(10, 15, 29, 0.7);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(99, 102, 241, 0.45);
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.25);
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #ffffff;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px rgba(99, 102, 241, 0.35);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Lighting */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(80px);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-orb-2 {
  position: absolute;
  top: 35%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(90px);
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

.glow-orb-3 {
  position: absolute;
  bottom: 5%;
  left: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(168, 85, 247, 0) 70%);
  filter: blur(85px);
  animation: floatOrb 20s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Typography & General */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-highlight);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand-by {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-highlight);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.84rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 24px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 900px;
  margin: 0 auto 20px;
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Store Badges */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-card);
  color: #fff;
  transition: var(--transition);
  text-align: left;
}

.store-btn:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  background: rgba(30, 41, 59, 0.9);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.store-btn-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.store-btn-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

/* Trust Ticker */
.trust-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  max-width: 960px;
  margin: 0 auto 60px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-highlight);
}

.stat-lbl {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

/* Product Switcher Bar */
.product-switcher-section {
  padding: 30px 0 80px;
}

.switcher-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px;
  max-width: 480px;
  margin: 0 auto 40px;
}

.switcher-tab {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.switcher-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
  display: block;
}

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

/* App Showcase Grid */
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
}

.product-title {
  font-size: 2.3rem;
}

.product-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.bullet-icon {
  color: var(--accent-emerald);
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Phone Mockup Frame */
.device-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 300px;
  height: 610px;
  border-radius: 46px;
  background: #000;
  border: 8px solid #1e293b;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.25);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Floating Badges on Mockup */
.floating-badge {
  position: absolute;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  animation: floatBadge 6s ease-in-out infinite alternate;
}

.badge-top-left {
  top: 12%;
  left: -20px;
}

.badge-bottom-right {
  bottom: 14%;
  right: -20px;
  animation-delay: -3s;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Interactive Simulator Section */
.demo-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 29, 0.8) 50%, transparent 100%);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.interactive-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

/* Speaking Simulator Styles */
.sim-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.lang-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}

.sim-phrase-card {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.phrase-target {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 6px;
}

.phrase-trans {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.waveform-wrap {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 20px 0;
}

.wave-bar {
  width: 5px;
  height: 12px;
  border-radius: 4px;
  background: var(--primary);
  transition: height 0.15s ease;
}

.wave-bar.active {
  animation: waveAnim 0.8s ease-in-out infinite alternate;
}

@keyframes waveAnim {
  0% { height: 10px; background: var(--primary); }
  50% { height: 42px; background: var(--secondary); }
  100% { height: 16px; background: var(--accent-purple); }
}

.sim-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mic-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  transition: var(--transition);
}

.mic-btn.recording {
  animation: pulseMic 1.2s infinite;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 25px rgba(16, 185, 129, 0.5);
}

@keyframes pulseMic {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.score-badge-wrap {
  display: none;
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-align: center;
  animation: fadeIn 0.3s ease forwards;
}

/* Reader Simulator Styles */
.book-paper {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-subtle);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  line-height: 1.9;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.clickable-word {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.15);
  border-bottom: 2px solid var(--primary);
  color: #a5b4fc;
  font-weight: 600;
  transition: var(--transition);
}

.clickable-word:hover, .clickable-word.selected {
  background: var(--primary);
  color: #fff;
}

.word-insight-sheet {
  display: none;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.3s ease forwards;
}

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

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet-word {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-highlight);
}

.sheet-phonetic {
  font-size: 0.88rem;
  color: var(--secondary);
}

.sheet-ai-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.insight-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

.insight-box {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.insight-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 4px;
}

/* Comparison Table */
.comparison-section {
  padding: 80px 0;
}

.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th, .comp-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.comp-table th {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.comp-table th.highlight-col, .comp-table td.highlight-col {
  background: rgba(99, 102, 241, 0.08);
  font-weight: 600;
}

.check-icon {
  color: var(--accent-emerald);
  font-size: 1.2rem;
  font-weight: bold;
}

.cross-icon {
  color: var(--text-dim);
  font-size: 1.2rem;
}

/* Blog Preview Section */
.blog-preview-section {
  padding: 80px 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.blog-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.read-more {
  color: var(--secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Footer */
.footer {
  background: #03060d;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 320px;
  margin: 16px 0 24px;
}

.nimetri-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.nimetri-badge-link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-highlight);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* Legal & Support Layouts */
.legal-content {
  padding: 60px 0;
  max-width: 820px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--text-highlight);
}

.legal-section p, .legal-section li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Support FAQ Accordion */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-muted);
  line-height: 1.7;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 24px 24px;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
    padding: 32px 20px;
  }
  .product-info {
    align-items: center;
  }
  .feature-bullets {
    align-items: flex-start;
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-secondary {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .insight-comparison {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .trust-stats {
    gap: 20px;
  }
  .stat-divider {
    display: none;
  }
}

/* SVG Icons Utility */
.inline-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.bullet-check {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Brand Parrot Logo Styling */
.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-logo-img {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 6px 26px rgba(99, 102, 241, 0.65);
}


/* ==========================================================================
   Language Selector Dropdown & i18n Styles
   ========================================================================== */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
  z-index: 105;
}

.lang-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 14px;
  border-radius: 20px;
  color: #f1f5f9;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.lang-selector-btn:hover,
.lang-dropdown-wrapper.open .lang-selector-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.globe-icon {
  color: #38bdf8;
  flex-shrink: 0;
}

.chevron-icon {
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.lang-dropdown-wrapper.open .chevron-icon {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.15);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-dropdown-wrapper.open .lang-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-menu-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 6px 10px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.lang-menu-scroll {
  max-height: 290px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.lang-menu-scroll::-webkit-scrollbar {
  width: 5px;
}

.lang-menu-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.lang-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding-left: 15px;
}

.lang-menu-item.active {
  background: rgba(99, 102, 241, 0.18);
  color: #38bdf8;
  font-weight: 600;
}

.lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.lang-name {
  flex-grow: 1;
}

.lang-code {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lang-menu-item.active .lang-code {
  color: #38bdf8;
}

/* RTL Mode for Arabic (ar) */
body.rtl-mode {
  direction: rtl;
  text-align: right;
}

body.rtl-mode .lang-dropdown-menu {
  right: auto;
  left: 0;
}

body.rtl-mode .lang-menu-item {
  text-align: right;
}

body.rtl-mode .lang-menu-item:hover {
  padding-left: 12px;
  padding-right: 15px;
}

body.rtl-mode .nav-wrap {
  flex-direction: row-reverse;
}

body.rtl-mode .feature-bullets li {
  padding-left: 0;
  padding-right: 28px;
}

body.rtl-mode .bullet-check {
  margin-right: 0;
  margin-left: 10px;
}

body.rtl-mode .hero {
  text-align: right;
}

body.rtl-mode .insight-box {
  border-left: none !important;
  border-right: 3px solid var(--secondary);
}

body.rtl-mode .floating-badge.badge-top-left {
  left: auto;
  right: -20px;
}

body.rtl-mode .floating-badge.badge-bottom-right {
  right: auto;
  left: -20px;
}

body.rtl-mode .footer-bottom {
  flex-direction: row-reverse;
}

/* Coming Soon Badge & Toast */
.store-btn-soon {
  position: relative;
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.store-btn-soon:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

.soon-badge {
  font-size: 0.65rem;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 10px;
  white-space: nowrap;
}

.loqui-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  padding: 14px 24px;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.loqui-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
