/* ==========================================================================
   Argus Premium CSS Design System
   Sleek Dark Mode, Glassmorphism, Micro-Animations & Responsive RTL Layouts
   ========================================================================== */

/* Google Fonts Integration */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* Dynamic CSS Variable Tokens */
:root {
  --font-en: 'Plus Jakarta Sans', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --font-code: 'Fira Code', monospace;
  
  /* Harmonious Color Palette - Aligned with Web Manifest */
  --bg-primary: #030b14;
  --bg-secondary: #010a16;
  --bg-elevated: #0a1424;
  --panel-bg: rgba(10, 18, 32, 0.62);
  --panel-bg-hover: rgba(14, 24, 42, 0.78);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-hover: rgba(56, 189, 248, 0.35);
  
  --accent-blue: #38bdf8;
  --accent-cyan: #22d3ee;
  --accent-theme: #007aff;
  --accent-indigo: #818cf8;
  --accent-purple: #a855f7;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Glows & Gradients */
  --grad-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(56, 189, 248, 0.18), rgba(0, 122, 255, 0.06) 40%, transparent 70%);
  --grad-accent: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 45%, var(--accent-theme) 100%);
  --grad-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-border: linear-gradient(135deg, rgba(56, 189, 248, 0.45), rgba(129, 140, 248, 0.2), rgba(56, 189, 248, 0.08));
  
  /* Shape & motion */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 24px 48px -20px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.12);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.8);

  /* Layout */
  --nav-breakpoint: 1280px;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(13, 30, 55, 0.55), transparent 55%),
    radial-gradient(circle at 50% 120%, #0d111d, var(--bg-primary) 80%);
  color: var(--text-primary);
  font-family: var(--font-en);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
}

img {
  max-width: 100%;
  height: auto;
}

/* RTL Layout Typography Override */
body[dir="rtl"] {
  font-family: var(--font-ar);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  position: relative;
  z-index: 1;
}

/* Base Document Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(56, 189, 248, 0.28);
  color: #fff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: transparent;
  border-bottom: none;
  transition: var(--transition-smooth);
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
  pointer-events: none;
}

header.scrolled::before {
  background: rgba(5, 8, 17, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.logo-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: var(--transition-smooth);
}

.logo-img:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.85);
}

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

.nav-drawer {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #fff, var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  text-decoration: none;
}

body[dir="rtl"] .logo {
  letter-spacing: 0;
}

.logo-eye {
  -webkit-text-fill-color: initial;
  font-size: 1.7rem;
  color: var(--accent-blue);
  animation: pulse-glow 2.5s infinite ease-in-out;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

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

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: rgba(13, 20, 38, 0.8);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  position: relative;
  z-index: 202;
}

.nav-toggle:hover {
  border-color: var(--panel-border-hover);
  background: rgba(13, 20, 38, 0.95);
}

.nav-toggle-icon {
  font-size: 24px;
  line-height: 1;
}

.nav-toggle-close {
  display: none;
}

.nav-drawer-top {
  display: none;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open .nav-toggle-open {
  display: none;
}

body.nav-open .nav-toggle-close {
  display: block;
}

/* Desktop header — logo | centered nav | actions */
@media (min-width: 1281px) {
  header {
    overflow: visible;
  }

  .nav-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 80px;
    align-items: center;
    column-gap: clamp(12px, 2vw, 28px);
    height: 80px;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-drawer {
    display: contents;
  }

  .nav-drawer-top {
    display: none !important;
  }

  .nav-menu {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    min-width: 0;
    width: 100%;
  }

  .nav-link {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.08);
  }

  .nav-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
  }

  .lang-btn {
    padding: 8px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .nav-cta-btn {
    padding: 9px 16px;
    font-size: 0.84rem;
    white-space: nowrap;
  }
}

