/* ==========================================================================
   EARLY LOGS - Enterprise School ERP Platform
   Design System & Editorial SaaS Styling
   A division of Jaiton Technologies Pvt Ltd
   ========================================================================== */

:root {
  /* Brand Primary Violet Palette */
  --primary-900: #3B0764;
  --primary-800: #4C1D95;
  --primary-700: #5B21B6;
  --primary-600: #6D28D9;
  --primary-500: #7C3AED;
  --primary-400: #8B5CF6;
  --primary-300: #A78BFA;
  --primary-200: #DDD6FE;
  --primary-100: #EDE9FE;
  --primary-50:  #F5F3FF;

  /* Neutrals & Surfaces */
  --bg-main: #FAF9FF;             /* Near-white lavender */
  --bg-surface: #FFFFFF;          /* Pure white card surface */
  --bg-subtle: #F4F2FB;           /* Soft muted lavender */
  --bg-nav: rgba(250, 249, 255, 0.94);

  /* Typography Colors */
  --text-primary: #1E1B4B;        /* Deep navy */
  --text-secondary: #4B5563;      /* Calibrated slate body */
  --text-muted: #6B7280;          /* Soft grey */
  --text-light: #9CA3AF;
  --text-white: #FFFFFF;

  /* Borders & Shadows */
  --border-subtle: #EDE9FE;
  --border-light: rgba(124, 58, 237, 0.12);
  --border-medium: rgba(124, 58, 237, 0.22);

  --shadow-xs: 0 1px 2px 0 rgba(30, 27, 75, 0.04);
  --shadow-sm: 0 2px 8px 0 rgba(76, 29, 149, 0.06);
  --shadow-md: 0 8px 20px -4px rgba(76, 29, 149, 0.08), 0 3px 6px -2px rgba(76, 29, 149, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(76, 29, 149, 0.12), 0 6px 12px -3px rgba(76, 29, 149, 0.05);
  --shadow-purple: 0 12px 30px -4px rgba(109, 40, 217, 0.18);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #5B21B6 0%, #7C3AED 100%);
  --gradient-header: linear-gradient(135deg, #4C1D95 0%, #6D28D9 60%, #7C3AED 100%);

  /* Module Accents */
  --accent-orange: #EA580C;
  --accent-orange-bg: #FFF7ED;
  --accent-green: #059669;
  --accent-green-bg: #ECFDF5;
  --accent-blue: #0284C7;
  --accent-blue-bg: #F0F9FF;
  --accent-pink: #DB2777;
  --accent-pink-bg: #FDF2F8;
  --accent-teal: #0D9488;
  --accent-teal-bg: #F0FDFA;
  --accent-red: #DC2626;
  --accent-red-bg: #FEF2F2;
  --accent-amber: #D97706;
  --accent-amber-bg: #FFFBEB;
  --accent-purple: #7C3AED;
  --accent-purple-bg: #F5F3FF;

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing Grid (8px based) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1200px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul {
  list-style: none;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

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

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.section-wrapper {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  position: relative;
}

@media (min-width: 768px) {
  .section-wrapper {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-12) auto;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  color: var(--primary-700);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.625rem;
  }
}

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

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(91, 33, 182, 0.28);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4C1D95 0%, #6D28D9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 33, 182, 0.38);
  color: var(--text-white);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--primary-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-white {
  background: var(--text-white);
  color: var(--primary-800);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: #FAF9FF;
  transform: translateY(-2px);
  color: var(--primary-900);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   1. Sticky Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  padding: var(--space-4) 0;
}

.navbar.scrolled {
  padding: var(--space-3) 0;
  box-shadow: var(--shadow-sm);
  background: rgba(250, 249, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Brand Logo Image */
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .brand-logo-img {
    height: 40px;
    max-width: 140px;
  }
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast);
}

.footer-logo-wrap:hover {
  transform: translateY(-2px);
}

.footer-logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}


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

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

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

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

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  gap: 5px;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-normal);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  height: calc(100vh - 68px);
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  padding: 16px 20px 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 6px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary-700);
  border-color: var(--primary-200);
  transform: translateX(3px);
}

