/* ==========================================================================
   EDITOR AI - Ultra High-End Landing Page Stylesheet
   Palette: Blue (#0052FF, #0066FF, #2563EB), Crisp White (#FFFFFF, #F8FAFC), 
   Obsidian Black (#030712, #0A0D14, #0F172A)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-english: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-primary: #0052FF;
  --color-primary-hover: #0041CC;
  --color-primary-light: #EBF2FF;
  --color-primary-glow: rgba(0, 82, 255, 0.25);
  
  --color-black: #050811;
  --color-dark: #0D131F;
  --color-card-dark: #121927;
  --color-border-dark: #1E293B;

  --color-white: #FFFFFF;
  --color-bg-light: #F8FAFC;
  --color-bg-subtle: #F1F5F9;
  --color-border-light: #E2E8F0;
  --color-text-dark: #090D16;
  --color-text-muted: #64748B;
  --color-text-subtle: #94A3B8;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-arabic);
  direction: rtl;
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Latin typography helper */
.font-en {
  font-family: var(--font-english);
  direction: ltr;
  display: inline-block;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Subtle background grid */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
  background-size: 48px 48px;
}

.dark-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ==========================================================================
   TACTILE 3D KEYCAP - Ultra-Realistic Photorealistic 3D Mechanical Keycap
   ========================================================================== */
.keycap-container {
  perspective: 1200px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  cursor: pointer;
  padding: 20px 30px 40px;
  direction: ltr !important; /* Force LTR for standard keyboard layout */
}

/* 3D Keycap Outer Body with Sloped Frustum & Bottom Skirt */
.tactile-keycap {
  position: relative;
  width: 175px;
  height: 165px;
  border-radius: 36px 36px 44px 44px;
  background: linear-gradient(180deg, #2570FF 0%, #0056FF 30%, #0044D6 75%, #002FA8 100%);
  padding: 12px 14px 24px;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    /* Physical 3D Extrusion Lip / Switch Skirt */
    0 4px 0 #002380,
    0 8px 0 #001B66,
    0 14px 1px #00124D,
    /* Ambient Occlusion (tight dark contact shadow right underneath) */
    0 24px 20px -2px rgba(0, 18, 70, 0.55),
    /* Directional deep floor shadow */
    0 42px 48px -6px rgba(0, 40, 130, 0.4),
    /* Soft wide ambient floor diffusion (matches reference image shadow) */
    0 65px 85px -10px rgba(0, 82, 255, 0.3),
    /* Specular rim on top edge */
    inset 0 2.5px 2px rgba(255, 255, 255, 0.85),
    inset 0 -5px 8px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .tactile-keycap {
    width: 210px;
    height: 198px;
    border-radius: 42px 42px 50px 50px;
    padding: 15px 18px 28px;
  }
}

/* The Concave Inset Plateau (The Dish where finger presses) */
.keycap-plateau {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: radial-gradient(120% 100% at 50% 20%, #3884FF 0%, #085BFF 50%, #0043D1 85%, #0037AD 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    /* Concave inner scoop shading */
    inset 0 3px 6px rgba(255, 255, 255, 0.7),
    inset 0 -4px 8px rgba(0, 20, 80, 0.65),
    inset 3px 0 5px rgba(255, 255, 255, 0.25),
    inset -3px 0 5px rgba(0, 20, 80, 0.4),
    /* Drop shadow of the plateau inside the bevel */
    0 3px 6px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .keycap-plateau {
    border-radius: 30px;
    padding: 18px 22px 16px;
  }
}

/* "Ctrl" Typography - Locked to Top-Left like real keyboard */
.keycap-label {
  font-family: var(--font-english);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 20, 80, 0.6), 0 2px 4px rgba(0, 0, 0, 0.35);
  align-self: flex-start !important;
  line-height: 1;
}

@media (min-width: 768px) {
  .keycap-label {
    font-size: 32px;
  }
}

/* Center Logo on the Keycap */
.keycap-logo-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    0 0 18px rgba(0, 110, 255, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .keycap-logo-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }
}

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

/* Bottom "EDITOR" Monospace Subtext */
.keycap-subtext {
  font-family: var(--font-english);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 20, 80, 0.6);
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .keycap-subtext {
    font-size: 13px;
  }
}

/* Hover 3D Lift */
.tactile-keycap:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 6px 0 #002380,
    0 12px 0 #001B66,
    0 18px 2px #00124D,
    0 30px 25px -2px rgba(0, 18, 70, 0.6),
    0 52px 60px -6px rgba(0, 40, 130, 0.45),
    0 80px 105px -10px rgba(0, 82, 255, 0.35),
    inset 0 2.5px 2px rgba(255, 255, 255, 0.95),
    inset 0 -5px 8px rgba(0, 0, 0, 0.45);
}

