/* ==========================================================================
   المعايير المعتمدة لهندسة وتصميم صفحات الهبوط وتطبيقات الويب (2026 — 2027)
   Official Design System & Stylesheet
   Architecture: Deep OLED + Luminous Silk Porcelain (Dual Theme)
   ========================================================================== */

:root {
  /* ===============================
     THEME 1: DEEP OLED (DEFAULT)
     =============================== */
  --bg-primary: #050811;
  --bg-secondary: #0b1120;
  --bg-surface: #0e172a;
  --bg-surface-hover: #16243d;
  --bg-glass: rgba(11, 17, 32, 0.75);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(16, 185, 129, 0.6);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #050811;

  /* Vibrant 2027 Accents */
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.25);
  --accent-gold: #f59e0b;

  --wa-green: #25d366;
  --wa-dark: #128c7e;

  /* Elevation Shadows */
  --shadow-spatial: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);

  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --radius-full: 9999px;

  --font-arabic: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 72px;
}

/* ===============================
   THEME 2: LUMINOUS DAY (SILK)
   =============================== */
body.theme-luminous {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(0, 0, 0, 0.15);
  --border-focus: rgba(5, 150, 105, 0.6);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.15);
  --accent-cyan: #0891b2;
  --accent-cyan-glow: rgba(8, 145, 178, 0.15);
  --accent-purple: #7c3aed;
  --accent-purple-glow: rgba(124, 58, 237, 0.15);

  --shadow-spatial: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 30px rgba(5, 150, 105, 0.1);
}

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

html {
  font-family: var(--font-arabic);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.65;
}

/* Scroll Progress Line */
.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan), var(--accent-purple));
  z-index: 1001;
  width: 0%;
}

/* Floating Audio Ambience Widget */
.fixed-sound-control {
  position: fixed;
  top: calc(var(--nav-height) + 1.25rem);
  right: 1.5rem;
  z-index: 990;
}

.sound-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.sound-toggle-btn:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
}

.sound-wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.sound-wave-bars .bar {
  width: 3px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: height 0.2s ease, background 0.2s ease;
}

.sound-toggle-btn.playing .bar {
  background: var(--accent-emerald);
  animation: soundBarDance 1s infinite alternate ease-in-out;
}

.sound-toggle-btn.playing .bar-1 { animation-delay: 0.1s; height: 12px; }
.sound-toggle-btn.playing .bar-2 { animation-delay: 0.3s; height: 8px; }
.sound-toggle-btn.playing .bar-3 { animation-delay: 0.2s; height: 14px; }

@keyframes soundBarDance {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.top-nav-wrap {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
  z-index: 1000;
}

.nav-glass-bar {
  width: 100%;
  max-width: 1240px;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-sparkle {
  color: var(--accent-emerald);
  font-size: 1.25rem;
  animation: pulseRotate 6s infinite linear;
}

@keyframes pulseRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.version-tag {
  background: var(--accent-emerald-glow);
  color: var(--accent-emerald);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-anchor {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

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

.nav-anchor::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-emerald);
  transition: width 0.3s ease;
}

.nav-anchor:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Theme Switcher Button */
.theme-switch-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  width: 58px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.theme-switch-btn .theme-icon-sun,
.theme-switch-btn .theme-icon-moon {
  font-size: 0.85rem;
  z-index: 1;
}

.theme-indicator {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: var(--accent-emerald);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.theme-luminous .theme-indicator {
  transform: translateX(-26px);
  background: var(--accent-gold);
}

.btn-micro-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--accent-emerald-glow);
  transition: var(--transition-smooth);
}

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

/* ==========================================================================
   PAGE MAIN & HERO SECTION
   ========================================================================== */
.page-main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  text-align: center;
}

.hero-ambient-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-emerald-glow) 0%, rgba(6, 182, 212, 0.1) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-glass) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hero-inner-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.badge-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  border: 1px solid transparent;
}

.status-emerald {
  background: var(--accent-emerald-glow);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.status-cyan {
  background: var(--accent-cyan-glow);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.3);
}

.status-purple {
  background: var(--accent-purple-glow);
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.3);
}

