/* =============================================
   ULTRA-PREMIUM EDTECH PORTFOLIO - GLOBAL STYLES
   ============================================= */

/* Google Fonts - Including Cairo for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* =============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================= */
:root {
  /* Premium Dark Theme Colors */
  --bg-primary: #060608;
  --bg-secondary: #0c0c12;
  --bg-tertiary: #121218;
  --bg-card: #0e0e15;
  --bg-card-hover: #16161f;
  --bg-elevated: #1a1a26;

  /* EDUTRICK Brand Colors */
  --accent-primary: #ff4b22;
  --accent-secondary: #ff6b47;
  --accent-tertiary: #ff8a6b;
  --accent-gold: #f59e0b;
  --accent-cyan: #06b6d4;

  /* Gradient Combinations */
  --gradient-primary: linear-gradient(135deg, #ff4b22 0%, #ff6b47 50%, #ff8a6b 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-dark: linear-gradient(180deg, #07070a 0%, #0d0d12 100%);
  --gradient-radial: radial-gradient(ellipse at center, #1a1a2e 0%, #07070a 70%);
  --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(168, 85, 247, 0.1) 100%);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-subtle: #52525b;

  /* Border Colors */
  --border-primary: rgba(255, 255, 255, 0.08);
  --border-secondary: rgba(255, 255, 255, 0.04);
  --border-accent: rgba(99, 102, 241, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --shadow-glow-lg: 0 0 80px rgba(99, 102, 241, 0.2);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-arabic: 'Cairo', sans-serif;

  /* Font Sizes (Fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
  --text-6xl: clamp(3.75rem, 2.5rem + 6.25vw, 6rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;

  /* Container */
  --container-max: 1400px;
  --container-padding: clamp(1rem, 5vw, 3rem);
}

/* =============================================
   LIGHT THEME (Premium Crisp Palette)
   ============================================= */
[data-theme="light"] {
  --bg-primary: #f8f9fb;
  --bg-secondary: #f0f2f7;
  --bg-tertiary: #e4e8f0;
  --bg-card: #ffffff;
  --bg-card-hover: #f9faff;
  --bg-elevated: #dde2ee;

  --text-primary: #0d0f1a;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;

  --border-primary: rgba(13, 15, 26, 0.09);
  --border-secondary: rgba(13, 15, 26, 0.05);
  --border-accent: rgba(255, 75, 34, 0.3);

  --shadow-sm: 0 2px 8px rgba(13, 15, 26, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 15, 26, 0.1);
  --shadow-lg: 0 8px 32px rgba(13, 15, 26, 0.12);
  --shadow-xl: 0 16px 48px rgba(13, 15, 26, 0.14);
  --shadow-glow: 0 0 40px rgba(255, 75, 34, 0.15);
  --shadow-glow-lg: 0 0 80px rgba(255, 75, 34, 0.2);

  --gradient-dark: linear-gradient(180deg, #f8f9fb 0%, #f0f2f7 100%);
  --gradient-radial: radial-gradient(ellipse at center, #ffffff 0%, #f0f2f7 70%);
  --gradient-hero: linear-gradient(135deg, rgba(255, 75, 34, 0.07) 0%, rgba(245, 158, 11, 0.04) 50%, rgba(99, 102, 241, 0.07) 100%);
}

/* =============================================
   RTL SUPPORT (Arabic)
   ============================================= */
[dir="rtl"] {
  font-family: var(--font-arabic);
}

[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .platform-title,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
  font-family: var(--font-arabic);
}

[dir="rtl"] .nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .btn {
  flex-direction: row-reverse;
}

[dir="rtl"] .platform-card-meta {
  flex-direction: row-reverse;
}

/* =============================================
   RESET & BASE STYLES
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Buttons */
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Inputs */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-padding {
  padding: var(--space-5xl) 0;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.glow {
  box-shadow: var(--shadow-glow);
}

/* =============================================
   ANIMATION KEYFRAMES
   ============================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

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

  to {
    transform: rotate(360deg);
  }
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
  }
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* =============================================
   ANIMATION UTILITIES
   ============================================= */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Staggered Animations */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

.stagger-6 {
  animation-delay: 0.6s;
}

/* Initially Hidden for Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE UTILITIES
   ============================================= */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* =============================================
   HEADER STYLES
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-lg) 0;
  transition: all var(--transition-base);
  border-top: 3px solid transparent;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
  z-index: 10;
}

.header.scrolled {
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-md) 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .header.scrolled {
  background: rgba(248, 249, 251, 0.92);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(13, 15, 26, 0.08);
  box-shadow: 0 4px 30px rgba(13, 15, 26, 0.08);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  padding: var(--space-xs) 0;
}

.nav-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .nav-link:hover {
  text-shadow: 0 0 15px rgba(255, 75, 34, 0.2);
}

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

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

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .mobile-menu-btn:hover {
  background: rgba(13, 15, 26, 0.05);
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* =============================================
   BUTTON STYLES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
}

/* =============================================
   CARD STYLES
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

[data-theme="light"] .card {
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-secondary);
}

[data-theme="light"] .card:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-8px);
  background: #ffffff;
}

/* =============================================
   ULTIMATE PREMIUM HERO SECTION
   ============================================= */
.cinematic-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
  background: var(--bg-primary);
}

/* Deep Background Layers */
.hero-deep-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 75, 34, 0.1) 0%, transparent 50%);
  z-index: -4;
}

[data-theme="light"] .cinematic-hero {
  background: var(--bg-primary);
}

[data-theme="light"] .hero-deep-bg {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 75, 34, 0.05) 0%, transparent 50%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 50px 50px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  z-index: -3;
}

[data-theme="light"] .hero-grid-overlay {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Mouse Tracking Glow */
.hero-glow-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  z-index: -2;
  pointer-events: none;
  transition: top 0.2s ease-out, left 0.2s ease-out;
}

/* Video Vignette to blend edges perfectly */
.hero-cover {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}

[data-theme="light"] .hero-cover {
  opacity: 0.12;
  filter: saturate(1.2);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 40%, #030305 100%);
}

[data-theme="light"] .hero-vignette {
  background: radial-gradient(circle, transparent 40%, #fbfbfb 100%);
}

/* Premium Pill Badge */
.premium-badge {
  position: relative;
  display: inline-flex;
  margin-bottom: var(--space-2xl);
}

.premium-badge-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold), var(--accent-primary));
  border-radius: 99px;
  filter: blur(8px);
  opacity: 0.5;
  animation: bg-spin 4s linear infinite;
  background-size: 200% 200%;
}

.premium-badge-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 24px;
  border-radius: 99px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
}

[data-theme="light"] .premium-badge-content {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

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

/* Cinematic Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
  color: white;
}

[data-theme="light"] .hero-title {
  color: #000;
}

.title-line {
  display: block;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.6;
}

/* Premium Buttons */
.hero-cta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8vh;
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  border-radius: 99px;
  font-size: var(--text-lg);
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.btn-glow-primary {
  background: white;
  color: black;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.btn-glow-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .btn-glow-primary {
  background: #000;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-glow-primary:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .btn-glass {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-glass:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Floating Stats Glass Bar */
.hero-stats-glass-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px 48px;
  gap: 48px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .hero-stats-glass-bar {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.stat-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

[data-theme="light"] .stat-val {
  color: var(--text-primary);
}

.stat-lbl {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .stat-divider {
  background: rgba(0, 0, 0, 0.1);
}

@media(max-width: 768px) {
  .hero-stats-glass-bar {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    width: 90%;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero-cta {
    flex-direction: column;
    padding: 0 20px;
  }

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

/* =============================================
   PLATFORMS SECTION
   ============================================= */
.platforms-section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-4xl);
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  background: rgba(255, 75, 34, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 75, 34, 0.15);
}

[data-theme="light"] .section-subtitle {
  background: rgba(255, 75, 34, 0.07);
  border-color: rgba(255, 75, 34, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Platform Grid - Bento Layout */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* First card is featured - spans 2 columns */
.platforms-grid>div:first-child {
  grid-column: span 2;
}

.platforms-grid>div:first-child .platform-card-image {
  height: 320px;
}

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

  .platforms-grid>div:first-child {
    grid-column: span 2;
  }

  .platforms-grid>div:first-child .platform-card-image {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .platforms-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .platforms-grid>div:first-child {
    grid-column: auto;
  }

  .platforms-grid>div:first-child .platform-card-image {
    height: 220px;
  }
}

/* Platform Card - ULTIMATE PREMIUM */
.platform-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .platform-card {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* The Animated Glowing Border Effect */
.platform-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-2xl) + 1px);
  padding: 1px;
  background: conic-gradient(from var(--border-angle), transparent 70%, var(--accent-primary) 85%, var(--accent-gold) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: border-spin 4s linear infinite;
  pointer-events: none;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0turn;
}

@keyframes border-spin {
  to {
    --border-angle: 1turn;
  }
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 75, 34, 0.3),
    0 0 40px rgba(255, 75, 34, 0.15);
  border-color: rgba(255, 75, 34, 0.25);
}

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

[data-theme="light"] .platform-card:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.1),
    0 0 40px rgba(255, 75, 34, 0.15);
}

.platform-card-image {
  position: relative;
  height: 220px;
  background: var(--bg-tertiary);
  overflow: hidden;
  z-index: 1;
}

.platform-card-image img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: block;
}

.platform-card:hover .platform-card-image img {
  transform: scale(1.08);
}

.platform-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 1) 0%, transparent 70%);
}

[data-theme="light"] .platform-card-overlay {
  background: linear-gradient(to top, rgba(250, 250, 249, 0.95) 0%, transparent 70%);
}

.platform-card-logo {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.platform-card-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.platform-card-content {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.platform-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.platform-card-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.platform-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-secondary);
  margin-top: auto;
}

.platform-icons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.platform-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.platform-icon:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
}

