/* ==========================================================================
   Distribia — Premium SaaS Marketing Site
   Refactored design system: hero, nav, sections, cards, typography
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS & RESET
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Noto+Sans+Arabic:wght@400;500;600;700&family=Tajawal:wght@400;500;700;800&display=swap');

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS — Premium SaaS
   -------------------------------------------------------------------------- */
:root {
  /* Primary — Premium Indigo & Purple Gradient */
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --primary-soft: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.15);
  
  /* Accent — Modern Emerald for trust/success */
  --accent: #10b981;
  --accent-soft: #ecfdf5;
  
  /* Surfaces */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-glass: rgba(255, 255, 255, 0.8);
  --border: #e2e8f0;

  /* Text — Ultra Readable Slate */
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-surface: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  --gradient-text: linear-gradient(135deg, #0f172a 0%, #475569 100%);

  /* Shape & Shadow */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 48px;
  --radius-full: 99px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 50px 100px -20px rgba(15, 23, 42, 0.15), 0 30px 60px -30px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-rtl: 'Tajawal', sans-serif;
  
  /* Layout */
  --nav-height: 80px;

  /* Transition */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: var(--nav-height);
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}



[dir="rtl"] {
  --font-main: 'Tajawal', 'Inter', system-ui, sans-serif;
  --font-heading: 'Tajawal', 'Plus Jakarta Sans', sans-serif;
}


/* --------------------------------------------------------------------------
   3. LAYOUT — Container & spacing
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY — Base & headings
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

p {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.9375rem;
  gap: 0.5rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-cta);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4);
}

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

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}


/* --------------------------------------------------------------------------
   6. NAVIGATION — Premium Glass Bar
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 1rem;
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.lang-switcher {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle, .nav-checkbox {
  display: none;
}

@media (max-width: 1024px) {
  .nav-inner {
    position: relative;
    flex-wrap: wrap;
  }
  .nav-links,
  .nav-cta {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 10;
  }
  .nav-checkbox:checked ~ .nav-links,
  .nav-checkbox:checked ~ .nav-cta {
    display: flex;
  }
  .nav-links a {
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-cta {
    padding-top: 0.5rem;
  }
  .nav-cta .v2-btn-primary {
    justify-content: center;
    min-height: 48px;
  }
  .nav-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
}


/* --------------------------------------------------------------------------
   7. HERO — Impactful with product side-by-side
   -------------------------------------------------------------------------- */
