/* ============================================================
   MAHANE ISRAEL — Premium Consulting Proposal
   Design System — Pure CSS, Production-Ready
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES — Design Token System
   ============================================================ */

:root {
  /* Brand Colors */
  --color-primary:       #4F38E0;
  --color-primary-light: #6B5CE7;
  --color-primary-bg:    #EDE9FE;
  --color-primary-glow:  rgba(79, 56, 224, 0.25);

  /* Neutrals */
  --color-dark:          #09152B;
  --color-page-bg:       #F7F9FC;
  --color-card-bg:       #FFFFFF;
  --color-text:          #1E293B;
  --color-text-secondary:#64748B;
  --color-border:        #E2E8F0;
  --color-border-hover:  #CBD5E1;

  /* Status Colors */
  --color-green:         #10B981;
  --color-green-bg:      #D1FAE5;
  --color-orange:        #F59E0B;
  --color-orange-bg:     #FEF3C7;
  --color-blue:          #3B82F6;
  --color-blue-bg:       #DBEAFE;
  --color-red:           #EF4444;
  --color-red-bg:        #FEE2E2;

  /* Typography */
  --font-primary:        'Inter', 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hebrew:         'Heebo', 'Inter', sans-serif;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;
  --text-7xl:   4.5rem;

  --weight-light:    300;
  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

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

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-primary: 0 8px 32px rgba(79, 56, 224, 0.30);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index Stack */
  --z-base:      1;
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;
  --z-progress:  600;

  /* Layout */
  --container-max: 1200px;
  --nav-height:    80px;
  --nav-height-sm: 64px;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--weight-normal);
  color: var(--color-text);
  background-color: var(--color-page-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* Hebrew / RTL support */
[lang="he"], .rtl {
  font-family: var(--font-hebrew);
  direction: rtl;
  text-align: right;
}


/* ============================================================
   3. SCROLL PROGRESS BAR
   ============================================================ */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light), #A78BFA);
  z-index: var(--z-progress);
  transition: width 0.1s linear;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}


/* ============================================================
   4. CONTAINER & LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}

.section-sm {
  padding-block: var(--space-16);
}

.section-lg {
  padding-block: var(--space-32);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.text-center { text-align: center; }
.text-right  { text-align: right; }


/* ============================================================
   5. NAVIGATION — Glassmorphism, Sticky, Shrinks on Scroll
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-sticky);
  transition: all var(--transition-slow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: var(--space-6);
  max-width: var(--container-max);
  margin-inline: auto;
}

.nav-transparent {
  background: transparent;
}

.nav-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav.scrolled {
  height: var(--nav-height-sm);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.nav-logo {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-logo .logo-accent {
  color: var(--color-primary);
}

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

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: white;
  background: var(--color-primary);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: 0 2px 12px rgba(79, 56, 224, 0.35);
}

.nav-cta:hover {
  color: white;
  background: var(--color-primary-light);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

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

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  font-size: var(--text-base);
  padding-block: var(--space-2);
}


/* ============================================================
   6. HERO SECTION — Full Viewport, Gradient, Particles
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1060 40%, var(--color-primary) 100%);
  padding-top: var(--nav-height);
}

/* Animated gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(79, 56, 224, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(107, 92, 231, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(9, 21, 43, 0.8) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0%   { opacity: 0.8; }
  100% { opacity: 1; }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-full);
  animation: float 20s ease-in-out infinite;
}

.hero-particles::before {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
  top: 10%;
  right: 10%;
  animation-delay: -4s;
}

.hero-particles::after {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(79, 56, 224, 0.2) 0%, transparent 70%);
  bottom: 20%;
  left: 5%;
  animation-delay: -10s;
  animation-duration: 15s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(30px, -20px) scale(1.05); }
  50%       { transform: translate(-20px, 30px) scale(0.95); }
  75%       { transform: translate(20px, 20px) scale(1.02); }
}

/* Particle dots */
.particle {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(167, 139, 250, 1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, var(--text-7xl));
  font-weight: var(--weight-bold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, var(--text-xl));
  font-weight: var(--weight-light);
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

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


/* ============================================================
   7. SECTION DIVIDERS — Gradient Wave Parallax
   ============================================================ */

.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  margin-top: -1px;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.wave-divider-top {
  position: relative;
  height: 80px;
  overflow: hidden;
  margin-bottom: -1px;
}

.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  border: none;
  margin-block: var(--space-16);
}