.nav-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link-left .nav-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-600);
  flex-shrink: 0;
}

.nav-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.mobile-nav-link:hover .nav-arrow {
  color: var(--primary-600);
  transform: translateX(2px);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-cta-btn {
  width: 100%;
  justify-content: center;
}

.mobile-drawer-subinfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.mobile-helpline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-600);
  text-decoration: none;
}

.mobile-parent-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   2. Hero Section - Structured & Grounded Architecture
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-8);
  padding-bottom: 0;
  background: radial-gradient(120% 90% at 50% 0%, #F5F3FF 0%, #FAF9FF 55%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 992px) {
  .hero-section {
    padding-top: var(--space-10);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: flex-end; /* Ground elements flush to the bottom */
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-8);
  }
}

.hero-content {
  text-align: left;
  padding-bottom: var(--space-6);
}

@media (min-width: 992px) {
  .hero-content {
    padding-bottom: var(--space-10);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  color: var(--primary-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.85rem;
  }
}

.hero-subtext {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

/* Structured Trust Strip Grid */
.trust-strip-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  max-width: 480px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 540px) {
  .trust-strip-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.trust-pill:hover {
  border-color: var(--primary-300);
  transform: translateY(-1px);
}

.trust-pill svg {
  color: var(--primary-600);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Hero Visual Stage (Right Side)
   -------------------------------------------------------------------------- */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-height: 340px;
}

@media (min-width: 992px) {
  .hero-stage {
    min-height: 420px;
  }
}

/* Ambient Glow Circle behind stage */
.stage-ambient-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 85%;
  background: radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.16) 0%, rgba(221, 214, 254, 0.35) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Skyline grounded at the stage base */
.stage-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: cover;
  object-position: bottom;
  opacity: 0.95;
  pointer-events: none;
  z-index: 1;
}

/* Students Cutout sitting directly on base */
.hero-students-img {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(30, 27, 75, 0.16));
}

/* Floating Glass Stat Cards */
.hero-glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px -4px rgba(76, 29, 149, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
  z-index: 3;
  transition: transform var(--transition-normal);
}

.hero-glass-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-400);
}

.card-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon-box.purple {
  background: var(--primary-100);
  color: var(--primary-700);
}

.card-icon-box.green {
  background: #ECFDF5;
  color: #059669;
}

.card-icon-box.amber {
  background: #FFFBEB;
  color: #D97706;
}

.card-text-box {
  display: flex;
  flex-direction: column;
}

.card-title-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.card-sub-text {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

/* Strategic Positioning of the 3 Glass Cards */
.card-pos-top-left {
  top: 25px;
  left: -15px;
  animation: floatSlow 4s ease-in-out infinite;
}

.card-pos-top-right {
  top: 45px;
  right: -15px;
  animation: floatSlow 4.5s ease-in-out 1s infinite;
}

.card-pos-bottom-left {
  bottom: 35px;
  left: -20px;
  animation: floatSlow 5s ease-in-out 0.5s infinite;
}

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

@media (max-width: 768px) {
  .hero-glass-card {
    padding: 8px 10px;
    gap: 8px;
  }
  .card-pos-top-left {
    top: 10px;
    left: 0;
  }
  .card-pos-top-right {
    top: 20px;
    right: 0;
  }
  .card-pos-bottom-left {
    bottom: 20px;
    left: 0;
  }
}


/* --------------------------------------------------------------------------
   3. Platform Overview
   -------------------------------------------------------------------------- */
.overview-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.pillars-4-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .pillars-4-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillars-4-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-item-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pillar-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-400);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.pillar-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-text h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.pillar-text p {
  font-size: 0.84375rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Master Platform Overview Showcase */
.overview-showcase-wrap {
  width: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 48px -8px rgba(76, 29, 149, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  background: #FAF9FF;
  position: relative;
  transition: transform var(--transition-smooth);
}

.overview-showcase-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px -6px rgba(76, 29, 149, 0.22);
}

.overview-showcase-img {
  width: 100%;
  height: auto;
  display: block;
}


/* --------------------------------------------------------------------------
   4. Every Role
   -------------------------------------------------------------------------- */
.roles-section {
  background: var(--bg-main);
}

.roles-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 992px) {
  .roles-showcase-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.roles-image-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
}