.hero {
  padding: 10rem 0 6rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

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

@media (max-width: 1024px) {
  .hero { padding-top: 8rem; }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-badge {
  display: inline-flex;
  padding: 0.5rem 1rem;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

@media (max-width: 1024px) {
  .hero-desc { margin-inline: auto; }
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (max-width: 1024px) {
  .hero-ctas { justify-content: center; }
}

.hero-trust {
  display: flex;
  gap: 2rem;
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .hero-trust { justify-content: center; }
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  background: white;
  padding: 0.5rem;
  border: 1px solid var(--border-soft);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: var(--transition-slow);
}

.hero-visual:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-visual img {
  border-radius: calc(var(--radius-lg) - 4px);
  display: block;
}


/* --------------------------------------------------------------------------
   8. STATS SECTION — Clean and centered
   -------------------------------------------------------------------------- */
.stats-section {
  padding: 4rem 0;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  margin: 0 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stats-card {
  padding: 1rem;
}

.stats-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stats-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* --------------------------------------------------------------------------
   9. SECTIONS — Impactful hierarchy
   -------------------------------------------------------------------------- */
.section {
  padding: 10rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-soft);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text);
}

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


/* --------------------------------------------------------------------------
   10. CARDS — Steps (How it works)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step {
  padding: 3rem 2rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition-slow);
  text-align: center;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-light);
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   11. FEATURES GRID — Premium Cards
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}


/* Offline / Sync block */
.offline-sync-block {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 3.5rem;
  padding: 2rem 2.25rem;
  background: var(--primary-soft);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-lg);
  max-width: 720px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}

.offline-sync-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  color: var(--primary);
}

.offline-sync-title {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.offline-sync-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

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

/* --------------------------------------------------------------------------
   12. EXAMPLES GRID (Screenshots)
   -------------------------------------------------------------------------- */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.example-fig {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.example-fig:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-soft);
  transform: translateY(-2px);
}

.example-fig-large {
  grid-column: span 2;
}

.example-fig img {
  transition: var(--transition);
}

.example-fig:hover img {
  transform: scale(1.02);
}

.example-caption {
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  color: var(--text);
  margin-top: 1.25rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   13. PROBLEM BANNER (CTA strip)
   -------------------------------------------------------------------------- */
.problem-banner {
  background: var(--gradient-banner);
  border-radius: var(--radius-2xl);
  padding: 5rem 3.5rem;
  color: white;
  text-align: center;
  box-shadow: var(--shadow-xl), 0 0 80px -16px rgba(79, 70, 229, 0.4);
  margin: 6rem 0;
  position: relative;
  overflow: hidden;
}

.problem-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.problem-banner-inner {
  position: relative;
  z-index: 2;
}

.problem-banner h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.problem-banner p {
  color: rgba(255,255,255,0.92);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.65;
}

.problem-banner .btn-secondary {
  background: rgba(255,255,255,0.95);
  color: var(--primary-dark);
  border: none;
}

.problem-banner .btn-secondary:hover {
  background: white;
  color: var(--primary-hover);
  transform: translateY(-2px);
}


/* --------------------------------------------------------------------------
   15. SOCIAL PROOF & TESTIMONIALS
   -------------------------------------------------------------------------- */
.social-proof-strip {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.social-proof-text {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.testimonial-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.testimonial-role {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   16. CTA BLOCK (Final CTA)
   -------------------------------------------------------------------------- */
/* Mobile Sales page — hero with image */
.mobile-sales-hero-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .mobile-sales-hero-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .mobile-sales-hero-wrap .section-head { text-align: left; margin-inline: 0; }
}
.mobile-sales-hero-visual {
  text-align: center;
  order: -1;
}
@media (min-width: 1024px) {
  .mobile-sales-hero-visual { order: 0; text-align: right; }
}
.mobile-sales-hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
[dir="rtl"] .mobile-sales-hero-visual { text-align: left; }

/* Testimonials — mission with illustration */
.mission-with-image {
  position: relative;
}
.mission-illustration {
  display: block;
  max-width: 280px;
  height: auto;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  opacity: 0.95;
}
@media (min-width: 768px) {
  .mission-illustration { margin-bottom: 2.5rem; }
}

.cta-block-extended {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 5.5rem 4rem;
  text-align: center;
  max-width: 900px;
  margin: 7rem auto;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
}

.cta-illustration {
  max-width: 320px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  opacity: 0.9;
}

.cta-block-extended:hover {
  box-shadow: var(--shadow-xl);
}

.cta-benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2.25rem 0;
}

.cta-benefits li {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   17. CONTACT / FORMS
   -------------------------------------------------------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-illustration {
  max-width: 280px;
  height: auto;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.contact-info h2 {
  font-size: clamp(1.875rem, 2.5vw, 2.5rem);
  margin-bottom: 1.25rem;
  color: var(--text);
  line-height: 1.25;
}

.contact-form {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-form:focus-within {
  box-shadow: var(--shadow-xl);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

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

.form-action {
  margin-top: 2rem;
}

.form-success, .form-error {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.form-success {
  background: #dcfce7;
  color: #166534;
}

.form-error {
  background: #fee2e2;
  color: #991b1b;
}

/* --------------------------------------------------------------------------
   18. PRICING — SaaS-style cards (Stripe / Notion / Shopify)
   -------------------------------------------------------------------------- */
.btn-block {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

.pricing-page-header {
  padding: 5rem 0 6.5rem;
  background: var(--gradient-hero-bg);
  position: relative;
}

.pricing-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-mesh);
  pointer-events: none;
}

.pricing-page-header .section-head {
  margin-bottom: 4rem;
}

.pricing-main-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem) !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 1.25rem !important;
}

.pricing-main-subtitle {
  font-size: 1.1875rem !important;
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin-inline: auto;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: url('../images/pricing-bg.svg') no-repeat top right;
  background-size: 120px 120px;
  opacity: 0.35;
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(79, 70, 229, 0.04);
  border-color: var(--border);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(79, 70, 229, 0.08);
  transform: scale(1.02);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: var(--shadow-xl), 0 0 32px -8px rgba(79, 70, 229, 0.2);
}

.pricing-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gradient-cta);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.4);
  z-index: 3;
}

.pricing-card-inner {
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.pricing-card.featured .pricing-card-inner {
  padding-top: 2.5rem;
}

.pricing-card-header {
  margin-bottom: 1.25rem;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.pricing-price-block {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-soft);
}

.pricing-amount {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pricing-period {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.pricing-annual-remise {
  width: 100%;
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}

.pricing-price-block.pricing-price-custom {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 1.75rem;
}

.pricing-price-block .pricing-price-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.pricing-features {
  margin: 0 0 1.75rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.pricing-features li:last-child {
  margin-bottom: 0;
}

.pricing-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.15em;
  background: var(--primary-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234f46e5'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-card-cta {
  margin-top: auto;
}

.pricing-card-cta .btn {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
}

.pricing-ops-section {
  padding: 5.5rem 0;
}

.pricing-ops-section .section-head {
  margin-bottom: 3.5rem;
}

.pricing-ops-section .features-saas {
  gap: 2rem;
}

.pricing-ops-section .feature-card-saas {
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
}

.pricing-ops-section .feature-card-saas:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.cta-pricing {
  margin-bottom: 5rem;
}

[dir="rtl"] .pricing-card::before {
  right: auto;
  left: 0;
  background-position: top left;
}

/* --------------------------------------------------------------------------
   19. FOOTER — Premium & Clean
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-subtle);
  padding: 8rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer h4 {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-soft);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

[dir="rtl"] .footer-links a:hover {
  transform: translateX(-4px);
}

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-soft);
}


/* --------------------------------------------------------------------------
   20. ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --------------------------------------------------------------------------
   21. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero-visual { display: none; }
}

@media (max-width: 1024px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
}

@media (max-width: 900px) {
  .examples-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .pricing-grid .pricing-card.featured { order: -1; }
  .pricing-page-header { padding: 4rem 0 5rem; }
  .pricing-page-header .section-head { margin-bottom: 3rem; }
  .pricing-card-inner { padding: 2rem 1.5rem; }
  .pricing-card.featured .pricing-card-inner { padding-top: 2.25rem; }
  .example-fig-large { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 5.5rem 0; }
}

@media (max-width: 768px) {
  .hero-image {
    width: 100%;
    height: auto;
  }
  .step-icon {
    width: 56px;
    height: 56px;
  }
  .cta-illustration {
    max-width: 260px;
  }
  .testimonial-avatar {
    width: 72px;
    height: 72px;
  }
  .nav-links, .nav-cta {
    display: none;
    position: absolute;
    top: 80px;
    left: 0; right: 0;
    background: var(--surface);
    padding: 2rem;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-checkbox:checked ~ .nav-links,
  .nav-checkbox:checked ~ .nav-cta {
    display: flex;
  }
  .nav-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
  }
  .steps, .roles-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { min-width: 100%; }
  .cta-benefits { flex-direction: column; gap: 1rem; }
  .cta-block-extended { padding: 3.5rem 1.75rem; margin: 5rem auto; }
  .problem-banner { padding: 3.5rem 1.75rem; margin: 4rem 0; }
  .contact-info h2 { font-size: 2rem; }
  .contact-form { padding: 2rem; }
  .section { padding: 4.5rem 0; }
  .section-head { margin-bottom: 3rem; }
}

@media (max-width: 600px) {
  .stats-inner { flex-direction: column; text-align: center; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
}

/* Footer responsive (v2 footer) */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  footer.v2-section {
    padding: 3rem 0 1.5rem !important;
  }
}

/* Social links (footer, contact, nav) */
.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.social-link {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
}
.social-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.contact-social .social-links { margin-top: 1.5rem; }

/* Fixed WhatsApp button (right side) */
.whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}
.whatsapp-fab:focus {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}
[dir="rtl"] .whatsapp-fab {
  right: auto;
  left: 1.5rem;
}

/* --------------------------------------------------------------------------
   22. RTL (Arabic) — improved font and larger subtitles/labels
   -------------------------------------------------------------------------- */
[dir="rtl"] {
  /* Slightly larger base for Arabic readability */
  font-size: 1.0625rem;
}

[dir="rtl"] .section-label {
  font-size: 1rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

[dir="rtl"] .section-title {
  font-size: clamp(2.15rem, 3.8vw, 3.25rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

[dir="rtl"] .section-subtitle {
  font-size: 1.3125rem;
  line-height: 1.8;
  color: var(--text);
  font-weight: 500;
}

[dir="rtl"] .hero h1 {
  font-size: clamp(3rem, 5.8vw, 4.75rem);
  line-height: 1.25;
}

[dir="rtl"] .hero-desc {
  font-size: 1.35rem;
  line-height: 1.75;
}

[dir="rtl"] .hero h1,
[dir="rtl"] .hero-desc,
[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .contact-info,
[dir="rtl"] .footer-brand {
  text-align: right;
}

[dir="rtl"] .hero-ctas { justify-content: flex-end; }
[dir="rtl"] .hero-trust { justify-content: flex-end; }
@media (min-width: 1024px) {
  [dir="rtl"] .hero .container { text-align: right; }
  [dir="rtl"] .hero-ctas { justify-content: flex-end; }
  [dir="rtl"] .hero-trust { justify-content: flex-end; }
  [dir="rtl"] .hero-content { order: 2; }
  [dir="rtl"] .hero-visual { order: 1; }
}

[dir="rtl"] .pricing-features li {
  flex-direction: row-reverse;
}
[dir="rtl"] .pricing-features li::before {
  margin-top: 0.15em;
}

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

[dir="rtl"] .stat-label,
[dir="rtl"] .section-label,
[dir="rtl"] .social-proof-text {
  letter-spacing: normal;
}

/* RTL nav: keep natural flow so logo is right, links center, CTA left (no row-reverse) */
[dir="rtl"] .nav-inner {
  direction: rtl;
}

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

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

[dir="rtl"] .feature-card,
[dir="rtl"] .step,
[dir="rtl"] .role-card,
[dir="rtl"] .pricing-card {
  text-align: right;
}

[dir="rtl"] .feature-icon {
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .offline-sync-block {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .contact-wrap { direction: rtl; }
[dir="rtl"] .footer-inner { direction: rtl; }
[dir="rtl"] .footer-bottom { direction: rtl; }
[dir="rtl"] .section-head { direction: rtl; }
[dir="rtl"] .hero-badge { direction: rtl; }
[dir="rtl"] .cta-benefits { direction: rtl; }
[dir="rtl"] .cta-block-extended { direction: rtl; }
[dir="rtl"] .problem-banner-inner { direction: rtl; }
[dir="rtl"] .testimonial-block { direction: rtl; }
[dir="rtl"] .stats-inner { direction: rtl; }
[dir="rtl"] .examples-grid { direction: rtl; }
[dir="rtl"] .pricing-grid { direction: rtl; }
[dir="rtl"] .roles-grid { direction: rtl; }

[dir="rtl"] .form-group label { text-align: right; }
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea {
  text-align: right;
  direction: rtl;
}

@media (max-width: 768px) {
  [dir="rtl"] .nav-links { text-align: right; }
  [dir="rtl"] .nav-links,
  [dir="rtl"] .nav-cta {
    right: 0;
    left: 0;
  }
}

/* ==========================================================================
   SaaS LANDING — Hero, Stats, Features, Dashboard, Steps, FAQ, CTA
   ========================================================================== */

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

/* Hero SaaS — premium, high-impact */
.hero-saas {
  padding: 6rem 0 7rem;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-bg);
  opacity: 1;
}

.hero-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(99, 102, 241, 0.06) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-bg-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-mesh);
  pointer-events: none;
}

.hero-saas .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 1024px) {
  .hero-saas .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem 5rem;
    text-align: left;
    align-items: center;
    padding: 0 2rem;
  }
  .hero-saas .hero-ctas { justify-content: flex-start; }
  .hero-saas .hero-trust { justify-content: flex-start; }
}

.hero-saas .hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8125rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255,255,255,0.8);
}

.hero-saas .hero-title {
  font-size: clamp(2.75rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.hero-saas .hero-desc {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  color: var(--text-muted);
  max-width: 520px;
}

@media (min-width: 1024px) {
  .hero-saas .hero-desc { margin-inline: 0; }
}

.hero-saas .hero-ctas {
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-saas .hero-ctas .btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  min-width: 200px;
}

.hero-saas .hero-trust {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 600;
  gap: 1.5rem;
}

.hero-visual-saas {
  position: relative;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow-sm), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.hero-visual-saas::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), transparent 40%, rgba(139,92,246,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-visual-saas:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow), 0 0 0 1px rgba(79,70,229,0.1);
  transform: translateY(-6px);
}

.hero-visual-saas img {
  border-radius: var(--radius-xl);
  width: 100%;
  display: block;
}

/* Stats section — premium KPI cards */
.stats-section {
  padding: 4rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

.stats-section .container {
  max-width: 1100px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.stats-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.stats-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(79, 70, 229, 0.06);
  transform: translateY(-4px);
}

.stats-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stats-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.45;
  max-width: 140px;
  margin-left: auto;
  margin-right: auto;
}

/* Trusted by */
.trusted-section {
  padding: 3.5rem 0;
  text-align: center;
  background: var(--surface);
}

.trusted-text {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 720px;
  margin-inline: auto;
  letter-spacing: -0.01em;
}

/* Features SaaS — premium grid */
.section-features {
  padding: 9rem 0;
}

.section-features .section-head {
  margin-bottom: 5.5rem;
}

.features-saas {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card-saas {
  padding: 2.75rem;
  border-radius: var(--radius-xl);
}

.feature-card-saas .feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
}

.feature-card-saas .feature-icon img {
  width: 30px;
  height: 30px;
}

.feature-card-saas h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

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

/* Dashboard preview — premium frame */
.dashboard-preview {
  padding: 9rem 0;
}

.dashboard-mockup {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--shadow-glow-sm), 0 0 0 1px rgba(0,0,0,0.04);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  padding: 1rem;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
}

.dashboard-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dashboard-mockup.revealed {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-mockup img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

.dashboard-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .dashboard-extras {
    grid-template-columns: 1fr;
  }
}

.dashboard-extra {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.dashboard-extra:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-soft);
}

.dashboard-extra img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.dashboard-extra .example-caption {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* Steps SaaS — premium cards */
.section-steps {
  padding: 9rem 0;
}

.steps-saas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-saas {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step-saas {
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
}

.step-saas .step-num {
  margin-bottom: 1.25rem;
}

.step-saas .step-icon {
  margin-bottom: 1rem;
}

/* Integrations */
.integrations-section {
  padding: 8rem 0;
}

.integrations-section .section-head {
  margin-bottom: 4rem;
}

.integrations-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.integration-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-xs);
}

.integration-pill:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(79, 70, 229, 0.08);
  transform: translateY(-2px);
}