/* ============================================================
   8. TYPOGRAPHY — Headings, Gradient Text
   ============================================================ */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.text-center .section-subtitle {
  margin-inline: auto;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #A78BFA 0%, #818CF8 40%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================================
   9. SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }


/* ============================================================
   10. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(79, 56, 224, 0.40);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding-inline: var(--space-4);
}

.btn-ghost:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

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

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

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}


/* ============================================================
   11. CARDS — Elevated, Hover Lift
   ============================================================ */

.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

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

.card-sm {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.card-lg {
  padding: var(--space-12);
}

/* Glassmorphism Card Variant */
.card-glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(79, 56, 224, 0.08);
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(79, 56, 224, 0.25);
  box-shadow: 0 16px 48px rgba(79, 56, 224, 0.14);
}

/* Dark Card */
.card-dark {
  background: var(--color-dark);
  border-color: rgba(255, 255, 255, 0.08);
  color: white;
}

.card-dark .card-title {
  color: white;
}

.card-dark .card-text {
  color: rgba(255, 255, 255, 0.65);
}

/* Card Header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

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

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.card-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* ============================================================
   12. MODULE CARDS — Champ des Possibles
   ============================================================ */

.module-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.module-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 0 rgba(79, 56, 224, 0);
  transition: box-shadow var(--transition-slow);
}

.module-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px var(--color-primary),
    0 0 40px rgba(79, 56, 224, 0.15);
}

.module-card:hover .module-icon {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 8px 24px rgba(79, 56, 224, 0.40);
}

.module-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-5);
  transition: all var(--transition-base);
}

.module-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.module-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.module-tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  background: var(--color-primary-bg);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}


/* ============================================================
   13. STATS COUNTER SECTION
   ============================================================ */

.stats-section {
  background: var(--color-dark);
  padding-block: var(--space-20);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(79, 56, 224, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 50%, rgba(107, 92, 231, 0.2) 0%, transparent 60%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-1);
  position: relative;
  z-index: 1;
}

.stat-card {
  padding: var(--space-10) var(--space-6);
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-slow);
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary-light);
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.3s;
}

.stat-card.active::after {
  width: 60%;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--weight-bold);
  color: white;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1);
}

.stat-number .suffix {
  font-size: 0.5em;
  color: var(--color-primary-light);
  font-weight: var(--weight-semibold);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Number counter animation */
.counter {
  display: inline-block;
}

.counter.counting {
  animation: countPulse 0.1s ease-in-out;
}

@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.03); }
}


/* ============================================================
   14. ORG CHART / JURIDICAL STRUCTURE DIAGRAM
   ============================================================ */

.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: var(--space-8) 0;
  position: relative;
}

.org-level {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-6);
  position: relative;
}

.org-level::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: var(--space-8);
  background: var(--color-border);
}

.org-connector-v {
  width: 2px;
  height: var(--space-8);
  background: linear-gradient(to bottom, var(--color-border), var(--color-primary-light));
  margin: 0 auto;
  border-radius: var(--radius-full);
}

.org-connector-h {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin-block: 0;
  flex: 1;
}

.org-node {
  background: var(--color-card-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  text-align: center;
  min-width: 140px;
  transition: all var(--transition-base);
  cursor: default;
  position: relative;
}

.org-node:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-primary);
  transform: translateY(-2px);
}

.org-node-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.org-node-primary .org-node-label {
  color: rgba(255, 255, 255, 0.8);
}

.org-node-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  line-height: 1.3;
}

.org-node-label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}

.org-node-primary .org-node-title {
  color: white;
}

/* Branch lines for org chart */
.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-branch-group {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
  padding-top: var(--space-8);
}

.org-branch-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-border);
  border-radius: var(--radius-full);
}


/* ============================================================
   15. TIMELINE — Horizontal
   ============================================================ */

.timeline {
  position: relative;
  padding: var(--space-12) 0;
}

.timeline-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light), rgba(79, 56, 224, 0.3));
  z-index: 0;
}

.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: white;
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
  transition: all var(--transition-base);
  box-shadow: 0 0 0 4px var(--color-primary-bg);
}

