/* ==========================================================================
   GHOSN PRO — Luxury Trading Intelligence Landing Page Styles
   Light & Dark Theme Engine + Mobile First Optimization
   ========================================================================== */

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

/* --- Dark Theme (Default) --- */
:root, [data-theme="dark"] {
  --bg-main: #07090E;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-elevated: #0F172A;
  --bg-terminal: #0B111E;
  --bg-terminal-header: #080D17;
  --bg-input: rgba(255, 255, 255, 0.05);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(16, 185, 129, 0.4);
  --border-active: #10B981;
  
  --primary: #10B981;
  --primary-light: #34D399;
  --primary-glow: rgba(16, 185, 129, 0.25);
  --primary-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
  
  --accent-cyan: #06B6D4;
  --accent-gold: #F59E0B;
  --accent-purple: #8B5CF6;
  --accent-red: #EF4444;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --chat-user-bg: #1E293B;
  --code-bg: #05070B;
  --ticker-bg: rgba(15, 23, 42, 0.5);
  --footer-bg: #05070B;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px -10px var(--primary-glow);
}

/* --- Light Theme --- */
[data-theme="light"] {
  --bg-main: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-terminal: #F1F5F9;
  --bg-terminal-header: #E2E8F0;
  --bg-input: #FFFFFF;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-card: rgba(0, 0, 0, 0.1);
  --border-focus: rgba(16, 185, 129, 0.6);
  --border-active: #059669;
  
  --primary: #059669;
  --primary-light: #10B981;
  --primary-glow: rgba(16, 185, 129, 0.15);
  --primary-gradient: linear-gradient(135deg, #10B981 0%, #047857 100%);
  
  --accent-cyan: #0891B2;
  --accent-gold: #D97706;
  --accent-purple: #7C3AED;
  --accent-red: #DC2626;
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;
  
  --chat-user-bg: #E2E8F0;
  --code-bg: #1E293B;
  --ticker-bg: rgba(241, 245, 249, 0.8);
  --footer-bg: #F1F5F9;
  
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px -10px rgba(16, 185, 129, 0.2);
}

:root {
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-ar);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="en"] body {
  font-family: var(--font-en);
}

/* Icon Support (Lucide) */
.icon-sm {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  vertical-align: middle;
}

.icon-md {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  vertical-align: middle;
}

.icon-lg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.icon-xl {
  width: 36px;
  height: 36px;
  stroke-width: 1.8;
}

/* Background Ambient Glows */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

[data-theme="light"] .bg-glow-orb {
  opacity: 0.35;
}

.orb-1 {
  top: -8%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 70%);
}

.orb-2 {
  top: 35%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0) 70%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  position: relative;
  z-index: 1;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.85rem 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--bg-card);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.brand-text span {
  color: var(--primary-light);
}

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-light);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-inline-start: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Compact Lang & Theme Buttons */
.icon-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
  height: 36px;
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.theme-toggle-btn {
  width: 36px;
  padding: 0;
}

/* General Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  height: 36px;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.02rem;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-card);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: var(--bg-input);
}

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

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-main);
  z-index: 999;
  padding: 5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  transform: translateY(0);
}

.mobile-drawer-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

[dir="rtl"] .mobile-drawer-close {
  right: auto;
  left: 1.25rem;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  padding-top: 7.5rem;
  padding-bottom: 3.5rem;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 1.25rem;
}

.pulsing-dot {
  width: 7px;
  height: 7px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  color: var(--primary-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

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

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.stat-number.green { color: var(--primary-light); }
.stat-number.cyan { color: var(--accent-cyan); }
.stat-number.gold { color: var(--accent-gold); }

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ==================== TICKER ==================== */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--ticker-bg);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
  margin: 1.5rem 0 4rem;
}