.platform-card-arrow {
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.platform-card:hover .platform-card-arrow {
  background: var(--accent-primary);
  color: var(--text-primary);
  transform: translateX(4px);
}

/* =============================================
   PLATFORM DETAIL PAGE
   ============================================= */
.platform-detail {
  padding-top: 100px;
}

.platform-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  margin-bottom: var(--space-4xl);
}

.platform-hero-image {
  position: absolute;
  inset: 0;
}

.platform-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, rgba(7, 7, 10, 0.5) 50%, rgba(7, 7, 10, 0.3) 100%);
}

.platform-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3xl);
}

.platform-logo-large {
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.platform-logo-large img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.platform-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.platform-tagline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
}

/* Platform Content */
.platform-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-3xl);
}

@media (max-width: 1024px) {
  .platform-content {
    grid-template-columns: 1fr;
  }
}

.platform-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.platform-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Platform Section */
.platform-section {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.platform-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.platform-section-title svg {
  color: var(--accent-primary);
}

/* Download Links */
.download-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.download-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.download-link:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.download-link-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.download-link-content {
  flex: 1;
}

.download-link-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.download-link-name {
  font-weight: 600;
}

/* Screenshots Gallery */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.screenshot-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
  background: var(--bg-tertiary);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.screenshot-item:hover img {
  transform: scale(1.05);
}

.screenshot-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition-base);
}

.screenshot-item:hover::after {
  background: rgba(0, 0, 0, 0.2);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  padding: var(--space-4xl) 0 var(--space-2xl);
  margin-top: var(--space-5xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-gold), var(--accent-primary), transparent);
  opacity: 0.5;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: var(--space-lg);
}

.footer-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-primary);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.footer-social-link:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
}

/* =============================================
   MODAL / LIGHTBOX
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

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

.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* =============================================
   ADMIN STYLES
   ============================================= */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-primary);
  padding: var(--space-xl);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: var(--z-sticky);
}

.admin-sidebar-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-primary);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.admin-nav-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.admin-nav-link.active {
  background: var(--accent-primary);
  color: var(--text-primary);
}

.admin-main {
  flex: 1;
  margin-left: 280px;
  padding: var(--space-2xl);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
}

.admin-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
}

/* Admin Cards */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-secondary);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

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

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-primary);
}

/* File Upload */
.file-upload {
  border: 2px dashed var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.file-upload:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
}

.file-upload-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--text-muted);
}

.file-upload-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.file-upload-text span {
  color: var(--accent-primary);
  font-weight: 500;
}

/* Platform List Admin */
.platform-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.platform-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.platform-list-item:hover {
  border-color: var(--border-accent);
}

.platform-list-item-image {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.platform-list-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-list-item-content {
  flex: 1;
  min-width: 0;
}

.platform-list-item-name {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.platform-list-item-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-list-item-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.toggle.active {
  background: var(--accent-primary);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.toggle.active::after {
  transform: translateX(24px);
}

/* Responsive Admin */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 80px;
    padding: var(--space-md);
  }

  .admin-sidebar .logo span,
  .admin-nav-link span {
    display: none;
  }

  .admin-main {
    margin-left: 80px;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 280px;
    padding: var(--space-xl);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar .logo span,
  .admin-nav-link span {
    display: inline;
  }

  .admin-main {
    margin-left: 0;
    padding: var(--space-lg);
  }
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl);
  text-align: center;
  margin: var(--space-5xl) 0;
}

.contact-section .section-title {
  margin-bottom: var(--space-md);
}

.contact-section .section-description {
  margin-bottom: var(--space-2xl);
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* =============================================
   PHASE 8: PREMIUM DESIGN ENHANCEMENTS
   ============================================= */

/* 1. Grain Texture Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
}

[data-theme="light"] body::before {
  opacity: 0.02;
}

/* 2. Hero Interactive Mouse Glow */
.hero-glow-blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(255, 75, 34, 0.15) 0%, rgba(99, 102, 241, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -2;
  transition: opacity 0.5s ease;
  filter: blur(40px);
}

[data-theme="light"] .hero-glow-blob {
  background: radial-gradient(circle, rgba(255, 75, 34, 0.08) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%);
}

/* 3. Refined Typography & Glassmorphism Badge */
.hero-badge {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 8px 30px rgba(255, 75, 34, 0.15);
  transform: translateY(-2px);
}

.hero-title {
  background: linear-gradient(to right, #ffffff 20%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .hero-title {
  background: linear-gradient(to right, #111111 20%, #4a4a4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #ff4b22 0%, #ff8a6b 50%, #f59e0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s linear infinite;
}

/* 4. Enhanced Buttons with Glow */
.btn-primary {
  position: relative;
  z-index: 1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, #ff4b22, #f59e0b, #ff4b22);
  background-size: 200% auto;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: gradient-shift 3s linear infinite;
}

.btn-primary:hover::after {
  opacity: 1;
  filter: blur(10px);
}

/* 5. 3D Tilt Platform Cards */
.platform-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
}

.platform-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.platform-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, var(--accent-primary) 0%, transparent 50%, var(--accent-cyan) 100%);
}

.platform-card-image img {
  transform: translateZ(20px);
  transition: transform 0.3s ease;
}

.platform-card:hover .platform-card-image img {
  transform: translateZ(40px) scale(1.05);
}

.platform-card-logo {
  transform: translateZ(30px);
}

/* 6. Advanced Masonry Screenshot Gallery */
.screenshots-gallery-wrapper {
  column-count: 2;
  column-gap: var(--space-md);
}

@media (min-width: 1024px) {
  .screenshots-gallery-wrapper {
    column-count: 3;
    column-gap: var(--space-lg);
  }
}

.screenshot-item-masonry {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 1024px) {
  .screenshot-item-masonry {
    margin-bottom: var(--space-lg);
  }
}

.screenshot-item-masonry::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshot-item-masonry:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.screenshot-item-masonry:hover::after {
  opacity: 1;
}

.screenshot-item-masonry img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.screenshot-zoom-icon {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.screenshot-item-masonry:hover .screenshot-zoom-icon {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* 7. Lightbox Styles (Vanilla JS) */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.95) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100000;
}

.lightbox-close:hover {
  background: var(--accent-primary);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100000;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}


/* 8. Admin Panel Enhancements */
.admin-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(20, 20, 30, 0.9) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .admin-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.form-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-secondary);
  transition: all 0.3s ease;
}

[data-theme="light"] .form-input {
  background: var(--bg-secondary);
}

.form-input:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(255, 75, 34, 0.15);
  transform: translateY(-1px);
}

[data-theme="light"] .form-input:focus {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 75, 34, 0.1);
}

.form-label {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

/* =============================================
   NEURAL NETWORK HERO
   ============================================= */
.neural-network-hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
}

.neural-canvas-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#neural-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Particle background for hero */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0;
  animation: particle-float var(--duration, 12s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1.5);
  }
}

/* Hero background gradient */
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 75, 34, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 60%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
}

[data-theme="light"] .hero-bg-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 75, 34, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 60%, rgba(6, 182, 212, 0.04) 0%, transparent 60%);
}

/* Grid lines subtle bg pattern */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  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: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 20%, transparent 80%);
  pointer-events: none;
}

[data-theme="light"] .hero-grid-pattern {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Neural Network visualization wrapper */
.neural-section {
  position: relative;
  width: min(560px, 88vw);
  height: min(560px, 88vw);
  margin: 0 auto var(--space-xl);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .neural-section {
    width: min(340px, 88vw);
    height: min(340px, 88vw);
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .neural-section {
    width: min(260px, 86vw);
    height: min(260px, 86vw);
    margin-bottom: var(--space-md);
  }
}

/* ==========================================================================
   EDUTRICK MAP SECTION (V2 HERO)
   ========================================================================== */

/* ── Scroll wrapper: viewport into the fixed-size map ─────────────────────── */
/* position:absolute inset:0  →  fills #hero exactly                        */
/* overflow:auto               →  scrolls when map-section overflows          */
/* The map-section inside must be position:relative (in flow) so its width  */
/* contributes to the scrollable area — unlike position:absolute which does  */
/* NOT extend scroll dimensions.                                             */
#map-scroll-wrapper {
  position: absolute;
  inset: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
}

#map-scroll-wrapper:active {
  cursor: grabbing;
}

/* ───────────────────────────────────────────────────────────────────── */

.edutrick-map-section {
  position: relative;
  /* IN NORMAL FLOW — extends scroll width of wrapper */
  width: 1920px;
  /* Fixed — matches the calibration viewport width */
  min-width: 1920px;
  /* Never shrink under any circumstance */
  height: 916px;
  /* Fixed — matches the calibration viewport height (1006px - 90px header) */
  min-height: 916px;
  /* Prevents vertical shifting of % based top pins */
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-primary);
  border: none;
  box-shadow: none;
}

.map-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  z-index: 1;
}

.map-world-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/world-map.svg');
  background-size: 1632px auto;
  /* FIXED px = 85% of 1920px — never changes */
  background-position: center 55%;
  background-repeat: no-repeat;
  opacity: 0.35;
  filter: invert(1) brightness(1.5) drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
  z-index: 1;
  pointer-events: none;
}

