/* ==========================================================================
   NexUser Arabia - Enterprise ERP Software Website Stylesheet
   Design Philosophy: Microsoft / Zoho / Odoo / SAP Business One Aesthetic
   Primary: Royal Blue (#0F5FFF) | High-Trust, Clean, Modern SaaS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts & CSS Custom Properties (Design System)
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand Colors */
  --primary: #0F5FFF;
  --primary-hover: #0749D4;
  --primary-light: #EEF4FF;
  --primary-glow: rgba(15, 95, 255, 0.15);
  --secondary: #0A192F;
  --secondary-light: #1E293B;
  --accent-zatca: #10B981;
  --accent-zatca-light: #ECFDF5;
  --accent-gold: #F59E0B;
  --accent-cyan: #06B6D4;

  /* Neutral Shades */
  --bg-main: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-surface-elevated: #FFFFFF;
  --bg-alt: #F1F5F9;
  --border-light: #E2E8F0;
  --border-focus: #93C5FD;
  
  /* Text Colors */
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --text-inverse: #FFFFFF;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(16, 24, 40, 0.1), 0 1px 2px -1px rgba(16, 24, 40, 0.1);
  --shadow-md: 0 4px 14px -2px rgba(15, 95, 255, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 28px -4px rgba(15, 95, 255, 0.12), 0 4px 10px -3px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(15, 95, 255, 0.18), 0 8px 16px -6px rgba(15, 23, 42, 0.08);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max: 1240px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Arabic & RTL Support */
html[dir="rtl"] body,
body.rtl {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Utility Classes & Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
}

.section-dark {
  background-color: var(--secondary);
  color: var(--text-inverse);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1rem;
}

.badge-zatca {
  background-color: var(--accent-zatca-light);
  color: var(--accent-zatca);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-dark .section-title {
  color: var(--text-inverse);
}

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

.section-dark .section-subtitle {
  color: #94A3B8;
}

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

.text-zatca {
  color: var(--accent-zatca);
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(15, 95, 255, 0.28);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 95, 255, 0.38);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--text-main);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--secondary);
  border-color: #FFFFFF;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-zatca {
  background-color: var(--accent-zatca);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-zatca:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--secondary);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, #0640B5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(15, 95, 255, 0.35);
}

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

.brand-title {
  line-height: 1.1;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
}

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

.brand-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  font-weight: 600;
}

/* Main Nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

html[dir="rtl"] .nav-link.active::after {
  left: auto;
  right: 0;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-switch-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* --------------------------------------------------------------------------
   6. Hero Section (Home Page)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(15, 95, 255, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
              var(--bg-main);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  max-width: 650px;
}

.hero-headline {
  font-size: 3.15rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-subheadline {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.trust-signals {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--accent-zatca);
  flex-shrink: 0;
}

/* Hero Dashboard Illustration / Graphic */
.hero-mockup-wrapper {
  position: relative;
}

.dashboard-mockup {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

.dashboard-mockup:hover {
  transform: translateY(-4px);
}

.mockup-header {
  background: #F8FAFC;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #EF4444; }
.mockup-dot.yellow { background: #F59E0B; }
.mockup-dot.green { background: #10B981; }

.mockup-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #FAFAFB;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.kpi-card {
  background: #FFFFFF;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.kpi-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.kpi-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

.kpi-trend {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-zatca);
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ZATCA Phase 2 Verified Widget */
.zatca-live-badge {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 1rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zatca-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.zatca-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-zatca);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.zatca-text h4 {
  font-size: 0.875rem;
  font-weight: 800;
  color: #065F46;
}

.zatca-text p {
  font-size: 0.72rem;
  color: #047857;
}

.zatca-status-pill {
  background: #059669;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Chart Mockup Bar */
.mockup-chart {
  background: #FFFFFF;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  height: 90px;
  padding-top: 1rem;
}

.chart-col {
  flex: 1;
  background: var(--primary-light);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 0.5s ease;
}

.chart-col.active {
  background: var(--primary);
}

.floating-pill {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: #FFFFFF;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  border: 1px solid var(--border-light);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   7. Metrics Banner Strip
   -------------------------------------------------------------------------- */
.metrics-strip {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 2.25rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Why Choose NexUser Arabia
   -------------------------------------------------------------------------- */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: #FFFFFF;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 95, 255, 0.3);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition-fast);
}

.feature-card:hover::before {
  background: linear-gradient(90deg, var(--primary), var(--accent-zatca));
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  background: var(--primary);
  color: #FFFFFF;
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   9. Products Grid & Showcase
   -------------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 95, 255, 0.35);
}

.product-card-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

html[dir="rtl"] .product-card-badge {
  right: auto;
  left: 1.5rem;
}

.product-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.product-card:hover .product-icon-wrap {
  background: var(--primary);
  color: #FFFFFF;
}

.product-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.product-card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-feature-list {
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

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

/* --------------------------------------------------------------------------
   10. Industries We Serve
   -------------------------------------------------------------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.industry-card {
  background: #FFFFFF;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-normal);
  cursor: default;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  background: var(--primary-light);
}

.industry-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.industry-card:hover .industry-icon {
  background: var(--primary);
  color: #FFFFFF;
}

.industry-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.industry-desc {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   11. ZATCA Phase 2 Spotlight Section
   -------------------------------------------------------------------------- */
.zatca-section {
  background: linear-gradient(135deg, #0A192F 0%, #061124 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.zatca-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.zatca-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.zatca-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.zatca-check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-zatca);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.zatca-feature-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #FFFFFF;
}

.zatca-feature-item p {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.5;
}

.zatca-visual-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  backdrop-filter: blur(8px);
}

.zatca-workflow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent-zatca);
}

html[dir="rtl"] .zatca-workflow-step {
  border-left: none;
  border-right: 4px solid var(--accent-zatca);
}

/* --------------------------------------------------------------------------
   12. Reseller Page & Benefits
   -------------------------------------------------------------------------- */
.reseller-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #0F3F9E 100%);
  color: #FFFFFF;
  padding: 5rem 0;
  text-align: center;
}

.reseller-hero h1 {
  font-size: 2.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.reseller-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: #E2E8F0;
}

.partner-perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.perk-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.perk-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem auto;
}

.perk-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.perk-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Forms (Contact, Reseller, Modal) */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

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

/* --------------------------------------------------------------------------
   13. Support Page & FAQ Accordion
   -------------------------------------------------------------------------- */
.support-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.channel-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.channel-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.channel-card.whatsapp-channel .channel-icon {
  background: #DCFCE7;
  color: #16A34A;
}

.channel-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.channel-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Accordion FAQ */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  text-align: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  max-height: 400px;
}

/* --------------------------------------------------------------------------
   14. Contact Page & Dual Office Cards
   -------------------------------------------------------------------------- */
.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.office-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.office-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.office-card-header {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--secondary) 0%, #1E3A8A 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.office-flag-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.office-country {
  font-size: 1.35rem;
  font-weight: 800;
}