.roles-grid-img {
  width: 100%;
  height: auto;
  display: block;
}

.roles-content-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Highlight Chips */
.role-highlight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-700);
}

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

.role-brief-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.role-brief-item svg {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 3px;
}

.role-brief-item strong {
  color: var(--primary-800);
}

/* --------------------------------------------------------------------------
   5. 16 Modules Grid
   -------------------------------------------------------------------------- */
.modules-section {
  background: var(--bg-surface);
}

.modules-controls-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (min-width: 992px) {
  .modules-controls-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }
}

/* Category Filter Tabs */
.module-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-subtle);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.mod-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.mod-tab-btn:hover {
  color: var(--primary-700);
  background: rgba(255, 255, 255, 0.7);
}

.mod-tab-btn.active {
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

/* Quick Search Box */
.module-search-box {
  position: relative;
  min-width: 280px;
  max-width: 380px;
  width: 100%;
}

.mod-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.module-search-box input {
  width: 100%;
  padding: 10px 38px 10px 42px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.module-search-box input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-subtle);
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.clear-search-btn:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

/* Dynamic Counter & Reset Bar */
.modules-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0 4px;
}

.reset-filter-btn {
  background: none;
  border: none;
  color: var(--primary-600);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 0.8125rem;
}

.reset-filter-btn:hover {
  color: var(--primary-800);
}

/* 16 Modules Grid */
.modules-16-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .modules-16-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .modules-16-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .modules-16-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.module-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(30, 27, 75, 0.03);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-300);
  box-shadow: 0 12px 28px -6px rgba(109, 40, 217, 0.12);
}

.module-card.hidden {
  display: none !important;
}

.module-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.module-number {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.module-category-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

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

.module-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.module-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

/* Feature Tag Pills */
.module-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.mod-pill {
  font-size: 0.71875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mod-pill i,
.mod-pill svg {
  width: 12px;
  height: 12px;
  color: var(--primary-600);
  stroke-width: 2.5;
}

/* Custom Modular Deployment Banner */
.modules-bottom-banner {
  margin-top: var(--space-10);
  background: linear-gradient(135deg, #FAF8FF 0%, #F5F3FF 100%);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .modules-bottom-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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

.banner-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--primary-600);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.banner-text h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.banner-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.5;
}

.banner-action {
  flex-shrink: 0;
  width: 100%;
}

.banner-action .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

@media (min-width: 768px) {
  .banner-action {
    width: auto;
  }
  .banner-action .btn {
    width: auto;
    white-space: nowrap;
  }
}

/* Module Icon Accents */
.accent-orange .module-icon-box { background: var(--accent-orange-bg); color: var(--accent-orange); }
.accent-blue .module-icon-box { background: var(--accent-blue-bg); color: var(--accent-blue); }
.accent-green .module-icon-box { background: var(--accent-green-bg); color: var(--accent-green); }
.accent-pink .module-icon-box { background: var(--accent-pink-bg); color: var(--accent-pink); }
.accent-teal .module-icon-box { background: var(--accent-teal-bg); color: var(--accent-teal); }
.accent-red .module-icon-box { background: var(--accent-red-bg); color: var(--accent-red); }
.accent-amber .module-icon-box { background: var(--accent-amber-bg); color: var(--accent-amber); }
.accent-purple .module-icon-box { background: var(--accent-purple-bg); color: var(--accent-purple); }

/* --------------------------------------------------------------------------
   6. Four Apps & Marquee Screen Strips
   -------------------------------------------------------------------------- */
.apps-section {
  background: var(--bg-main);
  overflow: hidden;
}

.app-tab-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
  background: var(--bg-surface);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.app-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

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

.app-tab-btn.active {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.25);
}

.app-tab-panel {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

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

@media (min-width: 992px) {
  .app-tab-panel {
    padding: var(--space-12);
  }
}

.app-hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  margin-bottom: var(--space-12);
}

@media (min-width: 992px) {
  .app-hero-row {
    grid-template-columns: 1fr 1fr;
  }
}

.app-hero-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  background: #FAF9FF;
}