.timeline-item.active .timeline-dot,
.timeline-dot:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-primary);
  transform: scale(1.1);
}

.timeline-content {
  text-align: center;
  padding-inline: var(--space-4);
}

.timeline-period {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.timeline-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.timeline-text {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* ============================================================
   16. TABLES — Clean, Striped, Responsive
   ============================================================ */

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

thead {
  background: var(--color-dark);
  color: white;
}

thead th {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}

tbody tr:nth-child(even) {
  background: rgba(247, 249, 252, 0.7);
}

tbody tr:hover {
  background: var(--color-primary-bg);
}

tbody tr:last-child {
  border-bottom: none;
}

td {
  padding: var(--space-4) var(--space-6);
  color: var(--color-text);
  vertical-align: middle;
}

td strong {
  color: var(--color-dark);
}

.table-highlight {
  background: linear-gradient(90deg, rgba(79, 56, 224, 0.04) 0%, transparent 100%);
}


/* ============================================================
   17. NOTICE BOXES
   ============================================================ */

.notice {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid;
  margin-block: var(--space-6);
}

.notice-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.5;
}

.notice-body {
  flex: 1;
}

.notice-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
}

.notice-text {
  font-size: var(--text-sm);
  line-height: 1.65;
}

.notice-info {
  background: var(--color-blue-bg);
  border-color: rgba(59, 130, 246, 0.3);
  color: #1E40AF;
}

.notice-info .notice-title {
  color: #1D4ED8;
}

.notice-warning {
  background: var(--color-orange-bg);
  border-color: rgba(245, 158, 11, 0.3);
  color: #92400E;
}

.notice-warning .notice-title {
  color: #B45309;
}

.notice-danger {
  background: var(--color-red-bg);
  border-color: rgba(239, 68, 68, 0.3);
  color: #991B1B;
}

.notice-danger .notice-title {
  color: #DC2626;
}

.notice-success {
  background: var(--color-green-bg);
  border-color: rgba(16, 185, 129, 0.3);
  color: #064E3B;
}

.notice-success .notice-title {
  color: #065F46;
}


/* ============================================================
   18. BADGES — Status Indicators
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  line-height: 1.4;
  white-space: nowrap;
}

.badge-primary { background: var(--color-primary-bg); color: var(--color-primary); }
.badge-green   { background: var(--color-green-bg);   color: #065F46; }
.badge-orange  { background: var(--color-orange-bg);  color: #92400E; }
.badge-blue    { background: var(--color-blue-bg);    color: #1E40AF; }
.badge-red     { background: var(--color-red-bg);     color: #991B1B; }
.badge-gray    { background: #F1F5F9; color: #475569; }
.badge-dark    { background: var(--color-dark); color: white; }

.badge-dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
}

/* Priority Matrix Badges */
.priority-p1 {
  background: var(--color-red-bg);
  color: #DC2626;
  font-weight: var(--weight-bold);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.priority-p2 {
  background: var(--color-orange-bg);
  color: #D97706;
  font-weight: var(--weight-bold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.priority-p3 {
  background: #FEF9C3;
  color: #A16207;
  font-weight: var(--weight-bold);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.priority-p4 {
  background: #F1F5F9;
  color: #64748B;
  font-weight: var(--weight-bold);
  border: 1px solid var(--color-border);
}


/* ============================================================
   19. TOOLTIPS
   ============================================================ */

.tooltip {
  position: relative;
  display: inline-flex;
}

.tooltip-text {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-dark);
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
  max-width: 220px;
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}

.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-dark);
}

.tooltip:hover .tooltip-text {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ============================================================
   20. VERBATIM QUOTES / BLOCKQUOTES
   ============================================================ */

.blockquote {
  position: relative;
  margin: var(--space-8) 0;
  padding: var(--space-6) var(--space-8);
  padding-left: calc(var(--space-8) + 4px);
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-bg);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.blockquote::before {
  content: '\201C';
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.4;
  font-family: Georgia, serif;
  line-height: 1;
}

.blockquote-text {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  padding-top: var(--space-2);
}

.blockquote-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.blockquote-author-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
}

.blockquote-author-role {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}


/* ============================================================
   21. FLOWCHART — Horizontal
   ============================================================ */

.flowchart {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-block: var(--space-6);
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  min-width: 120px;
  flex-shrink: 0;
}

.flow-node {
  width: 100%;
  background: var(--color-card-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  transition: all var(--transition-base);
  cursor: default;
}

.flow-node:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-primary);
  transform: translateY(-2px);
}

