/* ==========================================================================
   ALMASHI (ع الماشي) - COMMERCIAL REAL-WORLD LOGISTICS STYLESHEET
   ========================================================================== */

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

:root {
  /* Brand Palette matching Almashi Flutter App */
  --bg-dark: #031B3B;
  --bg-darker: #011026;
  --surface-card: rgba(10, 46, 87, 0.7);
  --surface-card-hover: rgba(15, 61, 114, 0.9);
  --surface-solid: #0A2E57;
  --surface-border: rgba(130, 214, 232, 0.18);
  --surface-border-active: rgba(130, 214, 232, 0.5);
  
  --primary-blue: #0E4F86;
  --primary-gradient: linear-gradient(135deg, #0F5D96 0%, #072E59 100%);
  --cyan-secondary: #82D6E8;
  --cyan-glow: rgba(130, 214, 232, 0.25);
  --gold-accent: #FFB800;
  --emerald-success: #10B981;
  
  --text-main: #EEF4FF;
  --text-muted: #A3B8CC;
  --text-dim: #64748B;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 10px 30px -10px rgba(130, 214, 232, 0.3);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.45);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  direction: rtl;
}

body {
  background: radial-gradient(circle at 50% 0%, #083262 0%, var(--bg-dark) 70%);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography & Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glassmorphic Panel */
.glass-panel {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--surface-border-active);
}

/* Badges */
.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(130, 214, 232, 0.1);
  border: 1px solid rgba(130, 214, 232, 0.3);
  color: var(--cyan-secondary);
  font-size: 0.88rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--cyan-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-secondary);
  animation: pulse 1.8s infinite;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-main);
  border: 1px solid rgba(130, 214, 232, 0.3);
  box-shadow: 0 8px 20px rgba(14, 79, 134, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-secondary);
  box-shadow: 0 12px 25px rgba(130, 214, 232, 0.35);
}

.btn-cyan {
  background: linear-gradient(135deg, #82D6E8 0%, #0E4F86 100%);
  color: #031B3B;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--surface-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--cyan-secondary);
  color: var(--cyan-secondary);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(3, 27, 59, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
  padding: 12px 0;
}

.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;
  color: var(--text-main);
}

.brand-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-gradient);
  border: 1px solid var(--cyan-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-secondary);
  font-size: 1.3rem;
}

.brand-logo span.highlight {
  color: var(--cyan-secondary);
}

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

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

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

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

.mobile-toggle-btn {
  display: none;
  background: var(--surface-solid);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile Nav Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 16, 38, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--bg-dark);
  border-left: 1px solid var(--surface-border);
  z-index: 1200;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 140px;
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: 3rem;
  margin-top: 18px;
  margin-bottom: 20px;
  line-height: 1.25;
}

.hero-content h1 span.gradient-text {
  background: linear-gradient(135deg, var(--cyan-secondary) 0%, #FFFFFF 50%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.7;
}

/* Quick Track Search Box */
.hero-track-box {
  padding: 8px;
  margin-bottom: 30px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-radius: var(--radius-md);
}

.hero-track-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  padding: 8px 12px;
  width: 100%;
}

.hero-track-box input::placeholder {
  color: var(--text-dim);
}

/* App Download Buttons */
.app-download-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--surface-border);
  transition: var(--transition-smooth);
}

.store-badge:hover {
  border-color: var(--cyan-secondary);
  transform: translateY(-2px);
}

.store-badge i {
  font-size: 1.6rem;
  color: var(--cyan-secondary);
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.store-badge .badge-text small {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.store-badge .badge-text strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

/* Hero Visual & Mockup */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
}

.hero-mockup-img {
  width: 100%;
  height: auto;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(130, 214, 232, 0.15);
  border: 1.5px solid var(--surface-border);
}

/* Responsive Floating Info Cards */
.hero-info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
  max-width: 420px;
}

.info-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
  padding: 30px 0;
  margin-top: -20px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

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

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cyan-secondary);
  line-height: 1.1;
  margin-bottom: 4px;
}

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

/* ==========================================================================
   AUDIENCE SECTION (MERCHANTS vs COURIERS)
   ========================================================================== */