/* Pricing teaser */
.pricing-teaser {
  padding: 8rem 0;
}

.pricing-teaser .section-head {
  margin-bottom: 3rem;
}

.pricing-teaser-cta {
  text-align: center;
  margin-top: 0;
}

/* Testimonials grid — premium card */
.testimonials-section {
  padding: 9rem 0;
}

.testimonials-section .section-head {
  margin-bottom: 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.testimonials-section .testimonials-grid {
  max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
  background: var(--surface);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-soft);
  line-height: 1;
  font-family: Georgia, serif;
}

[dir="rtl"] .testimonial-card::before {
  left: auto;
  right: 2rem;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.testimonial-card .testimonial-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  border: 3px solid var(--primary-soft);
  object-fit: cover;
}

.testimonial-card .testimonial-quote {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.testimonial-card .testimonial-role {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* FAQ — premium accordion */
.faq-section {
  padding: 9rem 0;
}

.faq-section .section-head {
  margin-bottom: 4rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

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

.faq-item:first-child {
  border-top: none;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: start;
  transition: var(--transition);
}

.faq-q:hover {
  color: var(--primary);
  background: var(--surface-2);
}

.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  margin-inline-start: 1rem;
  transition: transform 0.25s ease;
}

.faq-item[data-open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  overflow: hidden;
}

.faq-a p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

[dir="rtl"] .faq-q {
  text-align: right;
}

[dir="rtl"] .faq-q::after {
  margin-inline-start: 0;
  margin-inline-end: 1rem;
}

/* FAQ open state via JS */
.faq-item[data-open] .faq-a {
  display: block;
}

.faq-item .faq-a[hidden] {
  display: none;
}

/* Final CTA — premium full-width gradient */
.cta-final {
  position: relative;
  padding: 9rem 0;
  overflow: hidden;
}

.cta-final-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-banner);
  pointer-events: none;
}