.hero-super-title {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.gradient-headline-text {
  display: block;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-emerald) 75%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.hero-description strong {
  color: var(--accent-emerald);
  font-weight: 700;
}

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

.btn-primary-spatial {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #ffffff;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px var(--accent-emerald-glow);
  transition: var(--transition-smooth);
}

.btn-primary-spatial:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-hover);
  color: var(--text-primary);
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.btn-secondary-glass:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-emerald);
  transform: translateY(-3px);
}

/* Telematics Strip */
.telematics-strip {
  display: inline-flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1rem 1.75rem;
  box-shadow: var(--shadow-card);
  gap: 1.75rem;
}

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

.telemetric-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-emerald);
  line-height: 1.2;
}

.telemetric-lbl {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.telemetric-divider {
  width: 1px;
  height: 32px;
  background: var(--border-glass);
}

/* ==========================================================================
   GENERIC CONTENT SECTIONS
   ========================================================================== */
.content-section {
  padding: 6rem 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  background: var(--accent-emerald-glow);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   BENTO GRID 2.0 (SECTION 1)
   ========================================================================== */
.bento-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-spatial);
}

.bento-span-2 {
  grid-column: span 2;
}

.card-glow-accent {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
}

.glow-emerald { background: var(--accent-emerald-glow); }
.glow-cyan { background: var(--accent-cyan-glow); }
.glow-purple { background: var(--accent-purple-glow); }
.glow-gold { background: rgba(245, 158, 11, 0.2); }

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.card-body {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.card-body code {
  background: var(--bg-secondary);
  color: var(--accent-emerald);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--border-glass);
}

/* Layer Mock Visualizer */
.card-interactive-preview {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.layer-mock {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.layer-3 { background: rgba(16, 185, 129, 0.1); border: 1px dashed rgba(16, 185, 129, 0.3); color: var(--accent-emerald); }
.layer-2 { background: var(--bg-surface); border: 1px solid var(--border-glass); color: var(--text-secondary); }
.layer-1 { background: var(--bg-surface-hover); border: 1px solid var(--accent-emerald); color: var(--text-primary); }

.card-interactive-preview:hover .layer-1 { transform: translateX(8px); }
.card-interactive-preview:hover .layer-2 { transform: translateX(4px); }

/* Glass Orb Demo */
.glass-orb-demo {
  width: 100%;
  height: 120px;
  background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.3), rgba(11, 17, 32, 0.8));
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}

.orb-reflection {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 40px;
  height: 20px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  filter: blur(4px);
}

.glass-orb-demo span {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

/* Mini Bento Demo */
.mini-bento-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  height: 120px;
}

.b-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.b-tall { grid-row: span 2; background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.3); color: var(--accent-purple); }

/* Typography Marquee */
.typography-marquee {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  animation: marqueeScroll 15s linear infinite;
}

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

/* ==========================================================================
   THEME COMPARISON LAB (SECTION 2)
   ========================================================================== */
.theme-comparison-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.theme-card-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.theme-badge {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.color-swatches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.swatch-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.swatch-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}

.swatch-info {
  display: flex;
  flex-direction: column;
}

.swatch-name {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.swatch-info code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
}

.theme-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   TECH RULES GRID (SECTION 3)
   ========================================================================== */
.tech-standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tech-rule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.tech-rule-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
}

.rule-number {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-emerald);
  margin-bottom: 0.85rem;
}

