/* ==========================================================================
   Novix CSS Guidelines - Clean Code & DRY Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   Variables (Brand Guidelines)
   ========================================================================== */
:root {
  /* Colors */
  --brand-navy: #172238;
  --tech-blue: #2563EB;
  --electric-cyan: #22C7E8;
  --soft-blue: #EAF2FF;
  --off-white: #F7F8FA;
  --slate-gray: #667085;
  --deep-slate: #0F172A;
  
  --white: #ffffff;
  --border-color: #eaeaea;

  /* Typography */
  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-en: 'Manrope', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1200px;
}

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

body {
  font-family: var(--font-ar); /* Default to Arabic */
  background-color: var(--off-white);
  color: var(--brand-navy);
  line-height: 1.6;
  direction: rtl; /* RTL Support */
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Reusable UI Components (DRY Principles)
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-ar);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--tech-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: var(--brand-navy);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--deep-slate);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--slate-gray);
  color: var(--slate-gray);
}

.btn-outline:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 64px;
  height: 64px;
  background-color: var(--soft-blue);
  color: var(--tech-blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

/* Tags/Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  background-color: var(--soft-blue);
  color: var(--tech-blue);
  margin-bottom: 16px;
}

/* Section Titles */
.section-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 36px;
  color: var(--brand-navy);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--slate-gray);
}

/* ==========================================================================
   Layout & Sections
   ========================================================================== */

/* Navbar & Mega Menu */
.navbar {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-navy);
  font-family: var(--font-en);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--tech-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  font-size: 15px;
}

.arrow-down {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.nav-item:hover .arrow-down {
  transform: rotate(180deg);
}

.nav-link:hover {
  color: var(--tech-blue);
}

/* Mega Menu Dropdowns */
.mega-menu {
  position: absolute;
  top: 100%;
  right: -50px;
  width: 620px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1001;
  border: 1px solid var(--border-color);
}

.mega-menu-wide {
  width: 820px;
  right: -180px;
}

.mega-menu-extra-wide {
  width: 1040px;
  right: -320px;
}

@media (max-width: 1200px) {
  .mega-menu-extra-wide {
    width: 900px;
    right: -200px;
  }
}

.nav-item.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.mega-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.mega-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mega-sublist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-sublist li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--navy-dark);
  transition: all 0.2s ease;
  font-weight: 500;
  text-decoration: none;
}

.mega-sublist li a:hover {
  background-color: var(--soft-blue);
  color: var(--tech-blue);
  transform: translateX(-3px);
}

.mega-category-link {
  font-weight: 700 !important;
  color: var(--tech-blue) !important;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 6px !important;
  margin-bottom: 4px;
}

.mega-title {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--slate-gray);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-list li a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-size: 14px;
  color: var(--brand-navy);
}

.mega-list li a:hover {
  background-color: var(--soft-blue);
  color: var(--tech-blue);
}

.mega-icon {
  font-size: 20px;
  line-height: 1;
}