[data-theme="light"] .map-grid-bg {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .map-world-bg {
  opacity: 0.2;
  filter: invert(0) brightness(0.6);
}

.map-territory {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 2;
  mix-blend-mode: screen;
}

[data-theme="light"] .map-territory {
  mix-blend-mode: multiply;
  opacity: 0.08;
}

.territory-1 {
  width: 40%;
  height: 60%;
  top: 10%;
  left: 5%;
  background: var(--accent-primary);
}

.territory-2 {
  width: 35%;
  height: 50%;
  bottom: 5%;
  right: 10%;
  background: var(--accent-cyan);
}

.territory-3 {
  width: 45%;
  height: 40%;
  top: 30%;
  left: 40%;
  background: #6366f1;
}

.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.map-edge {
  stroke: rgba(99, 102, 241, 0.25);
  stroke-width: 0.3;
  stroke-dasharray: 4 4;
}

[data-theme="light"] .map-edge {
  stroke: rgba(99, 102, 241, 0.4);
}

.map-trunk {
  stroke: url(#map-gradient);
  stroke-width: 0.1;
  opacity: 0.15;
}

.map-trunk-pulse {
  stroke: var(--accent-primary);
  stroke-width: 0.25;
  opacity: 0;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: map-pulse 5s infinite linear var(--delay);
}

@keyframes map-pulse {
  0% {
    stroke-dashoffset: 200;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    opacity: 0.5;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.map-center-hub {
  position: absolute;
  top: 40.2%;
  left: 55%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-hub-radar {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 70%, rgba(6, 182, 212, 0.15) 100%);
  animation: radar-spin 4s linear infinite;
  pointer-events: none;
}

@keyframes radar-spin {
  100% {
    transform: rotate(360deg);
  }
}

.map-hub-logo {
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-hub-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.map-hub-pulse {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.4);
  animation: hub-pulse-anim 3s ease-out infinite;
  pointer-events: none;
}

.map-hub-pulse.pulse-2 {
  animation-delay: 1.5s;
}

@keyframes hub-pulse-anim {
  0% {
    width: 45px;
    height: 45px;
    opacity: 1;
  }

  100% {
    width: 150px;
    height: 150px;
    opacity: 0;
  }
}

.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: all 0.3s ease;
}

.map-node.size-1 {
  width: 56px;
  height: 56px;
  z-index: 7;
}

.map-node.size-2 {
  width: 44px;
  height: 44px;
  z-index: 6;
}

.map-node.size-3 {
  width: 32px;
  height: 32px;
  z-index: 5;
}

.map-node-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .map-node-pin {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-node-pin img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.map-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.map-node.size-3 .map-node-pin {
  background: var(--surface-card);
}

.map-node:hover {
  z-index: 20;
}

.map-node:hover .map-node-pin {
  transform: scale(1.25);
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px rgba(255, 75, 34, 0.4);
}

.map-node-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-theme="light"] .map-node-tooltip {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.map-node:hover .map-node-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.map-tooltip-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-node-tooltip .tooltip-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.map-node-tooltip .tooltip-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

[data-theme="light"] .map-node-tooltip .tooltip-title {
  color: var(--text-primary);
}

.map-node-tooltip .tooltip-arrow {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(15, 23, 42, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .map-node-tooltip .tooltip-arrow {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ── MAP PLACEHOLDER NODES (CTA) ──────────────────────── */

.placeholder-pin {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .placeholder-pin {
  background: rgba(0, 0, 0, 0.03);
  border: 1px dashed rgba(0, 0, 0, 0.2);
}

.placeholder-pin:hover {
  background: rgba(255, 75, 34, 0.1);
  border-color: var(--accent-primary);
  border-style: solid;
}

.placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

[data-theme="light"] .placeholder-icon {
  color: rgba(0, 0, 0, 0.4);
}

.placeholder-pin:hover .placeholder-icon {
  color: var(--accent-primary);
  transform: scale(1.2) rotate(90deg);
}

.placeholder-tooltip-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 75, 34, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.placeholder-tooltip {
  width: max-content;
}

/* ── MAP ZOOM CONTROLS ────────────────────────────────── */
.map-zoom-controls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.map-zoom-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-zoom-controls button:hover {
  background: var(--accent-primary);
  transform: scale(1.1);
}

[data-theme="light"] .map-zoom-controls button {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

[data-theme="light"] .map-zoom-controls button:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

@media(max-width: 768px) {
  .map-zoom-controls {
    bottom: 20px;
    right: 20px;
  }
}

/* ── Responsive: Large Tablet / Small Desktop (≤1024px) ─────────────── */
@media (max-width: 1024px) {
  .map-node.size-1 {
    width: 48px;
    height: 48px;
  }

  .map-node.size-2 {
    width: 38px;
    height: 38px;
  }

  .map-node.size-3 {
    width: 28px;
    height: 28px;
  }

  .map-hub-logo {
    width: 40px;
    height: 40px;
  }

  .map-hub-radar {
    width: 200px;
    height: 200px;
  }
}

/* ── Mobile / Tablet: keep the map full size, scroll via #map-scroll-wrapper */
@media (max-width: 768px) {

  /* Slightly smaller nodes on tablet but not tiny */
  .map-node.size-1 {
    width: 46px;
    height: 46px;
  }

  .map-node.size-2 {
    width: 36px;
    height: 36px;
  }

  .map-node.size-3 {
    width: 26px;
    height: 26px;
  }

  /* Hub stays readable */
  .map-hub-logo {
    width: 40px;
    height: 40px;
  }

  .map-hub-radar {
    width: 170px;
    height: 170px;
  }

  /* Scroll hint label */
  .map-scroll-hint {
    display: flex !important;
  }
}

@media (max-width: 480px) {

  /* Even smaller on mobile */
  .map-node.size-1 {
    width: 36px;
    height: 36px;
  }

  .map-node.size-2 {
    width: 28px;
    height: 28px;
  }

  .map-node.size-3 {
    width: 20px;
    height: 20px;
  }

  /* Tooltips hidden on small screen */
  .map-node-tooltip {
    display: none !important;
  }
}

/* ── Scroll hint badge (visible only on mobile) ──────────────────────── */
.map-scroll-hint {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #94a3b8;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 6px;
  align-items: center;
  z-index: 20;
  backdrop-filter: blur(4px);
  pointer-events: none;
}


/* =============================================
   MOBILE MENU FULL SCREEN OVERLAY
   ============================================= */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sticky) - 1);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.mobile-nav-overlay .nav-link {
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-sm) var(--space-xl);
  transition: all var(--transition-base);
}

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

.mobile-nav-overlay .nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 75, 34, 0.05);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.mobile-nav-overlay .nav-link:hover::before {
  opacity: 1;
}

.mobile-nav-divider {
  width: 40px;
  height: 1px;
  background: var(--border-primary);
}

/* =============================================
   SCROLL REVEAL ENHANCEMENTS
   ============================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delay utilities */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* =============================================
   ABOUT SECTION – PREMIUM REDESIGN
   ============================================= */
.about-section {
  position: relative;
  padding: var(--space-5xl) 0;
  overflow: hidden;
  border-top: 1px solid var(--border-primary);
}

.about-bg-text {
  position: absolute;
  top: 5%;
  left: -3%;
  font-size: clamp(8rem, 16vw, 22rem);
  font-weight: 900;
  color: transparent;
  font-family: var(--font-display);
  pointer-events: none;
  z-index: 0;
  line-height: 0.85;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.025);
  user-select: none;
}

[data-theme="light"] .about-bg-text {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.04);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

[data-theme="light"] .about-grid {
  box-shadow: var(--shadow-md);
}

.about-feature {
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
  transition: background var(--transition-base);
}

.about-feature:hover {
  background: var(--bg-card-hover);
}

.about-feature-divider {
  background: var(--border-primary);
  width: 1px;
}

.about-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  position: relative;
  transition: transform var(--transition-bounce);
}

.about-feature:hover .about-feature-icon {
  transform: scale(1.1) rotate(-3deg);
}

.about-feature-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: inherit;
  filter: blur(8px);
  opacity: 0.4;
  z-index: -1;
}

.about-feature-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.about-feature-text {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: var(--text-base);
}

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

  .about-feature-divider {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 768px) {
  .about-feature {
    padding: var(--space-2xl) var(--space-xl);
  }
}

/* Animated counter */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* =============================================
   CONTACT SECTION – PREMIUM CTA
   ============================================= */
.contact-cta-section {
  position: relative;
  padding: var(--space-5xl) 0;
  overflow: hidden;
  border-top: 1px solid var(--border-primary);
}

.contact-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 100%);
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 75, 34, 0.12) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
  filter: blur(50px);
  animation: cta-glow-pulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cta-glow-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.7;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

[data-theme="light"] .contact-cta-glow {
  background: radial-gradient(ellipse at center, rgba(255, 75, 34, 0.07) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
}

.contact-cta-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  opacity: 0;
  animation: cta-particle-float var(--dur, 8s) var(--del, 0s) infinite ease-in-out;
}

@keyframes cta-particle-float {

  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }

  20% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.2;
  }

  100% {
    opacity: 0;
    transform: translateY(-80px) scale(1.2);
  }
}

.contact-cta-border {
  position: absolute;
  inset: 0;
  border-radius: 0;
  pointer-events: none;
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  z-index: var(--z-dropdown);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 75, 34, 0.3);
}

/* lift back-to-top above the floating WhatsApp button */
body:has(.float-wa) .back-to-top {
  bottom: calc(22px + 58px + 14px);
  /* float-wa: bottom + height + gap */
}

@media (max-width: 480px) {
  body:has(.float-wa) .back-to-top {
    bottom: calc(18px + 52px + 12px);
    /* float-wa mobile: bottom + height + gap */
  }
}

/* =============================================
   SECTION DIVIDER GRADIENT
   ============================================= */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-primary) 20%, var(--border-primary) 80%, transparent);
  margin: 0;
}

/* =============================================
   HERO STATS BAR
   ============================================= */
@media (max-width: 480px) {
  .hero-stats-glass-bar {
    flex-direction: column;
    padding: var(--space-lg) var(--space-xl);
    gap: var(--space-lg);
    width: calc(100% - 2 * var(--container-padding));
  }

  .stat-divider {
    width: 50px;
    height: 1px;
  }

  .stat-val {
    font-size: var(--text-3xl);
  }
}

/* =============================================
   LIGHT THEME PLATFORM CARDS
   ============================================= */