.cta-final-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 20%, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.cta-final-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-final .container {
  position: relative;
  z-index: 1;
}

.cta-final-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  color: white;
}

.cta-final-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  margin-bottom: 1.25rem;
  color: white;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta-final-desc {
  font-size: 1.25rem;
  margin-bottom: 1.75rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
}

.cta-final .cta-benefits {
  justify-content: center;
  margin-bottom: 2.25rem;
  color: rgba(255,255,255,0.95);
  font-size: 1.0625rem;
}

.cta-final-btn {
  background: white;
  color: var(--primary-dark);
  box-shadow: var(--shadow-xl);
  padding: 1.1rem 2.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.cta-final-btn:hover {
  background: var(--surface);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* --------------------------------------------------------------------------
   V2 DESIGN SYSTEM — Premium SaaS standard
   -------------------------------------------------------------------------- */
.v2-section {
    padding: 8rem 0;
    position: relative;
}

@media (max-width: 768px) {
    .v2-section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .v2-section {
        padding: 3rem 0;
    }
}

.v2-hero {
    padding: 7rem 0 5rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .v2-hero {
        padding: 5rem 0 3.5rem;
    }
}

@media (max-width: 480px) {
    .v2-hero {
        padding: 4rem 0 2.5rem;
    }
}

.v2-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 1024px) {
    .v2-hero-grid {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
        text-align: left;
    }
    .v2-hero-content {
        flex: 1.2;
        min-width: 0;
        width: 100%;
        text-align: left;
    }
    .v2-hero-visual {
        flex: 1;
    }
}

[dir="rtl"] .v2-hero-grid,
[dir="rtl"] .v2-hero-content {
    text-align: right;
}

.v2-hero-desc {
    margin-bottom: 1.75rem;
}

.v2-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .v2-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .v2-cta-group .v2-btn-primary,
    .v2-cta-group .v2-btn-outline {
        width: 100%;
        justify-content: center;
    }
}

