/* ==========================================================================
   BarkBoard - Design System & Base CSS Variables (Brand Adjusted)
   ========================================================================== */
:root {
  /* Brand Color Palette */
  --brand-primary: #4477bb;         /* כחול ראשי */
  --brand-primary-hover: #335a99;   /* כחול כהה להובר */
  --brand-secondary: #444444;       /* אפור כהה - טקסטים וכותרות */
  --brand-tertiary: #f5f5f5;        /* אפור בהיר - רקע ראשי */
  
  /* Backgrounds & Cards (Light Luxury SaaS Theme) */
  --bg-main: var(--brand-tertiary);
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 1);
  
  /* Typography */
  --text-primary: var(--brand-secondary);
  --text-muted: #666666;
  --text-inverse: #ffffff;
  
  /* Borders & Focus */
  --border-glass: rgba(68, 68, 68, 0.1);
  --border-focus: var(--brand-primary);
  
  /* Elevation & Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(68, 68, 68, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(68, 68, 68, 0.1), 0 8px 10px -6px rgba(68, 68, 68, 0.05);
  --glow-primary: 0 10px 25px rgba(68, 119, 187, 0.25);

  /* Layout & Animation */
  --font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Animations (Keyframes)
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(68, 119, 187, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(68, 119, 187, 0); }
  100% { box-shadow: 0 0 0 0 rgba(68, 119, 187, 0); }
}

@keyframes floatIcon {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes backgroundDrift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes driftBlob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 50px) scale(1.2); }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  direction: rtl;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.max-w-4xl { max-width: 896px; }
.max-w-2xl { max-width: 672px; }
.max-w-xl { max-width: 576px; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }

/* Background Helpers */
.bg-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

/* Brand Badges */
.brand-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(68, 119, 187, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(68, 119, 187, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease-out forwards;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.section-paragraph {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Padding System */
.content-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 245, 245, 0.85); /* Changed to fit light theme */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  animation: fadeInUp 0.5s ease-out forwards;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 95px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .header-container {
  height: 65px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 900;
  transition: var(--transition);
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: auto;
  height: auto;
  max-height: 60px;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  object-fit: contain;
}

.site-header.scrolled .logo-icon {
  max-height: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--brand-primary);
  transition: var(--transition);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.nav-item:hover, .nav-item.active {
  color: var(--brand-primary);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--glow-primary);
  animation: pulseGlow 3s infinite;
}

.btn-login:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(68, 119, 187, 0.4);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle .bar {
  width: 26px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-block {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  right: 50%;
  transform: translateX(50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(68,119,187,0.1) 0%, rgba(245,245,245,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Initial hidden state for animations */
.hero-text-content {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.2s forwards;
}

.hero-visual {
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.4s forwards;
}

.main-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 1.5rem;
}

.hero-body {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.device-mockup {
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  overflow: hidden;
  background: var(--bg-secondary);
  transition: var(--transition);
}

.device-mockup:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(68, 119, 187, 0.25);
}

.dashboard-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Modules Grid Section
   ========================================================================== */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
}

.module-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

/* Class added by JS Intersection Observer to trigger animation on scroll */
.module-card.fade-in-visible {
  animation: fadeInUp 0.8s ease-out forwards;
}

.module-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-primary);
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(68, 119, 187, 0.1);
  color: var(--brand-primary);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.module-card:hover .module-icon {
  animation: floatIcon 2s ease-in-out infinite;
  background: var(--brand-primary);
  color: var(--text-inverse);
}

.module-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.module-card:hover h3 {
  color: var(--brand-primary);
}

.module-card p {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.7;
}

/* ==========================================================================
   Clients Section
   ========================================================================== */
.clients-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.client-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 1.25rem 2.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.client-badge:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--text-inverse);
  transform: translateY(-5px);
  box-shadow: var(--glow-primary);
}

/* ==========================================================================
   Pricing Table Grid
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.price-card.fade-in-visible {
  animation: fadeInUp 0.8s ease-out forwards;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(68, 119, 187, 0.3);
}

.price-card.popular {
  border: 2px solid var(--brand-primary);
  box-shadow: var(--glow-primary);
  background: #ffffff;
  transform: scale(1.03);
  opacity: 1; /* Override for the featured card */
  animation: fadeInUp 0.8s ease-out forwards;
}

.price-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.badge-popular {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-weight: 900;
  padding: 0.35rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(68, 119, 187, 0.4);
}

.plan-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-primary);
}

