/* ═══════════════════════════════════════════════════════════════
   MSM Aventra — Extra Polish, New Elements & Micro-interactions
═══════════════════════════════════════════════════════════════ */

/* ─── GLOWING BORDERS ON HOVER ──────────────────────────────── */
.platform-card:hover,
.outcome-card:hover,
.ai-feature-card:hover,
.global-stat-card:hover {
  box-shadow: 0 0 0 1px rgba(229,28,35,0.15), 0 20px 60px rgba(229,28,35,0.08), 0 4px 20px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}
.platform-card, .outcome-card, .ai-feature-card, .global-stat-card {
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

/* ─── HERO BADGE ─────────────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-light);
  background: rgba(229,28,35,0.08);
  border: 1px solid rgba(229,28,35,0.2);
  padding: 8px 18px 8px 8px;
  border-radius: 99px;
  margin-bottom: 28px;
}
.badge-logo {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* ─── HERO CANVAS ────────────────────────────────────────────── */
#heroCanvas { opacity: 0.65; }

/* ─── SECTION TITLE DECORATION ───────────────────────────────── */
.section-title::after { display: none; }

/* ─── MSM UNIFY PARENTAGE BANNER ─────────────────────────────── */
.msm-unify-banner {
  background: linear-gradient(135deg, rgba(229,28,35,0.06) 0%, rgba(14,165,233,0.04) 100%);
  border-top: 1px solid rgba(229,28,35,0.12);
  border-bottom: 1px solid rgba(229,28,35,0.08);
  padding: 24px 0;
}
.msm-unify-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.msm-unify-logo-wrap {
  flex-shrink: 0;
}
.msm-unify-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.65;
}
.msm-unify-text {
  flex: 1;
  min-width: 200px;
}
.msm-unify-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 4px;
}
.msm-unify-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.msm-unify-desc strong { color: var(--text-primary); }
.msm-unify-desc em { color: var(--red-light); font-style: normal; font-weight: 600; }
.msm-unify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-light);
  border: 1px solid rgba(229,28,35,0.25);
  padding: 8px 16px;
  border-radius: 99px;
  white-space: nowrap;
  transition: all 0.3s;
}
.msm-unify-link:hover {
  background: rgba(229,28,35,0.1);
  border-color: rgba(229,28,35,0.4);
}

/* Light theme MSM Unify Banner */
[data-theme="light"] .msm-unify-banner {
  background: linear-gradient(135deg, #fff8f8, #f0f7ff);
  border-color: rgba(229,28,35,0.1);
}
[data-theme="light"] .msm-unify-img {
  filter: none;
  opacity: 0.8;
}
[data-theme="light"] .msm-unify-label { color: var(--red); }
[data-theme="light"] .msm-unify-link { color: var(--red); border-color: rgba(229,28,35,0.2); }

/* ─── UNIVERSITY LOGOS ───────────────────────────────────────── */
.university-logos-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logos-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.logos-label strong { color: var(--text-muted); }
.uni-logos-track-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.uni-logos-track {
  display: flex;
  gap: 16px;
  animation: scrollLogos 28s linear infinite;
  width: max-content;
}
.uni-logos-track:hover { animation-play-state: paused; }
@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.uni-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 130px;
  transition: all 0.3s;
  cursor: default;
}
.uni-logo-item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}
.uni-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.uni-logo-text {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}
.uni-logo-text strong { color: var(--text-primary); display: block; }

/* ─── LOGO IMAGE ─────────────────────────────────────────────── */
.logo-img { height: 40px; width: auto; object-fit: contain; }

/* ─── NAV ICON ───────────────────────────────────────────────── */
.nav-icon { display: none; }
@media (max-width: 900px) { .nav-icon { display: inline; } }

/* ─── MOCKUP TITLE ───────────────────────────────────────────── */
.mockup-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: auto;
}