[data-theme="light"] .platform-card {
  background: #ffffff;
  border-color: rgba(13, 15, 26, 0.07);
  box-shadow: 0 4px 16px rgba(13, 15, 26, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .platform-card:hover {
  box-shadow:
    0 20px 48px rgba(13, 15, 26, 0.12),
    0 0 0 1px rgba(255, 75, 34, 0.25),
    0 0 30px rgba(255, 75, 34, 0.1);
  border-color: rgba(255, 75, 34, 0.2);
}

/* =============================================
   PLATFORM CARD ENHANCED OVERLAY
   ============================================= */
.platform-card-image-overlay-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.3) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

.platform-card:hover .platform-card-image-overlay-hover {
  opacity: 1;
}

[data-theme="light"] .platform-card-overlay {
  background: linear-gradient(to top, rgba(248, 249, 251, 0.98) 0%, rgba(248, 249, 251, 0.4) 60%, transparent 100%);
}

/* =============================================
   SECTION BG PATTERNS
   ============================================= */
.section-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

[data-theme="light"] .section-bg-dots {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* =============================================
   MOBILE SPECIFIC FIXES
   ============================================= */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    padding: 0 var(--space-lg);
    gap: var(--space-md);
  }

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

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

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-title {
    font-size: clamp(3rem, 9vw, 5rem);
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding: var(--space-4xl) 0;
  }

  .contact-cta-section {
    padding: var(--space-4xl) 0;
  }

  .about-section {
    padding: var(--space-4xl) 0;
  }
}

/* =============================================
   RTL / ARABIC IMPROVEMENTS
   ============================================= */
[dir="rtl"] .section-subtitle {
  letter-spacing: 0;
}

[dir="rtl"] .platform-card-arrow {
  transform: rotate(180deg);
}

[dir="rtl"] .platform-card:hover .platform-card-arrow {
  transform: rotate(180deg) translateX(-4px);
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: var(--space-xl);
}

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

[dir="rtl"] .footer::before {
  left: 50%;
  right: auto;
}

/* icon size helper */
.icon-sm {
  width: 18px;
  height: 18px;
}

.icon-md {
  width: 22px;
  height: 22px;
}

/* =============================================================
   ===========  CINEMATIC PITCH HERO  ============================
   ============================================================= */

/* Body font fix — Arabic primary on RTL */
[dir="rtl"] body {
  font-family: var(--font-arabic), 'Tajawal', sans-serif;
}

/* Hero shell */
.pitch-hero {
  position: relative;
  min-height: clamp(560px, 92vh, 980px);
  padding: calc(90px + var(--space-2xl)) 0 var(--space-3xl);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-primary);
}

[data-theme="light"] .pitch-hero {
  background: var(--bg-primary);
}

/* Background layers */
.pitch-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.pitch-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

[data-theme="light"] .pitch-hero-grid {
  background-image:
    linear-gradient(rgba(13, 15, 26, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 15, 26, 0.06) 1px, transparent 1px);
}

.pitch-hero-aurora {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  animation: pitch-aurora 18s ease-in-out infinite;
}

.pitch-hero-aurora.aurora-1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 75, 34, 0.55) 0%, transparent 70%);
}

.pitch-hero-aurora.aurora-2 {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, transparent 70%);
  animation-delay: -6s;
}

.pitch-hero-aurora.aurora-3 {
  top: 30%;
  left: 40%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  animation-delay: -12s;
}

[data-theme="light"] .pitch-hero-aurora.aurora-1 {
  background: radial-gradient(circle, rgba(255, 75, 34, 0.25) 0%, transparent 70%);
}

[data-theme="light"] .pitch-hero-aurora.aurora-2 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
}

[data-theme="light"] .pitch-hero-aurora.aurora-3 {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
}

.pitch-hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .04;
  mix-blend-mode: overlay;
}

@keyframes pitch-aurora {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(2vw, -1vw) scale(1.08);
  }
}

/* Container/Grid */
.pitch-hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding-top: var(--space-xl);
}

/* CONTENT SIDE */
.pitch-hero-content {
  position: relative;
  z-index: 2;
  text-align: start;
  max-width: 640px;
  margin: 0 auto;
}

.pitch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: clamp(.72rem, 1.6vw, .82rem);
  font-weight: 700;
  letter-spacing: .02em;
  background: rgba(255, 75, 34, 0.10);
  border: 1px solid rgba(255, 75, 34, 0.25);
  color: var(--accent-secondary);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .pitch-eyebrow {
  background: rgba(255, 75, 34, 0.08);
  border-color: rgba(255, 75, 34, 0.25);
  color: #c93315;
}

.pitch-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
  animation: pulse 2s ease-in-out infinite;
}

.pitch-headline {
  font-family: var(--font-arabic), var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 7.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 var(--space-lg);
}

[dir="ltr"] .pitch-headline {
  font-family: var(--font-display);
}

.pitch-line {
  display: block;
}

