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

/* ── Root & Base ─────────────────────────────────────────────────────── */
:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFF;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --border-hover: #C7D2FE;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(79,70,229,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(79,70,229,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(79,70,229,0.16), 0 8px 24px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; }

/* ── Scrollbar ───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Selection ───────────────────────────────────────────────────────── */
::selection { background: #C7D2FE; color: var(--primary-dark); }

/* ── Gradient Text ───────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Background ─────────────────────────────────────────────────── */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,70,229,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(245,158,11,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 70%, rgba(124,58,237,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
}

/* ── Grid Overlay ────────────────────────────────────────────────────── */
.grid-overlay {
  background-image:
    linear-gradient(rgba(79,70,229,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── AI Section Background ───────────────────────────────────────────── */
.ai-bg {
  background:
    radial-gradient(ellipse 60% 60% at 0% 50%, rgba(79,70,229,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(245,158,11,0.05) 0%, transparent 60%),
    #F8FAFF;
}

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes borderPulse {
  0%, 100% { border-color: rgba(79,70,229,0.2); }
  50%       { border-color: rgba(79,70,229,0.5); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Reveal on Scroll ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease calc(var(--delay, 0s)), transform 0.65s ease calc(var(--delay, 0s));
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Primary Button ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: #fff !important;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(79,70,229,0.4); }
.btn-primary:active { transform: translateY(0); }

/* ── Outline Button ──────────────────────────────────────────────────── */
.btn-outline {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
}
.btn-outline-custom {
  display: inline-block;
  border: 2px solid #005c8a;
  color:#005c8a;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
}
.btn-outline-custom:hover {
  background: #005c8a;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.3);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.3);
}

/* ── Navbar ──────────────────────────────────────────────────────────── */
#navbar {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
}
.navbar-scrolled {
  background: rgba(255,255,255,0.99) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}
.nav-link {
  color: var(--text) !important;
  font-weight: 500;
}
.nav-link:hover {
  color: var(--primary) !important;
  background: var(--primary-light) !important;
}

/* ── Mega Menu ───────────────────────────────────────────────────────── */
.mega-menu {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-xl) !important;
  transform: translateX(-50%) translateY(8px);
  transition: all 0.25s ease !important;
}
.mega-parent:hover > .mega-menu,
.mega-parent:focus-within > .mega-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* ── Full-Width Mega Menu ─────────────────────────────────────────────── */
.mega-menu-fw {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  top: 64px !important;
  z-index: 9999 !important;
  border-radius: 0 0 20px 20px !important;
  transform: translateX(0) translateY(-6px) !important;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease !important;
  background: #fff !important;
  border: none !important;
  border-top: 1px solid var(--border) !important;
  box-shadow: 0 20px 60px rgba(15,23,42,.1) !important;
}
.mega-parent:hover > .mega-menu-fw,
.mega-parent:focus-within > .mega-menu-fw {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) translateY(0) !important;
}

/* Full-width mega menu inner grid */
.mega-fw-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}
.mega-fw-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 0;
}
.mega-fw-col { padding: 0 2rem 0 0; }
.mega-fw-col + .mega-fw-col { padding: 0 0 0 2rem; border-left: 1px solid var(--border); }
.mega-fw-col-label {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
}
.mega-fw-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .85rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background .18s ease;
  margin-bottom: .35rem;
}
.mega-fw-item:hover { background: var(--primary-light); }
.mega-fw-item:hover .mega-fw-title { color: var(--primary); }
.mega-fw-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(79,70,229,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.mega-fw-title {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: .2rem;
  transition: color .18s;
}
.mega-fw-desc {
  display: block;
  font-size: .76rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.mega-fw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.5rem;
  background: #F8FAFF;
  border-radius: 0 0 20px 20px;
}
.mega-fw-tagline { font-size: .8rem; color: var(--text-muted); }
.mega-fw-tagline strong { color: var(--text); }
.mega-fw-cta {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .18s;
}
.mega-fw-cta:hover { gap: .7rem; }
.mega-item {
  color: var(--text) !important;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 8px;
}
.mega-item:hover {
  color: var(--primary) !important;
  background: var(--primary-light) !important;
}
.mega-item-title { display: block; font-size: 0.84rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.mega-item:hover .mega-item-title { color: var(--primary); }
.mega-desc { display: block; font-size: 0.71rem; color: var(--text-muted); line-height: 1.3; margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.mega-item:hover .mega-desc { color: var(--primary); opacity: .75; }
.mega-featured { background: linear-gradient(135deg,rgba(79,70,229,.04),rgba(245,158,11,.04)) !important; border: 1px solid rgba(226,232,240,.8); }
.mega-featured:hover { background: linear-gradient(135deg,rgba(79,70,229,.1),rgba(245,158,11,.06)) !important; border-color: rgba(79,70,229,.25) !important; }
.mega-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ── Feature Cards ───────────────────────────────────────────────────── */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7C3AED);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(5deg); }

/* ── Service Cards ───────────────────────────────────────────────────── */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text) !important;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
}
.service-card:hover .service-icon { background: var(--primary); transform: scale(1.1); }

/* ── Why Cards ───────────────────────────────────────────────────────── */
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  animation: borderPulse 3s ease-in-out infinite;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  animation: none;
}
.why-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--primary-light));
  border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
  transition: transform 0.3s;
}
.why-card:hover .why-icon { transform: scale(1.15) rotate(-5deg); }