.v2-btn-outline-hero {
    border-color: rgba(79, 70, 229, 0.25);
    color: var(--primary);
}

.v2-btn-outline-hero:hover {
    background: var(--primary-soft);
    border-color: var(--primary-light);
}

/* Hero highlights — outside left column, full-width row below hero grid */
.v2-hero-highlights {
    margin-top: 2.5rem;
    padding: 2rem 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    background: var(--bg-subtle);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
}

@media (max-width: 480px) {
    .v2-hero-highlights {
        margin-top: 2rem;
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }
}

@media (min-width: 640px) {
    .v2-hero-highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        padding: 2rem 2.5rem;
    }
}

.v2-hero-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    padding: 0.5rem 0;
}

@media (min-width: 640px) {
    .v2-hero-highlight {
        padding: 0 1.5rem;
    }
    .v2-hero-highlight:not(:first-child) {
        border-left: 1px solid var(--border);
    }
}

[dir="rtl"] .v2-hero-highlight:not(:first-child) {
    border-left: none;
    border-right: 1px solid var(--border);
}

.v2-hero-highlight__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.v2-hero-highlight__text {
    min-width: 0;
}

.v2-hero-highlight__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 0.35rem;
}

.v2-hero-highlight__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.v2-hero-visual {
    position: relative;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.v2-hero-visual img {
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow-premium);
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: var(--transition-smooth);
}