.plan-desc {
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.feature-list li svg {
  color: var(--brand-primary);
  flex-shrink: 0;
}

.btn-action {
  width: 100%;
  padding: 0.85rem;
  background: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-action:hover {
  background: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: var(--glow-primary);
}

.btn-action.primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
  animation: pulseGlow 2.5s infinite;
}

.btn-action.primary:hover {
  background: var(--brand-primary-hover);
  animation: none;
  transform: translateY(-2px);
}

/* ==========================================================================
   Blog Cards Grid
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  opacity: 0;
}

.post-card.fade-in-visible {
  animation: fadeInUp 0.8s ease-out forwards;
}

.post-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.post-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.post-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.post-card:hover .read-link {
  gap: 0.75rem; /* Animates the arrow moving right on hover */
}

/* ==========================================================================
   Forms (Contact & Newsletter)
   ========================================================================== */
.form-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
}

.section-subtext {
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 2rem;
}

.main-form, .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.input-wrap label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.input-wrap input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--brand-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.input-wrap input:focus {
  outline: none;
  background: var(--bg-secondary);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(68, 119, 187, 0.15);
}

.terms-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.terms-wrap input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
}

.btn-submit {
  width: 100%;
  padding: 0.95rem;
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-weight: 900;
  font-size: 1.1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--glow-primary);
}

.btn-submit:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(68, 119, 187, 0.4);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #2a2a2a; /* Dark footer to contrast with light theme */
  border-top: 4px solid var(--brand-primary);
  padding: 4rem 0 2rem 0;
  color: #cccccc;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: #cccccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: #ffffff;
  padding-right: 5px; /* Slide effect on hover */
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-info svg {
  color: var(--brand-primary);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.social-icons a {
  color: #cccccc;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--brand-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand-name {
  font-weight: 900;
  color: #ffffff;
  font-size: 1.25rem;
}

.legal-info p {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
  .field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (min-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
  .blog-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: right; }
}

/* ==========================================================================
   🚀 THE ULTIMATE MOBILE MENU EXPERIENCE (BarkBoard)
   ========================================================================== */
@media (max-width: 767px) {
  
  /* 1. כפתור ההמבורגר - הופך לכפתור מרחף, יוקרתי ופועם */
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 9999; /* תמיד מעל הכל */
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(68, 119, 187, 0.15);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  /* טבעת פועמת מאחורי הכפתור (מושך תשומת לב בצורה עדינה) */
  .menu-toggle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(68, 119, 187, 0.4);
    opacity: 0;
    animation: pulseGlow 2.5s infinite;
    pointer-events: none;
  }

  /* כשהתפריט פתוח */
  .menu-toggle[aria-expanded="true"] {
    background: var(--brand-primary);
    box-shadow: 0 10px 25px rgba(68, 119, 187, 0.4);
    transform: rotate(90deg); /* סיבוב דרמטי */
  }
  
  .menu-toggle[aria-expanded="true"]::before {
    display: none;
  }

  /* קווי ההמבורגר - הופכים ל-X אלגנטי ב-3D */
  .menu-toggle .bar {
    position: absolute;
    width: 22px;
    height: 2.5px;
    background: var(--brand-primary);
    border-radius: 3px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                background-color 0.3s, opacity 0.3s;
  }

  .menu-toggle .bar:nth-child(1) { transform: translateY(-7px); }
  .menu-toggle .bar:nth-child(2) { transform: translateY(0); }
  .menu-toggle .bar:nth-child(3) { transform: translateY(7px); }

  .menu-toggle[aria-expanded="true"] .bar {
    background-color: var(--text-inverse);
  }
  
  .menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(0) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scale(0); }
  .menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(0) rotate(-45deg); }

  /* ========================================== */
  /* 2. מעטפת התפריט - חשיפה קולנועית מעגלית    */
  /* ========================================== */
  .main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(245, 245, 245, 0.75); /* שקיפות לצבע הרקע השלישי שלך */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* קסם ה-Ripple - מתחיל מהמיקום של כפתור ההמבורגר */
    clip-path: circle(0px at 25px 40px);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
  }

  .main-navigation.is-active {
    clip-path: circle(150% at 25px 40px);
    pointer-events: all;
  }

  /* בועת צבע זוהרת ומרחפת ברקע של התפריט (נותן עומק) */
  .main-navigation::before {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(68,119,187,0.15) 0%, rgba(245,245,245,0) 70%);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    z-index: -1;
    animation: driftBlob 8s ease-in-out infinite alternate;
  }

  /* ========================================== */
  /* 3. רשימת הקישורים                          */
  /* ========================================== */
  .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
  }

  .nav-menu li {
    perspective: 1000px; /* חובה עבור אנימציית ה-3D */
  }

  /* ========================================== */
  /* 4. אנימציית 3D מדורגת (Stagger) ללינקים   */
  /* ========================================== */
  .nav-item {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--brand-secondary);
    text-decoration: none;
    position: relative;
    opacity: 0;
    /* מצב התחלתי: מסובב לאחור, קטן וגבוה */
    transform: rotateX(-90deg) translateY(40px) scale(0.8);
    transform-origin: top center;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  /* הכניסה של הקישורים מתרחשת רק כשהתפריט פתוח */
  .main-navigation.is-active .nav-item {
    opacity: 1;
    transform: rotateX(0deg) translateY(0) scale(1);
  }

  /* הדיליי המדורג שיוצר את ה"גל" בכניסה */
  .main-navigation.is-active .nav-menu li:nth-child(1) .nav-item { transition-delay: 0.1s; }
  .main-navigation.is-active .nav-menu li:nth-child(2) .nav-item { transition-delay: 0.2s; }
  .main-navigation.is-active .nav-menu li:nth-child(3) .nav-item { transition-delay: 0.3s; }
  .main-navigation.is-active .nav-menu li:nth-child(4) .nav-item { transition-delay: 0.4s; }
  .main-navigation.is-active .nav-menu li:nth-child(5) .nav-item { transition-delay: 0.5s; }
  .main-navigation.is-active .nav-menu li:nth-child(6) .nav-item { transition-delay: 0.6s; }

  /* אפקט הובר חכם ונקודה קורנת לקישורים במובייל */
  .nav-item::after {
    content: '';
    position: absolute;
    width: 0px;
    height: 4px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(68, 119, 187, 0.6);
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .nav-item:hover, .nav-item.active {
    color: var(--brand-primary);
  }

  .nav-item:hover::after, .nav-item.active::after {
    width: 40px; /* פס קטן וזורח מתחת לטקסט האקטיבי */
  }

  /* הסתרת כפתור ה-CTA המקורי בתפריט מובייל כדי לשמור על קו נקי */
  .header-cta {
    display: none;
  }
}