.app-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.app-info-col h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: 1.25;
}

.app-info-col p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.app-feature-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.app-point-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-md);
}

.app-point-item svg {
  color: var(--primary-600);
}

.app-store-btns {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.store-btn:hover {
  border-color: var(--primary-600);
  background: var(--bg-subtle);
}

/* Screen strips container & marquee */
.strips-marquee-wrapper {
  margin-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-8);
}

.strips-marquee-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  text-align: center;
}

.strips-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-2);
}

@media (min-width: 640px) {
  .strips-row {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
  }
}

.strip-item-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px -2px rgba(76, 29, 149, 0.08);
  background: #FFFFFF;
  position: relative;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.strip-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-300);
  box-shadow: 0 16px 36px -4px rgba(76, 29, 149, 0.16);
}

/* Natural 16:9 aspect ratio showing full mobile screens without cropping */
.strip-crop-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  background: #FFFFFF;
}

/* Image Preview Lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.image-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.image-lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #FFFFFF;
  object-fit: contain;
}

.image-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #1E1B4B;
  border: none;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.image-lightbox-close:hover {
  transform: scale(1.1);
  background: #F3F4F6;
}

/* Dedicated Live Van Tracking Band */
.van-tracking-band {
  margin-top: var(--space-16);
  background: linear-gradient(135deg, #1E1B4B 0%, #2E1065 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  color: #FFFFFF;
}

@media (min-width: 992px) {
  .van-tracking-band {
    padding: var(--space-12) var(--space-10);
  }
}

.van-tracking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 992px) {
  .van-tracking-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.van-tracking-text h3 {
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.van-tracking-text p {
  color: #DDD6FE;
  font-size: 1.0625rem;
  margin-bottom: var(--space-6);
}

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

.van-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: #F5F3FF;
}

.van-feat-item svg {
  color: #FBBF24;
}

.van-screens-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.van-screens-img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   7. Security & Architecture
   -------------------------------------------------------------------------- */
.security-section {
  background: var(--bg-surface);
}

.security-3col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-12);
}

@media (min-width: 992px) {
  .security-3col-grid {
    grid-template-columns: 1fr 1.2fr 1fr;
  }
}

.sec-points-col h3 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: var(--space-6);
  color: var(--primary-800);
}

.sec-points-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.sec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sec-item svg {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.sec-item h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.sec-item p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.sec-architecture-center {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  background: #FAF9FF;
}

.sec-arch-img {
  width: 100%;
  height: auto;
  display: block;
}

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

@media (min-width: 768px) {
  .sec-badges-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sec-badge-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sec-badge-card svg {
  color: var(--primary-600);
}

.sec-badge-card span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   8. Live HTML Timeline Roadmap (35-45 Days)
   -------------------------------------------------------------------------- */
.roadmap-section {
  background: var(--bg-main);
}

.roadmap-timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .roadmap-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .roadmap-timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.roadmap-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.roadmap-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-400);
  box-shadow: var(--shadow-sm);
}

.step-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.step-index-num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--primary-600);
}