.pitch-line-gradient {
  background: linear-gradient(95deg, var(--accent-primary) 0%, #ff8a6b 35%, var(--accent-gold) 75%, var(--accent-primary) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pitch-shine 6s linear infinite;
}

@keyframes pitch-shine {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.pitch-sub {
  font-size: clamp(.98rem, 2.4vw, 1.18rem);
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 var(--space-xl);
  max-width: 56ch;
}

.pitch-sub b {
  color: var(--text-primary);
  font-weight: 800;
}

/* CTAs */
.pitch-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.pitch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: clamp(.95rem, 2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: .01em;
  transition: all .35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.pitch-btn-primary {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 30px rgba(37, 211, 102, 0.35),
    0 0 0 0 rgba(37, 211, 102, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.pitch-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(37, 211, 102, 0.45),
    0 0 0 6px rgba(37, 211, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pitch-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pitch-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 75, 34, 0.4);
  transform: translateY(-2px);
}

[data-theme="light"] .pitch-btn-ghost {
  background: rgba(13, 15, 26, 0.04);
  border-color: rgba(13, 15, 26, 0.10);
}

[data-theme="light"] .pitch-btn-ghost:hover {
  background: rgba(13, 15, 26, 0.06);
  border-color: rgba(255, 75, 34, 0.4);
}

.pitch-arrow-icon {
  transition: transform .3s;
}

[dir="rtl"] .pitch-arrow-icon {
  transform: scaleX(-1);
}

.pitch-btn-ghost:hover .pitch-arrow-icon {
  transform: translateX(3px);
}

[dir="rtl"] .pitch-btn-ghost:hover .pitch-arrow-icon {
  transform: scaleX(-1) translateX(3px);
}

/* Trust strip */
.pitch-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: var(--space-xl);
}

[data-theme="light"] .pitch-trust {
  background: rgba(13, 15, 26, 0.03);
  border-color: rgba(13, 15, 26, 0.06);
}

.pitch-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(.78rem, 1.8vw, .9rem);
  color: var(--text-muted);
}

.pitch-trust-item b {
  color: var(--text-primary);
  font-weight: 800;
}

.pitch-trust-stars {
  color: var(--accent-gold);
  font-size: .9rem;
  letter-spacing: .04em;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.pitch-trust-sep {
  width: 1px;
  height: 16px;
  background: var(--border-primary);
}

/* Logo strip */
.pitch-logo-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pitch-logo-strip-label {
  font-size: clamp(.72rem, 1.5vw, .8rem);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pitch-logo-strip-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pitch-logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  filter: grayscale(0.7) brightness(0.95);
  transition: all .35s ease;
  flex-shrink: 0;
}

.pitch-logo-chip:hover {
  filter: grayscale(0) brightness(1);
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(255, 75, 34, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.pitch-logo-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-theme="light"] .pitch-logo-chip {
  background: #fff;
  border-color: rgba(13, 15, 26, 0.06);
}

/* ============== VISUAL SIDE — DEVICE STAGE ============== */
.pitch-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding-bottom: 60px;
  /* leave room for platform pills below stage */
  padding-top: 28px;
  /* leave room for laptop label above stage */
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.pitch-stage-glow {
  position: absolute;
  width: 90%;
  height: 90%;
  background:
    radial-gradient(circle at 40% 50%, rgba(255, 75, 34, 0.35) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(99, 102, 241, 0.30) 0%, transparent 60%);
  filter: blur(70px);
  z-index: 0;
  border-radius: 50%;
  animation: pitch-glow 12s ease-in-out infinite;
}

[data-theme="light"] .pitch-stage-glow {
  background:
    radial-gradient(circle at 40% 50%, rgba(255, 75, 34, 0.20) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
}

@keyframes pitch-glow {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.1) rotate(20deg);
  }
}

/* =============================================================
   Device stack — generic UI (Web/Admin, Tablet, Mobile)
   Sized so nothing overflows the visual column.
   ============================================================= */

/* Decorative floating dots (replaces platform-logo orbit) */
.pitch-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.pitch-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 14px var(--accent-primary);
  opacity: .55;
  animation: pitch-dot-pulse 4s ease-in-out infinite;
}

.pitch-dot-1 {
  top: 6%;
  left: 12%;
  animation-delay: -1s;
}

.pitch-dot-2 {
  top: 22%;
  right: 8%;
  animation-delay: -2.4s;
  background: #6366f1;
  box-shadow: 0 0 14px #6366f1;
}

.pitch-dot-3 {
  top: 60%;
  left: 4%;
  animation-delay: -3.2s;
  background: #fbbf24;
  box-shadow: 0 0 14px #fbbf24;
  width: 5px;
  height: 5px;
}

.pitch-dot-4 {
  bottom: 18%;
  right: 14%;
  animation-delay: -1.8s;
}

.pitch-dot-5 {
  top: 42%;
  right: 28%;
  animation-delay: -2.7s;
  background: #06b6d4;
  box-shadow: 0 0 14px #06b6d4;
  width: 4px;
  height: 4px;
  opacity: .7;
}

.pitch-dot-6 {
  bottom: 8%;
  left: 32%;
  animation-delay: -3.6s;
  background: #6366f1;
  box-shadow: 0 0 14px #6366f1;
  width: 4px;
  height: 4px;
  opacity: .65;
}

@keyframes pitch-dot-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .55;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

/* Stage — square container, devices live INSIDE it */
.pitch-stage {
  position: relative;
  z-index: 2;
  width: min(420px, 90vw);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  transform-style: preserve-3d;
}

/* Common device base */
.pitch-device {
  position: absolute;
  transform-origin: center center;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

[data-theme="light"] .pitch-device {
  filter: drop-shadow(0 14px 30px rgba(13, 15, 26, 0.18));
}

/* Device label (chip floating above each device) */
.pitch-device-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  background: rgba(20, 20, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  z-index: 5;
  animation: pitch-float 7s ease-in-out infinite;
}

[data-theme="light"] .pitch-device-label {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(13, 15, 26, 0.06);
  color: var(--text-primary);
  box-shadow: 0 10px 22px rgba(13, 15, 26, 0.10);
}

/* ============== LAPTOP (Web + Admin) ============== */
.pitch-laptop {
  /* anchored to the top of stage, centered */
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  width: 86%;
  z-index: 1;
}

.pitch-device-label-laptop {
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(255, 75, 34, 0.45);
  animation-delay: -1s;
}

[data-theme="light"] .pitch-device-label-laptop {
  color: #fff;
}

.pitch-laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0c0d12;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px 12px 4px 4px;
  padding: 7px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .pitch-laptop-screen {
  background: #1a1c25;
  box-shadow:
    0 18px 40px -14px rgba(13, 15, 26, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pitch-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  background: #08080d;
  border-radius: 5px;
  margin-bottom: 5px;
  height: 18px;
}

[data-theme="light"] .pitch-browser-bar {
  background: #0c0e16;
}

.pitch-browser-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pitch-browser-dot.dot-r {
  background: #ff5f56;
}

.pitch-browser-dot.dot-y {
  background: #ffbd2e;
}

.pitch-browser-dot.dot-g {
  background: #27c93f;
}

.pitch-browser-url {
  flex: 1;
  margin-inline-start: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  direction: ltr;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pitch-laptop-content {
  height: calc(100% - 23px);
  background: linear-gradient(180deg, #0e0e16 0%, #060608 100%);
  border-radius: 4px;
  overflow: hidden;
}

/* Inside laptop: Admin Dashboard mock */
.pitch-admin {
  height: 100%;
  display: grid;
  grid-template-columns: 22% 1fr;
  gap: 4px;
}

.pitch-admin-side {
  background: rgba(255, 255, 255, 0.03);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 5px;
}

.pitch-admin-logo {
  display: block;
  width: 100%;
  height: 8px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
  border-radius: 3px;
  margin-bottom: 4px;
}

.pitch-admin-nav {
  display: block;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
}

.pitch-admin-nav.active {
  background: rgba(255, 75, 34, 0.5);
  box-shadow: 0 0 8px rgba(255, 75, 34, 0.4);
}

.pitch-admin-main {
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.pitch-admin-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1px;
}

.pitch-admin-title-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  max-width: 50%;
}

.pitch-admin-search {
  flex-shrink: 0;
  width: 22px;
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
}

.pitch-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.pitch-admin-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 4px 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pitch-admin-stat.is-highlight {
  background: linear-gradient(135deg, rgba(255, 75, 34, 0.18), rgba(255, 75, 34, 0.06));
  border-color: rgba(255, 75, 34, 0.35);
}

.pitch-admin-stat-num {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-body);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pitch-admin-stat-lbl {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-arabic);
  line-height: 1;
}

.pitch-admin-chart {
  flex: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3px;
  padding-top: 4px;
}

.pitch-admin-bar {
  flex: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 2px 2px 0 0;
  min-height: 6%;
  transition: height .4s ease;
}

.pitch-admin-bar.is-highlight {
  background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 0 10px rgba(255, 75, 34, 0.5);
}

.pitch-laptop-base {
  height: 7px;
  background: linear-gradient(180deg, #1a1a26 0%, #0a0a10 100%);
  border-radius: 0 0 14px 14px;
  margin-inline: 8%;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .pitch-laptop-base {
  background: linear-gradient(180deg, #2a2c38 0%, #16181f 100%);
}

/* ============== TABLET (Reading view) ============== */
.pitch-tablet {
  bottom: 0;
  left: 4%;
  width: 30%;
  transform: rotate(-4deg);
  z-index: 2;
}

.pitch-device-label-tablet {
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -3s;
}

.pitch-tablet-screen {
  position: relative;
  aspect-ratio: 4 / 5.2;
  background: #0a0b10;
  border: 1.5px solid rgba(255, 255, 255, 0.10);
  border-radius: 11px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .pitch-tablet-screen {
  background: #16181f;
}

.pitch-tablet-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.6) 0%, transparent 65%),
    linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pitch-tablet-play {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #6366f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.pitch-tablet-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px;
}

.pitch-tablet-modules {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.pitch-tablet-module {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 5px;
}

.pitch-tablet-module.is-active {
  background: rgba(255, 75, 34, 0.10);
  border-color: rgba(255, 75, 34, 0.30);
}

.pitch-tablet-mod-num {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-family: var(--font-arabic);
  font-size: 8px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pitch-tablet-module.is-active .pitch-tablet-mod-num {
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(255, 75, 34, 0.5);
}

/* ============== PHONE (Mobile course player) ============== */
.pitch-phone {
  bottom: 0;
  right: 4%;
  width: 26%;
  transform: rotate(4deg);
  z-index: 3;
}

[dir="rtl"] .pitch-phone {
  right: auto;
  left: 4%;
  transform: rotate(-4deg);
}

[dir="rtl"] .pitch-tablet {
  left: auto;
  right: 4%;
  transform: rotate(4deg);
}

.pitch-device-label-phone {
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -2s;
}

.pitch-phone {
  background: #06070a;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 5px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 75, 34, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  overflow: hidden;
  aspect-ratio: 9 / 19;
}

[data-theme="light"] .pitch-phone {
  background: #16181f;
}

.pitch-phone-notch {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 8px;
  background: #000;
  border-radius: 0 0 6px 6px;
  z-index: 4;
}

.pitch-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(255, 75, 34, 0.30) 0%, transparent 60%),
    linear-gradient(180deg, #0d0d14 0%, #050507 100%);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pitch-phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 10px 0;
  font-size: 7px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-body);
  direction: ltr;
}

.pitch-phone-statusbar-icons {
  display: flex;
  gap: 1.5px;
  align-items: end;
}

.pitch-phone-statusbar-icons .pitch-bar {
  display: block;
  width: 1.5px;
  background: #fff;
  border-radius: 1px;
}

.pitch-phone-statusbar-icons .pitch-bar:nth-child(1) {
  height: 3px;
}

.pitch-phone-statusbar-icons .pitch-bar:nth-child(2) {
  height: 4.5px;
}

.pitch-phone-statusbar-icons .pitch-bar:nth-child(3) {
  height: 6px;
}

.pitch-phone-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 6px 6px;
  gap: 5px;
  min-height: 0;
}

.pitch-phone-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  background:
    radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.18) 0%, transparent 65%),
    linear-gradient(135deg, #ff4b22 0%, #f59e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pitch-phone-play {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.pitch-phone-progress {
  position: absolute;
  bottom: 4px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: rgba(255, 255, 255, 0.30);
  border-radius: 99px;
  overflow: hidden;
}

.pitch-phone-progress-fill {
  display: block;
  width: 38%;
  height: 100%;
  background: #fff;
  border-radius: 99px;
}

.pitch-phone-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
}

.pitch-phone-chapters {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 3px;
}

.pitch-phone-chapter {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.pitch-phone-chapter.is-active {
  background: rgba(255, 75, 34, 0.12);
  border-color: rgba(255, 75, 34, 0.30);
}

.pitch-phone-chapter-icon {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  display: inline-block;
  width: 7px;
}

.pitch-phone-chapter.is-active .pitch-phone-chapter-icon {
  color: var(--accent-primary);
}

[dir="rtl"] .pitch-phone-chapter-icon {
  transform: scaleX(-1);
}

.pitch-phone-chapter-time {
  flex-shrink: 0;
  font-size: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-weight: 600;
  margin-inline-start: auto;
  direction: ltr;
}

/* Shared line bars (used across devices for placeholder text) */
.pitch-line-bar {
  display: block;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
}

.pitch-line-bar.w-50 {
  width: 50%;
}

.pitch-line-bar.w-60 {
  width: 60%;
  background: rgba(255, 255, 255, 0.14);
}

.pitch-line-bar.w-70 {
  width: 70%;
}

.pitch-line-bar.w-80 {
  width: 80%;
}

.pitch-line-bar.w-90 {
  width: 90%;
}

/* ============== Platform pills (under stage) ============== */
.pitch-platform-pills {
  position: absolute;
  bottom: -54px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  z-index: 4;
  width: max-content;
  max-width: 100%;
}

.pitch-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .3s ease;
}

.pitch-platform-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 75, 34, 0.4);
  transform: translateY(-2px);
}

.pitch-platform-pill svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

[data-theme="light"] .pitch-platform-pill {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(13, 15, 26, 0.06);
  color: var(--text-secondary);
}


/* --- Scroll hint --- */
.pitch-scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .15em;
  text-decoration: none;
  z-index: 3;
  opacity: .7;
  transition: opacity .3s ease;
}

.pitch-scroll-hint:hover {
  opacity: 1;
}

.pitch-scroll-hint-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
  display: block;
}

.pitch-scroll-hint-mouse span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent-primary);
  animation: pitch-scroll-hint 1.5s ease-in-out infinite;
}