.office-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.office-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
}

.office-company-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.office-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.office-detail-row svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.office-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.25rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   15. CTA Banner Strip
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #083DB0 100%);
  color: #FFFFFF;
  padding: 4.5rem 0;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner h2 {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2rem auto;
  color: #E0EAFF;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--secondary);
  color: #E2E8F0;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-desc {
  font-size: 0.925rem;
  color: #94A3B8;
  line-height: 1.6;
  margin: 1.25rem 0 1.5rem 0;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: #94A3B8;
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

html[dir="rtl"] .footer-nav a:hover {
  transform: translateX(-4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  color: #94A3B8;
}

.footer-contact-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   17. Floating Action Buttons (WhatsApp & Chatbot)
   -------------------------------------------------------------------------- */
.floating-actions-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 9999;
}

html[dir="rtl"] .floating-actions-container {
  right: auto;
  left: 24px;
  align-items: flex-start;
}

/* WhatsApp Floating Button */
.whatsapp-float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: var(--secondary);
  color: #FFFFFF;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.775rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
}

html[dir="rtl"] .whatsapp-tooltip {
  right: auto;
  left: 68px;
  transform: translateX(-10px);
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Chatbot Floating Trigger Button */
.chatbot-trigger-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #0745CA 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: none;
  box-shadow: 0 6px 20px rgba(15, 95, 255, 0.45);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.chatbot-trigger-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 95, 255, 0.55);
}

.chatbot-online-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #FFFFFF;
}

/* --------------------------------------------------------------------------
   18. Chatbot Window Widget (AI-Style / SaaS Assistant)
   -------------------------------------------------------------------------- */
.chatbot-widget {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-normal);
}

html[dir="rtl"] .chatbot-widget {
  right: auto;
  left: 24px;
}

.chatbot-widget.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* Chatbot Header */
.chatbot-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #153A82 100%);
  color: #FFFFFF;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.35rem;
  position: relative;
}

.bot-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
}

.bot-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.bot-info p {
  font-size: 0.72rem;
  color: #94A3B8;
}

.chatbot-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chatbot-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Chatbot Mode Switcher Tabs */
.chatbot-tabs {
  display: flex;
  background: #F1F5F9;
  padding: 0.35rem;
  border-bottom: 1px solid var(--border-light);
}

.chatbot-tab {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
  text-align: center;
}

.chatbot-tab.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* Chatbot Body - Online Mode */
.chatbot-mode-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #F8FAFC;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}

html[dir="rtl"] .chat-bubble.bot {
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--primary);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

html[dir="rtl"] .chat-bubble.user {
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-lg);
  border-bottom-left-radius: 4px;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.quick-reply-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(15, 95, 255, 0.2);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-reply-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* Chatbot Input Area */
.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  background: var(--bg-surface);
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #FFFFFF;
}

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

.chat-send-btn:hover {
  background: var(--primary-hover);
}

/* Chatbot Body - Offline Form */
.chatbot-offline-form {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.offline-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   19. Modal Dialogs & Toasts
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  padding: 2.25rem;
  position: relative;
  transform: scale(0.95);
  transition: var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #F1F5F9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

html[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1.25rem;
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #065F46;
  color: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 12000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-normal);
}

html[dir="rtl"] .toast-notification {
  left: auto;
  right: 24px;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   20. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-badges-row,
  .hero-cta-group,
  .trust-signals {
    justify-content: center;
  }
  .why-choose-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industries-grid,
  .partner-perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .zatca-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  
  /* Mobile Navigation Drawer */
  .mobile-menu-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
    z-index: 999;
  }
  html[dir="rtl"] .nav-menu {
    left: auto;
    right: 0;
    transform: translateX(100%);
  }
  .nav-menu.open {
    transform: translateX(0);
  }
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
  }
  
  .header-actions .btn-primary {
    display: none;
  }

  .why-choose-grid,
  .products-grid,
  .industries-grid,
  .partner-perks-grid,
  .support-channels-grid,
  .offices-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .form-card {
    padding: 1.75rem;
  }

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

  .chatbot-widget {
    bottom: 86px;
    right: 12px;
    width: calc(100vw - 24px);
    height: 480px;
  }
  html[dir="rtl"] .chatbot-widget {
    left: 12px;
  }
  .floating-actions-container {
    bottom: 16px;
    right: 16px;
  }
  html[dir="rtl"] .floating-actions-container {
    left: 16px;
  }
}