@media (min-width: 1281px) and (max-width: 1399px) {
  .nav-link {
    padding: 7px 9px;
    font-size: 0.8rem;
  }

  .nav-cta-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .lang-btn {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}

@media (min-width: 1440px) {
  .nav-container {
    column-gap: 32px;
  }

  .nav-menu {
    gap: 4px;
  }

  .nav-link {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .nav-actions {
    gap: 14px;
  }

  .nav-cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (min-width: 1600px) {
  .nav-link {
    padding: 8px 16px;
    font-size: 0.92rem;
  }

  .nav-menu {
    gap: 6px;
  }
}

/* Premium Button Architecture */
.btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--grad-accent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #021018;
  box-shadow: 0 12px 28px -8px rgba(56, 189, 248, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.15) inset;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(56, 189, 248, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  background: linear-gradient(135deg, #67e8f9 0%, #7dd3fc 45%, var(--accent-indigo) 100%);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Custom Premium Language Switcher */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: rgba(13, 20, 38, 0.6);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  border-color: var(--panel-border-hover);
  background: rgba(13, 20, 38, 0.8);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(13, 20, 38, 0.95);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(16px);
  padding: 6px;
  width: 140px;
  display: none;
  z-index: 101;
}

body[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.show {
  display: block;
  animation: slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-opt:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.lang-opt.active {
  color: var(--accent-blue);
  font-weight: 700;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(120px, 14vw, 168px) 0 clamp(72px, 10vw, 108px);
  background-image: var(--grad-hero);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.09), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(129, 140, 248, 0.08), transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  background: rgba(56, 189, 248, 0.12);
  border-radius: 999px;
  filter: blur(140px);
  z-index: 1;
  animation: float-glow 12s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: min(400px, 80vw);
  height: min(400px, 80vw);
  background: rgba(168, 85, 247, 0.08);
  border-radius: 999px;
  filter: blur(120px);
  z-index: 1;
  animation: float-glow 14s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

body[dir="rtl"] .hero-badge {
  letter-spacing: 0;
}

.hero-title {
  font-size: clamp(2.1rem, 4.8vw + 0.75rem, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 55%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

body[dir="rtl"] .hero-title {
  font-size: clamp(1.85rem, 4vw + 0.75rem, 3.3rem);
  letter-spacing: 0;
  line-height: 1.25;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px auto;
  line-height: 1.65;
}

/* Premium Waitlist Input Form */
.waitlist-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 540px;
  margin: 0 auto 40px auto;
  background: rgba(8, 14, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(56, 189, 248, 0.06);
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.waitlist-form:focus-within {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-card), 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.waitlist-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 18px;
}

.waitlist-input::placeholder {
  color: var(--text-muted);
}

.waitlist-submit {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: normal;
  text-align: center;
}

/* Spinner for waitlist loading status */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #030712;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.waitlist-toast {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
  animation: slide-up 0.2s ease-out;
}

/* Mock Viewport Dashboard Frame */
.mock-viewport {
  position: relative;
  background: linear-gradient(180deg, rgba(12, 20, 36, 0.9), rgba(6, 10, 18, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-premium), 0 0 80px rgba(56, 189, 248, 0.08);
  max-width: 960px;
  margin: 0 auto;
  transition: var(--transition-spring);
}

.mock-viewport::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

.mock-viewport:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium), 0 0 100px rgba(56, 189, 248, 0.14);
}

.mock-viewport-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 12px;
}

.mock-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mock-circle:nth-child(1) { background: #ef4444; }
.mock-circle:nth-child(2) { background: #f59e0b; }
.mock-circle:nth-child(3) { background: #10b981; }

.mock-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.mock-viewport:hover .mock-img {
  transform: scale(1.005);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
  padding: 100px 0;
  position: relative;
}

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

.section-header::before {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 0 auto 22px;
  border-radius: 99px;
  background: var(--grad-accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.2vw + 0.5rem, 2.35rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

body[dir="rtl"] .section-header h2 {
  letter-spacing: 0;
  line-height: 1.4;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

.features-grid--duo {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 48px;
}

.features-grid--trio {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card--compact {
  padding: 24px;
  background: rgba(255, 255, 255, 0.01);
}

@media (max-width: 991px) {
  .features-grid--duo,
  .features-grid--trio {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid,
  .features-grid--duo,
  .features-grid--trio {
    grid-template-columns: 1fr;
  }

  .features-grid--duo {
    margin-bottom: 32px;
  }
}

/* Glassmorphic Feature Card */
.feature-card {
  background: var(--grad-surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-spring);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(56, 189, 248, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.feature-card:hover {
  background: var(--panel-bg-hover);
  border-color: var(--panel-border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  transition: var(--transition-spring);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.1);
}

.feature-card:hover .feature-icon-wrapper {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-blue);
  color: #fff;
  transform: rotate(5deg) scale(1.05);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Smart Failover chain badge inside bullet lists */
.priority-chain {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding: 5px 10px;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.priority-chain code {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ==========================================================================
   Code Comparison Section (Traditional vs Argus Weaving)
   ========================================================================== */
.comparison {
  padding: 80px 0;
  position: relative;
  background-image: radial-gradient(circle at 10% 50%, rgba(168, 85, 247, 0.03), transparent 40%);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(13, 20, 38, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-en);
}

.compare-title {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-title.traditional {
  color: var(--text-muted);
}

.compare-title.argus {
  color: var(--accent-blue);
  animation: neon-glow 2s infinite ease-in-out;
}

.code-container {
  background: #030712;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.code-container:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.code-container pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.code-container code {
  font-family: var(--font-code);
  font-size: clamp(0.72rem, 2.5vw, 0.85rem);
  color: #93c5fd;
  text-align: left;
  direction: ltr;
  display: block;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

/* Syntax Highlighting Mock */
.code-keyword { color: #f43f5e; font-weight: bold; }
.code-type { color: #38bdf8; }
.code-method { color: #a855f7; }
.code-comment { color: #475569; font-style: italic; }
.code-string { color: #34d399; }
.code-decorator { color: #fbbf24; font-weight: bold; }

/* ==========================================================================
   Ultimate Comparison Table
   ========================================================================== */
.table-section {
  padding: 80px 0;
  position: relative;
  background-image: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.04), transparent 45%),
                    radial-gradient(circle at 20% 80%, rgba(0, 122, 255, 0.03), transparent 45%);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-premium);
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

body[dir="rtl"] table {
  text-align: right;
}

th, td {
  padding: 24px 28px;
  font-size: 0.92rem;
  line-height: 1.6;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
  text-align: left;
}

body[dir="rtl"] th, body[dir="rtl"] td {
  text-align: right;
}

th {
  background: rgba(13, 20, 38, 0.9);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  border-bottom: 2px solid rgba(56, 189, 248, 0.15);
  padding: 24px 28px;
}

body[dir="rtl"] th {
  letter-spacing: 0;
}

tr:last-child td {
  border-bottom: none;
}

/* Rounded corners for the four corner cells to prevent background leak under overflow:visible */
tr:first-child th:first-child {
  border-top-left-radius: 15px;
  border-top-right-radius: 0;
}
body[dir="rtl"] tr:first-child th:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 15px;
}

tr:first-child th:last-child {
  border-top-left-radius: 0;
  border-top-right-radius: 15px;
}
body[dir="rtl"] tr:first-child th:last-child {
  border-top-left-radius: 15px;
  border-top-right-radius: 0;
}

tr:last-child td:first-child {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 0;
}
body[dir="rtl"] tr:last-child td:first-child {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 15px;
}

tr:last-child td:last-child {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 15px;
}
body[dir="rtl"] tr:last-child td:last-child {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 0;
}

/* Precise Column Width Allocation - Increased first column width for long Arabic text wrapping safety */
th:nth-child(1), td:nth-child(1) { width: 28%; }
th:nth-child(2), td:nth-child(2) { width: 24%; }
th:nth-child(3), td:nth-child(3) { width: 24%; }
th:nth-child(4), td:nth-child(4) { width: 24%; }

.row-feature {
  font-weight: 700;
  color: var(--text-primary);
}

.row-others {
  color: var(--text-secondary);
}

/* ==========================================================================
   Call To Action (CTA) Form Card
   ========================================================================== */
.cta-section {
  padding: 80px 0;
}

.cta-card {
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(56, 189, 248, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(10, 18, 32, 0.95), rgba(5, 10, 20, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-premium), 0 0 80px rgba(56, 189, 248, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(56, 189, 248, 0.06), transparent 30%);
  animation: aurora-spin 20s linear infinite;
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #fff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

body[dir="rtl"] .cta-card h2 {
  line-height: 1.4;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 36px auto;
  position: relative;
  z-index: 1;
}

.cta-card .waitlist-form {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
footer {
  background: linear-gradient(180deg, transparent, rgba(3, 8, 16, 0.95) 20%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 72px 0 40px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 1px;
  background: var(--grad-accent);
  opacity: 0.5;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
}

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

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 20px;
    text-align: center;
  }
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

.footer-link:hover {
  color: var(--accent-blue);
}

/* ==========================================================================
   Animations Keyframes
   ========================================================================== */
@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.4));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8));
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.05); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

@keyframes aurora-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes neon-glow {
  0%, 100% {
    text-shadow: 0 0 2px rgba(56, 189, 248, 0.3);
  }
  50% {
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  }
}

/* Dynamic Entrance Fade class */
.animated-fade {
  animation: slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}

/* Localized Log Showcase Tab Selections */
.log-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

.log-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.log-tab.active {
  background: rgba(5, 20, 36, 0.85);
  color: var(--accent-blue);
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.05);
}

/* Premium Table Enhancements */
.table-wrapper {
  background: linear-gradient(135deg, rgba(13, 20, 38, 0.5), rgba(5, 8, 17, 0.6)) !important;
  border-color: rgba(56, 189, 248, 0.15) !important;
}

th:last-child, th.th-argus {
  border-inline: 1px solid rgba(56, 189, 248, 0.2) !important;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.12) 0%, rgba(13, 20, 38, 0.9) 100%) !important;
  position: relative;
}

.row-argus {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.018) !important;
  border-inline: 1px solid rgba(56, 189, 248, 0.1) !important;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.02);
}

tr:hover .row-argus {
  background: rgba(56, 189, 248, 0.045) !important;
  box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.05);
}

/* Winner Ribbon Tag on Header Column */
.winner-tag {
  display: inline-flex;
  align-items: center;
  background: var(--grad-accent);
  color: #030712;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  vertical-align: middle;
  margin-inline-start: 8px;
}

/* Premium Row Hovers and Column Scroll Safety */
tr {
  transition: var(--transition-smooth);
}

tr:hover td:not(.row-argus) {
  background: rgba(255, 255, 255, 0.015);
}

.mobile-label {
  display: none;
}

/* Comparison table: card layout on tablet & mobile */
@media (max-width: 992px) {
  .table-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
  }

  table {
    min-width: 0 !important;
  }
  
  table, tbody, tr, td {
    display: block;
    width: 100% !important;
  }
  
  thead {
    display: none;
  }
  
  tr {
    background: linear-gradient(135deg, rgba(13, 20, 38, 0.65), rgba(5, 8, 17, 0.8)) !important;
    border: 1px solid rgba(56, 189, 248, 0.08) !important;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
  }
  
  td {
    padding: 16px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    text-align: left !important;
  }
  
  body[dir="rtl"] td {
    text-align: right !important;
  }
  
  td:last-child {
    border-bottom: none !important;
  }
  
  .row-feature {
    font-size: 1.15rem !important;
    font-weight: 800;
    color: #fff;
    border-bottom: 2px solid rgba(56, 189, 248, 0.2) !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px;
  }
  
  .mobile-label {
    display: block !important;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
  }
  
  body[dir="rtl"] .mobile-label {
    letter-spacing: 0;
  }
  
  td.row-argus {
    background: rgba(56, 189, 248, 0.03) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 12px;
    padding: 18px !important;
    margin-top: 16px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.08);
    position: relative;
  }
  
  td.row-argus .mobile-label {
    color: #fff;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    display: inline-block !important;
  }
  
  td.row-argus::after {
    content: attr(data-winner-text);
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--grad-accent);
    color: #030712;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
  }
  
  body[dir="rtl"] td.row-argus::after {
    right: auto;
    left: 18px;
  }
}

@media (min-width: 993px) {
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Premium Table Badges */
.badge-danger, .badge-success, .badge-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent;
  margin-bottom: 8px;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.badge-success {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.badge-icon {
  font-size: 13px !important;
  font-variation-settings: 'FILL' 1;
}

/* ==========================================================================
   Code Split-Screen Comparison Section
   ========================================================================== */
.codecomp-section {
  padding: 80px 0;
  position: relative;
  background-image: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.03), transparent 50%);
}

.code-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .code-split-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.code-box {
  background: linear-gradient(135deg, rgba(13, 20, 38, 0.45), rgba(5, 8, 17, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.code-box-bad {
  border-color: rgba(239, 68, 68, 0.15);
}

.code-box-good {
  border-color: rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.06), var(--shadow-premium) !important;
  background: linear-gradient(135deg, rgba(13, 20, 38, 0.55), rgba(0, 122, 255, 0.03)) !important;
}

.code-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.code-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-box-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-bad {
  background: rgba(239, 68, 68, 0.07);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-good {
  background: var(--grad-accent);
  color: #030712;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.code-box pre {
  margin: 0 0 16px 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 20px;
  font-size: clamp(0.72rem, 2.5vw, 0.82rem);
  font-family: var(--font-code);
  overflow-x: auto;
  max-width: 100%;
  line-height: 1.5;
  direction: ltr !important;
  text-align: left !important;
  -webkit-overflow-scrolling: touch;
}

.code-box code {
  direction: ltr !important;
  text-align: left !important;
}

.code-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Premium Visual footprint metrics indicators */
.code-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.code-box-bad .code-metric-row {
  background: rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.1);
  border-inline-start: 4px solid #f87171;
}

.code-box-good .code-metric-row {
  background: rgba(56, 189, 248, 0.03);
  border-color: rgba(56, 189, 248, 0.15);
  border-inline-start: 4px solid var(--accent-blue);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.03);
}

.code-box-bad:hover .code-metric-row {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
}

.code-box-good:hover .code-metric-row {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.06);
}

.code-metric-label {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-metric-value {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.metric-bad {
  color: #f87171;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}

.metric-good {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

@media (max-width: 480px) {
  .code-metric-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   Boilerplate Growth Chart Styling
   ========================================================================== */
.codecomp-chart-card {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(13, 20, 38, 0.45), rgba(5, 8, 17, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(12px);
}

/* Real-world enterprise slider grid */
.chart-control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .chart-control-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.chart-slider-group {
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 16px 20px;
  border-radius: 14px;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}

.chart-slider-group:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.06);
}

.chart-slider-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-icon {
  font-size: 18px !important;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-slider {
  flex: 1;
  accent-color: var(--accent-blue);
  cursor: pointer;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.slider-bubble {
  font-family: var(--font-code);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-blue);
  min-width: 24px;
  text-align: center;
}

.chart-slider-group:nth-child(2) .custom-slider {
  accent-color: var(--accent-indigo);
}
.chart-slider-group:nth-child(2) .slider-bubble {
  color: var(--accent-indigo);
}

.chart-slider-group:nth-child(3) .custom-slider {
  accent-color: var(--accent-purple);
}
.chart-slider-group:nth-child(3) .slider-bubble {
  color: var(--accent-purple);
}

/* System Stats HUD */
.chart-stats-hud {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 32px;
}

@media (max-width: 576px) {
  .chart-stats-hud {
    flex-direction: column;
    gap: 10px;
  }
}

.hud-stat-box {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 10px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-width: 220px;
  transition: all 0.3s ease;
}

.hud-stat-box:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.06);
}

.hud-stat-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hud-stat-value {
  font-family: var(--font-code);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
}


.chart-comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.chart-legend-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  padding: 16px 20px;
  border-radius: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.legend-color-line {
  display: inline-block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
}

.stroke-bad {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.stroke-good {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.chart-canvas-container {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 24px 20px 16px 12px;
  border-radius: 16px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

svg#locLineChart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

svg#locLineChart text {
  fill: var(--text-secondary);
  font-family: var(--font-code);
  user-select: none;
}


/* Beautiful dynamic efficiency counter */
.chart-savings-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  font-size: 0.95rem;
  color: #34d399;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05);
  transition: all 0.3s ease;
  max-width: fit-content;
  margin: 0 auto;
}

.chart-savings-badge strong {
  font-family: var(--font-code);
  font-size: 1.05rem;
  color: #10b981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

body[dir="rtl"] .fill-legacy {
  background: linear-gradient(270deg, #ef4444, #f87171);
}

body[dir="rtl"] .fill-argus {
  background: linear-gradient(270deg, #38bdf8, #007aff);
}

@media (max-width: 768px) {
  .codecomp-chart-card {
    padding: 24px 16px;
  }
  .chart-savings-badge {
    flex-direction: column;
    gap: 6px;
  }
}

/* Premium Glassmorphic Number Spinner capsule */
.number-spinner {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  height: 44px;
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.chart-slider-group:hover .number-spinner {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.02);
}

.spinner-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 700;
  width: 44px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: all 0.2s ease;
}

.spinner-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.spinner-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.spinner-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-code);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  width: 100%;
  -moz-appearance: textfield;
  appearance: textfield;
}

.spinner-input::-webkit-outer-spin-button,
.spinner-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Coordinated borders on active indicators */
.chart-slider-group:nth-child(1) .number-spinner {
  border-inline-start: 3px solid var(--accent-blue);
}
.chart-slider-group:nth-child(1) .spinner-input {
  color: var(--accent-blue);
}
.chart-slider-group:nth-child(2) .number-spinner {
  border-inline-start: 3px solid var(--accent-indigo);
}
.chart-slider-group:nth-child(2) .spinner-input {
  color: var(--accent-indigo);
}
.chart-slider-group:nth-child(3) .number-spinner {
  border-inline-start: 3px solid var(--accent-purple);
}
.chart-slider-group:nth-child(3) .spinner-input {
  color: var(--accent-purple);
}
.chart-slider-group:nth-child(4) .number-spinner {
  border-inline-start: 3px solid #10b981;
}
.chart-slider-group:nth-child(4) .spinner-input {
  color: #10b981;
}

/* ==========================================================================
   Real-world enterprise side-by-side flex layout & stacked sidebar styles
   ========================================================================== */
.chart-flex-layout {
  display: flex;
  gap: 32px;
  align-items: stretch;
  margin-top: 24px;
}

.chart-inputs-sidebar {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chart-inputs-sidebar .chart-control-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
  width: 100%;
}

.chart-inputs-sidebar .chart-slider-group {
  margin-bottom: 0;
}

.chart-inputs-sidebar .chart-stats-hud {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.chart-inputs-sidebar .hud-stat-box {
  min-width: 100%;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-visual-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0; /* Prevents flex overflow */
}

@media (max-width: 992px) {
  .chart-flex-layout {
    flex-direction: column;
  }
  .chart-inputs-sidebar {
    flex: 1;
    width: 100%;
  }
}

/* HTML-based axis labels and wrapper */
.chart-canvas-layout-wrapper {
  display: flex;
  gap: 16px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chart-html-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0 16px 0;
  min-width: 48px;
  text-align: right;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-secondary);
  user-select: none;
}

body[dir="rtl"] .chart-html-y-axis {
  text-align: left;
}

.chart-html-x-axis {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-secondary);
  user-select: none;
  width: 100%;
  padding-inline-end: 8px;
}

body[dir="rtl"] .chart-html-x-axis {
  justify-content: flex-start;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-sm { font-size: 0.88rem; line-height: 1.55; }
.text-xs { font-size: 0.8rem; line-height: 1.5; }
.font-bold { font-weight: 700; }
.mb-xs { margin-bottom: 6px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.flex-1 { flex: 1; min-width: 0; }
.py-sm { padding-top: 10px; padding-bottom: 10px; }
.p-2 { padding: 8px; }
.rounded-xl { border-radius: 14px; }
.rounded-lg { border-radius: 10px; }

.glass-panel {
  background: rgba(10, 18, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.styled-list {
  list-style: disc;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.styled-list li + li {
  margin-top: 8px;
}

.styled-list code {
  font-family: var(--font-code);
  font-size: 0.85em;
  color: var(--accent-blue);
}

.log-tabs-panel {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 24px;
  padding: 8px;
  border-radius: 14px;
}

.log-tabs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.log-tabs-row .log-tab {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.setup-step {
  margin-bottom: 48px;
  border-inline-start: 4px solid var(--accent-blue);
  padding-inline-start: 24px;
}

.setup-step:last-child {
  margin-bottom: 0;
}

.setup-step--indigo { border-color: var(--accent-indigo); }
.setup-step--purple { border-color: var(--accent-purple); }

.module-card-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.module-card-body {
  flex: 1;
  min-width: 0;
}

.module-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin-top: 16px;
}

.chart-section-title {
  text-align: center;
  margin-bottom: 28px;
}

.chart-section-title h3 {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.showcase-code {
  max-width: 800px;
  margin-inline: auto;
  box-shadow: var(--shadow-premium);
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(56, 189, 248, 0.04), transparent 70%);
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.section-setup {
  background: rgba(255, 255, 255, 0.005);
  border-top: 1px solid rgba(255, 255, 255, 0.025);
}

.module-card-full {
  margin-top: 24px;
}

.module-card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.module-card-title {
  margin-bottom: 4px;
}

.chart-title-icon {
  color: var(--accent-blue);
}

.chart-section-subtitle {
  font-size: 0.9rem;
}

.feature-card--problem {
  border-inline-start: 4px solid var(--text-muted);
}

.feature-card--solution {
  border-inline-start: 4px solid var(--accent-blue);
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.feature-icon--muted {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 992px) {
  .table-section tr {
    padding: 20px 18px;
  }
}

@media (max-width: 640px) {
  .module-card-row {
    flex-direction: column;
    gap: 16px;
  }

  .module-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Responsive Layout — Navigation, Hero, Forms & Sections
   ========================================================================== */
@media (max-width: 1280px) {
  .nav-container {
    height: 72px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-inline-start: auto;
  }

  .nav-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--panel-border);
    flex-shrink: 0;
  }

  .nav-drawer-label {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .nav-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .nav-drawer-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--panel-border-hover);
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: auto;
    right: auto;
    width: min(360px, 92vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 8, 17, 0.98);
    border-inline-start: 1px solid var(--panel-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 20px 32px;
    flex: none;
    flex-direction: column;
    gap: 20px;
    z-index: 201;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    inset-inline-end: 0;
    transform: translate3d(100%, 0, 0);
    justify-content: flex-start;
    visibility: hidden;
    pointer-events: none;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45);
  }

  body[dir="rtl"] .nav-drawer {
    transform: translate3d(-100%, 0, 0);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
  }

  body.nav-open .nav-drawer {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-height: 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 1rem;
    white-space: normal;
    color: var(--text-primary);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent-blue);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--panel-border);
    flex-shrink: 0;
  }

  .lang-selector,
  .nav-cta-btn {
    width: 100%;
  }

  .lang-btn {
    width: 100%;
    justify-content: center;
  }

  .nav-cta-btn {
    justify-content: center;
    padding: 14px 20px;
  }

  .nav-drawer .lang-dropdown {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
    border: 1px solid var(--panel-border);
  }

  .nav-drawer .lang-dropdown.show {
    display: block;
  }
}

@media (max-width: 992px) {
  .waitlist-form {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    max-width: 100%;
  }

  .waitlist-input {
    width: 100%;
    padding: 12px 14px;
    text-align: start;
  }

  .waitlist-submit {
    width: 100%;
    padding: 14px 20px;
  }

  .hero-glow-1,
  .hero-glow-2 {
    opacity: 0.45;
  }

  .code-split-container,
  .compare-grid {
    gap: 20px;
  }

  .chart-flex-layout {
    gap: 20px;
  }

  .codecomp-chart-card {
    padding: 24px 18px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 120px 0 64px;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .mock-viewport {
    padding: 10px;
    border-radius: 14px;
  }

  .features,
  .comparison,
  .table-section,
  .codecomp-section,
  .cta-section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .cta-card {
    padding: 36px 20px;
    border-radius: 18px;
  }

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

  .code-box pre {
    padding: 14px;
    font-size: 0.75rem;
  }

  .code-container pre {
    padding: 14px;
  }

  .code-container code {
    font-size: 0.78rem;
  }

  th, td {
    padding: 16px 18px;
    font-size: 0.88rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 20px;
  }

  .setup-step {
    padding-inline-start: 16px;
    margin-bottom: 36px;
  }

  .log-tabs-row {
    flex-direction: column;
  }

  .log-tabs-row .log-tab {
    min-width: 0;
    width: 100%;
  }

  .chart-html-y-axis {
    min-width: 36px;
    font-size: 0.7rem;
    padding: 16px 0 12px;
  }

  .legend-item {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.25rem;
  }

  .logo-img {
    width: 26px;
    height: 26px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .btn {
    font-size: 0.85rem;
  }

  .code-box-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .compare-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hud-stat-box {
    min-width: 0;
    width: 100%;
    gap: 12px;
  }

  .hero-glow-1,
  .hero-glow-2 {
    display: none;
  }

  tr {
    padding: 18px 16px;
  }

  .winner-tag {
    display: block;
    margin-inline-start: 0;
    margin-top: 6px;
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Modern UI — Hero stats, scroll reveal, polish
   ========================================================================== */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 120px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.hero-stat:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
}

.hero-stat-value {
  font-family: var(--font-code);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


.setup-cta-wrap {
  margin-top: 48px;
  text-align: center;
}
