/* ==========================================================================
   GSAP 2027 SHOWCASE - ULTRA-PREMIUM MOTION DESIGN SYSTEM
   Optimized for High-Performance GPU Rendering (60-120fps)
   ========================================================================== */

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

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette (Deep Void & GSAP Neon Emerald) */
  --bg-primary: #06090e;
  --bg-secondary: #0b111a;
  --bg-tertiary: #111927;
  --bg-card: rgba(15, 23, 38, 0.65);
  --bg-card-hover: rgba(22, 34, 56, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  /* Brand Accents */
  --accent-green: #0ae448;
  --accent-green-glow: rgba(10, 228, 72, 0.35);
  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.3);
  --accent-emerald: #00ff87;
  --accent-purple: #9d4edd;
  --accent-purple-glow: rgba(157, 78, 221, 0.3);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #06090e;

  /* Borders & Outlines */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(10, 228, 72, 0.4);
  --border-glass: rgba(255, 255, 255, 0.12);

  /* Elevation Shadows */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 35px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--accent-green-glow);
  --shadow-cyan-glow: 0 0 40px var(--accent-cyan-glow);

  /* Fonts */
  --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --font-ar: 'Alexandria', 'Cairo', sans-serif;

  /* Transitions & Animation Constants */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Neon Cyber Theme Overrides */
[data-theme="cyber"] {
  --bg-primary: #05050b;
  --bg-secondary: #090915;
  --accent-green: #00f0ff;
  --accent-green-glow: rgba(0, 240, 255, 0.4);
  --accent-cyan: #ff007f;
  --accent-cyan-glow: rgba(255, 0, 127, 0.4);
  --border-highlight: rgba(0, 240, 255, 0.5);
}

/* Light Obsidian Theme Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(0, 0, 0, 0.02);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glass: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 35px rgba(0, 0, 0, 0.1);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Managed by Lenis for smooth 60-120fps */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-follower,
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform, width, height, opacity;
  transition: opacity 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
}

.cursor-follower {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(10, 228, 72, 0.6);
  background: rgba(10, 228, 72, 0.05);
  transition: transform 0.15s ease-out, width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

.cursor-glow {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent-green-glow) 0%, rgba(10, 228, 72, 0) 70%);
  opacity: 0.15;
  filter: blur(25px);
  z-index: 9998;
}

/* Cursor State Variations */
.cursor-hover .cursor-follower {
  width: 65px;
  height: 65px;
  border-color: var(--accent-green);
  background: rgba(10, 228, 72, 0.15);
  backdrop-filter: invert(0.15);
}

.cursor-text-mode .cursor-follower {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  mix-blend-mode: difference;
  border: none;
}
.cursor-text-mode .cursor-dot {
  opacity: 0;
}

@media (pointer: coarse), (hover: none) {
  .cursor-dot, .cursor-follower, .cursor-glow {
    display: none !important;
  }
}

/* --- Scroll Progress Bar --- */
#scroll-progress-bar,
.scroll-progress-container,
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #0ae448, #00f2fe, #00ff87);
  box-shadow: 0 0 10px #0ae448;
  z-index: 10001;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* --- Background Ambient Canvas (Fixed to Viewport, never in document flow) --- */
#ambient-canvas,
#bg-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0.6;
}

.ambient-aura {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  will-change: transform;
}

.aura-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-green), transparent 70%);
}

.aura-2 {
  bottom: 10%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

.aura-3 {
  top: 45%;
  left: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* --- Navbar (Glassmorphic Top Bar) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.1rem 0;
  z-index: 1000;
  background: rgba(6, 9, 14, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(6, 9, 14, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo-symbol {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-green-glow);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease-elastic);
}

.brand-logo:hover .logo-symbol {
  transform: rotate(225deg) scale(1.1);
}

.logo-symbol-inner {
  width: 14px;
  height: 14px;
  background: var(--bg-primary);
  border-radius: 3px;
}

.logo-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(10, 228, 72, 0.15);
  color: var(--accent-green);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(10, 228, 72, 0.3);
  margin-left: 4px;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-green);
  transition: width 0.3s var(--ease-out-expo);
  box-shadow: 0 0 8px var(--accent-green);
}

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

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

/* Nav Actions (Controls) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ctrl-btn {
  background: rgba(22, 32, 50, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-mono);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.ctrl-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(10, 228, 72, 0.15);
  box-shadow: 0 0 15px var(--accent-green-glow);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: rgba(22, 32, 50, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 10px;
}

/* --- High-Contrast Buttons & Magnetics --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.9rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  border: none;
  outline: none;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn-primary {
  background: #0ae448;
  color: #06090e !important;
  font-weight: 800;
  border: 2px solid #0ae448;
  box-shadow: 0 4px 25px rgba(10, 228, 72, 0.45);
}

.btn-primary:hover {
  background: #00ff55;
  border-color: #00ff55;
  box-shadow: 0 8px 35px rgba(10, 228, 72, 0.7);
  transform: translateY(-2px) scale(1.02);
}

.btn-glass {
  background: rgba(20, 30, 48, 0.85);
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn-glass:hover {
  background: rgba(30, 45, 70, 0.95);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan) !important;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}

.btn-pill {
  border-radius: 9999px;
}

/* Button Shimmer Effect */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