.rule-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.rule-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.rule-desc code {
  background: var(--bg-secondary);
  color: var(--accent-emerald);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.rule-badge {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   WHATSAPP SHOWCASE BOX (SECTION 4)
   ========================================================================== */
.whatsapp-showcase-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.whatsapp-demo-stage {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 260px;
}

.stage-label {
  position: absolute;
  top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sandbox-whatsapp-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sonar-ring-preview {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  pointer-events: none;
  animation: sonarPulsePreview 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.ring-b { animation-delay: 1.25s; }

@keyframes sonarPulsePreview {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.sandbox-whatsapp-btn {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sandbox-whatsapp-btn:hover {
  transform: scale(1.1);
}

.active-pulse-beacon {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.sandbox-tooltip {
  position: absolute;
  bottom: -45px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-hover);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-card);
}

.pulse-indicator-mini {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

.whatsapp-specs-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spec-bullet {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.spec-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.spec-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.spec-text strong {
  color: var(--text-primary);
}

.spec-text code {
  background: var(--bg-secondary);
  color: var(--accent-emerald);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ==========================================================================
   DEVICES RESPONSIVE MATRIX (SECTION 5)
   ========================================================================== */
.devices-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.device-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.device-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
}

.device-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.device-icon {
  font-size: 2rem;
}

.device-name {
  font-size: 1.15rem;
  font-weight: 800;
}

.device-query {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-emerald);
}

.device-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.device-features li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  position: relative;
  padding-right: 1.25rem;
  line-height: 1.6;
}

.device-features li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--accent-emerald);
  font-weight: 800;
}

.device-features li code {
  background: var(--bg-secondary);
  color: var(--accent-cyan);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ==========================================================================
   DOMAIN SPECIFICATIONS (SECTION 6)
   ========================================================================== */
.domain-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.domain-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.domain-badge {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 1rem;
}

.saas-theme .domain-badge {
  color: var(--accent-cyan);
}

.domain-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.domain-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.domain-desc code {
  background: var(--bg-secondary);
  color: var(--accent-emerald);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.telemetry-widget-mock {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.widget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

/* ==========================================================================
   CODE LAB & REUSABLE TABS (SECTION 7)
   ========================================================================== */
.code-tabs-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.tab-buttons-bar {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.5rem 0.75rem 0;
  gap: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: var(--bg-surface);
  border-color: var(--border-glass);
  color: var(--accent-emerald);
}

.tab-content-panel {
  display: none;
  padding: 1.5rem;
}

.tab-content-panel.active {
  display: block;
}

.code-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.copy-code-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.copy-code-btn:hover {
  background: var(--accent-emerald);
  color: #ffffff;
}

pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  padding: 5rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-brand h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wa-green);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(37, 211, 102, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 211, 102, 0.25);
  transition: var(--transition-smooth);
}

.footer-wa-link:hover {
  background: rgba(37, 211, 102, 0.2);
  transform: translateY(-2px);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   ACTUAL GLOBAL FLOATING WHATSAPP CTA
   ========================================================================== */
.whatsapp-magnetic-wrap {
  position: fixed;
  bottom: calc(1.75rem + env(safe-area-inset-bottom));
  left: 1.75rem; /* RTL Arab layout standard */
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-btn-core {
  position: relative;
  width: 66px;
  height: 66px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5), 0 0 25px rgba(37, 211, 102, 0.25);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.whatsapp-btn-core:hover {
  transform: scale(1.08);
}

.whatsapp-pulse-ring {
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  pointer-events: none;
  animation: globalSonar 2.8s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.whatsapp-pulse-ring.ring-2 {
  animation-delay: 1.4s;
}

@keyframes globalSonar {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(2.2); opacity: 0; }
}

.whatsapp-badge-pulse {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.whatsapp-badge-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-hover);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  opacity: 0.95;
}

.beacon-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-emerald);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  z-index: 1002;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

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

/* ==========================================================================
   RESPONSIVENESS (MOBILE & TABLET BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-span-2 {
    grid-column: span 2;
  }
  .whatsapp-showcase-box {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .devices-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .theme-comparison-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links-desktop {
    display: none;
  }
  .fixed-sound-control {
    top: auto;
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    right: 1.25rem;
  }
  .bento-grid-container {
    grid-template-columns: 1fr;
  }
  .bento-span-2 {
    grid-column: span 1;
  }
  .tech-standards-grid,
  .devices-matrix-grid,
  .domain-cards-grid {
    grid-template-columns: 1fr;
  }
  .telematics-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 0.85rem;
  }
  .telemetric-divider {
    display: none;
  }
  .whatsapp-badge-tooltip {
    display: none; /* Hide tooltip on small mobile to avoid blocking thumb */
  }
  .whatsapp-magnetic-wrap {
    left: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}