.v2-hero-visual:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.v2-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 640px) {
    .v2-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.home-v2 .v2-container {
    max-width: none;
    width: 100%;
}

@media (max-width: 640px) {
    .home-v2 .v2-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.v2-h1 {
    font-size: clamp(1.875rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.v2-h2 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.v2-p-large {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 680px;
}

.v2-hero-desc {
    font-size: 1.125rem;
    line-height: 1.65;
    max-width: 540px;
}

.v2-badge {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.v2-btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.v2-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5);
}

.v2-btn-outline {
    background: white;
    color: var(--text);
    padding: 1rem 2.5rem;
    border-radius: 99px;
    font-weight: 700;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.v2-btn-outline:hover {
    background: var(--bg-subtle);
}

.v2-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 640px) {
    .v2-features-grid {
        gap: 1.25rem;
        margin-top: 2.5rem;
    }
}

@media (max-width: 480px) {
    .v2-feature-card {
        padding: 2rem 1.5rem;
    }
}

.v2-feature-card {
    padding: 3rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.v2-feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.v2-feature-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-subtle);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.v2-feature-card:hover .v2-feature-icon {
    background: var(--primary);
    color: white;
    transform: rotate(8deg);
}

.v2-stats {
    background: var(--bg-subtle);
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
    .v2-stats {
        padding: 2rem 0;
    }
}

.v2-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .v2-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
}

.v2-stat-item {
    padding: 1rem 0.5rem;
}

@media (min-width: 768px) {
    .v2-stat-item {
        padding: 1.25rem 1.5rem;
    }
    .v2-stat-item:not(:last-child) {
        border-inline-end: 1px solid var(--border);
    }
}

[dir="rtl"] .v2-stat-item:not(:last-child) {
    border-inline-end: none;
    border-inline-start: 1px solid var(--border);
}

.v2-stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

@media (min-width: 768px) {
    .v2-stat-value {
        font-size: 2.5rem;
    }
}

.v2-stat-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.35;
    max-width: 140px;
    margin-inline: auto;
}

@media (max-width: 480px) {
    .v2-stat-value {
        font-size: 2rem;
    }
    .v2-stat-label {
        font-size: 0.8125rem;
        max-width: 120px;
    }
}

.v2-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
    align-items: center;
}

