/* ============================================
   AI MAGICIAN — Global Stylesheet
   Colors: Deep Purple, Magenta, White
   Direction: RTL (Hebrew default)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #0D0620;
  --bg-secondary: #150A30;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --purple-deep: #3B0F6E;
  --purple-mid: #6B21C8;
  --purple-light: #9B59F0;
  --magenta: #C026D3;
  --magenta-light: #E879F9;
  --pink: #EC4899;
  --white: #FFFFFF;
  --text-primary: #F0E8FF;
  --text-secondary: #B89FD8;
  --text-muted: #7C6B9A;
  --border: rgba(155,89,240,0.2);
  --border-hover: rgba(192,38,211,0.5);
  --glow-purple: 0 0 30px rgba(107,33,200,0.4);
  --glow-magenta: 0 0 30px rgba(192,38,211,0.4);
  --gradient-hero: linear-gradient(135deg, #0D0620 0%, #1E0840 40%, #2D0D5E 70%, #0D0620 100%);
  --gradient-accent: linear-gradient(135deg, #6B21C8, #C026D3);
  --gradient-card: linear-gradient(135deg, rgba(107,33,200,0.15), rgba(192,38,211,0.08));
  --font-he: 'Heebo', sans-serif;
  --font-en: 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-he);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

body.lang-en {
  font-family: var(--font-en);
  direction: ltr;
}

/* ===== NOISE TEXTURE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ===== GLOW ORBS ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.orb-1 { width: 500px; height: 500px; background: rgba(107,33,200,0.25); top: -150px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: rgba(192,38,211,0.2); bottom: -100px; left: -100px; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: rgba(236,72,153,0.15); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -6s; }

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

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

.gradient-text {
  background: linear-gradient(135deg, #A78BFA, #C026D3, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--magenta-light);
  border: 1px solid rgba(232,121,249,0.3);
  background: rgba(192,38,211,0.1);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header p {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.1rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(13,6,32,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-logo img {
  height: 48px;
  width: auto;
}

.navbar-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--white);
  background: rgba(107,33,200,0.2);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 5px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--gradient-accent);
  color: var(--white);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(192,38,211,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(192,38,211,0.6);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ===== FLOATING WHATSAPP ===== */
.float-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  z-index: 999;
  transition: var(--transition);
  animation: pulse-green 2.5s infinite;
}

body.lang-en .float-whatsapp { left: auto; right: 30px; }

.float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.7);
}

.float-whatsapp svg { width: 28px; height: 28px; fill: white; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-purple);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card h3 { color: var(--white); margin-bottom: 10px; font-size: 1.2rem; }
.card p { font-size: 0.95rem; color: var(--text-secondary); }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
}

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

.hero h1 { margin-bottom: 24px; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ===== FEATURE LIST ===== */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.feature-list li::before {
  content: '✦';
  color: var(--magenta-light);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: linear-gradient(135deg, rgba(107,33,200,0.25) 0%, rgba(192,38,211,0.15) 100%);
  border: 1px solid rgba(192,38,211,0.4);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(192,38,211,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 { color: var(--white); margin-bottom: 16px; }
.cta-box p { margin-bottom: 36px; font-size: 1.1rem; }

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img { height: 40px; }
.footer-logo span { font-size: 1rem; font-weight: 700; color: var(--white); }

.footer-desc { font-size: 0.9rem; color: var(--text-muted); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--magenta-light); }

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

.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--magenta-light); }

/* ===== ACCESSIBILITY WIDGET ===== */
.a11y-toggle {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  border: none;
  box-shadow: 0 4px 16px rgba(192,38,211,0.4);
  transition: var(--transition);
  font-size: 1.3rem;
}

body.lang-en .a11y-toggle { left: auto; right: 30px; }

.a11y-toggle:hover { transform: scale(1.1); }

.a11y-panel {
  position: fixed;
  bottom: 165px;
  left: 30px;
  width: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  z-index: 997;
  display: none;
  box-shadow: var(--glow-purple);
}

body.lang-en .a11y-panel { left: auto; right: 30px; }

.a11y-panel.open { display: block; }

.a11y-panel h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.a11y-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.a11y-option:hover { color: var(--white); }

.a11y-option button {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.a11y-option button:hover { background: rgba(192,38,211,0.3); }

/* High Contrast Mode */
body.high-contrast {
  --bg-primary: #000000;
  --bg-secondary: #111111;
  --text-primary: #FFFFFF;
  --text-secondary: #EEEEEE;
  filter: contrast(1.3);
}

/* ===== DIVIDER ===== */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin: 20px auto;
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(107,33,200,0.2);
  border: 1px solid rgba(107,33,200,0.4);
  color: var(--purple-light);
}

/* ===== PROCESS STEPS ===== */
.steps { display: flex; flex-direction: column; gap: 24px; }

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.step-content h4 { color: var(--white); margin-bottom: 6px; }
.step-content p { font-size: 0.95rem; margin: 0; }

/* ===== TESTIMONIALS ===== */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial-stars { color: #FBBF24; font-size: 1.1rem; margin-bottom: 16px; }
.testimonial p { font-size: 1rem; margin-bottom: 20px; color: var(--text-primary); font-style: italic; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.author-info h5 { color: var(--white); font-size: 0.95rem; margin-bottom: 2px; }
.author-info span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.faq-question {
  padding: 20px 24px;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  list-style: none;
  user-select: none;
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--magenta-light);
  transition: var(--transition);
  flex-shrink: 0;
  margin-right: 16px;
}

body[dir="ltr"] .faq-question::after,
body.lang-en .faq-question::after { margin-right: 0; margin-left: 16px; }

.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.faq-item.open .faq-answer {
  padding: 20px 24px;
  max-height: 500px;
}

.faq-answer p { margin: 0; font-size: 0.95rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-box { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .navbar-nav { display: none; }
  .hamburger { display: flex; }

  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13,6,32,0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }

  .float-whatsapp { bottom: 20px; left: 20px; width: 54px; height: 54px; }
  body.lang-en .float-whatsapp { left: auto; right: 20px; }
  .a11y-toggle { bottom: 85px; left: 20px; }
  body.lang-en .a11y-toggle { left: auto; right: 20px; }
  .a11y-panel { left: 20px; bottom: 148px; }
  body.lang-en .a11y-panel { left: auto; right: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .card { padding: 24px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate { opacity: 0; }
.animate.visible { animation: fadeUp 0.7s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--magenta);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }
