/* ==========================================================================
   TalkWide — Modern Design System & Stylesheet (Plus Jakarta Sans)
   ========================================================================== */

:root {
  /* Premium Brand Colors */
  --primary: #6366F1;
  --primary-rgb: 99, 102, 241;
  --primary-hover: #4F46E5;
  --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  
  --secondary: #0EA5E9;
  --secondary-gradient: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%);
  
  --accent-coral: #F87171;
  --accent-amber: #FBBF24;
  --accent-emerald: #10B981;

  /* Neutral Tokens (Dark / Default Sleek Mode) */
  --bg-main: #0B0F19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1F2937;
  --bg-glass: rgba(17, 24, 39, 0.88);
  --bg-glass-card: rgba(31, 41, 55, 0.65);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(99, 102, 241, 0.5);
  
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-subtle: #6B7280;
  
  /* Shadows & Glows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.35), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.28);
  --shadow-glow-pink: 0 0 40px rgba(236, 72, 153, 0.28);

  /* Spacing & Sizing */
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Modern High-End Typography */
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-card: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(99, 102, 241, 0.4);
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-subtle: #94A3B8;
  
  --shadow-glow: 0 10px 30px rgba(99, 102, 241, 0.15);
  --shadow-glow-pink: 0 10px 30px rgba(236, 72, 153, 0.15);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  letter-spacing: -0.01em;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* ==========================================================================
   Ambient Background Glows (Atmospheric Orbs)
   ========================================================================== */

.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366F1 0%, rgba(99, 102, 241, 0) 70%);
}

.orb-2 {
  bottom: 20%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #EC4899 0%, rgba(236, 72, 153, 0) 70%);
  animation-delay: -7s;
}

.orb-3 {
  top: 40%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0EA5E9 0%, rgba(14, 165, 233, 0) 70%);
  animation-delay: -14s;
}

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

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.badge-pill.pink {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.25);
  color: #EC4899;
}

.section-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

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

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

/* ==========================================================================
   Navigation Bar & Mobile Drawer
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all var(--transition-normal);
}

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

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand-logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  transform: rotate(15deg);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

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

/* Slide-down Mobile Navigation Drawer */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.mobile-nav.open {
  padding: 24px;
  max-height: 450px;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding-top: 160px;
  padding-bottom: 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-badge-item svg {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Interactive Phone Mockup
   ========================================================================== */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup-wrapper {
  position: relative;
  width: min(320px, 92vw);
  height: 620px;
  background: #000000;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.2);
  border: 4px solid #2A3342;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 18px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0F172A;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  color: #FFFFFF;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px 4px 18px;
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 600;
}

.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-app-header .logo-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
}

.phone-screen-content {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Mockup Chat Card */
.mockup-user-card {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mockup-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EC4899, #8B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  position: relative;
}

.mockup-avatar .online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10B981;
  border: 2px solid #0F172A;
  border-radius: 50%;
}

.mockup-user-info {
  flex: 1;
}

.mockup-user-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mockup-user-info p {
  font-size: 0.72rem;
  color: #94A3B8;
}

/* Chat bubble with translation simulation */
.mockup-chat-bubble {
  background: #334155;
  border-radius: 14px 14px 14px 2px;
  padding: 8px 12px;
  font-size: 0.75rem;
  max-width: 85%;
  line-height: 1.4;
}

.mockup-chat-bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  border-radius: 14px 14px 2px 14px;
}

.mockup-translation-box {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  color: #FDE047;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Audio Call Floating Widget */
.mockup-call-bar {
  background: linear-gradient(135deg, #10B981, #059669);
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Floating Badges outside Phone */
.floating-badge {
  position: absolute;
  padding: 12px 18px;
  background: var(--bg-glass-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  animation: floatBadge 6s infinite ease-in-out alternate;
}

.floating-badge-1 {
  top: 15%;
  left: -40px;
}

.floating-badge-2 {
  bottom: 18%;
  right: -30px;
  animation-delay: -3s;
}

.floating-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.floating-badge-icon.blue { background: #0EA5E9; }
.floating-badge-icon.green { background: #10B981; }

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

/* ==========================================================================
   Key Features Grid
   ========================================================================== */

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

.feature-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
  color: #FFFFFF;
}

.icon-purple { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.icon-blue { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
.icon-pink { background: linear-gradient(135deg, #EC4899, #F43F5E); }
.icon-green { background: linear-gradient(135deg, #10B981, #059669); }
.icon-amber { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.icon-indigo { background: linear-gradient(135deg, #4F46E5, #6366F1); }

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

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

/* ==========================================================================
   Interactive Live App Tabs
   ========================================================================== */

.demo-tabs-container {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.tab-content {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.tab-content.active {
  display: grid;
  animation: fadeIn 0.4s ease-in-out;
}

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

.tab-info h3 {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.tab-info p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.feature-bullets li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.tab-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   How It Works (Steps)
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.step-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

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

/* ==========================================================================
   Testimonials / Reviews
   ========================================================================== */

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

.review-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: var(--accent-amber);
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.review-text {
  font-size: 1.025rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
}

.review-meta h4 {
  font-size: 0.95rem;
  font-weight: 800;
}

.review-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-item:hover {
  border-color: var(--border-glass-hover);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
  padding: 0 24px 22px 24px;
  color: var(--text-muted);
  font-size: 0.985rem;
  line-height: 1.7;
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */

.cta-card {
  background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.15), rgba(99, 102, 241, 0.15)), var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.cta-card h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.cta-card p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px 0;
}

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

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

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  color: var(--text-main);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

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

/* ==========================================================================
   Legal & Privacy Policy Styles
   ========================================================================== */

.legal-content {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 50px;
  box-shadow: var(--shadow-xl);
  margin-top: 40px;
}

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

.legal-header h1 {
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.legal-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 36px 0 16px 0;
  color: var(--text-main);
}

.legal-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 20px 0 10px 0;
  color: var(--text-main);
}

.legal-body p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-body ul {
  color: var(--text-muted);
  margin: 0 0 20px 24px;
  line-height: 1.75;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-callout {
  background: rgba(99, 102, 241, 0.08);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.legal-callout p {
  margin-bottom: 0;
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   Early Access & Waitlist Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 36px 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.modal-header h3 {
  font-size: 1.7rem;
  font-weight: 900;
  margin-top: 12px;
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.modal-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-perks {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--accent-emerald);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.modal-success-content {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.modal-success-content.active {
  display: block;
}

.success-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content h1 {
    font-size: 2.85rem;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-badges {
    justify-content: center;
  }

  .features-grid,
  .reviews-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab-content {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2.15rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .floating-badge {
    display: none;
  }

  .legal-content {
    padding: 30px 20px;
  }

  .cta-card {
    padding: 40px 20px;
  }

  .cta-card h2 {
    font-size: 2.1rem;
  }

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

  .hero-content h1 {
    font-size: 2.35rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .btn-lg {
    padding: 14px 26px;
    font-size: 0.95rem;
    width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .demo-tabs-container {
    padding: 24px 16px;
  }

  .tab-btn {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}
