/* Smart Bin Riyadh 2026 - Main Master Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Readex+Pro:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Palette - KSA Modern Vision Theme */
  --bg-dark: #070b12;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(26, 38, 66, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-glow: rgba(16, 185, 129, 0.4);
  
  --primary: #10b981; /* KSA Eco Emerald */
  --primary-glow: rgba(16, 185, 129, 0.5);
  --primary-dark: #059669;
  
  --secondary: #0ea5e9; /* Tech Cyan */
  --secondary-glow: rgba(14, 165, 233, 0.5);
  
  --accent-gold: #f59e0b; /* KSA Vision Gold */
  --accent-gold-glow: rgba(245, 158, 11, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-ar: 'Readex Pro', sans-serif;
  --font-en: 'Outfit', sans-serif;
  
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-ar);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  direction: rtl;
  position: relative;
}

/* Atmospheric Background Glows */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0b1120;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid #0b1120;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--primary-glow);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(7, 11, 18, 0.9);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.logo-text .subtitle {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

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

.badge-ksa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

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

.hero-content .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 30px;
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
}

.stat-box .number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-box .label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero Visual & Interactive Hotspots */
.hero-visual-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bin-3d-card {
  width: 100%;
  max-width: 540px;
  padding: 16px 16px 24px 16px;
  position: relative;
  text-align: center;
  border: 1px solid var(--glass-border);
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.bin-image-wrapper {
  position: relative;
  width: 100%;
  height: 580px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.bin-mockup-svg {
  width: 280px;
  height: 440px;
  filter: drop-shadow(0 20px 40px rgba(16, 185, 129, 0.25));
  transition: var(--transition);
}

.bin-mockup-svg:hover {
  transform: scale(1.02);
}

/* Interactive Hotspots */
.hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  border: 2px solid var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 15px var(--primary-glow);
  animation: pulse 2s infinite;
  z-index: 10;
}

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

.hotspot-tooltip {
  position: absolute;
  bottom: 45px;
  right: -100px;
  width: 240px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  text-align: right;
  z-index: 20;
}

.hotspot:hover .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-5px);
}

/* Feature Cards Section */
.section-padding {
  padding: 100px 0;
}

.section-title-wrapper {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

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

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

.feature-card {
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--bg-card-hover);
}

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

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

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* FinBin & Competitor Comparison Section */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  background: var(--bg-card);
}

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

.comparison-table th {
  background: rgba(15, 23, 42, 0.9);
  font-size: 1.1rem;
  font-weight: 700;
}

.comparison-table td {
  font-size: 1rem;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-winner {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-loser {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
}

/* Interactive ROI Calculator */
.calc-card {
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.input-group label span.val {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
}

.range-slider {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  cursor: pointer;
}

.calc-results {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--glass-border-glow);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.result-item .title {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.result-item .value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.result-item.highlight .value {
  font-size: 2.2rem;
  color: var(--accent-gold);
}

/* Command Center Simulation Section */
.dashboard-preview {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: #090e17;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 30px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.map-simulation {
  height: 380px;
  background: radial-gradient(circle at center, #111a2e 0%, #080d1a 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.map-dot.green { background: var(--primary); box-shadow: 0 0 12px var(--primary-glow); }
.map-dot.yellow { background: var(--accent-gold); box-shadow: 0 0 12px var(--accent-gold-glow); }
.map-dot.red { background: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); }

.dash-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metric-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.metric-card .val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
  margin-top: 6px;
}

/* Pricing / Financial Editions Table */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.pricing-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.pricing-card .badge-popular {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.pricing-header {
  margin-bottom: 30px;
  text-align: center;
}

.pricing-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.pricing-features li span.icon {
  color: var(--primary);
  font-weight: 700;
}

/* Footer */
footer {
  padding: 80px 0 30px;
  background: #04070d;
  border-top: 1px solid var(--glass-border);
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
}

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-box {
  width: 100%;
  max-width: 550px;
  padding: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 40px; }
  .calc-card { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-title { font-size: 2.4rem; }
  .hero-stats-row { grid-template-columns: 1fr; }
}