/* --- Badges & Pills --- */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(10, 228, 72, 0.1);
  border: 1px solid rgba(10, 228, 72, 0.3);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(10, 228, 72, 0.15);
}

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

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 15px var(--accent-green); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* --- Section Typography & Spacing --- */
section {
  padding: 7rem 0;
  position: relative;
}

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

.section-tag {
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

/* Gradient Text Clip */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-green) 70%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--accent-cyan) 20%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   HERO SECTION (2027 IMMERSIVE VIEWPORT)
   ========================================================================== */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

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

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item h4 {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 3D Floating Hero Visualizer */
.hero-visual {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.visual-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.floating-card {
  position: absolute;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-glow);
}

.card-main {
  width: 340px;
  top: 12%;
  left: 15%;
  z-index: 3;
}

.card-code {
  width: 280px;
  bottom: 8%;
  left: 4%;
  z-index: 4;
}

.card-mini {
  width: 230px;
  top: 6%;
  right: 6%;
  z-index: 2;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.card-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

.code-snippet {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #a5b4fc;
}
.code-keyword { color: #f43f5e; font-weight: bold; }
.code-func { color: var(--accent-green); }
.code-prop { color: var(--accent-cyan); }
.code-str { color: #fef08a; }

/* Interactive Timeline Graphic in Card */
.interactive-wave-track {
  height: 60px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.wave-ball {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 15px var(--accent-green);
  position: absolute;
}

/* ==========================================================================
   PINNED HORIZONTAL SCROLL SHOWCASE (GSAP PIN & SCRUB)
   ========================================================================== */
.horizontal-scroll-container {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.horizontal-track {
  display: flex;
  gap: 3rem;
  padding: 5rem 6rem;
  width: max-content;
  will-change: transform;
}

.showcase-card {
  width: 440px;
  height: 520px;
  flex-shrink: 0;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(24px);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s ease;
}

.showcase-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(10, 228, 72, 0.12) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-card:hover::after {
  opacity: 1;
}

.showcase-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-highlight);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
}

.showcase-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(10, 228, 72, 0.1);
  border: 1px solid rgba(10, 228, 72, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.showcase-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

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

.showcase-visual-preview {
  height: 160px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}

/* ==========================================================================
   LIVE MOTION & EASING PLAYGROUND (DIRECT REAL-TIME CONTROL)
   ========================================================================== */
.playground-section {
  position: relative;
}

.playground-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.controls-col h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.control-group {
  margin-bottom: 1.5rem;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.control-label span:last-child {
  font-family: var(--font-mono);
  color: var(--accent-green);
}

.ease-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ease-pill {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.ease-pill:hover,
.ease-pill.active {
  background: rgba(10, 228, 72, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 15px rgba(10, 228, 72, 0.2);
}

/* Custom Sliders */
.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Stage Preview in Playground */
.stage-preview-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  height: 380px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  overflow: hidden;
}

.graph-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}

.stage-arena {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
}

.morphing-target-box {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  box-shadow: 0 0 30px var(--accent-green-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06090e;
  font-size: 1.75rem;
  cursor: pointer;
  will-change: transform, border-radius;
}

.code-output-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ==========================================================================
   BENTO GRID (SPOTLIGHT CARD MESH)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

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

.bento-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(10, 228, 72, 0.12), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover .bento-spotlight {
  opacity: 1;
}

.bento-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(10, 228, 72, 0.1);
  border: 1px solid rgba(10, 228, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.bento-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

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

/* ==========================================================================
   INFINITE KINETIC MARQUEE
   ========================================================================== */
.marquee-section {
  padding: 4rem 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary), var(--bg-primary));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  will-change: transform;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  transition: -webkit-text-stroke 0.3s ease, color 0.3s ease;
}

.marquee-item:hover {
  color: var(--accent-green);
  -webkit-text-stroke: 1px var(--accent-green);
}

.marquee-spark {
  color: var(--accent-cyan);
  font-size: 2rem;
}

/* ==========================================================================
   CALL TO ACTION & GITHUB PAGES DEPLOYMENT GUIDE
   ========================================================================== */
.deploy-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(6, 9, 14, 0.95));
  border: 1px solid var(--border-highlight);
  border-radius: 28px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.deploy-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  text-align: left;
}

[dir="rtl"] .deploy-steps-grid {
  text-align: right;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 0.75rem;
}

.step-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

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

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 2rem;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE, TABLET & DESKTOP)
   ========================================================================== */

/* Disable Custom Cursor on Touch Devices */
@media (hover: none) or (pointer: coarse) {
  .cursor-dot,
  .cursor-follower,
  .cursor-glow {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Mobile Nav Drawer Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 12, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
}

.mobile-menu-header,
.mobile-menu-footer {
  display: none;
}

/* Tablet Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-visual {
    height: 380px;
  }

  .playground-shell {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.25rem;
  }

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

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

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

/* Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
  body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Header & Mobile Toggle */
  .site-header {
    padding: 0.75rem 0;
  }

  .header-cta {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .mobile-toggle:hover,
  .mobile-toggle.active {
    background: rgba(10, 228, 72, 0.12);
    border-color: var(--accent-green);
    color: var(--accent-green);
  }

  /* Mobile Slide-in Drawer Navigation */
  .nav-menu-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: rgba(8, 12, 20, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-glass);
    z-index: 999;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem 1.5rem 2rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
  }

  [dir="rtl"] .nav-menu-wrapper {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid var(--border-glass);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.7);
  }

  .nav-menu-wrapper.active {
    right: 0;
  }

  [dir="rtl"] .nav-menu-wrapper.active {
    left: 0;
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .mobile-menu-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-ar);
  }

  .mobile-close-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-close-btn:hover {
    color: #ff4757;
    border-color: #ff4757;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin: 1.5rem 0;
    list-style: none;
  }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    transition: all 0.2s ease;
  }

  .nav-link:hover,
  .nav-link:active {
    background: rgba(10, 228, 72, 0.1);
    color: var(--accent-green);
    transform: translateX(4px);
  }

  [dir="rtl"] .nav-link:hover,
  [dir="rtl"] .nav-link:active {
    transform: translateX(-4px);
  }

  .mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
  }

  .btn-whatsapp-mobile {
    background: #25d366;
    color: #06090e;
    font-weight: 700;
    padding: 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  }

  /* Hero Section Responsiveness */
  .hero-section {
    padding: 4.8rem 0 2rem;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.4rem);
    line-height: 1.28;
    margin-bottom: 0.85rem;
  }

  .pill-badge {
    font-size: 0.76rem;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1rem;
    max-width: 100%;
    line-height: 1.4;
    display: inline-flex;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 800;
    min-height: 52px;
    justify-content: center;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    padding-top: 1.5rem;
  }

  .hero-stat-item {
    padding: 0.9rem 0.65rem;
    background: rgba(15, 23, 38, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-align: center;
  }

  .hero-stat-item h4 {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
    font-weight: 800;
  }

  .hero-stat-item p {
    font-size: 0.72rem;
    color: var(--text-secondary);
  }

  .hero-visual {
    display: none; /* Hide heavy cluttered 3D floaters on mobile screens */
  }

  /* Horizontal Showcase (Touch-Friendly Native Horizontal Swiping on Mobile) */
  .horizontal-scroll-container {
    height: auto !important;
    padding: 3rem 0;
    overflow: visible;
  }

  .horizontal-track-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 1rem 1.25rem 2rem;
    scrollbar-width: none;
    display: flex;
    width: 100%;
  }

  .horizontal-track-wrapper::-webkit-scrollbar {
    display: none;
  }

  .horizontal-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
  }

  .showcase-card {
    scroll-snap-align: center;
    width: 82vw !important;
    max-width: 320px;
    height: 420px;
    flex-shrink: 0;
    padding: 1.5rem;
  }

  .showcase-card h3 {
    font-size: 1.4rem;
  }

  .showcase-card p {
    font-size: 0.88rem;
  }

  /* Playground Mobile */
  .playground-section {
    padding: 3rem 0;
  }

  .playground-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }

  .ease-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .ease-pill {
    padding: 0.65rem 0.5rem;
    font-size: 0.8rem;
  }

  .stage-preview-box {
    padding: 1.25rem;
    min-height: 240px;
  }

  .stage-arena {
    height: 110px;
  }

  .morphing-target-box {
    width: 55px;
    height: 55px;
  }

  /* Bento Grid Mobile */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .bento-card {
    padding: 1.5rem;
    border-radius: 18px;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 3rem 0 2rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-stat-item h4 {
    font-size: 1.2rem;
  }

  .showcase-card {
    width: 86vw !important;
    height: 400px;
  }
}

