/* ==========================================================================
   WSync - Enterprise WhatsApp Automation Platform
   Modern CSS Design System & Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root, [data-theme="light"] {
  /* Modern Clean Light Palette (Default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --border-color: rgba(15, 23, 42, 0.09);
  --border-highlight: rgba(16, 185, 129, 0.4);

  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.2);
  --accent-indigo: #4f46e5;
  --accent-indigo-glow: rgba(79, 70, 229, 0.2);
  --accent-amber: #d97706;
  --accent-cyan: #0891b2;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dark: #64748b;

  --navbar-bg: rgba(248, 250, 252, 0.88);
  --btn-sec-bg: #ffffff;
  --btn-sec-hover: #f1f5f9;
  --btn-sec-border: rgba(15, 23, 42, 0.12);
  --btn-sec-color: #0f172a;

  --footer-bg: #f1f5f9;
  --footer-border: rgba(15, 23, 42, 0.08);
  --grid-line-color: rgba(15, 23, 42, 0.035);

  --orb-emerald-opacity: 0.08;
  --orb-indigo-opacity: 0.08;

  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.07);
  --shadow-glow-emerald: 0 0 35px -5px rgba(5, 150, 105, 0.2);
  --shadow-glow-indigo: 0 0 35px -5px rgba(79, 70, 229, 0.2);

  --table-head-bg: #f1f5f9;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Blur */
  --glass-blur: blur(16px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  /* Sleek Dark Palette */
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(16, 185, 129, 0.3);

  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.25);
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;

  --navbar-bg: rgba(8, 12, 20, 0.85);
  --btn-sec-bg: rgba(255, 255, 255, 0.05);
  --btn-sec-hover: rgba(255, 255, 255, 0.1);
  --btn-sec-border: rgba(255, 255, 255, 0.12);
  --btn-sec-color: #f8fafc;

  --footer-bg: #04060a;
  --footer-border: rgba(255, 255, 255, 0.05);
  --grid-line-color: rgba(255, 255, 255, 0.02);

  --orb-emerald-opacity: 0.15;
  --orb-indigo-opacity: 0.15;

  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow-emerald: 0 0 35px -5px rgba(16, 185, 129, 0.35);
  --shadow-glow-indigo: 0 0 35px -5px rgba(99, 102, 241, 0.35);

  --table-head-bg: rgba(255, 255, 255, 0.04);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Gradients */
.bg-glow-orb-1 {
  position: fixed;
  top: -150px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, var(--orb-emerald-opacity)) 0%, rgba(16, 185, 129, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.bg-glow-orb-2 {
  position: fixed;
  top: 35%;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(99, 102, 241, var(--orb-indigo-opacity)) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.bg-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* Layout Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.brand-badge svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-emerald);
  border-radius: var(--radius-full);
}

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

/* Modern Theme Toggle Button */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--btn-sec-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--btn-sec-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--accent-emerald-glow);
}

.theme-toggle:active {
  transform: translateY(0) scale(0.95);
}

.theme-toggle .theme-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, color 0.3s ease;
}

/* Default / Light theme: Sun hidden downwards, Moon active & visible */
:root:not([data-theme="dark"]) .theme-toggle .sun-icon {
  transform: translateY(28px) rotate(90deg) scale(0.5);
  opacity: 0;
  pointer-events: none;
}

:root:not([data-theme="dark"]) .theme-toggle .moon-icon {
  transform: translateY(0) rotate(0deg) scale(1);
  opacity: 1;
  color: #4f46e5;
}

/* Dark theme: Moon hidden upwards, Sun active & visible */
[data-theme="dark"] .theme-toggle .moon-icon {
  transform: translateY(-28px) rotate(-90deg) scale(0.5);
  opacity: 0;
  pointer-events: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  transform: translateY(0) rotate(0deg) scale(1);
  opacity: 1;
  color: #f59e0b;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #10b981 0%, #10b981 100%);
  box-shadow: 0 6px 26px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--btn-sec-bg);
  color: var(--btn-sec-color);
  border-color: var(--btn-sec-border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
  background: var(--btn-sec-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn-outline-emerald {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-outline-emerald:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-emerald);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin: 0 auto 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.hero-stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Logos / Trust Strip */
.trust-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.trust-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 24px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.trust-logo-item:hover {
  opacity: 1;
  color: var(--text-main);
}

.trust-logo-item svg {
  width: 24px;
  height: 24px;
}

/* Section Common */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: var(--glass-blur);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-emerald), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle);
}

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

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.feature-icon-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.feature-icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.feature-icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.feature-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-list-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* Interactive WhatsApp Phone Simulator */
.simulator-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

.phone-mockup {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: #0f172a;
  border: 10px solid #1e293b;
  border-radius: 40px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.2);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.phone-header {
  background: #075e54;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-avatar {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #075e54;
  font-weight: 700;
  font-size: 14px;
}

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

.phone-user-name {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-status {
  font-size: 11px;
  opacity: 0.85;
}

.phone-body {
  background: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 20px 14px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 90%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
}

.chat-bubble.inbound {
  background: #202c33;
  color: #e9edef;
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.chat-bubble.outbound {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.chat-time {
  font-size: 10px;
  opacity: 0.6;
  text-align: right;
  margin-top: 4px;
}

.chat-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.chat-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #25d366;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Code Playground Section */
.code-box {
  background: #030712;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.code-header {
  background: #0b101b;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.code-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.code-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-tab.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.code-content {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #e2e8f0;
  overflow-x: auto;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.04);
  box-shadow: var(--shadow-glow-emerald);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-emerald);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  min-height: 42px;
  margin-bottom: 24px;
}

.pricing-amount-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
}

.pricing-currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-features-list {
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features-list svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-grid {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  transition: transform 0.25s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
  transition: max-height 0.3s ease-in;
}

/* CTA Banner Section */
.cta-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(16, 185, 129, 0.2);
}

.cta-banner-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: 80px 0 40px;
  font-size: 14px;
  color: var(--text-muted);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--text-dark);
}

/* Documentation Layout Specifics */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 40px 0 100px;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 16px;
}

.docs-sidebar-group {
  margin-bottom: 28px;
}

.docs-sidebar-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.docs-sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-sidebar-link {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.docs-sidebar-link:hover, .docs-sidebar-link.active {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.docs-content {
  max-width: 860px;
}

.docs-content h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.docs-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.docs-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.docs-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
  font-size: 13px;
}

.docs-table th, .docs-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border-color);
}

.docs-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-weight: 600;
}

.docs-table td {
  color: var(--text-muted);
}

.docs-table code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-title { font-size: 46px; }
  .simulator-container { grid-template-columns: 1fr; }
  .phone-mockup { max-width: 340px; margin-top: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 15px; }
  .nav-links, .nav-actions .btn-login { display: none; }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(8, 12, 20, 0.98);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 18px;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  }
  .nav-links.open .nav-link {
    font-size: 16px;
    padding: 8px 0;
  }
  .mobile-toggle { display: block; }
  .section-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .pricing-card.popular { transform: none; }
}