/* ─── SIS ENHANCEMENTS ───────────────────────────────────────── */
.mock-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #10b981;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  margin-top: 4px;
}
.mock-status-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #10b981;
  border-radius: 50%;
}

/* ─── ERP MODULE STYLES ──────────────────────────────────────── */
.mock-finance-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.mock-finance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.mock-finance-item span:first-child { width: 100px; flex-shrink: 0; }
.mock-finance-item span:last-child { width: 32px; text-align: right; font-weight: 600; color: var(--text-primary); }
.mock-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; }
.mock-bar-fill { height: 100%; border-radius: 99px; transition: width 1s ease; }
[data-theme="light"] .mock-bar-track { background: rgba(0,0,0,0.06); }

/* ─── PIPELINE STAGE ─────────────────────────────────────────── */
.mock-pipeline-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0;
}
.mock-pipeline-stage span:first-child { width: 55px; flex-shrink: 0; }
.mock-pipeline-stage span:last-child { width: 32px; text-align: right; font-weight: 600; color: var(--text-primary); }

/* ─── PHONE MOCKUP ENHANCEMENTS ──────────────────────────────── */
.phone-greeting {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.phone-date {
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.phone-cards { display: flex; flex-direction: column; gap: 8px; }
.phone-card-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.phone-card-item i { color: var(--blue); width: 16px; }
.phone-card-item.accent { border-color: rgba(229,28,35,0.2); background: rgba(229,28,35,0.05); }
.phone-card-item.accent i { color: var(--red); }

/* ─── OUTCOMES CASE STUDY TEASER ─────────────────────────────── */
.outcomes-case-study-teaser {
  margin-top: 60px;
  background: linear-gradient(135deg, rgba(229,28,35,0.06), rgba(14,165,233,0.04));
  border: 1px solid rgba(229,28,35,0.15);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cs-teaser-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.cs-teaser-icon {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  flex-shrink: 0;
}
[data-theme="light"] .cs-teaser-icon { filter: none; opacity: 0.7; }
.cs-teaser-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 4px;
}
.cs-teaser-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}
.cs-teaser-content p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── DEMO ASSURANCE LIST ────────────────────────────────────── */
.demo-assurance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.demo-assurance {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.demo-assurance i { color: #10b981; flex-shrink: 0; }

/* ─── MSM UNIFY / LAUL BANNER ────────────────────────────────── */
.laul-group-banner {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(229,28,35,0.04), rgba(14,165,233,0.02));
}
.laul-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}
.laul-logo { flex-shrink: 0; }
.laul-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
[data-theme="light"] .laul-logo-img { filter: none; opacity: 0.8; }
.laul-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 10px;
}
[data-theme="light"] .laul-tag { color: var(--red); }
.laul-text h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
}
.laul-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 680px;
}
.laul-text p + p { margin-top: 10px; font-size: 13px; font-style: italic; }
.laul-text strong { color: var(--text-primary); }
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid rgba(229,28,35,0.3);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red-light);
  transition: all 0.3s;
  white-space: nowrap;
}
.btn-ghost-dark:hover {
  background: rgba(229,28,35,0.1);
  border-color: rgba(229,28,35,0.5);
}

/* ─── FOOTER ENHANCEMENTS ────────────────────────────────────── */
.footer-parent-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}
.footer-parent-logo {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.3;
}

/* ─── PRICING SECTION ────────────────────────────────────────── */
.pricing-card--featured {
  box-shadow: 0 0 0 1px rgba(229,28,35,0.3), 0 20px 60px rgba(229,28,35,0.1), 0 8px 40px rgba(229,28,35,0.12);
}

/* ─── FOOTER GRADIENT TOP LINE ──────────────────────────────── */
.footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 30%, var(--blue) 70%, transparent 100%);
  opacity: 0.5;
}

/* ─── MODULE ICONS ANIMATE ON HOVER ─────────────────────────── */
.module-icon-large { transition: transform 0.3s, box-shadow 0.3s; }
.module-icon-large:hover { transform: scale(1.08); }

