/* Quantix Feeds Inc. - Next-Gen Financial Data Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #05080e;
  --bg-card: rgba(14, 20, 34, 0.7);
  --bg-card-solid: #0d1322;
  --bg-card-hover: #131c30;
  --bg-surface: #0a0f1c;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.4);
  
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.3);
  
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  direction: ltr;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #1a2438; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

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

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 40%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Live Financial Ticker Header */
.ticker-wrap {
  width: 100%;
  background: #030509;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  font-size: 13px;
  position: relative;
  z-index: 100;
}

.ticker-move {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 45s linear infinite;
}

.ticker-move:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 36px;
  font-weight: 500;
}

.ticker-name { color: var(--text-muted); }
.ticker-val { color: #fff; font-weight: 700; font-family: var(--font-mono); }
.up { color: #10b981; }
.down { color: #ef4444; }

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.5px;
}

.logo img {
  height: 38px;
  width: 38px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover { color: #fff; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  color: #030d0a;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--primary-glow);
  border: none;
  cursor: pointer;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  padding: 85px 0 65px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 50px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 1.5s infinite;
}

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

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 550px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.trial-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 36px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.stat-item h4 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.stat-item p {
  font-size: 12px;
  color: var(--text-dim);
}

/* Interactive Code / Terminal Card */
.terminal-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal-header {
  background: #080c16;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.terminal-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  min-height: 250px;
}

.feed-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

.feed-row:hover {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.2);
}

.symbol { font-weight: 700; color: #fff; }
.bid-ask { display: flex; gap: 16px; font-size: 14px; }
.latency {
  font-size: 11px;
  color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.code-snippet {
  color: #a7f3d0;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Ecosystem / Badges Bar */
.ecosystem-bar {
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
}

.ecosystem-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  opacity: 0.7;
}

.eco-item {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

/* Features Section */
.section { padding: 90px 0; }

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

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

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

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

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

.feature-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  padding: 36px 30px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.08);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 22px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.price-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
}

.price-card.popular {
  background: linear-gradient(180deg, #0e172a 0%, #0d1322 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
}

.price-card.vip {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 15px 40px var(--accent-gold-glow);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #04100c;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.vip-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.price-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.price-header p {
  color: var(--text-muted);
  font-size: 13px;
  min-height: 38px;
}

.price-amount {
  margin: 24px 0 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.currency { font-size: 24px; font-weight: 700; color: var(--text-muted); }
.value { font-size: 48px; font-weight: 900; color: #fff; font-family: var(--font-mono); }
.period { font-size: 14px; color: var(--text-dim); }

.trial-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 22px;
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 14px;
}

.price-features li svg { color: var(--primary); flex-shrink: 0; }
.price-features li.disabled { color: var(--text-dim); text-decoration: line-through; }
.price-features li.disabled svg { color: var(--text-dim); }

.price-btn { width: 100%; }

/* Order Form Section */
.order-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 90px 0;
}

.order-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: #060911;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-main);
  font-size: 15px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control { resize: vertical; min-height: 110px; }

.plan-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 20px;
  width: 100%;
  justify-content: center;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(3, 5, 10, 0.9);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9);
  transform: scale(0.92);
  transition: var(--transition);
}

.modal-overlay.active .modal-card { transform: scale(1); }

.modal-icon {
  width: 68px;
  height: 68px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 20px;
}

.modal-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.modal-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; line-height: 1.6; }

/* Minimalist Single-Line Footer */
.minimal-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg-dark);
}

.minimal-footer-links {
  display: inline-flex;
  gap: 24px;
  margin-bottom: 12px;
}

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

.minimal-footer-links a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .order-box { padding: 24px; }
}
/* ==========================================
   تنسيقات وتحسينات الموبايل (Mobile Responsive)
   ========================================== */

@media (max-width: 768px) {
  /* ضبط الحاويات والشاشات */
  .container {
    padding: 0 16px;
  }

  /* الهيدر وشريط التنقل */
  .nav-container {
    height: 64px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .logo img {
    width: 32px;
    height: 32px;
  }

  .nav-actions .btn-cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* قسم الـ Hero الرئيسي */
  .hero {
    padding: 40px 0 30px;
  }

  .hero-title {
    font-size: 28px !important;
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 15px;
    margin-bottom: 24px;
  }

  /* جعل الأزرار تحت بعضها في الموبايل */
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .trial-banner {
    font-size: 12px;
    margin-bottom: 24px;
  }

  /* كارت الأرقام الإحصائية */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  /* كارت أسعار البث المباشر (Terminal) */
  .terminal-card {
    border-radius: 12px;
  }

  .terminal-header {
    padding: 10px 12px;
  }

  /* جعل التبويبات تقبل التمرير الأفقي بدلاً من الخروج عن الشاشة */
  .terminal-tabs {
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    font-size: 11px;
    padding: 4px 8px;
  }

  .feed-row {
    font-size: 12px;
    padding: 8px 10px;
    gap: 6px;
  }

  .bid-ask {
    font-size: 12px;
    gap: 8px;
  }

  .latency {
    font-size: 10px;
    padding: 2px 6px;
  }

  /* شريط الشركاء Ecosystem */
  .ecosystem-grid {
    justify-content: center;
    gap: 12px 18px;
  }

  .eco-item {
    font-size: 12px;
  }

  /* العناوين الرئيسية للأقسام */
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 24px !important;
  }

  .section-subtitle {
    font-size: 14px;
  }

  /* كروت خطط الأسعار والخدمات */
  .price-card {
    padding: 28px 20px;
  }

  .price-header h3 {
    font-size: 20px;
  }

  .value {
    font-size: 38px;
  }

  /* نموذج الطلب (Form) */
  .order-section {
    padding: 50px 0;
  }

  .order-box {
    padding: 20px 16px;
    border-radius: 12px;
  }

  /* منع التكبير التلقائي المزعج في أجهزة الآيفون عند الكتابة في الحقول */
  .form-control {
    font-size: 16px !important;
    padding: 12px 14px;
  }

  /* النافذة المنبثقة (Modal Popup) */
  .modal-card {
    padding: 28px 20px;
    margin: 0 12px;
  }

  /* الفوتر (Footer) */
  .minimal-footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
}

/* شاشات الموبايل الصغيرة جداً (أقل من 400px) */
@media (max-width: 400px) {
  .logo span {
    font-size: 16px;
  }
  
  .hero-title {
    font-size: 24px !important;
  }
}