@keyframes pitch-scroll-hint {

  0%,
  20% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  80%,
  100% {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

/* ============== Hero responsive — desktop ============== */
@media (min-width: 1024px) {
  .pitch-hero {
    min-height: clamp(640px, 88vh, 1000px);
    padding: calc(90px + var(--space-3xl)) 0 var(--space-4xl);
  }

  .pitch-hero-container {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-3xl);
    padding-top: 0;
  }

  .pitch-hero-content {
    margin: 0;
    max-width: none;
  }

  .pitch-hero-visual {
    min-height: 560px;
    padding-bottom: 70px;
    /* room for platform pills below stage */
  }

  .pitch-stage {
    width: min(520px, 100%);
  }

  .pitch-headline {
    font-size: clamp(2.6rem, 4.6vw, 4.8rem);
  }
}

@media (min-width: 1280px) {
  .pitch-stage {
    width: min(580px, 100%);
  }
}

/* Mobile devices smaller and tighter */
@media (max-width: 480px) {
  .pitch-hero {
    padding-top: calc(80px + var(--space-md));
  }

  .pitch-hero-visual {
    padding-bottom: 60px;
    /* room for platform pills */
  }

  .pitch-stage {
    width: min(330px, 86vw);
    margin-top: var(--space-2xl);
  }

  .pitch-device-label {
    font-size: 9px;
    padding: 4px 8px;
  }

  .pitch-platform-pill {
    font-size: 10px;
    padding: 5px 10px;
  }

  .pitch-trust {
    padding: 12px 14px;
    gap: 10px 14px;
  }

  .pitch-trust-sep {
    display: none;
  }

  .pitch-cta {
    flex-direction: column;
  }

  .pitch-cta .pitch-btn {
    width: 100%;
  }

  .pitch-scroll-hint {
    display: none;
  }
}

/* =============================================================
   ===========  PROCESS SECTION  ================================
   ============================================================= */
.process-section {
  position: relative;
  padding: var(--space-5xl) 0 var(--space-4xl);
  background: var(--bg-primary);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  position: relative;
}

.process-step {
  position: relative;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
  overflow: hidden;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 75, 34, 0.30);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(255, 75, 34, 0.10);
}

.process-step:hover::before {
  opacity: 1;
}

[data-theme="light"] .process-step:hover {
  box-shadow: 0 18px 40px rgba(13, 15, 26, 0.10), 0 0 30px rgba(255, 75, 34, 0.08);
}

.process-step-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-sm);
  opacity: .85;
  letter-spacing: -.02em;
}

.process-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 75, 34, 0.10);
  border: 1px solid rgba(255, 75, 34, 0.25);
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}

.process-step-title {
  font-family: var(--font-arabic), var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.process-step-time {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.process-step-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 1100px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }

  .process-step {
    padding: var(--space-lg);
  }
}

/* =============================================================
   ===========  GLOBAL FOOTPRINT (RELOCATED MAP, full-bleed) =====
   ============================================================= */
.footprint-section {
  position: relative;
  padding-top: var(--space-5xl);
  padding-bottom: 0;
  /* map sits flush at bottom of section */
  background: var(--bg-primary);
  overflow: hidden;
}

.footprint-stats-wrap {
  display: flex;
  justify-content: center;
  margin: var(--space-xl) 0 var(--space-2xl);
}

/* Full-bleed map area (mirrors the original hero hosting) */
.footprint-map-wrap {
  position: relative;
  width: 100%;
  height: calc(100vh - 90px);
  min-height: 540px;
  max-height: 916px;
  /* never exceed map's natural canvas */
  margin-top: var(--space-md);
  background: var(--bg-secondary);
  border-block: 1px solid var(--border-primary);
  overflow: hidden;
}

[data-theme="light"] .footprint-map-wrap {
  background: #f0f2f7;
}

/* Scroll wrapper inside (this matches original hero behavior) */
.footprint-map-wrap #map-scroll-wrapper {
  position: absolute;
  inset: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 75, 34, 0.55) rgba(255, 255, 255, 0.05);
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.footprint-map-wrap #map-scroll-wrapper:active {
  cursor: grabbing;
}

.footprint-map-wrap #map-scroll-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.footprint-map-wrap #map-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.footprint-map-wrap #map-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 75, 34, 0.55);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.footprint-map-wrap #map-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 75, 34, 0.85);
  background-clip: padding-box;
  border: 2px solid transparent;
}

[data-theme="light"] .footprint-map-wrap #map-scroll-wrapper {
  scrollbar-color: rgba(255, 75, 34, 0.55) rgba(13, 15, 26, 0.05);
}

[data-theme="light"] .footprint-map-wrap #map-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(13, 15, 26, 0.04);
}

/* Drag hint (auto-fading badge) */
.footprint-drag-hint {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(20, 20, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  font-family: var(--font-arabic);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  z-index: 6;
  pointer-events: none;
  animation: footprint-hint-pulse 2.4s ease-in-out infinite;
}

[data-theme="light"] .footprint-drag-hint {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(13, 15, 26, 0.06);
  color: var(--text-primary);
  box-shadow: 0 12px 28px rgba(13, 15, 26, 0.10);
}

.footprint-drag-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .4s ease, transform .4s ease;
}

.footprint-drag-hint svg {
  color: var(--accent-primary);
}

@keyframes footprint-hint-pulse {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

.footprint-map-wrap .map-zoom-controls {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* fade gradients removed — map area is now full-bleed and fills section */
@media (max-width: 768px) {
  .footprint-map-wrap {
    height: calc(100vh - 80px);
    min-height: 480px;
  }
}

@media (max-width: 480px) {
  .footprint-map-wrap {
    height: calc(100svh - 80px);
    /* small viewport units = honor mobile address bar */
    min-height: 460px;
  }
}

/* =============================================================
   ===========  FLOATING WHATSAPP BUTTON  =======================
   ============================================================= */
.float-wa {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.6);
  transition: transform .35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow .35s ease;
}

.float-wa:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.55), 0 0 0 8px rgba(37, 211, 102, 0.12);
}

.float-wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: pitch-wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes pitch-wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .float-wa {
    width: 52px;
    height: 52px;
    bottom: 18px;
    inset-inline-end: 18px;
  }
}

/* =============================================================
   ===========  RTL FIXES FOR EXISTING SECTIONS  ================
   ============================================================= */
[dir="rtl"] .platform-card-meta {
  flex-direction: row;
}

[dir="rtl"] .pitch-trust-stars {
  unicode-bidi: isolate;
}

/* Section headers — keep centered alignment but tighten on Arabic */
[dir="rtl"] .section-header {
  text-align: center;
}

[dir="rtl"] .section-title {
  letter-spacing: 0;
}

/* Ensure RTL hero text is right-aligned naturally */
[dir="rtl"] .pitch-hero-content {
  text-align: right;
}

[dir="ltr"] .pitch-hero-content {
  text-align: left;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .pitch-hero-aurora,
  .pitch-dot,
  .pitch-device-label,
  .pitch-line-gradient,
  .pitch-stage-glow,
  .float-wa-pulse,
  .pitch-scroll-hint-mouse span {
    animation: none !important;
  }
}


/* =============================================================
   ===========  PLATFORMS BENTO GRID (V2)  =====================
   ============================================================= */

/* Override grid: true bento with featured 2×2 + occasional wide rows */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  /* fixed row size — featured 2x2 = 664px */
  grid-auto-flow: row dense;
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
}

@media (max-width: 1100px) {
  .platforms-grid {
    grid-auto-rows: 290px;
  }
}

@media (max-width: 700px) {
  .platforms-grid {
    grid-auto-rows: auto;
  }

  /* mobile: cards size to content */
}

/* Featured (1st card): 2 cols × 2 rows */
.platforms-grid>.platforms-grid-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

/* Wide accent rows to break rhythm (every 7th card from #6) */
.platforms-grid>.platforms-grid-item:nth-child(6),
.platforms-grid>.platforms-grid-item:nth-child(13) {
  grid-column: span 2;
}

/* Reset cover-image height that the older CSS hard-coded for first-child */
.platforms-grid>.platforms-grid-item:first-child .platform-card-image {
  height: auto;
  /* let the bento card decide via aspect-ratio */
}

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

  .platforms-grid>.platforms-grid-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .platforms-grid>.platforms-grid-item:nth-child(6),
  .platforms-grid>.platforms-grid-item:nth-child(13) {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .platforms-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .platforms-grid>.platforms-grid-item,
  .platforms-grid>.platforms-grid-item:nth-child(1),
  .platforms-grid>.platforms-grid-item:nth-child(6),
  .platforms-grid>.platforms-grid-item:nth-child(13) {
    grid-column: auto;
    grid-row: auto;
  }

  .platform-card {
    min-height: 340px;
  }

  .platform-card-image {
    flex: 0 0 220px;
    min-height: 220px;
  }
}

/* Hidden state (Show More) */
.platforms-grid-item.is-hidden {
  display: none;
}

.platforms-grid-item {
  animation: bento-fade-in 0.5s cubic-bezier(0.25, 1, 0.5, 1) backwards;
}

@keyframes bento-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ───────────── CARD ──────────────────────────── */
.platform-card {
  --card-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --platform-card-cover-size: 70%;
  --platform-card-content-size: 30%;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* fill the grid cell height (320px / 660px) */
  border-radius: var(--radius-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s cubic-bezier(0.2, 0.8, 0.3, 1.2),
    box-shadow .35s ease,
    border-color .35s ease;
}

.platform-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 75, 34, 0.30);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(255, 75, 34, 0.10);
}

[data-theme="light"] .platform-card {
  background: #fff;
  border-color: rgba(13, 15, 26, 0.06);
  box-shadow: 0 4px 14px rgba(13, 15, 26, 0.04);
}

[data-theme="light"] .platform-card:hover {
  box-shadow: 0 24px 50px rgba(13, 15, 26, 0.10),
    0 0 40px rgba(255, 75, 34, 0.10);
}