.mega-list li a strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.mega-list li a p {
  font-size: 12px;
  color: var(--slate-gray);
  margin: 0;
  line-height: 1.4;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--brand-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Hero Slider Section */
.hero-slider {
  background-color: var(--deep-slate);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.slider-wrapper {
  width: 100%;
  position: relative;
  min-height: 640px;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-30px);
  pointer-events: none;
  z-index: 1;
  padding: 80px 0 100px;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

/* Slide Dynamic Backgrounds */
.slide-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.slide-bg-1 {
  background: radial-gradient(circle at 85% 30%, var(--tech-blue) 0%, transparent 60%),
              radial-gradient(circle at 15% 70%, var(--electric-cyan) 0%, transparent 50%);
}

.slide-bg-2 {
  background: radial-gradient(circle at 20% 30%, #8b5cf6 0%, transparent 60%),
              radial-gradient(circle at 80% 70%, var(--electric-cyan) 0%, transparent 50%);
}

.slide-bg-3 {
  background: radial-gradient(circle at 75% 40%, #059669 0%, transparent 60%),
              radial-gradient(circle at 20% 60%, var(--tech-blue) 0%, transparent 50%);
}

.slide-bg-4 {
  background: radial-gradient(circle at 80% 30%, #0284c7 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, #06b6d4 0%, transparent 50%);
}

.slide-bg-5 {
  background: radial-gradient(circle at 70% 30%, #ea580c 0%, transparent 60%),
              radial-gradient(circle at 30% 70%, var(--tech-blue) 0%, transparent 50%);
}

.slide-bg-6 {
  background: radial-gradient(circle at 85% 50%, #10b981 0%, transparent 60%),
              radial-gradient(circle at 15% 50%, var(--tech-blue) 0%, transparent 50%);
}

.slide-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.badge-accent {
  background-color: rgba(34, 199, 232, 0.15);
  color: var(--electric-cyan);
  border: 1px solid rgba(34, 199, 232, 0.3);
  margin-bottom: 20px;
  display: inline-block;
}

.hero-title {
  font-size: 50px;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-title span {
  color: var(--electric-cyan);
  display: inline-block;
}

.hero-desc {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.8;
}

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

.hero-btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
}

.hero-btn-outline:hover {
  border-color: var(--white);
  color: var(--brand-navy);
  background-color: var(--white);
}

/* Dashboard Mockup / Visual Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.slider-mockup-frame {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.8);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.slider-mockup-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 70px -12px rgba(0, 0, 0, 0.8), 0 0 50px rgba(34, 199, 232, 0.35);
}

.slider-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.dashboard-preview {
  width: 100%;
  max-width: 440px;
  background: rgba(23, 34, 56, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(37, 99, 235, 0.15);
  overflow: hidden;
  backdrop-filter: blur(16px);
  padding: 24px;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.preview-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-header .dot.red { background-color: #ef4444; }
.preview-header .dot.yellow { background-color: #f59e0b; }
.preview-header .dot.green { background-color: #10b981; }

.preview-title {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--slate-gray);
  margin-right: auto;
}

.preview-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.preview-metric span {
  font-size: 13px;
  color: var(--slate-gray);
}

.preview-metric strong {
  font-size: 26px;
  font-family: var(--font-en);
  color: var(--white);
}

.preview-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 90px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  margin-bottom: 18px;
}

.preview-bars .bar {
  flex: 1;
  background-color: rgba(37, 99, 235, 0.4);
  border-radius: 6px;
  transition: height 0.5s ease;
}

.preview-bars .bar.active {
  background-color: var(--electric-cyan);
  box-shadow: 0 0 12px rgba(34, 199, 232, 0.6);
}

.preview-tag {
  font-size: 13px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 199, 232, 0.08);
  padding: 8px 14px;
  border-radius: 8px;
  border-right: 3px solid var(--electric-cyan);
}

/* Slider Controls & Navigation */
.slider-nav {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 10;
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 16px;
}

.slider-arrow:hover {
  background: var(--tech-blue);
  border-color: var(--tech-blue);
  transform: scale(1.08);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.dot-btn:hover {
  background: rgba(255, 255, 255, 0.6);
}

.dot-btn.active {
  width: 36px;
  border-radius: 10px;
  background: var(--electric-cyan);
  box-shadow: 0 0 10px rgba(34, 199, 232, 0.5);
}

.slider-counter {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

/* Competitive Advantage (AI Focus) */
.advantage {
  padding: var(--section-padding);
  background-color: var(--white);
}

.advantage .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background-color: var(--soft-blue);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
}

.stat-card:nth-child(2) {
  transform: translateY(32px);
  background-color: var(--off-white);
  border: 1px solid var(--border-color);
}

.stat-value {
  font-size: 40px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-top: 16px;
  margin-bottom: 8px;
  font-family: var(--font-en);
}

/* Key Features */
.features {
  padding: var(--section-padding);
  background-color: var(--off-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* Testimonials */
.testimonials {
  padding: var(--section-padding);
  background-color: var(--brand-navy);
  color: var(--white);
}

.testimonials .section-title {
  color: var(--white);
}

.testimonial-card {
  background-color: var(--white);
  color: var(--brand-navy);
  padding: 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote {
  font-size: 18px;
  color: var(--slate-gray);
  margin-bottom: 24px;
  font-style: italic;
}

.author-name {
  font-weight: 700;
}

.author-role {
  font-size: 14px;
  color: var(--slate-gray);
}

/* Footer */
.footer {
  background-color: var(--deep-slate);
  color: var(--slate-gray);
  padding: 64px 0 32px;
  border-top: 4px solid var(--tech-blue);
}

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

.footer-title {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--electric-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

/* Trust Bar / Logos */
.trust-bar {
  background-color: var(--white);
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.trust-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-gray);
  margin-bottom: 20px;
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.logo-item {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-gray);
  opacity: 0.75;
  transition: all 0.3s ease;
  cursor: default;
}

.logo-item:hover {
  opacity: 1;
  color: var(--brand-navy);
  transform: translateY(-2px);
}

/* Industries & Sectors Section */
.industries-section {
  padding: var(--section-padding);
  background-color: var(--white);
}

.industry-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background-color: var(--off-white);
  color: var(--slate-gray);
  font-family: var(--font-ar);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  border-color: var(--tech-blue);
  color: var(--tech-blue);
}

.tab-btn.active {
  background-color: var(--tech-blue);
  color: var(--white);
  border-color: var(--tech-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.08);
  border-color: var(--tech-blue);
}

.ind-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.ind-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tech-blue);
  background: var(--soft-blue);
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 12px;
}

.industry-card h3 {
  font-size: 20px;
  color: var(--brand-navy);
  margin-bottom: 12px;
}

.industry-card p {
  font-size: 14px;
  color: var(--slate-gray);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.ind-features {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ind-features li {
  font-size: 13px;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ind-features li::before {
  content: "✓";
  color: var(--tech-blue);
  font-weight: bold;
}

/* FAQ Accordion Section */
.faq-section {
  padding: var(--section-padding);
  background-color: var(--off-white);
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: var(--tech-blue);
  box-shadow: 0 6px 18px -4px rgba(37, 99, 235, 0.08);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-ar);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-navy);
  text-align: right;
  cursor: pointer;
  gap: 16px;
}

.faq-question:hover {
  color: var(--tech-blue);
}

.faq-toggle {
  font-size: 14px;
  color: var(--slate-gray);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
  color: var(--tech-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 28px 24px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--slate-gray);
  line-height: 1.8;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--tech-blue), var(--electric-cyan));
  text-align: center;
  color: var(--white);
}

.cta-title {
  font-size: 44px;
  margin-bottom: 20px;
  font-weight: 800;
}

.cta-desc {
  font-size: 19px;
  max-width: 650px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
}

/* Lead Generation Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 580px;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--off-white);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--slate-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--brand-navy);
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-title {
  font-size: 24px;
  color: var(--brand-navy);
  margin-top: 10px;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--slate-gray);
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-navy);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: var(--font-ar);
  font-size: 14px;
  color: var(--brand-navy);
  background-color: var(--off-white);
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--tech-blue);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px 12px;
}

.form-success.show {
  display: block;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #10b981;
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h4 {
  font-size: 22px;
  color: var(--brand-navy);
  margin-bottom: 12px;
}

.form-success p {
  font-size: 15px;
  color: var(--slate-gray);
  line-height: 1.8;
}

/* ==========================================================================
   Subpages & Inner Pages Components
   ========================================================================== */

/* Subpage Hero Banner */
.subpage-hero {
  background-color: var(--deep-slate);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--slate-gray);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #94a3b8;
}

.breadcrumb a:hover {
  color: var(--electric-cyan);
}

.breadcrumb-sep {
  opacity: 0.5;
}

.subpage-title {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
}

.subpage-desc {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Pricing Page Styles */
.pricing-section {
  padding: var(--section-padding);
  background-color: var(--off-white);
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.toggle-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-navy);
}

.pricing-switch {
  position: relative;
  width: 60px;
  height: 32px;
  background-color: #cbd5e1;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pricing-switch.active {
  background-color: var(--tech-blue);
}

.pricing-switch::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pricing-switch.active::after {
  transform: translateX(-28px);
}

.save-badge {
  background-color: rgba(34, 199, 232, 0.15);
  color: #0284c7;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(34, 199, 232, 0.3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border: 2px solid var(--tech-blue);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tech-blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 14px;
  color: var(--slate-gray);
  margin-bottom: 24px;
  min-height: 42px;
}

.price-box {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-en);
  color: var(--brand-navy);
}

.price-currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--slate-gray);
  margin-right: 4px;
}

.price-period {
  font-size: 14px;
  color: var(--slate-gray);
}

.plan-features-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 16px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.plan-features li {
  font-size: 14px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: "✓";
  color: var(--tech-blue);
  font-weight: 800;
}

.plan-btn {
  width: 100%;
}

/* Pain Points / Challenges & Solutions Component */
.challenges-section {
  padding: var(--section-padding);
  background-color: var(--white);
}

.challenges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.challenge-box {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 16px;
  padding: 28px;
}

.challenge-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 12px;
}

.solution-box {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 16px;
  padding: 28px;
}

.solution-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 12px;
}

/* Contact Page Styles */
.contact-section {
  padding: var(--section-padding);
  background-color: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.contact-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background-color: var(--soft-blue);
  color: var(--tech-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 16px;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  color: var(--slate-gray);
  line-height: 1.6;
}

.contact-map-card {
  margin-top: 32px;
  height: 200px;
  background: #e2e8f0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-gray);
  font-size: 14px;
  border: 1px dashed #cbd5e1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }
  .challenges-grid {
    grid-template-columns: 1fr;
  }
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.35s ease;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
  }

  .mega-menu, .mega-menu-wide, .mega-menu-extra-wide {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 12px 0 20px;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav-item.open-mobile .mega-menu {
    display: block;
  }

  .mega-grid, .mega-grid-3, .mega-grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .slide-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 10px;
  }
  .advantage .container, .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat-card:nth-child(2) {
    transform: none;
  }
  .nav-login-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-slider, .slider-wrapper {
    min-height: 720px;
  }
  .slide {
    padding: 60px 0 110px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-desc {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .slider-nav {
    bottom: 20px;
  }
  .slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .dashboard-preview {
    padding: 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-container {
    padding: 24px;
  }
  .cta-title {
    font-size: 32px;
  }
}