/* ─── TESTIMONIAL QUOTES ─────────────────────────────────────── */
.testimonial-card > p::before {
  content: '"';
  font-size: 40px;
  line-height: 0;
  vertical-align: -16px;
  color: var(--red);
  opacity: 0.3;
  font-family: Georgia, serif;
  margin-right: 4px;
}

/* ─── INTEGRATION CATEGORY HOVER ────────────────────────────── */
.integration-category { position: relative; overflow: hidden; }
.integration-category::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.integration-category:hover::after { transform: scaleX(1); }

/* ─── SECURITY ICON GLOW ─────────────────────────────────────── */
.security-item:hover i { text-shadow: 0 0 20px rgba(14,165,233,0.5); }

/* ─── GLOBAL STAT GLOW ───────────────────────────────────────── */
.global-stat-card:hover .global-stat-num { text-shadow: 0 0 30px rgba(229,28,35,0.3); }

/* ─── PROGRESS BAR SHIMMER ───────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.mock-pipeline-fill, .mock-progress-bar div, .ai-pred-bar div {
  background-size: 200% auto !important;
  animation: shimmer 3s linear infinite;
}
.mock-pipeline-fill { background-image: linear-gradient(90deg, var(--red), var(--red-light), var(--red)) !important; }
.mock-pipeline-fill.secondary { background-image: linear-gradient(90deg, var(--blue), var(--blue-light), var(--blue)) !important; }
.mock-pipeline-fill.tertiary { background-image: linear-gradient(90deg, var(--gold), #fbbf24, var(--gold)) !important; }
.mock-progress-bar div { background-image: linear-gradient(90deg, var(--red), var(--red-light), var(--red)) !important; }
.ai-pred-bar div { background-image: linear-gradient(90deg, var(--red), var(--blue), var(--red)) !important; }

/* ─── GLOBE ORBITER COLORS ───────────────────────────────────── */
.orb-2 { border-color: rgba(14,165,233,0.4); }
.orb-3 { border-color: rgba(245,158,11,0.4); color: var(--gold) !important; }

/* ─── STICKY DEMO CTA ────────────────────────────────────────── */
.sticky-cta-btn {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(229,28,35,0.3);
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
}
.sticky-cta-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
.sticky-cta-btn:hover {
  background: var(--red-light);
  transform: translateY(-50%) translateX(-4px);
  box-shadow: 0 8px 24px rgba(229,28,35,0.4);
}
@media (max-width: 900px) { .sticky-cta-btn { display: none; } }

/* ─── BACK TO TOP ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 44px; height: 44px;
  background: rgba(229,28,35,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover {
  background: var(--red-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(229,28,35,0.4);
}

/* ─── GLOBAL SECTION ─────────────────────────────────────────── */
.global-section { position: relative; }
.global-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(229,28,35,0.02) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── MODULE FEATURE LIST CHECK ICONS ───────────────────────── */
.module-features-list li i.fa-check {
  background: rgba(229,28,35,0.1);
  padding: 4px;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}

/* ─── AI ENGINE SECTION ALIGNMENT ───────────────────────────── */
.ai-engine-section .section-tag { display: block; text-align: left; }

/* ─── PHONE SHADOW ───────────────────────────────────────────── */
.phone-mockup { box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05); }

/* ─── BODY LOAD ANIMATION ────────────────────────────────────── */
body { opacity: 0; animation: bodyLoad 0.4s ease forwards; }
@keyframes bodyLoad { to { opacity: 1; } }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .msm-unify-banner .msm-unify-logo-wrap { display: none; }
  .laul-inner { grid-template-columns: 1fr; }
  .laul-logo { display: none; }
  .outcomes-case-study-teaser { flex-direction: column; }
  .what-is::before { display: none; }
}

@media (max-width: 640px) {
  .module-panel-content { gap: 28px; }
  .pricing-card--featured { transform: scale(1); }
  .demo-form-wrapper { padding: 28px 20px; }
}