/* Pressed State: Deep Mechanical Key Travel */
.tactile-keycap:active, .tactile-keycap.is-pressed {
  transform: translateY(14px) scale(0.98) !important;
  box-shadow: 
    0 0 0 #002380,
    0 2px 0 #001B66,
    0 4px 1px #00124D,
    0 12px 15px -2px rgba(0, 18, 70, 0.5),
    0 22px 30px -4px rgba(0, 40, 130, 0.3),
    0 40px 55px -8px rgba(0, 82, 255, 0.25),
    inset 0 1px 2px rgba(0, 0, 0, 0.35),
    inset 0 -2px 3px rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================================================
   MEGA EDITORIAL HEADLINES
   ========================================================================== */
.hero-mega-title {
  font-family: var(--font-english);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--color-black);
}

/* Glow & Accent Utilities */
.text-gradient-blue {
  background: linear-gradient(135deg, #0052FF 0%, #0091FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-dark {
  background: linear-gradient(180deg, #050811 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blue-glow-shadow {
  box-shadow: 0 10px 30px -5px rgba(0, 82, 255, 0.3);
}

.blue-glow-lg {
  box-shadow: 0 20px 50px -10px rgba(0, 82, 255, 0.4);
}

/* ==========================================================================
   TACTILE BUY BUTTONS
   ========================================================================== */
.btn-buy-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 16px 36px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s var(--ease-spring);
  box-shadow: 
    0 4px 0 #003BB3,
    0 10px 20px -3px rgba(0, 82, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-buy-primary:hover {
  background-color: #0F5BFF;
  transform: translateY(-2px);
  box-shadow: 
    0 6px 0 #003BB3,
    0 16px 28px -4px rgba(0, 82, 255, 0.5);
  color: #FFFFFF;
}

.btn-buy-primary:active {
  transform: translateY(4px);
  box-shadow: 
    0 0 0 #003BB3,
    0 4px 10px -2px rgba(0, 82, 255, 0.3);
}

.btn-buy-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25D366;
  color: #FFFFFF;
  font-family: var(--font-arabic);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s var(--ease-spring);
  box-shadow: 0 4px 0 #1EAE54, 0 8px 18px -2px rgba(37, 211, 102, 0.35);
}

.btn-buy-whatsapp:hover {
  background-color: #2CE06E;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #1EAE54, 0 12px 24px -2px rgba(37, 211, 102, 0.45);
  color: #FFFFFF;
}

.btn-buy-whatsapp:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #1EAE54, 0 2px 6px -1px rgba(37, 211, 102, 0.2);
}

/* ==========================================================================
   INTERACTIVE STUDIO PREVIEW (App Window Simulation)
   ========================================================================== */
.studio-window {
  border-radius: 20px;
  background-color: #0A0F1D;
  border: 1px solid #1E293B;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 80px rgba(0, 82, 255, 0.15);
  overflow: hidden;
}

.studio-timeline-track {
  height: 38px;
  background-color: #0D1527;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-clip {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.timeline-clip:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.clip-video {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #BFDBFE;
  border: 1px solid #3B82F6;
}

.clip-audio {
  background: linear-gradient(135deg, #064E3B 0%, #059669 100%);
  color: #A7F3D0;
  border: 1px solid #10B981;
}

.clip-caption {
  background: linear-gradient(135deg, #701A75 0%, #C026D3 100%);
  color: #FBCFE8;
  border: 1px solid #E879F9;
}

.clip-broll {
  background: linear-gradient(135deg, #7C2D12 0%, #EA580C 100%);
  color: #FED7AA;
  border: 1px solid #F97316;
}

.clip-effect {
  background: linear-gradient(135deg, #4C1D95 0%, #7C3AED 100%);
  color: #DDD6FE;
  border: 1px solid #8B5CF6;
}

/* Playhead */
.studio-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #EF4444;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 0 10px #EF4444;
}

.studio-playhead::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 12px;
  background-color: #EF4444;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Audio Waveform Bar Animation */
.waveform-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.waveform-bar {
  flex: 1;
  background-color: rgba(16, 185, 129, 0.45);
  border-radius: 2px;
  transition: height 0.2s ease;
}

/* Platform Safe Zones Overlay */
.safe-zone-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 2px dashed rgba(239, 68, 68, 0.6);
  z-index: 10;
  display: none;
}

.safe-zone-overlay.active {
  display: block;
}

/* ==========================================================================
   BENTO CARDS
   ========================================================================== */
.bento-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.25s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: #BFDBFE;
  box-shadow: 0 16px 36px -8px rgba(0, 82, 255, 0.12);
}

.bento-card-dark {
  background: #0B111E;
  border: 1px solid #1E293B;
  color: #FFFFFF;
}

.bento-card-dark:hover {
  border-color: #2563EB;
  box-shadow: 0 16px 40px -8px rgba(0, 82, 255, 0.25);
}

/* ==========================================================================
   MODAL STYLES (QI CARD / PAYMENT GUIDE)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 8, 17, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s var(--ease-spring);
}

.modal-backdrop.is-open .modal-card {
  transform: scale(1) translateY(0);
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