@media (max-width: 768px) {
    .v2-showcase-grid:not(.footer-grid) {
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .v2-showcase-grid:not(.footer-grid) {
        grid-template-columns: 1fr 1fr;
    }
}

.v2-showcase-visual {
    position: relative;
    border-radius: 32px;
    padding: 1rem;
    background: var(--bg-subtle);
}

.v2-showcase-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.v2-showcase-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.v2-showcase-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-weight: 500;
}

.v2-showcase-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.v2-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.v2-step-card {
    text-align: center;
    position: relative;
}

.v2-step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 850;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.v2-infra {
    background: var(--bg-subtle);
    border-radius: 48px;
    margin: 0 2rem;
}

.v2-infra-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .v2-infra-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.v2-check-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.v2-check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.v2-check-icon {
    color: var(--accent);
}

/* RTL Support */
[dir="rtl"] .v2-h1, 
[dir="rtl"] .v2-h2, 
[dir="rtl"] .v2-stat-value,
[dir="rtl"] .v2-step-number {
    font-family: var(--font-rtl);
}

[dir="rtl"] .v2-hero-visual img {
    transform: perspective(1000px) rotateY(8deg) rotateX(4deg);
}
[dir="rtl"] .v2-hero-visual:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* V2 Forms */
.v2-form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.v2-label {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text);
}