/* Featured card: 2×2 — keeps the same 70/30 cover-to-content split */
.platform-card-featured .platform-card-image {
  flex-basis: var(--platform-card-cover-size);
}

/* Image area — gradient backdrop with logo centered */
.platform-card-image {
  position: relative;
  flex: 0 0 var(--platform-card-cover-size);
  min-height: 0;
  /* lets flex shrink to fit fixed-row height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-card-bg {
  position: absolute;
  inset: 0;
  background: var(--card-gradient);
  opacity: 0.85;
  z-index: 0;
  transition: opacity .4s ease, transform .6s ease;
}

.platform-card:hover .platform-card-bg {
  opacity: 1;
  transform: scale(1.04);
}

.platform-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Cover image — fills the card image area */
.platform-card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  transition: transform .5s ease;
}

.platform-card:hover .platform-card-cover {
  transform: scale(1.04);
}

/* Live badge — top start (RTL aware) */
.platform-card-live {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.platform-card-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.8s ease-in-out infinite;
}

/* Platform pills — top end */
.platform-card-pills {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 4;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.platform-card-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background .25s ease;
}

.platform-card-pill:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Large logo (default cards) */
.platform-card-logo-large {
  position: relative;
  z-index: 2;
  width: 38%;
  max-width: 130px;
  aspect-ratio: 1 / 1;
  border-radius: 24%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  transform: rotate(-4deg);
  transition: transform .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.platform-card:hover .platform-card-logo-large {
  transform: rotate(0deg) scale(1.06);
}

.platform-card-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.platform-card-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arabic);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.10);
}

/* Phone mockup (featured card only) */
.platform-card-mockup {
  position: relative;
  z-index: 2;
  width: 36%;
  max-width: 220px;
  aspect-ratio: 9 / 19;
  background: #06070a;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  padding: 8px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: rotate(-3deg);
  transition: transform .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.platform-card:hover .platform-card-mockup {
  transform: rotate(0deg) translateY(-4px);
}

.platform-card-mockup-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 12px;
  background: #000;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

.platform-card-mockup-screen {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0d14;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-card-mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.platform-card-mockup-shine {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 40%, transparent 100%);
  pointer-events: none;
}

/* Hover Reveal Overlay (slides up) */
.platform-card-hover {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 35%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transform: translateY(40%);
  transition: opacity .35s ease, transform .35s cubic-bezier(0.2, 0.8, 0.3, 1.2);
  pointer-events: none;
}

.platform-card:hover .platform-card-hover {
  opacity: 1;
  transform: translateY(0);
}

.platform-card-hover-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-card-hover-tagline {
  color: #fff;
  font-family: var(--font-arabic);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.platform-card-hover-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-family: var(--font-arabic);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(255, 75, 34, 0.4);
}

.platform-card-hover-cta svg {
  transition: transform .25s ease;
}

[dir="rtl"] .platform-card-hover-cta svg {
  transform: scaleX(-1);
}

.platform-card:hover .platform-card-hover-cta svg {
  transform: translateX(2px);
}

[dir="rtl"] .platform-card:hover .platform-card-hover-cta svg {
  transform: scaleX(-1) translateX(2px);
}

/* Bottom content (always visible) — compact so the cover gets more room */
.platform-card-content {
  position: relative;
  z-index: 2;
  padding: 10px var(--space-md) 12px;
  background: var(--bg-card);
  flex: 0 0 var(--platform-card-content-size);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

[data-theme="light"] .platform-card-content {
  background: #fff;
}

.platform-card-name {
  font-family: var(--font-arabic), var(--font-display);
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.platform-card-featured .platform-card-name {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.platform-card-description {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 !important;
  /* override old margin-bottom */
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  /* single line — keeps content compact */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.platform-card-featured .platform-card-description {
  font-size: 0.86rem;
  -webkit-line-clamp: 2;
  /* featured card can show 2 lines */
}

/* ───────────── SHOW MORE BUTTON ──────────────────────── */
.platforms-show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

.platforms-show-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.platforms-show-more:hover {
  background: rgba(255, 75, 34, 0.10);
  border-color: rgba(255, 75, 34, 0.40);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 75, 34, 0.18);
}

[data-theme="light"] .platforms-show-more {
  background: #fff;
  border-color: rgba(13, 15, 26, 0.10);
  box-shadow: 0 4px 12px rgba(13, 15, 26, 0.06);
}

[data-theme="light"] .platforms-show-more:hover {
  background: rgba(255, 75, 34, 0.05);
  border-color: rgba(255, 75, 34, 0.40);
}

.platforms-show-more.is-hidden {
  display: none;
}

.platforms-show-more svg {
  transition: transform .25s ease;
}

.platforms-show-more:hover svg {
  transform: translateY(2px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .platform-card-live-dot,
  .platforms-grid-item,
  .platform-card,
  .platform-card-bg,
  .platform-card-logo-large,
  .platform-card-mockup,
  .platform-card-hover {
    animation: none !important;
    transition: none !important;
  }
}


/* =============================================================
   ===========  PLATFORM DETAIL PAGE (V2)  =====================
   ============================================================= */

.pdetail {
  --pdetail-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  position: relative;
}

/* ───────── Hero ───────── */
.pdetail-hero {
  position: relative;
  padding-top: calc(90px + var(--space-2xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  isolation: isolate;
}

.pdetail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.pdetail-hero-grad {
  position: absolute;
  inset: 0;
  background: var(--pdetail-gradient);
  opacity: 0.18;
  filter: blur(40px);
  transform: scale(1.05);
}

[data-theme="light"] .pdetail-hero-grad {
  opacity: 0.10;
}

.pdetail-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 100%);
}

[data-theme="light"] .pdetail-hero-grid {
  background-image:
    linear-gradient(rgba(13, 15, 26, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 15, 26, 0.06) 1px, transparent 1px);
}

.pdetail-hero-aurora {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}

.pdetail-hero-aurora.aurora-1 {
  top: -10%;
  inset-inline-start: -10%;
  background: var(--pdetail-gradient);
}

.pdetail-hero-aurora.aurora-2 {
  bottom: -20%;
  inset-inline-end: -10%;
  background: radial-gradient(circle, rgba(255, 75, 34, 0.35) 0%, transparent 70%);
}

[data-theme="light"] .pdetail-hero-aurora {
  opacity: 0.25;
}

.pdetail-hero-container {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.pdetail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-arabic);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.pdetail-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s ease;
}

.pdetail-breadcrumb a:hover {
  color: var(--text-primary);
}

.pdetail-breadcrumb-sep {
  opacity: 0.5;
  user-select: none;
}

.pdetail-breadcrumb-current {
  color: var(--text-primary);
  font-weight: 700;
}

/* Hero grid: info | mockup */
.pdetail-hero-grid-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .pdetail-hero-grid-wrap {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-3xl);
  }
}

/* Info side */
.pdetail-hero-info {
  text-align: start;
}

.pdetail-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-lg);
}

.pdetail-hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 22%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.40),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 0 40px rgba(255, 75, 34, 0.15);
  flex-shrink: 0;
}

.pdetail-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

[data-theme="light"] .pdetail-hero-logo {
  background: #fff;
  border-color: rgba(13, 15, 26, 0.06);
  box-shadow: 0 14px 30px rgba(13, 15, 26, 0.10);
}

.pdetail-hero-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arabic);
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
  background: var(--pdetail-gradient);
}

.pdetail-hero-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.30);
  color: #22c55e;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pdetail-hero-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 1.8s ease-in-out infinite;
}

.pdetail-hero-title {
  font-family: var(--font-arabic), var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 6.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
}

.pdetail-hero-tagline {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 var(--space-xl);
  max-width: 56ch;
}

.pdetail-hero-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-xl);
}

.pdetail-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
}

[data-theme="light"] .pdetail-platform-pill {
  background: #fff;
  border-color: rgba(13, 15, 26, 0.06);
}

.pdetail-platform-pill svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Hero CTAs */
.pdetail-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pdetail-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow .3s ease,
    background .25s ease;
  white-space: nowrap;
}

.pdetail-btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 28px rgba(255, 75, 34, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.pdetail-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 75, 34, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pdetail-btn-store {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.10);
  flex-direction: row;
  gap: 8px;
}

.pdetail-btn-store:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.pdetail-btn-store-google {
  background: linear-gradient(135deg, #1f1f1f 0%, #0a0a0a 100%);
}

[data-theme="light"] .pdetail-btn-store {
  background: #0d0f1a;
  border-color: transparent;
}

.pdetail-btn-sub {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.7;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.pdetail-btn-name {
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.pdetail-btn-store .pdetail-btn-sub,
.pdetail-btn-store .pdetail-btn-name {
  margin: 0;
  display: block;
}

/* Visual side: Phone mockup */
.pdetail-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  min-height: 420px;
}

.pdetail-stage-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 75, 34, 0.30) 0%, transparent 60%);
  filter: blur(70px);
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

[data-theme="light"] .pdetail-stage-glow {
  background: radial-gradient(circle, rgba(255, 75, 34, 0.18) 0%, transparent 60%);
}

.pdetail-phone {
  position: relative;
  z-index: 1;
  width: min(280px, 70vw);
  aspect-ratio: 9 / 19;
  background: #06070a;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  padding: 8px;
  transform: rotate(-4deg);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(255, 75, 34, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  overflow: hidden;
  animation: pdetail-phone-float 6s ease-in-out infinite;
}

@keyframes pdetail-phone-float {

  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }

  50% {
    transform: rotate(-4deg) translateY(-10px);
  }
}

[dir="rtl"] .pdetail-phone {
  transform: rotate(4deg);
  animation: pdetail-phone-float-rtl 6s ease-in-out infinite;
}

@keyframes pdetail-phone-float-rtl {

  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }

  50% {
    transform: rotate(4deg) translateY(-10px);
  }
}