.step-days-tag {
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.step-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.84375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.step-bullets-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.step-bullets-list li svg {
  color: var(--primary-500);
  flex-shrink: 0;
  margin-top: 3px;
}

.key-outcome-pill {
  margin-top: auto;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.key-outcome-pill strong {
  color: var(--primary-700);
}

/* --------------------------------------------------------------------------
   9. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-section {
  background: var(--bg-surface);
}

.faq-accordion-box {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary-400);
  background: #FFFFFF;
}

.faq-question-btn {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
}

.faq-question-btn:hover {
  color: var(--primary-700);
}

.faq-chevron {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  background: var(--primary-600);
  color: #FFFFFF;
}

.faq-answer-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5) var(--space-6);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. Final CTA
   -------------------------------------------------------------------------- */
.final-cta-section {
  padding: var(--space-16) 0;
}

.final-cta-banner {
  background: var(--gradient-header);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(76, 29, 149, 0.35);
}

@media (min-width: 768px) {
  .final-cta-banner {
    padding: var(--space-16) var(--space-12);
  }
}

.cta-blurred-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/00_school_building_background.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: blur(10px);
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  z-index: 2;
}

.final-cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .final-cta-title {
    font-size: 3.25rem;
  }
}

.final-cta-sub {
  font-size: 1.125rem;
  color: var(--primary-100);
  margin-bottom: var(--space-8);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-btns {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   11. Contact / Demo Request
   -------------------------------------------------------------------------- */
.contact-section {
  background: var(--bg-main);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 992px) {
  .contact-layout-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.demo-card-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.demo-card-form h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.demo-card-form p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-6);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  background: #FFFFFF;
}

.field-input.has-error, .field-select.has-error {
  border-color: var(--accent-red);
}

.field-error-text {
  font-size: 0.75rem;
  color: var(--accent-red);
  display: none;
}

.field-error-text.show {
  display: block;
}

.field-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-success-state {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  animation: fadeIn 0.4s ease-out;
}

.success-badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ECFDF5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3) auto;
}

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

@media (min-width: 500px) {
  .success-actions-row {
    flex-direction: row;
  }
}

.direct-contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.direct-contact-card h3 {
  font-size: 1.375rem;
  font-weight: 800;
}

.contact-channel-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.contact-channel-row:hover {
  transform: translateX(4px);
  border-color: var(--primary-400);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-info .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.channel-info .val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform var(--transition-fast);
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #110E2E;
  color: #94A3B8;
  padding: var(--space-16) 0 var(--space-8) 0;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
}

.footer-grid-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid-top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand-box h4 {
  color: #FFFFFF;
  font-size: 1.375rem;
  margin-bottom: 6px;
}

.footer-brand-box p {
  color: #94A3B8;
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
  max-width: 280px;
}

.footer-parent-label {
  font-size: 0.75rem;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.footer-nav-col h5 {
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link-item {
  font-size: 0.875rem;
  color: #94A3B8;
  transition: color var(--transition-fast);
}

.footer-link-item:hover {
  color: #FFFFFF;
}

.footer-bottom-row {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: 0.8125rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-row {
    flex-direction: row;
    text-align: left;
  }
}

.footer-brand-line {
  font-weight: 600;
  color: var(--primary-300);
}

/* Toast Notification */
.toast-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #1E1B4B;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  max-width: 90vw;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
}

.toast-bar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* ==========================================================================
   4-PILLAR TABBED ECOSYSTEM HUB & DIRECTORY MODAL
   ========================================================================== */

/* 4 Core Pillar Switcher Cards */
.pillar-hub-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .pillar-hub-switcher {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillar-hub-switcher {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar-hub-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(30, 27, 75, 0.03);
}

.pillar-hub-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary-300);
  box-shadow: 0 10px 24px -6px rgba(109, 40, 217, 0.1);
}

.pillar-hub-btn.active {
  background: #FFFFFF;
  border-color: var(--primary-600);
  box-shadow: 0 14px 32px -8px rgba(109, 40, 217, 0.18), 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.pillar-active-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pillar-hub-btn.active .pillar-active-glow {
  opacity: 1;
}

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

.pillar-num-badge {
  font-size: 0.71875rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pillar-hub-btn.active .pillar-num-badge {
  color: var(--primary-600);
}

.pillar-count-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.pillar-hub-btn.active .pillar-count-pill {
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary-700);
}

.pillar-hub-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.pillar-hub-btn:hover .pillar-icon-box {
  transform: scale(1.06);
}

.pillar-icon-box.accent-purple {
  background: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
}
.pillar-icon-box.accent-blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563EB;
}
.pillar-icon-box.accent-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.pillar-icon-box.accent-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.pillar-text-group {
  flex-grow: 1;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0 0 4px;
}