/* ==========================================================================
   Floating WhatsApp Button (2027 Futuristic Glow & Pulse)
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 997;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .floating-whatsapp {
  right: auto;
  left: 28px;
}

.whatsapp-icon-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4),
              0 0 20px rgba(37, 211, 102, 0.2),
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.whatsapp-svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.4s ease;
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  animation: wa-pulse 2.2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.whatsapp-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(10, 15, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 30px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}

.whatsapp-badge-dot {
  width: 8px;
  height: 8px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 8px #25d366;
  animation: wa-dot-blink 1.5s infinite ease-in-out;
}

@keyframes wa-dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.04);
}

.floating-whatsapp:hover .whatsapp-icon-wrap {
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.6),
              0 0 30px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp:hover .whatsapp-svg {
  transform: scale(1.1) rotate(-8deg);
}

.floating-whatsapp:hover .whatsapp-badge {
  background: rgba(10, 15, 24, 0.95);
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.25);
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
  }
  [dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 20px;
  }
  .whatsapp-badge {
    display: none;
  }
  .whatsapp-icon-wrap {
    width: 52px;
    height: 52px;
  }
  .whatsapp-pulse {
    width: 52px;
    height: 52px;
  }
  .whatsapp-svg {
    width: 26px;
    height: 26px;
  }
}