.v2-input, .v2-textarea {
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.v2-input:focus, .v2-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

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

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

/* ==========================================================================
   Page Loader — Shipvite-style (Distribia)
   ========================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

.page-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  text-align: center;
  padding: 2rem;
}

.page-loader__brand {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  animation: pageLoaderFadeIn 0.8s ease-out;
}

.page-loader__tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
  animation: pageLoaderFadeIn 0.8s ease-out 0.15s both;
}

.page-loader__bar {
  width: 200px;
  height: 3px;
  margin: 0 auto;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
  animation: pageLoaderFadeIn 0.8s ease-out 0.25s both;
}

.page-loader__bar-fill {
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: var(--gradient-primary);
  animation: pageLoaderBar 1.4s ease-in-out infinite;
}

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

@keyframes pageLoaderBar {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(250%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* --------------------------------------------------------------------------
   PRICING PAGE — Overview, detail cards, tables, FAQ
   -------------------------------------------------------------------------- */
.pricing-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-overview-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.pricing-overview-card--popular {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 0 0 1px var(--primary-soft);
}

.pricing-overview-badge {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.pricing-overview-emoji {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.pricing-overview-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.pricing-overview-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.pricing-overview-price span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-overview-price--contact {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-overview-limits {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-overview-limits li {
  margin-bottom: 0.35rem;
}

.pricing-detail-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pricing-detail-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  position: relative;
}

.pricing-detail-card--highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-soft);
}

.pricing-detail-badge {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
}

[dir="rtl"] .pricing-detail-badge {
  right: auto;
  left: 2rem;
}

.pricing-detail-price-block {
  margin-bottom: 2rem;
}

.pricing-detail-price {
  font-size: 2rem;
  font-weight: 850;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.pricing-detail-price span {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-detail-price--contact {
  font-size: 1.5rem;
  color: var(--text);
}

.pricing-detail-annual {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricing-detail-tables h4 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 1.5rem 0 0.75rem;
}

.pricing-detail-tables h4:first-child {
  margin-top: 0;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.pricing-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-table td:last-child {
  text-align: right;
}

[dir="rtl"] .pricing-table td:last-child {
  text-align: left;
}

.pricing-module-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.pricing-module-list li {
  padding: 0.35rem 0;
  padding-inline-start: 1.5rem;
  position: relative;
}

.pricing-module-list li.yes::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-module-list li.no::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--text-soft);
}

[dir="rtl"] .pricing-module-list li.yes::before,
[dir="rtl"] .pricing-module-list li.no::before {
  left: auto;
  right: 0;
  padding-inline-start: 0;
  padding-inline-end: 1.5rem;
}

.pricing-support-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.pricing-compare-table,
.pricing-addons-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pricing-compare-table th,
.pricing-compare-table td,
.pricing-addons-table th,
.pricing-addons-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pricing-compare-table th:first-child,
.pricing-compare-table td:first-child,
.pricing-addons-table th:first-child,
.pricing-addons-table td:first-child {
  text-align: start;
}

[dir="rtl"] .pricing-compare-table th:first-child,
[dir="rtl"] .pricing-compare-table td:first-child,
[dir="rtl"] .pricing-addons-table th:first-child,
[dir="rtl"] .pricing-addons-table td:first-child {
  text-align: end;
}

.pricing-compare-table thead th,
.pricing-addons-table thead th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text);
}

.pricing-faq {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pricing-faq-item h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.pricing-faq-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--primary-soft);
}

[dir="rtl"] .pricing-faq-item p {
  padding-inline-start: 0;
  padding-inline-end: 1rem;
  border-inline-start: none;
  border-inline-end: 3px solid var(--primary-soft);
}

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

@media (max-width: 640px) {
  .pricing-overview-grid {
    grid-template-columns: 1fr;
  }

  .pricing-detail-card {
    padding: 1.5rem 1.25rem;
  }

  .pricing-detail-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }

  .pricing-compare-table,
  .pricing-addons-table {
    font-size: 0.8125rem;
  }

  .pricing-compare-table th,
  .pricing-compare-table td,
  .pricing-addons-table th,
  .pricing-addons-table td {
    padding: 0.5rem 0.5rem;
  }
}


.clearfix{
  clear: both;
}