/* ==========================================================================
   Specific Pages Overrides (About, Why Us, Support, Contact)
   ========================================================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #6b9be2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mission-box {
  background: rgba(68, 119, 187, 0.05);
  border-right: 4px solid var(--brand-primary);
}

.icon-circle, .channel-icon-wrap, .phone-icon-wrap {
  background: rgba(68, 119, 187, 0.1);
  border: 1px solid rgba(68, 119, 187, 0.2);
}

.callout-glass-box, .closing-glow-card, .cta-support-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.feature-num-badge, .num-badge-lg {
  background: rgba(68, 119, 187, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(68, 119, 187, 0.2);
}

.reason-check-icon {
  background: rgba(68, 119, 187, 0.1);
  border: 1px solid rgba(68, 119, 187, 0.2);
}

.faq-item:hover {
  border-color: rgba(68, 119, 187, 0.4);
}

.faq-trigger:hover, .faq-chevron {
  color: var(--brand-primary);
}


/* ==========================================================================
   Missing SVG Stroke Variables (Fixes invisible icons in HTML)
   ========================================================================== */
:root {
  --primary-cyan: var(--brand-primary);
  --accent-emerald: #10b981; 
}

/* ==========================================================================
   Breadcrumbs Fix (Fixes the ugly 1. 2. list style)
   ========================================================================== */
.breadcrumb-nav {
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(68, 119, 187, 0.1);
}

ol.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.breadcrumb-list a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.breadcrumb-list a:hover {
  color: var(--brand-primary-hover);
}

/* ==========================================================================
   Why Us Page - Premium Layout Styles
   ========================================================================== */
.why-hero {
  padding: 4rem 0 3rem 0;
  position: relative;
}

.hero-intro-card {
  background: #ffffff;
  padding: 3rem;
  text-align: right;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(68, 119, 187, 0.1);
  box-shadow: 0 15px 35px rgba(68, 119, 187, 0.08);
  position: relative;
  overflow: hidden;
}

/* פס זוהר עליון בכרטיסיית הפתיחה */
.hero-intro-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-primary), #82aae3);
}

.highlight-cyan {
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 1.2rem;
}

/* 8 Features Grid */
.features-8-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2rem; 
  margin-top: 3.5rem;
}

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