.section-padding {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 2.2rem;
  margin-top: 12px;
  margin-bottom: 14px;
}

.tab-switcher {
  display: inline-flex;
  background: var(--surface-solid);
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-border);
  margin-top: 20px;
  max-width: 100%;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Cairo', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: var(--cyan-secondary);
  border: 1px solid var(--cyan-secondary);
}

.tab-content {
  display: none;
}

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

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.feature-card-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(10, 46, 87, 0.4);
  border: 1px solid var(--surface-border);
  transition: var(--transition-smooth);
}

.feature-card-item:hover {
  background: var(--surface-card-hover);
  border-color: var(--cyan-secondary);
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--cyan-secondary);
  flex-shrink: 0;
}

.feature-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

/* ==========================================================================
   TOOLS SECTION (COST CALCULATOR & TRACKER)
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.calc-box, .tracker-sim-box {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.calc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--cyan-secondary);
}

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

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

.custom-select, .custom-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  font-family: 'Cairo', sans-serif;
  font-size: 0.92rem;
  outline: none;
}

.custom-select:focus, .custom-input:focus {
  border-color: var(--cyan-secondary);
}

.range-slider {
  width: 100%;
  accent-color: var(--cyan-secondary);
}

.calc-result-box {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(3, 27, 59, 0.85);
  border: 1px solid var(--cyan-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-accent);
}

.map-sim-view {
  height: 200px;
  border-radius: var(--radius-md);
  background: url('assets/images/features_bg.png') center/cover no-repeat;
  border: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  margin-bottom: 16px;
}

.map-sim-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 27, 59, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.sim-courier-pin {
  position: absolute;
  top: 40%;
  right: 30%;
  width: 40px;
  height: 40px;
  background: var(--gold-accent);
  color: #031B3B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--gold-accent);
  animation: movePin 5s infinite alternate ease-in-out;
}

@keyframes movePin {
  0% { right: 20%; top: 45%; }
  50% { right: 50%; top: 35%; }
  100% { right: 75%; top: 55%; }
}

.timeline-tracker {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 10px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
}

.timeline-step .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 2px solid var(--text-dim);
}

.timeline-step.completed .dot {
  background: var(--cyan-secondary);
  border-color: var(--cyan-secondary);
}

.timeline-step.active .dot {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
}

/* ==========================================================================
   STEPS GRID
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.step-card {
  padding: 24px 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: 2px solid var(--cyan-secondary);
  color: var(--cyan-secondary);
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

/* ==========================================================================
   FAQ & FOOTER
   ========================================================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-question {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq-item.active .faq-answer {
  max-height: 220px;
  padding: 0 20px 16px 20px;
}

.cta-banner {
  padding: 44px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(14, 79, 134, 0.9) 0%, rgba(3, 27, 59, 0.95) 100%);
  border: 1px solid var(--cyan-secondary);
  text-align: center;
  margin-bottom: 60px;
}

.cta-banner h2 {
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--surface-border);
  padding: 50px 0 24px 0;
}

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

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

/* ==========================================================================
   PIXEL-PERFECT MOBILE RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-content h1 { font-size: 2.5rem; }
  .app-download-badges { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-content.active { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle-btn { display: flex; }
  
  .hero-section { padding-top: 110px; padding-bottom: 40px; }
  .hero-content h1 { font-size: 2rem; margin-top: 12px; margin-bottom: 14px; }
  .hero-subtitle { font-size: 0.98rem; margin-bottom: 24px; }
  
  .hero-track-box {
    flex-direction: column;
    padding: 10px;
    background: var(--surface-solid);
  }
  .hero-track-box input {
    text-align: center;
    padding: 10px;
  }
  .hero-track-box .btn {
    width: 100%;
  }

  .app-download-badges {
    flex-direction: column;
    width: 100%;
  }
  .store-badge {
    width: 100%;
    justify-content: center;
  }

  .tab-switcher {
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-md);
    padding: 6px;
  }
  .tab-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .calc-result-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-brand .brand-logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero-content h1 { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-number { font-size: 1.9rem; }
  .calc-box, .tracker-sim-box { padding: 18px 14px; }
  .cta-banner h2 { font-size: 1.6rem; }
}