.flow-node-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.flow-node-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  line-height: 1.3;
}

.flow-node-active {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--color-text-secondary);
  font-size: 1.25rem;
  padding: 0 var(--space-2);
  flex-shrink: 0;
  position: relative;
  top: -16px;
}

.flow-arrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-border), var(--color-primary-light));
  margin-right: -4px;
}

.flow-arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--color-primary-light);
}


/* ============================================================
   22. ACCORDION
   ============================================================ */

.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: white;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  text-align: left;
  transition: background var(--transition-fast);
  border: none;
}

.accordion-trigger:hover {
  background: var(--color-primary-bg);
}

.accordion-trigger.active {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--text-base);
  color: var(--color-primary);
  transition: transform var(--transition-base), background var(--transition-base);
}

.accordion-trigger.active .accordion-icon {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: white;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease;
}

.accordion-content.open {
  max-height: 600px;
}

.accordion-body {
  padding: var(--space-4) var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
  border-top: 1px solid var(--color-border);
}


/* ============================================================
   23. TABS
   ============================================================ */

.tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  gap: 0;
  overflow-x: auto;
}

.tab-btn {
  flex-shrink: 0;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: transparent;
}

.tab-panel {
  display: none;
  padding: var(--space-8) 0;
  animation: tabFadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pill style tabs */
.tabs-pills .tabs-nav {
  border-bottom: none;
  background: var(--color-primary-bg);
  padding: var(--space-1);
  border-radius: var(--radius-xl);
  display: inline-flex;
  gap: var(--space-1);
}

.tabs-pills .tab-btn {
  border-radius: var(--radius-lg);
  border-bottom: none;
  margin-bottom: 0;
  padding: var(--space-2) var(--space-5);
}

.tabs-pills .tab-btn.active {
  background: white;
  color: var(--color-primary);
  border-bottom: none;
  box-shadow: var(--shadow-sm);
}


/* ============================================================
   24. VALIDATION WIDGETS
   ============================================================ */

.validation-widget {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-block: var(--space-4);
  transition: all var(--transition-base);
}

.validation-widget.validated {
  border-color: var(--color-green);
  background: var(--color-green-bg);
}

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

.validation-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
}

.validation-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.btn-validate {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: white;
  background: var(--color-green);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.30);
}

.btn-validate:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.40);
}

.btn-validate.validated {
  background: #059669;
  pointer-events: none;
}

.btn-comment-toggle {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-comment-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.comment-area {
  margin-top: var(--space-4);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease;
}

.comment-area.open {
  max-height: 200px;
}

.comment-area textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-page-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color var(--transition-fast);
  font-family: var(--font-primary);
}

.comment-area textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 56, 224, 0.1);
}


/* ============================================================
   25. FOOTER — Dark Navy
   ============================================================ */

.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.65);
  padding-block: var(--space-16) var(--space-8);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(79, 56, 224, 0.12) 0%, transparent 70%);
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-logo {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: white;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  max-width: 280px;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

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

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}


/* ============================================================
   26. WHATSAPP FLOATING ACTION BUTTON
   ============================================================ */

.whatsapp-fab {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: fabAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}

@keyframes fabAppear {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.whatsapp-fab-label {
  background: white;
  color: var(--color-dark);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all var(--transition-base);
}

.whatsapp-fab:hover .whatsapp-fab-label {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-fab-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-spring);
  text-decoration: none;
  flex-shrink: 0;
}

.whatsapp-fab-btn:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.50);
  color: white;
}

/* Pulse ring */
.whatsapp-fab-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid #25D366;
  opacity: 0;
  animation: whatsappPulse 2.5s ease-out 2s infinite;
}

@keyframes whatsappPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}


/* ============================================================
   27. SECTION HEADER — Reusable Component
   ============================================================ */