.feature-card {
  background: #ffffff;
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(68, 119, 187, 0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: right;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(68, 119, 187, 0.12);
  border-color: rgba(68, 119, 187, 0.3);
}

/* Floating Badge */
.feature-num-badge {
  position: absolute !important;
  top: -18px !important;
  right: 24px !important; 
  left: auto !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 1.2rem !important;
  background: linear-gradient(135deg, var(--brand-primary), #6b9be2) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 15px rgba(68, 119, 187, 0.4) !important;
  border: none !important;
}

.card-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(68, 119, 187, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.feature-card:hover .card-icon-wrap {
  background: var(--brand-primary);
  transform: scale(1.05);
}

.card-icon-wrap svg {
  stroke: var(--brand-primary);
  transition: all 0.4s ease;
}

.feature-card:hover .card-icon-wrap svg {
  stroke: #ffffff; 
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* Key Reasons List */
.key-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reason-item-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(68, 119, 187, 0.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.03);
  text-align: right;
  transition: all 0.3s ease;
}

.reason-item-box:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(68, 119, 187, 0.1);
  border-color: rgba(68, 119, 187, 0.25);
}

.reason-check-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.reason-check-icon svg {
  stroke: var(--accent-emerald);
}

.reason-text-wrap p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

.reason-text-wrap strong {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.35rem;
}

.closing-glow-card {
  background: #ffffff;
  border: 1px solid rgba(68, 119, 187, 0.15);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  box-shadow: 0 20px 50px rgba(68, 119, 187, 0.15);
}

.closing-main-p {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 40px;
}


/* ==========================================================================
   Support Page - Premium Layout Fixes
   ========================================================================== */

/* 1. Contact Options Grid (Phone/WhatsApp) */
.support-contact-row, .contact-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 2rem auto;
}
@media (min-width: 768px) {
  .support-contact-row, .contact-cards-container {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-card-box, .support-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(68, 119, 187, 0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-card-box:hover, .support-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(68, 119, 187, 0.12);
  border-color: var(--brand-primary);
}
.contact-icon-wrap, .phone-icon-wrap, .channel-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(68, 119, 187, 0.1);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.contact-card-box:hover .contact-icon-wrap, .support-card:hover .phone-icon-wrap {
  background: var(--brand-primary);
  color: #ffffff;
  transform: scale(1.1);
}

/* 2. FAQ Accordion Styling (Supports native <details> and custom structures) */
.faq-container, .faq-list {
  max-width: 800px;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
details.faq-item, .faq-item {
  background: #ffffff;
  border: 1px solid rgba(68, 119, 187, 0.15);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  overflow: hidden;
}
details.faq-item[open], .faq-item.active {
  border-color: var(--brand-primary);
  box-shadow: 0 10px 25px rgba(68, 119, 187, 0.1);
}
details.faq-item summary, .faq-trigger {
  padding: 1.5rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: right;
  font-family: inherit;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after, .faq-trigger::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--brand-primary);
  transition: transform 0.3s ease;
  font-weight: 400;
}
details.faq-item[open] summary::after, .faq-item.active .faq-trigger::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-content, details.faq-item p {
  padding: 0 2rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* 3. Support Features Grid (4 Items fixes layout when parent wrapper misses a grid class) */
.support-features-grid, .support-grid, .support-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2rem;
  margin-top: 3.5rem;
}
@media (min-width: 768px) {
  .support-features-grid, .support-grid, .support-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Fallback auto-grid for adjacent feature cards without explicit grid wrappers */
section > .container > .feature-card + .feature-card {
    margin-top: 2.5rem;
}
@media (min-width: 768px) {
    section > .container:has(> .feature-card) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
    section > .container > .feature-card + .feature-card {
        margin-top: 0;
    }
}

/* 4. Support CTA Box */
.cta-support-box {
  background: #ffffff;
  border: 1px solid rgba(68, 119, 187, 0.15);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(68, 119, 187, 0.15);
  max-width: 900px;
  margin: 4rem auto;
  position: relative;
  overflow: hidden;
}
.cta-support-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-primary), #82aae3);
}
.cta-support-box h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.cta-support-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.cta-support-box .btn-submit {
  display: inline-flex;
  width: auto;
  padding: 0.85rem 2.5rem;
}

/* ==========================================================================
   Missing Global Classes (Restored)
   ========================================================================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.glass-card:hover {
  box-shadow: var(--shadow-lg), var(--glow-primary);
  border-color: var(--brand-primary);
}