.ticker-track {
  display: flex;
  gap: 2.25rem;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
  width: max-content;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.ticker-symbol {
  font-weight: 700;
  color: var(--text-main);
}

.ticker-price {
  font-weight: 600;
  color: var(--text-muted);
}

.ticker-change {
  font-weight: 600;
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.ticker-change.up {
  color: var(--primary-light);
  background: rgba(16, 185, 129, 0.12);
}

.ticker-change.down {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.12);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== CHAT SIMULATOR ==================== */
.chat-demo-section {
  padding: 3rem 0 5rem;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

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

.chat-terminal-card {
  background: var(--bg-terminal);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 640px;
  max-width: 1000px;
  margin: 0 auto;
}

.terminal-header {
  background: var(--bg-terminal-header);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.terminal-title {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--primary-light);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  max-width: 85%;
  display: flex;
  gap: 0.75rem;
  animation: fadeInBubble 0.25s ease;
}

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

.chat-bubble.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
}

.chat-bubble.bot .chat-avatar {
  background: var(--primary-gradient);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.chat-bubble.user .chat-avatar {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.bubble-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-bubble.user .bubble-content {
  background: var(--chat-user-bg);
  border-color: var(--border-subtle);
}

.code-snippet {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38BDF8;
  direction: ltr;
  text-align: left;
}

.prompt-chips-wrap {
  padding: 0.65rem 1.25rem;
  background: var(--bg-terminal-header);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.prompt-chips-wrap::-webkit-scrollbar {
  display: none;
}

.prompt-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.prompt-chip:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--border-focus);
  color: var(--text-main);
}

.chat-input-bar {
  padding: 0.85rem 1.25rem;
  background: var(--bg-terminal-header);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.15rem;
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
}

.chat-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 12px var(--primary-glow);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

/* ==================== ECOSYSTEM ==================== */
.ecosystem-section {
  padding: 4.5rem 0;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eco-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.eco-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.eco-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.eco-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.eco-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* ==================== FEATURES ==================== */
.features-section {
  padding: 4.5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon.green { background: rgba(16, 185, 129, 0.12); color: var(--primary-light); }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.12); color: var(--accent-cyan); }
.feature-icon.gold { background: rgba(245, 158, 11, 0.12); color: var(--accent-gold); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); }

.feature-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==================== COMPARISON ==================== */
.comparison-section {
  padding: 4.5rem 0;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
  margin-top: 2.5rem;
}

.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: start;
}

.comparison-table th, .comparison-table td {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-terminal-header);
  font-weight: 700;
  font-size: 0.92rem;
}

.comparison-table th.highlight-col, .comparison-table td.highlight-col {
  background: rgba(16, 185, 129, 0.05);
}

.comparison-table td {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.table-check {
  color: var(--primary-light);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.table-cross {
  color: var(--accent-red);
  opacity: 0.7;
}

/* ==================== PRICING ==================== */
.pricing-section {
  padding: 4.5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: center;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  transition: var(--transition-smooth);
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.15), var(--shadow-glow);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

[dir="rtl"] .pricing-badge {
  right: auto;
  left: 20px;
}

.pricing-plan {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.pricing-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  min-height: 38px;
}

.pricing-cost {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  margin: 1.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.pricing-cost span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li i {
  color: var(--primary-light);
  flex-shrink: 0;
}

/* ==================== CTA BANNER ==================== */
.cta-section {
  padding: 4rem 0 5rem;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 3.5rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  max-width: 300px;
  line-height: 1.65;
}

.footer-heading {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==================== MOBILE RESPONSIVENESS ==================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .pricing-card.featured { transform: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }
  
  /* Hero */
  .hero-section { padding-top: 5.5rem; padding-bottom: 2rem; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-actions .btn { width: 100%; }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
  }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.72rem; }
  
  /* Chat Simulator */
  .chat-terminal-card { height: 520px; }
  .chat-bubble { max-width: 96%; }
  .bubble-content { font-size: 0.85rem; padding: 0.75rem 0.95rem; }
  .prompt-chips-wrap { padding: 0.5rem 0.85rem; }
  .prompt-chip { font-size: 0.75rem; }
  .chat-input-bar { padding: 0.65rem 0.85rem; }
  
  /* Grids */
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