.section-header {
  margin-bottom: var(--space-12);
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-label {
  justify-content: center;
}

.section-header.centered .section-label::before {
  display: none;
}


/* ============================================================
   28. DARK SECTION VARIANT
   ============================================================ */

.section-dark {
  background: var(--color-dark);
  color: white;
}

.section-dark .section-title {
  color: white;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.section-dark .section-label {
  color: rgba(167, 139, 250, 1);
}

.section-dark .section-label::before {
  background: rgba(167, 139, 250, 1);
}


/* ============================================================
   29. PRIORITY MATRIX TABLE
   ============================================================ */

.priority-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.priority-cell {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.priority-cell:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.priority-cell-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}


/* ============================================================
   30. GLASS HERO BOXES
   ============================================================ */

.hero-glass-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero-stat-number {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: white;
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ============================================================
   31. FEATURE LIST — With Icons
   ============================================================ */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.feature-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--color-primary);
}

.feature-item-content {}

.feature-item-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.feature-item-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
}


/* ============================================================
   32. CHECKLIST / TICK LIST
   ============================================================ */

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

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.checklist-item::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: var(--radius-full);
  background: var(--color-green-bg);
  color: var(--color-green);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  margin-top: 2px;
}


/* ============================================================
   33. TESTIMONIAL CARD
   ============================================================ */

.testimonial-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-slow);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: var(--space-1);
  color: var(--color-orange);
  margin-bottom: var(--space-4);
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: var(--space-5);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}


/* ============================================================
   34. UTILITY CLASSES
   ============================================================ */

/* Spacing */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden { display: none !important; }

/* Display */
.block        { display: block; }
.inline-block { display: inline-block; }
.inline-flex  { display: inline-flex; }

/* Colors */
.text-primary   { color: var(--color-primary); }
.text-dark      { color: var(--color-dark); }
.text-muted     { color: var(--color-text-secondary); }
.text-white     { color: white; }
.text-green     { color: var(--color-green); }
.text-orange    { color: var(--color-orange); }
.text-red       { color: var(--color-red); }
.text-blue      { color: var(--color-blue); }

.bg-primary     { background-color: var(--color-primary); }
.bg-primary-bg  { background-color: var(--color-primary-bg); }
.bg-dark        { background-color: var(--color-dark); }
.bg-white       { background-color: white; }
.bg-page        { background-color: var(--color-page-bg); }

/* Font weights */
.font-light    { font-weight: var(--weight-light); }
.font-normal   { font-weight: var(--weight-normal); }
.font-medium   { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold     { font-weight: var(--weight-bold); }

/* Widths */
.w-full { width: 100%; }
.max-w-prose { max-width: 65ch; }
.mx-auto { margin-inline: auto; }


/* ============================================================
   35. RESPONSIVE — Mobile-First Breakpoints
   ============================================================ */

/* Tablet — max-width: 1024px */
@media (max-width: 1024px) {
  :root {
    --container-max: 960px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .timeline-track {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-track::before {
    top: 0;
    bottom: 0;
    left: 20px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-item {
    flex-direction: row;
    gap: var(--space-5);
    width: 100%;
  }

  .timeline-content {
    text-align: left;
    padding-left: 0;
  }
}

/* Mobile — max-width: 768px */
@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
    --space-32: 6rem;
    --nav-height: 64px;
  }

  .container {
    padding-inline: var(--space-4);
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .priority-matrix {
    grid-template-columns: 1fr;
  }

  .flowchart {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-arrow {
    transform: rotate(90deg);
    top: 0;
    align-self: center;
  }

  .org-level {
    flex-direction: column;
    align-items: center;
  }

  .tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .accordion-trigger {
    font-size: var(--text-sm);
  }

  .blockquote-text {
    font-size: var(--text-base);
  }
}

/* Small Mobile — max-width: 480px */
@media (max-width: 480px) {
  :root {
    --space-24: 3rem;
  }

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

  .stat-number {
    font-size: 3rem;
  }

  .section {
    padding-block: var(--space-16);
  }

  .card,
  .module-card {
    padding: var(--space-6);
  }

  .whatsapp-fab {
    bottom: var(--space-4);
    right: var(--space-4);
  }
}


/* ============================================================
   36. PRINT STYLES
   ============================================================ */

@media print {
  .nav,
  .whatsapp-fab,
  #progress-bar,
  .hero-scroll-indicator {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .card, .module-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
    background: var(--color-dark) !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }

  a {
    color: inherit;
  }

  .section {
    padding-block: 2rem;
  }
}


/* ============================================================
   37. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   EOF — MAHANE ISRAEL Design System v1.0
   ============================================================ */