[data-theme="light"] .pdetail-phone {
  background: #16181f;
}

.pdetail-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 18px;
  background: #000;
  border-radius: 0 0 12px 12px;
  z-index: 3;
}

.pdetail-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--pdetail-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdetail-phone-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdetail-phone-shine {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 40%, transparent 100%);
  pointer-events: none;
}

/* Stats strip */
.pdetail-stats-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-3xl);
  padding: 18px 28px;
  border-radius: 18px;
  background: rgba(20, 20, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .pdetail-stats-strip {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(13, 15, 26, 0.06);
  box-shadow: 0 14px 28px rgba(13, 15, 26, 0.08);
}

.pdetail-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.pdetail-stat-val {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.pdetail-stat-lbl {
  font-family: var(--font-arabic);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
}

.pdetail-stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border-primary);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .pdetail-stat-sep {
    display: none;
  }

  .pdetail-stats-strip {
    padding: 16px 18px;
    gap: var(--space-md);
  }
}

/* ───────── Body grid (main + aside) ───────── */
.pdetail-body {
  position: relative;
  padding: var(--space-3xl) 0;
}

.pdetail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .pdetail-grid {
    grid-template-columns: 1fr 360px;
    gap: var(--space-2xl);
  }
}

/* Card system for body */
.pdetail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .pdetail-card {
  background: #fff;
  border-color: rgba(13, 15, 26, 0.06);
  box-shadow: 0 4px 14px rgba(13, 15, 26, 0.04);
}

.pdetail-card-sm {
  padding: var(--space-lg);
}

.pdetail-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-lg);
}

.pdetail-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 75, 34, 0.12);
  border: 1px solid rgba(255, 75, 34, 0.25);
  color: var(--accent-primary);
}

.pdetail-card-title {
  font-family: var(--font-arabic), var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.pdetail-card-title-sm {
  font-size: 1rem;
}

.pdetail-card-body {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1rem;
  margin: 0;
}

/* Features list */
.pdetail-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pdetail-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 75, 34, 0.04);
  border: 1px solid rgba(255, 75, 34, 0.10);
  color: var(--text-secondary);
  line-height: 1.55;
  transition: all .25s ease;
}

.pdetail-feature:hover {
  background: rgba(255, 75, 34, 0.08);
  border-color: rgba(255, 75, 34, 0.25);
  transform: translateX(0);
}

[dir="rtl"] .pdetail-feature:hover {
  transform: translateX(0);
}

.pdetail-feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 4px 10px rgba(255, 75, 34, 0.40);
}

/* Target users (sidebar pills) */
.pdetail-target-users {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pdetail-target-user-pill {
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-arabic);
}

[data-theme="light"] .pdetail-target-user-pill {
  background: rgba(13, 15, 26, 0.03);
  border-color: rgba(13, 15, 26, 0.06);
}

/* Stats list (sidebar) */
.pdetail-stats-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pdetail-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-secondary);
}

.pdetail-stat-row:last-child {
  border-bottom: 0;
}

.pdetail-stat-row-key {
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.pdetail-stat-row-val {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-primary);
}

/* Quick links (sidebar) */
.pdetail-quick-card {
  background: linear-gradient(180deg, rgba(255, 75, 34, 0.06), rgba(255, 75, 34, 0.01));
}

.pdetail-quick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdetail-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  text-decoration: none;
  transition: all .25s ease;
}

.pdetail-quick-link:hover {
  background: rgba(255, 75, 34, 0.08);
  border-color: rgba(255, 75, 34, 0.30);
  transform: translateY(-2px);
}

[data-theme="light"] .pdetail-quick-link {
  background: #fff;
  border-color: rgba(13, 15, 26, 0.06);
}

.pdetail-quick-link-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pdetail-quick-link-sub {
  font-family: var(--font-arabic);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.pdetail-quick-link-name {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
}

/* ───────── Built by Edutrick section ───────── */
.pdetail-built {
  position: relative;
  padding: var(--space-4xl) 0;
  text-align: center;
  overflow: hidden;
}

.pdetail-built-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.pdetail-built-grad {
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse at center, rgba(255, 75, 34, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(99, 102, 241, 0.18) 0%, transparent 60%);
  filter: blur(40px);
}

[data-theme="light"] .pdetail-built-grad {
  background: radial-gradient(ellipse at center, rgba(255, 75, 34, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.pdetail-built-container {
  position: relative;
  max-width: 800px;
  text-align: center;
}

.pdetail-built-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 75, 34, 0.10);
  border: 1px solid rgba(255, 75, 34, 0.30);
  color: var(--accent-secondary);
  font-family: var(--font-arabic);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-lg);
}

.pdetail-built-badge svg {
  color: var(--accent-gold);
}

.pdetail-built-title {
  font-family: var(--font-arabic), var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
}

.pdetail-built-title span {
  display: block;
}

.pdetail-built-desc {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto var(--space-xl);
  max-width: 640px;
}

.pdetail-tech-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-2xl);
}

.pdetail-tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
}

[data-theme="light"] .pdetail-tech-pill {
  background: #fff;
  border-color: rgba(13, 15, 26, 0.06);
}

.pdetail-tech-pill svg {
  color: var(--accent-primary);
}

.pdetail-built-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pdetail-btn-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.40);
  font-size: 1rem;
  padding: 15px 26px;
}

.pdetail-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.50);
}

.pdetail-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  padding: 15px 24px;
}

.pdetail-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 75, 34, 0.30);
  transform: translateY(-2px);
}

[data-theme="light"] .pdetail-btn-ghost {
  background: #fff;
  border-color: rgba(13, 15, 26, 0.10);
}

.pdetail-arrow-icon {
  transition: transform .25s ease;
}

[dir="rtl"] .pdetail-arrow-icon {
  transform: scaleX(-1);
}

.pdetail-btn-ghost:hover .pdetail-arrow-icon {
  transform: translateX(3px);
}

[dir="rtl"] .pdetail-btn-ghost:hover .pdetail-arrow-icon {
  transform: scaleX(-1) translateX(3px);
}

/* ───────── More platforms ───────── */
.pdetail-more {
  padding: var(--space-3xl) 0 var(--space-4xl);
  background: var(--bg-secondary);
}

[data-theme="light"] .pdetail-more {
  background: var(--bg-secondary);
}

.pdetail-more-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.pdetail-more-eyebrow {
  font-family: var(--font-arabic);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.pdetail-more-title {
  font-family: var(--font-arabic), var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.pdetail-more-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 99px;
  border: 1px solid var(--border-primary);
  background: rgba(255, 255, 255, 0.04);
  transition: all .25s ease;
}

.pdetail-more-all:hover {
  background: rgba(255, 75, 34, 0.10);
  border-color: rgba(255, 75, 34, 0.40);
}

.pdetail-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.pdetail-more-card {
  --rp-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .3s cubic-bezier(0.2, 0.8, 0.3, 1.2), border-color .3s ease, box-shadow .3s ease;
}

.pdetail-more-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 75, 34, 0.30);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30), 0 0 30px rgba(255, 75, 34, 0.10);
}

[data-theme="light"] .pdetail-more-card {
  background: #fff;
  border-color: rgba(13, 15, 26, 0.06);
  box-shadow: 0 4px 12px rgba(13, 15, 26, 0.04);
}

.pdetail-more-card-bg {
  position: absolute;
  inset: 0;
  background: var(--rp-gradient);
  opacity: 0.06;
  transition: opacity .3s ease;
  pointer-events: none;
}

.pdetail-more-card:hover .pdetail-more-card-bg {
  opacity: 0.12;
}

.pdetail-more-card-logo {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--rp-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.30);
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
}

.pdetail-more-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdetail-more-card-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.pdetail-more-card-name {
  font-family: var(--font-arabic), var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdetail-more-card-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.pdetail-more-card-arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 75, 34, 0.10);
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform .25s ease, background .25s ease;
}

[dir="rtl"] .pdetail-more-card-arrow svg {
  transform: scaleX(-1);
}

.pdetail-more-card:hover .pdetail-more-card-arrow {
  background: var(--accent-primary);
  color: #fff;
  transform: translateX(0);
}

/* ───────── Sticky Mobile CTA ───────── */
.pdetail-sticky-cta {
  position: fixed;
  inset-inline: var(--space-md);
  bottom: var(--space-md);
  z-index: 50;
  display: none;
  gap: 8px;
  padding: 10px;
  border-radius: 99px;
  background: rgba(8, 8, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.40);
}

[data-theme="light"] .pdetail-sticky-cta {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(13, 15, 26, 0.08);
  box-shadow: 0 18px 40px rgba(13, 15, 26, 0.12);
}

.pdetail-sticky-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: 99px;
  font-family: var(--font-arabic);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s ease;
}

.pdetail-sticky-btn-visit {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

[data-theme="light"] .pdetail-sticky-btn-visit {
  background: rgba(13, 15, 26, 0.04);
  border-color: rgba(13, 15, 26, 0.06);
}

.pdetail-sticky-btn-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.pdetail-sticky-btn:active {
  transform: scale(0.97);
}

@media (max-width: 768px) {
  .pdetail-sticky-cta {
    display: flex;
  }

  /* push body content above the sticky bar */
  .pdetail-more,
  .pdetail-built {
    padding-bottom: calc(var(--space-3xl) + 80px);
  }

  /* lift back-to-top above the sticky WhatsApp bar */
  body:has(.pdetail-sticky-cta) .back-to-top {
    bottom: calc(var(--space-md) + 76px);
  }
}

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {

  .pdetail-phone,
  .pdetail-hero-live-dot {
    animation: none !important;
  }
}
/* Aliases for studio admin forms (added in Phase 7) */
.admin-input,
.admin-input:focus { 
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}
.admin-input:focus { outline: none; border-color: var(--accent-primary); }
textarea.admin-input { resize: vertical; min-height: 80px; }
.admin-label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