.pillar-hub-btn.active .pillar-title {
  color: var(--primary-800);
}

.pillar-desc {
  font-size: 0.78125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* Active Pillar Showcase Stage */
.pillar-showcase-stage {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: 0 8px 30px -10px rgba(30, 27, 75, 0.05);
  margin-bottom: var(--space-6);
  position: relative;
}

@media (min-width: 768px) {
  .pillar-showcase-stage {
    padding: 32px;
  }
}

.pillar-context-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .pillar-context-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.context-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary-600);
  display: block;
  margin-bottom: 4px;
}

.context-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.context-sync-pill {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065F46;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

/* 4-Module Active Grid (Only 4 modules visible at a time on home) */
.pillar-active-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  animation: pillarFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (min-width: 640px) {
  .pillar-active-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillar-active-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

/* Module Workflow Sync Badge */
.module-sync-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary-700);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  line-height: 1.25;
}

/* Automated Institutional Workflow Flow Banner */
.ecosystem-flow-banner {
  background: linear-gradient(135deg, #1E1B4B 0%, #2E1065 100%);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  color: #FFFFFF;
  margin-bottom: var(--space-6);
  box-shadow: 0 12px 30px -8px rgba(30, 27, 75, 0.25);
}

.flow-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .flow-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #E9D5FF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-caption {
  font-size: 0.8125rem;
  color: #DDD6FE;
}

.flow-steps-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .flow-steps-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  flex: 1;
}

.flow-num-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8125rem;
  color: #FFFFFF;
  flex-shrink: 0;
}

.flow-step-content {
  display: flex;
  flex-direction: column;
}

.flow-step-content strong {
  font-size: 0.84375rem;
  color: #FFFFFF;
  line-height: 1.25;
}

.flow-step-content span {
  font-size: 0.71875rem;
  color: #C4B5FD;
}

.flow-arrow {
  display: none;
  color: #A78BFA;
  font-size: 1.1rem;
  padding: 0 4px;
}

@media (min-width: 768px) {
  .flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Full Index Callout */
.modules-full-index-cta {
  background: var(--bg-subtle);
  border: 1.5px dashed var(--border-light);
  border-radius: var(--radius-xl);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  margin-bottom: var(--space-6);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .modules-full-index-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
  }
}

.modules-full-index-cta .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

@media (min-width: 768px) {
  .modules-full-index-cta .btn {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.index-cta-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.index-cta-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30, 27, 75, 0.04);
}

.index-cta-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.index-cta-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 600px;
}

/* Full Directory Slideout Modal */
.full-directory-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.full-directory-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.full-directory-modal {
  background: #FFFFFF;
  width: 100%;
  max-width: 1240px;
  max-height: 90vh;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.full-directory-modal-backdrop.active .full-directory-modal {
  transform: translateY(0) scale(1);
}

.full-directory-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-subtle);
  background: #FAF8FF;
}

.full-directory-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.modal-close-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FECACA;
}

.modal-controls-bar {
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-subtle);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {
  .modal-controls-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.modal-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-tab-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-tab-btn:hover {
  background: #FFFFFF;
  color: var(--primary-700);
}

.modal-tab-btn.active {
  background: var(--gradient-primary);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(109, 40, 217, 0.2);
}

.modal-search-box {
  position: relative;
  min-width: 260px;
  width: 100%;
  max-width: 360px;
}

.modal-search-box input {
  width: 100%;
  padding: 8px 36px 8px 38px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  font-size: 0.84375rem;
  color: var(--text-primary);
  outline: none;
}

.modal-search-box input:focus {
  border-color: var(--primary-500);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.modal-status-bar {
  padding: 8px 28px;
  background: #FBFBFE;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-cards-grid {
  padding: 24px 28px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .modal-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .modal-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .modal-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