/* ── Testimonial ─────────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px; left: 20px;
  font-size: 8rem;
  color: rgba(79,70,229,0.08);
  font-family: Georgia, serif;
  line-height: 1;
}

/* ── Module Image Wrapper ────────────────────────────────────────────── */
.module-img-wrapper { position: relative; }
.module-img-wrapper img {
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

/* ── Module Showcase Card ────────────────────────────────────────────── */
.module-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.module-showcase-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.module-img-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.module-img-container img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 0;
  box-shadow: none;
  border: none;
}
.module-showcase-card:hover .module-img-container img { transform: scale(1.02); }

/* ── Stat Box ────────────────────────────────────────────────────────── */
.stat-box {
  background: var(--primary-light);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s;
}
.stat-box:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ── Contact Card ────────────────────────────────────────────────────── */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* ── Form Inputs ─────────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
  transition: all 0.3s;
  font-family: inherit;
  outline: none;
}
.form-input::placeholder { color: var(--text-light); }
.form-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* ── Video Wrapper ───────────────────────────────────────────────────── */
.video-wrapper { position: relative; max-width: 900px; margin: 0 auto; }
.video-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(79,70,229,0.15) 0%, transparent 70%);
  border-radius: 28px;
  filter: blur(24px);
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-xl);
}

/* ── Section badges ──────────────────────────────────────────────────── */
.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: var(--primary-light);
  border: 1px solid var(--border-hover);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-badge-accent {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: var(--accent-light);
  border: 1px solid #FDE68A;
  color: #92400E;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ── Divider ─────────────────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Footer Styles ───────────────────────────────────────────────────── */
.footer-bg {
  background: #ffffff;
  color: #1E293B;
}
.footer-heading {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #272465;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a {
  font-size: 0.82rem;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #272465; }

.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(39,36,101,0.06);
  border: 1px solid rgba(39,36,101,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  color: #475569;
  text-decoration: none;
  transition: all 0.3s;
}
.social-icon:hover { background: #272465; border-color: #272465; color: #fff; transform: translateY(-2px); }

.product-chip {
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(79,70,229,0.12);
  border: 1px solid rgba(79,70,229,0.2);
  color: #A5B4FC;
  text-decoration: none;
  transition: all 0.2s;
}
.product-chip:hover { background: rgba(79,70,229,0.25); color: #fff; }

/* ── Chat Widget ─────────────────────────────────────────────────────── */
.chat-grabber {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  text-align: right;
  box-shadow: var(--shadow-md);
  color: var(--text);
  animation: float 3s ease-in-out infinite;
}

/* ── Counter ─────────────────────────────────────────────────────────── */
.counter { display: inline-block; }

/* ── Particles ───────────────────────────────────────────────────────── */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float var(--duration, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* ── AI feature row ──────────────────────────────────────────────────── */
.ai-feature-row {
  display: flex; gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.ai-feature-row:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

/* ── Bodies list item ────────────────────────────────────────────────── */
.body-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}
.body-item:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }

/* ── Blog Section ────────────────────────────────────────────────────── */
.blog-slider-wrapper { position: relative; }
.blog-slider-overflow { overflow: visible; }

.blog-slider-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card-banner {
  position: relative;
  padding: 1.75rem 1.5rem 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 110px;
}
.blog-banner-1 { background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); }
.blog-banner-2 { background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%); }
.blog-banner-3 { background: linear-gradient(135deg, #0D9488 0%, #0891B2 100%); }

.blog-category-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  background: rgba(36, 35, 35, 0.25);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

.blog-banner-icon {
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.blog-date {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.blog-read-time {
  font-size: 0.72rem;
  color: var(--text-light);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.blog-title {
  font-size: 0.975rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.blog-excerpt {
  font-size: 0.855rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.2s;
  margin-top: auto;
}
.blog-read-more:hover { gap: 0.55rem; }
.blog-read-more-accent { color: #D97706; }
.blog-read-more-teal { color: #0D9488; }

.blog-slider-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.blog-nav-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}
.blog-nav-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.blog-nav-btn:disabled { opacity: 0.35; pointer-events: none; }

.blog-dots { display: flex; gap: 0.4rem; align-items: center; }
.blog-dot {
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.blog-dot.active { background: var(--primary); width: 24px; }

@media (max-width: 1023px) {
  .blog-slider-overflow { overflow: hidden; }
  .blog-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
  }
  .blog-slide { flex: 0 0 100%; min-width: 100%; padding: 0 0.25rem; }
  .blog-slider-nav { display: flex; }
}

/* ── Video Tutorial Cards ────────────────────────────────────────────── */
.video-tut-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.video-tut-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.video-tut-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}
.video-tut-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.video-tut-card:hover .video-tut-thumb img { transform: scale(1.06); }
.video-tut-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.video-tut-card:hover .video-tut-overlay { background: rgba(0,0,0,0.38); }
.video-tut-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #22C55E;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(34,197,94,0.45);
  transition: transform 0.3s, box-shadow 0.3s;
}
.video-tut-card:hover .video-tut-play {
  transform: scale(1.14);
  box-shadow: 0 6px 30px rgba(34,197,94,0.6);
}
.video-tut-play i {
  color: #fff;
  font-size: 1.35rem;
  margin-left: 3px;
}
.video-tut-title {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  line-height: 1.4;
  transition: color 0.2s;
}
.video-tut-card:hover .video-tut-title { color: var(--primary-dark); }

/* ── Testimonial Slider ──────────────────────────────────────────────── */
.testi-wrapper { position: relative; padding: 0 56px; }
.testi-overflow { overflow: hidden; }
.testi-track { display: flex; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; }
.testi-slide { flex: 0 0 100%; width: 100%; }
.testi-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-card); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; color: var(--text); box-shadow: var(--shadow-md); }
.testi-arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(79,70,229,0.3); }
.testi-arrow-prev { left: 4px; }
.testi-arrow-next { right: 4px; }
.testi-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1.5rem; }
.testi-dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--border); border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.testi-dot.active { background: var(--primary); width: 24px; }
@media (max-width: 640px) { .testi-wrapper { padding: 0 40px; } .testi-arrow-prev { left: 0; } .testi-arrow-next { right: 0; } }

/* ── Solution Card Slider ─────────────────────────────────────────────── */
.solution-slider-outer { position: relative; padding: 0 60px 60px; }
.solution-slider-viewport { overflow: hidden; border-radius: 16px; }
.solution-slider-track { display: flex; gap: 20px; transition: transform .5s cubic-bezier(.25,.46,.45,.94); will-change: transform; }
.solution-card { flex: 0 0 calc(33.333% - 14px); background: #0F172A; border: 1px solid rgba(148,163,184,.12); border-radius: 24px; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.solution-card:hover { transform: translateY(-6px); border-color: rgba(79,70,229,.5); box-shadow: 0 20px 60px rgba(79,70,229,.25); }
.solution-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #1E293B; }
.solution-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.solution-card:hover .solution-card-img img { transform: scale(1.06); }
.solution-card-badge { position: absolute; bottom: 14px; left: 14px; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg,var(--primary),#7C3AED); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.solution-card-body { padding: 1.4rem 1.5rem 1.75rem; display: flex; flex-direction: column; }
.solution-card-title { font-size: 1.08rem; font-weight: 800; color: #F1F5F9; margin-bottom: .45rem; line-height: 1.3; }
.solution-card-desc { font-size: .83rem; color: #94A3B8; line-height: 1.65; margin-bottom: 1rem; flex: 1; }
.solution-card-icons { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.sol-icon-chip { width: 34px; height: 34px; border-radius: 10px; background: rgba(79,70,229,.18); border: 1px solid rgba(79,70,229,.28); display: flex; align-items: center; justify-content: center; color: #A5B4FC; font-size: .88rem; }
.solution-card-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.35rem; border-radius: 9999px; border: 1.5px solid rgba(255,255,255,.2); color: #F1F5F9; font-size: .875rem; font-weight: 600; text-decoration: none; transition: all .3s; align-self: flex-start; }
.solution-card-btn:hover { background: var(--primary); border-color: var(--primary); }
.solution-arrow { position: absolute; top: 38%; transform: translateY(-50%); z-index: 10; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; color: var(--text); box-shadow: var(--shadow-md); }
.solution-arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.solution-arrow-prev { left: 4px; }
.solution-arrow-next { right: 4px; }
.solution-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1.75rem; }
.sol-dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--border); border: none; cursor: pointer; transition: all .3s; padding: 0; }
.sol-dot.active { background: var(--primary); width: 24px; }
@media (max-width:1024px) { .solution-card { flex: 0 0 calc(50% - 10px); } .solution-slider-outer { padding: 0 50px 50px; } }
@media (max-width:640px) { .solution-card { flex: 0 0 100%; } .solution-slider-outer { padding: 0 44px 44px; } .solution-arrow-prev { left: 0; } .solution-arrow-next { right: 0; } }

/* ── Module Sticky Stack ──────────────────────────────────────────────── */
.modules-stack { position: relative; }
.module-stack-card { position: sticky; top: 84px; z-index: calc(1 + var(--idx,0)); background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 24px; transition: box-shadow .3s; }
.module-stack-card:nth-child(even) { background: var(--primary-light); border-color: var(--border-hover); }
.module-stack-card:hover { box-shadow: var(--shadow-xl); }
.module-stack-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.module-stack-card:nth-child(even) .module-stack-inner { direction: rtl; }
.module-stack-card:nth-child(even) .module-stack-inner > * { direction: ltr; }
.module-stack-text { padding: 2.75rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.module-stack-header { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.module-stack-icon-box { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light); border: 1px solid var(--border-hover); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); flex-shrink: 0; }
.module-stack-card:nth-child(even) .module-stack-icon-box { background: #fff; }
.module-stack-header h3 { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-bottom: .2rem; line-height: 1.25; }
.module-stack-header .ms-sub { font-size: .76rem; color: var(--text-muted); }
.module-stack-text > p { font-size: .9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.6rem; }
.module-stack-text > a { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); font-weight: 700; font-size: .9rem; text-decoration: none; transition: gap .2s; }
.module-stack-text > a:hover { gap: .7rem; }
.module-stack-img { background: linear-gradient(135deg, var(--bg-alt) 0%, #fff 100%); display: flex; align-items: center; justify-content: center; padding: 1.5rem 1.25rem; overflow: hidden; }
.module-stack-img img { width: 100%; height: auto; display: block; object-fit: contain; border-radius: 12px; box-shadow: 0 8px 28px rgba(79,70,229,0.12), 0 2px 8px rgba(0,0,0,0.07); transition: transform .5s ease; }
.module-stack-card:hover .module-stack-img img { transform: scale(1.03); }
@media (max-width:768px) { .module-stack-inner { grid-template-columns: 1fr; direction: ltr !important; min-height: auto; } .module-stack-card:nth-child(even) .module-stack-inner { direction: ltr; } .module-stack-img { height: 260px; padding: 1.25rem; } .module-stack-card { top: 68px; } }

/* ── Testimonial New Design ───────────────────────────────────────────── */
.testi-section-bg { background: linear-gradient(135deg,#EEF2FF 0%,#F8FAFF 50%,#FEF3C7 100%); }
.testi-card-new { background: #fff; border-radius: 24px; padding: 2.5rem 2.5rem 2rem; box-shadow: 0 8px 40px rgba(79,70,229,.1); border: 1px solid rgba(79,70,229,.1); margin: 0 auto; max-width: 780px; text-align: center; }
.testi-quote-icon { font-size: 5rem; line-height: .7; color: var(--primary); font-family: Georgia,serif; margin-bottom: 1.25rem; display: block; opacity: .55; }
.testi-text { font-size: 1rem; line-height: 1.85; color: var(--text); font-weight: 500; margin-bottom: 2rem; font-style: italic; }
.testi-author { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.testi-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .95rem; flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.testi-name { font-weight: 800; font-size: 1rem; color: var(--text); text-align: left; }
.testi-role { font-size: .83rem; color: var(--text-muted); text-align: left; }

/* ── Blog Image Banner ────────────────────────────────────────────────── */
.blog-img-banner { position: relative; padding: 1.5rem; min-height: 180px; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-start; }
.blog-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .45s ease; }
.blog-card:hover .blog-banner-img { transform: scale(1.06); }
.blog-banner-overlay { position: absolute; inset: 0; z-index: 1; }
.blog-overlay-1 { background: linear-gradient(135deg,rgba(79,70,229,.78),rgba(124,58,237,.78)); }
.blog-overlay-2 { background: linear-gradient(135deg,rgba(245,158,11,.78),rgba(239,68,68,.78)); }
.blog-overlay-3 { background: linear-gradient(135deg,rgba(13,148,136,.78),rgba(8,145,178,.78)); }
.blog-img-banner .blog-category-badge { position: relative; z-index: 2; }

/* ── Modules Page Hero ───────────────────────────────────────────────── */
.mod-hero { background: #fff; }
.mod-hero-bg {
  background:
    radial-gradient(ellipse 70% 80% at 100% 50%, rgba(79,70,229,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 0% 50%, rgba(245,158,11,.05) 0%, transparent 60%),
    linear-gradient(180deg, #F8FAFF 0%, #fff 100%);
}

.mod-hero-heading {
  font-size: clamp(2rem, 5vw + .5rem, 3.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

.mod-hero-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  max-width: 580px;
}
.mod-hero-img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(79,70,229,.16), 0 8px 24px rgba(0,0,0,.10);
  border: 1px solid var(--border);
}

.mod-hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.mod-badge-top    { top: -14px; left: 20px; }
.mod-badge-bottom { bottom: -14px; right: 20px; }

.mod-contact-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(90deg) translateX(50%);
  transform-origin: right center;
  background: #1a4480;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .55rem 1.4rem;
  border-radius: 8px 8px 0 0;
  z-index: 999;
  transition: background .2s;
  white-space: nowrap;
}
.mod-contact-tab:hover { background: var(--primary); }

@media (max-width: 768px) {
  .mod-hero { min-height: auto; }
  .mod-hero-heading { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .mod-contact-tab { display: none; }
}
@media (max-width: 480px) {
  .mod-hero-heading { font-size: 1.75rem; }
}

/* ── Solutions Grid ──────────────────────────────────────────────────── */
.solutions-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width:1024px) { .solutions-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:640px)  { .solutions-grid { grid-template-columns: 1fr; } }

.sol-grid-card { background:#fff; border:1px solid var(--border); border-radius:20px; overflow:hidden; transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease; }
.sol-grid-card:hover { transform:translateY(-6px); box-shadow:0 24px 64px rgba(79,70,229,.14); border-color:var(--border-hover); }

.sol-art { position:relative; height:220px; background:#1e293b; overflow:hidden; }
.sol-art-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; transition:transform .5s ease; }
.sol-grid-card:hover .sol-art-img { transform:scale(1.07); }
.sol-art-overlay { position:absolute; inset:0; background:linear-gradient(135deg,var(--art-c1,#4F46E5),var(--art-c2,#7C3AED)); opacity:.72; z-index:1; }
.sol-art-grid { position:absolute; inset:0; z-index:2; background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px); background-size:26px 26px; }
.sol-art-icon-box { position:absolute; top:50%; left:50%; transform:translate(-50%,-55%); z-index:3; width:80px; height:80px; background:rgba(255,255,255,.18); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,.35); border-radius:22px; display:flex; align-items:center; justify-content:center; font-size:2.1rem; color:#fff; box-shadow:0 8px 32px rgba(0,0,0,.2); }
.sol-art-chip { position:absolute; bottom:12px; left:12px; z-index:3; background:rgba(255,255,255,.17); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.28); border-radius:20px; padding:4px 11px; font-size:.68rem; color:#fff; font-weight:600; display:flex; align-items:center; gap:5px; letter-spacing:.3px; }
.sol-chip-dot { width:6px; height:6px; border-radius:50%; background:#4ade80; box-shadow:0 0 7px #4ade80; flex-shrink:0; }
.sol-art-dots { position:absolute; top:12px; right:12px; z-index:3; width:30px; height:30px; }
.sol-art-dots::before { content:''; display:block; width:5px; height:5px; border-radius:50%; background:rgba(255,255,255,.55); box-shadow:10px 0 0 rgba(255,255,255,.55),20px 0 0 rgba(255,255,255,.55),0 10px 0 rgba(255,255,255,.55),10px 10px 0 rgba(255,255,255,.55),20px 10px 0 rgba(255,255,255,.55),0 20px 0 rgba(255,255,255,.55),10px 20px 0 rgba(255,255,255,.55),20px 20px 0 rgba(255,255,255,.55); }

.sol-grid-body { padding:18px 20px 20px; }
.sol-grid-badge { width:34px; height:34px; border-radius:10px; background:var(--primary-light); border:1px solid var(--border-hover); display:flex; align-items:center; justify-content:center; color:var(--primary); font-size:.95rem; margin-bottom:10px; }
.sol-grid-title { font-size:.97rem; font-weight:800; color:var(--text); margin-bottom:6px; }
.sol-grid-desc { font-size:.78rem; color:var(--text-muted); line-height:1.6; margin-bottom:12px; }
.sol-grid-chips { display:flex; gap:7px; margin-bottom:14px; }
.sol-grid-chips span { width:28px; height:28px; border-radius:8px; background:var(--bg-alt); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:.8rem; }
.sol-grid-btn { font-size:.8rem; font-weight:700; color:var(--primary); text-decoration:none; display:inline-flex; align-items:center; gap:.3rem; transition:gap .2s; }
.sol-grid-btn:hover { gap:.6rem; }

/* ── Responsive ──────────────────────────────────────────────────────── */

/* Fluid heading sizes across all screen widths */
#hero h1        { font-size: clamp(1.75rem, 3vw + 1rem, 3.75rem) !important; line-height: 1.1 !important; }
section h2      { font-size: clamp(1.5rem,  4vw + .5rem, 3rem); }

/* ── ≤1024px  Tablet ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mega-menu,
  .mega-menu-fw { display: none !important; }

  .gap-16 { gap: 2.5rem !important; }

  .sol-art { height: 200px; }
  .sol-art-icon-box { width: 70px; height: 70px; font-size: 1.8rem; }

  .module-stack-text { padding: 2rem 1.75rem; }
  .module-stack-header h3 { font-size: 1.15rem; }
}

/* ── ≤768px  Mobile landscape / small tablet ────────────────────────── */
@media (max-width: 768px) {
  .gap-16 { gap: 1.5rem !important; }

  .video-frame { aspect-ratio: 16 / 9; }

  /* Section headings */
  section h2 { font-size: clamp(1.5rem, 5vw + .25rem, 0.25rem) !important; }

  /* Cards */
  .feature-card  { padding: 1.25rem; }
  .feature-icon  { width: 44px; height: 44px; font-size: 1.35rem; margin-bottom: .75rem; }
  .service-card  { padding: 1.25rem; }
  .service-icon  { width: 44px; height: 44px; font-size: 1.35rem; }
  .why-card      { padding: 1.5rem; }
  .why-icon      { width: 54px; height: 54px; font-size: 1.5rem; }

  /* Solutions grid */
  .sol-art { height: 190px; }
  .sol-art-icon-box { width: 66px; height: 66px; font-size: 1.7rem; }
  .sol-grid-body { padding: 14px 16px 18px; }
  .sol-grid-title { font-size: .93rem; }

  /* Testimonial */
  .testi-card-new   { padding: 1.75rem 1.5rem 1.5rem; }
  .testi-quote-icon { font-size: 3.5rem; margin-bottom: .75rem; }
  .testi-text {
    font-size: .92rem;
    line-height: 1.72;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Module stack */
  .module-stack-inner { min-height: 340px; }
  .module-stack-text  { padding: 1.75rem 1.5rem; }
  .module-stack-header h3 { font-size: 1.05rem; }
  .module-stack-text > p  { font-size: .85rem; margin-bottom: 1.1rem; }

  /* Contact */
  .contact-card { padding: 1.75rem; }

  /* AI rows */
  .ai-feature-row { padding: .85rem; }

  /* Bodies */
  .body-item { padding: .75rem .9rem; }

  /* Blog */
  .blog-card-body  { padding: 1rem 1.25rem 1.25rem; }
  .blog-title      { font-size: .92rem; }
}

/* ── ≤640px  Mobile portrait ─────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Testi wrapper & arrows */
  .testi-wrapper    { padding: 0 42px; }
  .testi-arrow-prev { left: 0; }
  .testi-arrow-next { right: 0; }
  .testi-arrow      { width: 38px; height: 38px; }
  .testi-card-new   { padding: 1.25rem 1.1rem 1.1rem; border-radius: 16px; }
  .testi-quote-icon { font-size: 2.75rem; margin-bottom: .45rem; }
  .testi-text {
    font-size: .875rem;
    line-height: 1.72;
    margin-bottom: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .testi-avatar     { width: 42px; height: 42px; font-size: .78rem; }
  .testi-name       { font-size: .86rem; }
  .testi-role       { font-size: .74rem; }
  .testi-author     { gap: .75rem; }

  /* Solutions grid */
  .sol-art { height: 175px; }
  .sol-art-icon-box { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 18px; }
  .sol-art-chip     { font-size: .62rem; padding: 3px 9px; }
  .sol-art-dots     { top: 10px; right: 10px; }
  .sol-grid-body    { padding: 12px 14px 16px; }
  .sol-grid-title   { font-size: .9rem; }
  .sol-grid-desc    { font-size: .76rem; margin-bottom: 10px; }
  .sol-grid-chips span { width: 26px; height: 26px; font-size: .75rem; }
  .sol-grid-btn     { font-size: .76rem; }

  /* Module sticky cards — single-column */
  .module-stack-inner { grid-template-columns: 1fr; direction: ltr !important; min-height: auto; }
  .module-stack-card:nth-child(even) .module-stack-inner { direction: ltr; }
  .module-stack-img   { height: 260px; padding: 1rem; }
  .module-stack-text  { padding: 1.5rem 1.25rem; }
  .module-stack-header { gap: .75rem; margin-bottom: .9rem; }
  .module-stack-icon-box { width: 44px; height: 44px; font-size: 1.2rem; }
  .module-stack-header h3 { font-size: 1rem; }
  .module-stack-header .ms-sub { font-size: .7rem; }
  .module-stack-text > p { font-size: .82rem; margin-bottom: .9rem; }
  .module-stack-text > a { font-size: .82rem; }
  .module-stack-card  { border-radius: 18px; margin-bottom: 14px; top: 68px; }

  /* Feature & service cards */
  .feature-card  { padding: 1.1rem; }
  .service-card  { padding: 1.1rem; }
  .why-card      { padding: 1.25rem; }
  .why-icon      { width: 50px; height: 50px; font-size: 1.4rem; }

  /* AI section */
  .ai-feature-row   { padding: .75rem; gap: .55rem; }
  .ai-feature-row p { font-size: .81rem; }

  /* ── AI Pipeline card – mobile fix ───────────────────────────────── */
  .aipipe-card         { border-radius: 14px; }
  .aipipe-head         { padding: .7rem .85rem; }
  .aipipe-sec          { padding: .65rem .75rem; }
  .aipipe-sec-lbl      { font-size: .52rem; margin-bottom: .55rem; }
  .aipipe-stage-box    { width: 40px; height: 40px; border-radius: 10px; font-size: 1rem; }
  .aipipe-stage-lbl    { font-size: .5rem; }
  .aipipe-cdot         { width: 4px; height: 4px; }
  .aipipe-stats        { border-radius: 8px; }
  .aipipe-stat         { padding: .4rem .3rem; }
  .aipipe-stat-val     { font-size: .78rem; }
  .aipipe-stat-lbl     { font-size: .5rem; }
  .aipipe-health-sec   { padding: .55rem .75rem; }
  .aipipe-hico         { width: 24px; height: 24px; border-radius: 7px; font-size: .7rem; }
  .aipipe-hlbl         { font-size: .6rem; width: 72px; }
  .aipipe-hpct         { font-size: .6rem; width: 26px; }

  /* Prevent aipipe-flow from overflowing on tiny screens */
  .aipipe-flow         { overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; scrollbar-width: none; }
  .aipipe-flow::-webkit-scrollbar { display: none; }

  /* ── Hero stats bar – cell overflow fix ───────────────────────────── */
  /* Give each grid cell min-width:0 so text can't blow out the 1fr column */
  .hero-stats-inner > div:not([style*="height:52px"]) {
    min-width: 0;
    gap: 0.45rem !important;
  }
  /* The text group inside each stat item must also be compressible */
  .hero-stats-inner > div:not([style*="height:52px"]) > div:last-child {
    min-width: 0;
    overflow: hidden;
  }
  /* Shrink icon from 46px → 34px */
  .hero-stats-inner > div:not([style*="height:52px"]) > div:first-child {
    width: 34px !important;
    height: 34px !important;
    font-size: .95rem !important;
    border-radius: 8px !important;
    flex-shrink: 0;
  }
  /* Shrink counter number */
  .hero-stats-inner .counter { font-size: 1.15rem !important; line-height: 1 !important; }
  /* Shrink label — allow wrapping, prevent ellipsis clipping */
  .hero-stats-inner .text-muted {
    font-size: .68rem !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  /* Bodies section list */
  .body-item { padding: .65rem .8rem; gap: .55rem; }

  /* Blog */
  .blog-title   { font-size: .88rem; }
  .blog-excerpt { font-size: .81rem; }

  /* Contact */
  .contact-card { padding: 1.25rem; border-radius: 16px; }

  /* Section badges */
  .section-badge, .section-badge-accent { font-size: .74rem; padding: .28rem .8rem; }

  /* Stat box */
  .stat-box { padding: .9rem; }

  /* Video tutorial */
  .video-tut-title { font-size: .79rem; padding: .7rem .75rem; }
  .video-tut-play  { width: 44px; height: 44px; }
  .video-tut-play i { font-size: 1.1rem; }

  /* Module showcase (modules.html) */
  .module-showcase-card { padding: 1.25rem; }
}

/* ── ≤480px  Extra-small phones ─────────────────────────────────────── */
@media (max-width: 480px) {
  section h2 { font-size: clamp(1.35rem, 6vw, 1.85rem) !important; }
  #hero h1 br { display: none; }

  /* Hero stats */
  .counter { font-size: 1.6rem !important; }

  /* Solutions art even smaller */
  .sol-art      { height: 160px; }
  .sol-art-icon-box { width: 54px; height: 54px; font-size: 1.35rem; }
  .sol-art-chip { display: none; }

  /* Testimonial  */
  .testi-card-new   { padding: 1rem .9rem .9rem; }
  .testi-quote-icon { font-size: 2.25rem; margin-bottom: .35rem; }
  .testi-text {
    font-size: .82rem;
    line-height: 1.68;
    margin-bottom: .75rem;
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
  .testi-avatar     { width: 38px; height: 38px; font-size: .72rem; }

  /* Module cards */
  .module-stack-text { padding: 1.25rem 1rem; }
  .module-stack-header h3 { font-size: .95rem; }
  .module-stack-img  { height: 220px; padding: .75rem; }

  /* Contact */
  .contact-card { padding: 1rem; }

  /* Why */
  .why-card { padding: 1rem; }
  .why-icon { width: 46px; height: 46px; font-size: 1.25rem; }

  /* AI rows */
  .ai-feature-row { padding: .65rem .7rem; }

  /* Bodies */
  .body-item { padding: .55rem .7rem; font-size: .82rem; }

  /* Section badges */
  .section-badge, .section-badge-accent { font-size: .7rem; }
}


 /* ─── Back to top ──────────────────────────────────────────────────────── */
    #back-to-top {
      position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 999;
      width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
      background: linear-gradient(135deg, #4F46E5, #7C3AED);
      color: #fff; display: flex; align-items: center; justify-content: center;
      font-size: 1.05rem;
      box-shadow: 0 8px 24px rgba(79,70,229,0.4);
      opacity: 0; transform: translateY(20px) scale(0.8);
      transition: opacity 0.3s, transform 0.3s;
    }
    #back-to-top.show { opacity: 1; transform: translateY(0) scale(1); }
    #back-to-top:hover { transform: translateY(-3px) scale(1.07) !important; box-shadow: 0 14px 36px rgba(79,70,229,0.55); }
