/* 
 * ScholarERP Enterprise SaaS Stylesheet
 * High-End Design: Salesforce / Monday.com / Notion Inspired Aesthetics
 */

/* --- Brand CSS Tokens --- */
:root {
  /* Color Palette */
  --color-primary: #2563EB;     /* Salesforce Blue */
  --color-primary-dark: #1E40AF;
  --color-indigo: #4F46E5;
  --color-emerald: #10B981;    /* Success Green */
  --color-emerald-light: #D1FAE5;
  --color-orange: #F97316;     /* Call to Action */
  --color-orange-dark: #EA580C;
  --color-red: #EF4444;        /* Pain Points */
  --color-red-light: #FEE2E2;

  /* Theme Surfaces (Light/White Default) */
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-surface: #FFFFFF;
  --border-color: #E2E8F0;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #475569; /* WCAG AA on white (~7:1) */

  /* Theme Surfaces (Dark Elements - AI / Security / SOC) */
  --bg-dark-main: #0B0F19;
  --bg-dark-surface: #111827;
  --border-dark: #1F2937;
  --text-dark-primary: #F9FAFB;
  --text-dark-secondary: #E5E7EB;
  --text-dark-muted: #9CA3AF;

  /* Typography */
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Rounded Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;          /* Premium Rounded Cards */
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 8px -1px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow-blue: 0 0 40px rgba(37, 99, 235, 0.2);
  --shadow-glow-teal: 0 0 40px rgba(16, 185, 129, 0.2);

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1200px;
}

/* ============================================================
   ScholarERP Design System — Token Layer (v2)
   Extends the legacy tokens above with a complete, semantic set.
   Legacy tokens (--color-primary, --radius-*, --shadow-*) are kept
   for backwards compatibility; the semantic aliases below are the
   canonical names new components should use.
   ============================================================ */
:root {
  /* ── Semantic color aliases ─────────────────────────────────── */
  --brand:            #4F46E5;   /* primary brand (indigo) */
  --brand-strong:     #4338CA;
  --brand-soft:       #EEF2FF;
  --accent:           #06B6D4;   /* cyan accent */
  --navy:             #0d1b3e;   /* deep navy (email brand) */
  --crimson:          #d81f3f;   /* crimson (email brand) */

  --success:          #10B981;
  --success-soft:     #D1FAE5;
  --warning:          #F59E0B;
  --warning-soft:     #FEF3C7;
  --danger:           #EF4444;
  --danger-soft:      #FEE2E2;
  --info:              #2563EB;
  --info-soft:         #DBEAFE;

  /* ── Surface & text scale (light theme) ─────────────────────── */
  --surface-0:        #FFFFFF;   /* cards / raised */
  --surface-1:        #F8FAFC;   /* page background */
  --surface-2:        #F1F5F9;   /* inset / wells */
  --surface-3:        #E2E8F0;   /* borders / dividers */
  --ink-1:            #0F172A;   /* headings */
  --ink-2:            #334155;   /* body */
  --ink-3:            #64748B;   /* muted */
  --ink-4:            #94A3B8;   /* placeholder */

  /* ── Spacing scale (4px base) ──────────────────────────────── */
  --space-0: 0;
  --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;

  /* ── Typography scale ───────────────────────────────────────── */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 15px;
  --fs-md:   16px;
  --fs-lg:   18px;
  --fs-xl:   20px;
  --fs-2xl:  24px;
  --fs-3xl:  30px;
  --fs-4xl:  36px;
  --fs-5xl:  44px;
  --fs-6xl:  56px;
  --lh-tight:  1.2;
  --lh-snug:   1.4;
  --lh-normal: 1.6;
  --lh-relaxed:1.75;

  /* ── Layout ─────────────────────────────────────────────────── */
  --container: 1200px;
  --container-narrow: 880px;
  --container-wide: 1320px;
  --section-y: 96px;
  --section-y-sm: 64px;

  /* ── Z-index scale ──────────────────────────────────────────── */
  --z-base:    1;
  --z-sticky:  100;
  --z-header:  200;
  --z-dropdown:300;
  --z-modal:   400;
  --z-toast:   500;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  /* Prevent any nested overflowing element (logo carousel, etc.) from creating a horizontal scrollbar on mobile */
  overflow-x: hidden;
  max-width: 100vw;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Layout Wrappers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0 80px;
  background-color: var(--bg-main);
}

.section-subtle {
  padding: 60px 0 80px;
  background-color: var(--bg-subtle);
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
}

/* Section Header */
.section-headline {
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-headline h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-headline p {
  color: var(--text-secondary);
  font-size: 18px;
}

@media (max-width: 768px) {
  .section-headline h2 {
    font-size: 32px;
  }
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--trans-normal);
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

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

.btn-secondary:hover {
  background-color: var(--bg-subtle);
}

.btn-orange {
  background: var(--color-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-orange:hover {
  background-color: var(--color-orange-dark);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

/* --- Floating Glass Navigation Header --- */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1400px;
  height: 72px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 999px;
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  top: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  height: 64px;
}

/* Nav Container */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  gap: 12px;
}

/* Hamburger menu toggle — hidden on desktop, visible on mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background var(--trans-fast);
  flex-shrink: 0;
}

.menu-toggle:hover {
  background-color: rgba(37, 99, 235, 0.06);
}

.menu-toggle:active {
  background-color: rgba(37, 99, 235, 0.1);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.nav-logo img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin: auto 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 11px;
  border-radius: 99px;
  transition: var(--trans-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 36px;
}

.nav-link::after {
  display: none; /* remove old underline effect */
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(37, 99, 235, 0.05);
}

.nav-link.active {
  color: var(--color-primary);
  background-color: rgba(37, 99, 235, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  /* Pushed to right inside the .nav-menu row */
  margin-left: auto;
}

.nav-actions .btn {
  /* Explicit sizing prevents flexbox stretching in tall pill header */
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  border-radius: 99px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all var(--trans-fast);
  text-decoration: none;
  cursor: pointer;
}

.nav-actions .btn-secondary {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: none;
}

.nav-actions .btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.nav-actions .btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  color: #FFFFFF;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nav-actions .btn-primary:hover {
  background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

/* Mobile adjustments */
@media (max-width: 1100px) {
  .nav-menu {
    gap: 8px;
  }
  .nav-link {
    font-size: 12px;
    padding: 4px 8px;
  }
  /* Slightly tighter buttons at medium screens to keep nav-menu visible */
  .nav-actions .btn {
    padding: 0 14px;
    height: 38px;
  }
  .site-header {
    height: 68px;
  }
  .site-header.scrolled {
    height: 60px;
  }
}

@media (max-width: 640px) {
  .site-header {
    border-radius: 20px;
    padding: 0 16px;
    height: 60px;
    top: 12px;
    width: calc(100% - 24px);
    /* Keep drawer visible — backdrop-filter + pill radius otherwise clips absolute children */
    overflow: visible;
  }
  .site-header.scrolled {
    height: 60px;
    top: 8px;
  }
  .menu-toggle {
    display: flex;
    order: 4;
    position: relative;
    z-index: 10002;
    -webkit-tap-highlight-color: transparent;
  }
  /* Fixed drawer so it is never clipped by the glass header */
  .nav-menu {
    position: fixed !important;
    top: 80px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    height: auto !important;
    max-height: calc(100vh - 100px) !important;
    margin: 0 !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    border-radius: 20px !important;
    flex-direction: column !important;
    padding: 20px 16px !important;
    gap: 6px !important;
    align-items: stretch !important;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22) !important;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
    z-index: 99999 !important;
    overflow-y: auto !important;
    display: flex !important;
  }
  .nav-menu .nav-link {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: left !important;
    border-radius: 12px !important;
    height: auto !important;
    color: var(--text-primary, #0f172a) !important;
    background: transparent;
  }
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: var(--color-primary, #2563eb) !important;
    background-color: rgba(37, 99, 235, 0.08) !important;
  }
  .nav-menu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  body.nav-open .site-header.scrolled {
    top: 8px;
  }
  /* "Free Trial" hidden on mobile — only "Book Demo" remains in the drawer */
  .nav-actions .btn-secondary {
    display: none !important;
  }
  /* The action buttons sit at the bottom of the drawer, separated by a line */
  .nav-actions {
    margin-top: 16px !important;
    margin-left: 0 !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--border-color, #e2e8f0) !important;
    width: 100% !important;
    justify-content: stretch !important;
    gap: 10px !important;
  }
  .nav-actions .btn {
    flex: 1 !important;
    height: 48px !important;
    font-size: 14px !important;
  }
}

/* --- Hero Banner --- */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
  border-bottom: 1px solid var(--border-color);
  padding: 100px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero {
    height: auto;
    padding: 140px 0 80px 0;
  }
}

.hero-text h1 {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 600px;
}

@media (max-width: 992px) {
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

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

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }
}

.hero-stars {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 32px;
}

.hero-stats-row {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .hero-stats-row {
    justify-content: center;
  }
}

.hero-stat-node h4 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
}

.hero-stat-node p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Hero Canvas 3D Mockup Graphics */
.hero-canvas {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-canvas-frame {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-center-cloud {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-indigo));
  color: #FFFFFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: var(--shadow-glow-blue);
  z-index: 10;
  animation: pulse 3s infinite;
}

/* Floating status cards around cloud */
.floating-status-card {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: floatCard 4s ease-in-out infinite;
}

.card-pos-1 { top: 15%; left: 10%; animation-delay: 0s; }
.card-pos-2 { top: 12%; right: 10%; animation-delay: 0.8s; }
.card-pos-3 { bottom: 18%; left: 8%; animation-delay: 1.5s; }
.card-pos-4 { bottom: 15%; right: 5%; animation-delay: 2.2s; }
.card-pos-5 { top: 48%; right: -5%; animation-delay: 3s; }
.card-pos-6 { top: 48%; left: -8%; animation-delay: 1.2s; }

/* SVG Connection Lines in hero background */
.hero-canvas-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* --- Trusted Educational logos scroll --- */
.trusted-logos-panel {
  padding: 60px 0;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.trusted-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 700;
  margin-bottom: 32px;
}

.logo-carousel-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin-bottom: 40px;
}

.logo-carousel-viewport::before, .logo-carousel-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.logo-carousel-viewport::before {
  left: 0;
  background: linear-gradient(to right, #FFFFFF, transparent);
}
.logo-carousel-viewport::after {
  right: 0;
  background: linear-gradient(to left, #FFFFFF, transparent);
}

.logo-carousel-track {
  display: flex;
  width: max-content;
  gap: 60px;
  animation: logoScroll 24s linear infinite;
}

.logo-item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-muted);
  opacity: 0.65;
  white-space: nowrap;
}

/* --- Pain Points --- */
.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .pain-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .pain-points-grid {
    grid-template-columns: 1fr;
  }
}

.pain-point-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: default;
}

/* Default state: Red Pain Point */
.pain-point-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--color-red-light);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  transition: all var(--trans-normal);
}

.pain-point-card h3 {
  font-size: 18px;
  transition: color var(--trans-normal);
}

.pain-point-card p {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--trans-normal);
}

/* Hover state: Green Solution Transformation */
.pain-point-card:hover {
  border-color: var(--color-emerald);
  box-shadow: var(--shadow-md), 0 0 20px rgba(16, 185, 129, 0.15);
}

.pain-point-card:hover .card-icon {
  background-color: var(--color-emerald-light);
  color: var(--color-emerald);
}

.pain-point-card:hover h3 {
  color: var(--color-emerald);
}

/* --- Solution Connecting Network --- */
.solution-network-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 992px) {
  .solution-network-container {
    grid-template-columns: 1fr;
  }
}

.solution-left h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.solution-benefit-bullets {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 480px) {
  .solution-benefit-bullets {
    grid-template-columns: 1fr;
  }
}

.solution-bullet-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.solution-bullet-card span.bullet-check {
  color: var(--color-emerald);
  font-weight: 800;
  font-size: 16px;
}

.solution-bullet-card div h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.solution-bullet-card div p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Interactive Network Sync Mockup panel */
.solution-right-visual {
  position: relative;
  aspect-ratio: 1;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.network-center-hub {
  width: 90px;
  height: 90px;
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  z-index: 10;
  box-shadow: var(--shadow-glow-blue);
}

.network-floating-badge {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}

.badge-pos-1 { top: 15%; left: 15%; }
.badge-pos-2 { top: 10%; right: 25%; }
.badge-pos-3 { top: 38%; left: 8%; }
.badge-pos-4 { top: 35%; right: 8%; }
.badge-pos-5 { bottom: 18%; left: 20%; }
.badge-pos-6 { bottom: 12%; right: 18%; }

/* --- Modules Overview Columns --- */
.modules-scope-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .modules-scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 992px) {
  .site-header .nav-logo img,
  .nav-logo img {
    height: 42px;
    max-width: 132px;
  }
}

@media (max-width: 600px) {
  .modules-scope-grid {
    grid-template-columns: 1fr;
  }
  .lifecycle-timeline-wrapper {
    overflow-x: hidden;
  }
  .lifecycle-timeline-track {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 16px;
  }
  .lifecycle-timeline-track::before {
    top: 0;
    bottom: 0;
    left: 27px;
    width: 3px;
    height: auto;
  }
  .lifecycle-step-node {
    flex-direction: row;
    width: 100%;
    text-align: left;
    align-items: center;
    gap: 12px;
  }
}

.module-scope-column {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.module-scope-column h3 {
  font-size: 20px;
  border-bottom: 2px solid var(--bg-subtle);
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-scope-column h3 span.badge-num {
  font-size: 11px;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.module-scope-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.module-scope-list li {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-scope-list li span.dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

/* --- School Lifecycle Timeline --- */
.lifecycle-timeline-wrapper {
  overflow-x: auto;
  padding: 40px 0;
}

.lifecycle-timeline-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  justify-content: space-between;
  position: relative;
  padding-bottom: 20px;
}

.lifecycle-timeline-track::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.lifecycle-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 120px;
  text-align: center;
}

.lifecycle-step-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.lifecycle-step-node:hover .lifecycle-step-circle {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: scale(1.1);
}

.lifecycle-step-node h4 {
  font-size: 13px;
}

/* --- AI Intelligence (Scholar AI) --- */
.ai-section {
  background: linear-gradient(135deg, var(--bg-dark-main), #0F172A);
  color: var(--text-dark-primary);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.ai-section h2 {
  color: #FFFFFF;
}

.ai-section p {
  color: var(--text-dark-secondary);
}

.ai-grid-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 992px) {
  .ai-grid-split {
    grid-template-columns: 1fr;
  }
}

/* AI prediction grid cards */
.ai-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 480px) {
  .ai-cards-container {
    grid-template-columns: 1fr;
  }
}

.ai-spec-card {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.ai-spec-card h4 {
  font-size: 15px;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.ai-spec-card p {
  font-size: 12px;
  color: var(--text-dark-muted);
}

/* Neural Network canvas representation */
.ai-neural-visual {
  position: relative;
  aspect-ratio: 16/11;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ai-neural-core {
  font-size: 32px;
  animation: rotateSlow 20s linear infinite;
}

/* --- Phone swiper mockup --- */
.pts-experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .pts-experience-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }
}

.phone-mockup-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.phone-device-frame {
  width: 100%;
  aspect-ratio: 9/16;
  border: 12px solid #0F172A;
  border-radius: 36px;
  background-color: var(--bg-subtle);
  overflow: hidden;
  position: relative;
}

.phone-screen-slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.phone-slide-content {
  width: 33.333%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  justify-content: space-between;
}

/* Phone slide UI mock details */
.phone-header-mock {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.phone-body-mock {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.phone-body-mock h4 {
  font-size: 14px;
}

.phone-body-mock p {
  font-size: 11px;
  color: var(--text-muted);
}

/* --- Automation Workflow --- */
.workflow-nodes-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  flex-wrap: wrap;
  gap: 24px;
}

.workflow-nodes-container::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

@media (max-width: 768px) {
  .workflow-nodes-container::before {
    display: none;
  }
  .workflow-nodes-container {
    justify-content: center;
  }
}

.workflow-node-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  width: 120px;
  box-shadow: var(--shadow-sm);
}

.workflow-node-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
}

.workflow-node-item h4 {
  font-size: 12px;
}

/* --- KPI Dashboard Screens --- */
.dashboard-kpi-showcase {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .dashboard-kpi-showcase {
    grid-template-columns: 1fr;
  }
}

/* Dashboard Mockup card */
.kpi-board-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.kpi-board-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 480px) {
  .kpi-board-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-box-item {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.kpi-box-item span.kpi-lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.kpi-box-item div.kpi-val {
  font-size: 20px;
  font-weight: 800;
  margin-top: 4px;
}

/* --- Integrations Grid --- */
.integrations-box-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .integrations-box-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 600px) {
  .integrations-box-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.integration-node-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.integration-node-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.integration-icon-container {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.integration-node-card span {
  font-size: 12px;
  font-weight: 700;
}

/* --- Security & Compliance --- */
.security-dark-panel {
  background: linear-gradient(135deg, #090F19, #111827);
  color: var(--text-dark-primary);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.security-dark-panel h2 {
  color: #FFFFFF;
}

.security-dark-panel p {
  color: var(--text-dark-secondary);
}

.security-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 992px) {
  .security-grid-layout {
    grid-template-columns: 1fr;
  }
}

.security-compliance-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 480px) {
  .security-compliance-matrix {
    grid-template-columns: 1fr;
  }
}

.compliance-badge-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.compliance-badge-item h4 {
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.compliance-badge-item p {
  font-size: 12px;
  color: var(--text-dark-muted);
}

/* --- Implementation steps --- */
.implement-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

@media (max-width: 992px) {
  .implement-steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

.implement-step-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.implement-step-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.implement-step-box h4 {
  font-size: 15px;
}

.implement-step-box p {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Testimonials Grid --- */
.testimonials-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .testimonials-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .testimonials-grid-layout {
    grid-template-columns: 1fr;
  }
}

.testimonial-quote-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.test-stars {
  color: #FBBF24;
  font-size: 14px;
}

.testimonial-quote-box blockquote {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}

.testimonial-profile-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-meta-block h4 {
  font-size: 14px;
}

.profile-meta-block p {
  font-size: 11px;
  color: var(--text-muted);
}

/* --- Pricing Tiers --- */
.pricing-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .pricing-cards-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .pricing-cards-wrapper {
    grid-template-columns: 1fr;
  }
}

.price-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.price-card-item.highlighted {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.price-card-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.price-card-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-card-rate {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
}

.price-card-rate span.period {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.price-card-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* --- Resources --- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .resources-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
}

.resource-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.resource-card-img-mock {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.resource-card-body {
  padding: 24px;
}

.resource-card-body span.cat-lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 1px;
}

.resource-card-body h4 {
  font-size: 16px;
  margin: 8px 0;
}

.resource-card-body p {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- FAQ Accordions --- */
.faqs-accordion-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-node-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-node-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
}

.faq-node-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--trans-normal);
}

.faq-node-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans-slow);
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.faq-node-answer p {
  padding-bottom: 20px;
}

.faq-node-item.active {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-md);
}

.faq-node-item.active .faq-node-question svg {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* --- Final Call to Action --- */
.final-cta-panel {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.final-cta-panel::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 60%);
  top: -25%;
  left: -25%;
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta-content h2 {
  color: #FFFFFF;
  font-size: 44px;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}

.final-cta-content p {
  color: var(--text-dark-secondary);
  font-size: 17px;
  margin-bottom: 32px;
}

.cta-btn-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- PRODUCT PAGE SPECIFIC LAYOUTS & INTERACTIVE SYSTEMS --- */

/* Clickable Interactive Platform map diagram nodes */
.interactive-map-frame {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-center-core {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  z-index: 10;
  box-shadow: var(--shadow-glow-blue);
  border: 4px solid #FFFFFF;
}

.map-click-node {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: #FFFFFF;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 5;
  transition: all var(--trans-fast);
}

.map-click-node:hover, .map-click-node.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: scale(1.15);
  box-shadow: var(--shadow-md);
}

/* Specific node placements */
.node-pos-1 { top: 12%; left: 30%; }
.node-pos-2 { top: 10%; right: 30%; }
.node-pos-3 { top: 28%; left: 10%; }
.node-pos-4 { top: 25%; right: 10%; }
.node-pos-5 { bottom: 28%; left: 10%; }
.node-pos-6 { bottom: 25%; right: 10%; }
.node-pos-7 { bottom: 12%; left: 30%; }
.node-pos-8 { bottom: 10%; right: 30%; }

/* Pop-up detail bubble below diagram */
.map-popup-bubble {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-top: 24px;
  display: none;
  animation: fadeIn 0.3s ease-out;
}

/* Chat Assistant simulated interface */
.chat-assistant-wrapper {
  background-color: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 400px;
}

.chat-console-header {
  background-color: #0F172A;
  padding: 16px;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-dot-green {
  width: 8px;
  height: 8px;
  background-color: var(--color-emerald);
  border-radius: var(--radius-full);
}

.chat-console-logs {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg-row {
  display: flex;
  gap: 10px;
  max-width: 80%;
}

.chat-msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-bubble {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-dark-secondary);
}

.chat-msg-row.user .chat-msg-bubble {
  background-color: var(--color-primary);
  border-color: transparent;
  color: #FFFFFF;
}

.chat-console-options {
  background-color: #0F172A;
  padding: 12px 16px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.chat-option-btn {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 11px;
  color: var(--text-dark-primary);
  white-space: nowrap;
  transition: all var(--trans-fast);
}

.chat-option-btn:hover {
  background-color: var(--color-primary);
  border-color: transparent;
}

/* Deploy options comparisons table */
.deploy-matrix-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.deploy-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-surface);
}

.deploy-matrix-table th, .deploy-matrix-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.deploy-matrix-table th {
  background-color: var(--bg-subtle);
  font-weight: 700;
}

.deploy-matrix-table tr:last-child td {
  border-bottom: none;
}

.deploy-matrix-table td.matrix-header {
  font-weight: 700;
  color: var(--color-primary);
}

/* Parameter Why Compare Cards */
.why-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.compare-card-column {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.compare-card-column.modern {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.compare-title-row {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--bg-subtle);
  padding-bottom: 12px;
}

.compare-list-desc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-list-desc li {
  font-size: 13px;
  color: var(--text-secondary);
}

.compare-list-desc li strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* --- Premium Slate-Dark Site Footer --- */
.site-footer {
  background-color: #0B0F19; /* Custom dark slate space */
  border-top: 1px solid #1E293B;
  padding: 88px 0 40px 0;
  color: #F8FAFC;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

.footer-brand p {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.6;
  margin: 16px 0 16px 0;
  max-width: 320px;
}

.footer-brand .footer-hotlines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .footer-hotline-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94A3B8;
}

.footer-brand .footer-hotline-item svg {
  color: var(--color-primary);
  width: 14px;
  height: 14px;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.footer-links a {
  font-size: 14px;
  color: #94A3B8;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: #64748B;
}

.footer-bottom-links {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
}

.footer-bottom-links a {
  font-size: 13px;
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* Social icons layout */
.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-link {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: #111827;
  border: 1px solid #1E293B;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 14px;
  height: 14px;
}

/* Keyframe Animations */
@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes rotateSlow {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Phase 8: Enhanced Premium Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.85); }
  60%  { opacity: 1; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.3); }
  50%  { opacity: 1; transform: scale(1.08); }
  70%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}
@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(37, 99, 235, 0.25); }
  50%      { box-shadow: 0 0 32px rgba(37, 99, 235, 0.55); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes tiltHover {
  0%   { transform: perspective(800px) rotateX(0) rotateY(0); }
  100% { transform: perspective(800px) rotateX(2deg) rotateY(-2deg); }
}

/* Scroll Trigger reveal animations (unified Phase 3) */
.animate-scroll,
.animate-on-scroll,
.section-header,
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-scroll.reveal,
.animate-scroll.visible,
.animate-on-scroll.reveal,
.animate-on-scroll.visible,
.section-header.reveal,
.section-header.visible,
[data-reveal].reveal,
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* === Phase 8: Stagger delays for child reveals === */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.stagger-children > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2)  { animation-delay: 0.12s; }
.stagger-children > *:nth-child(3)  { animation-delay: 0.20s; }
.stagger-children > *:nth-child(4)  { animation-delay: 0.28s; }
.stagger-children > *:nth-child(5)  { animation-delay: 0.36s; }
.stagger-children > *:nth-child(6)  { animation-delay: 0.44s; }
.stagger-children > *:nth-child(7)  { animation-delay: 0.52s; }
.stagger-children > *:nth-child(8)  { animation-delay: 0.60s; }
.stagger-children > *:nth-child(9)  { animation-delay: 0.68s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.76s; }
.stagger-children > *:nth-child(11) { animation-delay: 0.84s; }
.stagger-children > *:nth-child(12) { animation-delay: 0.92s; }
.stagger-children > *:nth-child(n+13) { animation-delay: 1.00s; }

/* === Phase 8: Direction-aware reveal variants === */
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="left"].reveal,
[data-reveal="left"].visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].reveal,
[data-reveal="right"].visible { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="scale"].reveal,
[data-reveal="scale"].visible { transform: scale(1); }
[data-reveal="zoom"] {
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-reveal="zoom"].reveal,
[data-reveal="zoom"].visible { transform: scale(1); }

/* === Phase 8: Hover utilities === */
.hover-lift {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  will-change: transform;
}
.hover-lift:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
}
.tilt-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}
.tilt-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-3deg) translateY(-4px);
}
.grow-icon { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.grow-icon:hover { transform: scale(1.15) rotate(-3deg); }

/* === Phase 8: Animated gradient border === */
.gradient-border {
  position: relative;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #2563EB, #7C3AED, #EC4899) border-box;
  border: 2px solid transparent;
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

/* === Phase 8: Reduced motion preference === */
@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;
  }
  .stagger-children > * { opacity: 1; transform: none; animation: none; }
  .floatY, .floatCard, .pulse, .glowPulse { animation: none !important; }
}


/* ==========================================================================
   NEW PRODUCT TOUR PAGE STYLES (EXPLAINED BLUEPRINT SECTIONS)
   ========================================================================== */

/* Section 2: Full-screen Platform Explorer Canvas */
.explorer-canvas-container {
  position: relative;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 50px 30px;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: radial-gradient(rgba(37,99,235,0.06) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.explorer-center-hub {
  position: relative;
  z-index: 10;
  width: 130px;
  height: 130px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow-glow-blue);
  border: 4px solid #FFFFFF;
}

.explorer-center-hub span.sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.85;
}

.explorer-floating-node {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  z-index: 5;
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.explorer-floating-node:hover {
  transform: scale(1.1) translateY(-2px);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* Canvas coordinate nodes positioning (30 modules) */
.exp-node-1  { top: 8%; left: 10%; }
.exp-node-2  { top: 6%; left: 35%; }
.exp-node-3  { top: 5%; right: 35%; }
.exp-node-4  { top: 8%; right: 10%; }
.exp-node-5  { top: 22%; left: 6%; }
.exp-node-6  { top: 20%; right: 6%; }
.exp-node-7  { top: 38%; left: 4%; }
.exp-node-8  { top: 35%; right: 4%; }
.exp-node-9  { bottom: 38%; left: 4%; }
.exp-node-10 { bottom: 35%; right: 4%; }
.exp-node-11 { bottom: 22%; left: 6%; }
.exp-node-12 { bottom: 20%; right: 6%; }
.exp-node-13 { bottom: 8%; left: 10%; }
.exp-node-14 { bottom: 6%; left: 35%; }
.exp-node-15 { bottom: 5%; right: 35%; }
.exp-node-16 { bottom: 8%; right: 10%; }
.exp-node-17 { top: 25%; left: 24%; }
.exp-node-18 { top: 22%; right: 24%; }
.exp-node-19 { bottom: 25%; left: 24%; }
.exp-node-20 { bottom: 22%; right: 24%; }

/* Explorer Canvas modal details popup */
.explorer-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15,23,42,0.4);
  backdrop-filter: blur(8px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-normal);
}

.explorer-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.explorer-modal-box {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--trans-normal);
}

.explorer-modal-overlay.active .explorer-modal-box {
  transform: translateY(0);
}

.explorer-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

/* Section 3: Platform Architecture Layered stack */
.arch-layers-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.arch-layer-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--trans-fast);
  cursor: default;
  position: relative;
}

.arch-layer-item:hover {
  border-color: var(--color-primary);
  background-color: rgba(37,99,235,0.03);
  transform: scale(1.02);
}

/* Section 4: Institution Digital Twin grids */
.digital-twin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .digital-twin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .digital-twin-grid {
    grid-template-columns: 1fr;
  }
}

.twin-building-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  cursor: pointer;
  transition: all var(--trans-normal);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.twin-building-card:hover, .twin-building-card.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.twin-ping-glow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  background-color: var(--color-emerald);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow-teal);
}

/* Section 7: Automation Studio Builder */
.automation-studio-canvas {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.auto-builder-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.auto-flow-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.auto-flow-card::after {
  content: '↓';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
}

.auto-flow-card:last-child::after {
  display: none;
}

/* Section 13: Security Operations Center Dashboard (Dark UI) */
.soc-console-dashboard {
  background-color: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  font-family: monospace;
}

.soc-console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.soc-scan-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--color-emerald);
}

.soc-scan-line-anim {
  width: 12px;
  height: 12px;
  background-color: var(--color-emerald);
  border-radius: var(--radius-full);
  animation: pulse 1.5s infinite;
}

.soc-threat-indicators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 550px) {
  .soc-threat-indicators {
    grid-template-columns: 1fr;
  }
}

.soc-stat-box {
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dark);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.soc-logs-stream {
  background-color: #0F172A;
  border: 1px solid var(--border-dark);
  padding: 20px;
  border-radius: var(--radius-sm);
  height: 180px;
  overflow-y: auto;
  color: #10B981;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Section 15: Developer REST API Code container */
.dev-console-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .dev-console-layout {
    grid-template-columns: 1fr;
  }
}

.dev-code-box {
  background-color: #0F172A;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  padding: 24px;
  color: #F8FAFC;
  font-family: monospace;
  font-size: 12px;
  overflow-x: auto;
}

.dev-tab-header {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.dev-tab-btn {
  font-weight: 700;
  color: var(--text-dark-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.dev-tab-btn.active {
  color: var(--color-primary);
}

/* Section 16: Product Roadmap horizontal flow */
.roadmap-timeline-wrapper {
  overflow-x: auto;
  padding: 30px 0;
}

.roadmap-timeline-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  justify-content: space-around;
  position: relative;
}

.roadmap-timeline-track::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.roadmap-node-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 260px;
  text-align: center;
  background-color: var(--bg-main);
  padding: 0 10px;
}

.roadmap-node-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: #FFFFFF;
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}


/* ==========================================================================
   MODULES LIBRARY PAGE STYLES (MODULES.HTML)
   ========================================================================== */

/* Rotating 3D cube illustration */
.rotating-3d-cube-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  perspective: 800px;
  margin: 0 auto;
}

.cube-container-box {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  animation: rotateCube 12s infinite linear;
}

.cube-side-face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(37,99,235,0.08);
  border: 2.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--color-primary);
  box-shadow: var(--shadow-glow-blue);
  backface-visibility: hidden;
}

/* Face directions translations */
.face-front  { transform: rotateY(0deg) translateZ(100px); background: rgba(255,255,255,0.9); }
.face-back   { transform: rotateY(180deg) translateZ(100px); background: rgba(255,255,255,0.9); }
.face-right  { transform: rotateY(90deg) translateZ(100px); background: rgba(255,255,255,0.9); }
.face-left   { transform: rotateY(-90deg) translateZ(100px); background: rgba(255,255,255,0.9); }
.face-top    { transform: rotateX(90deg) translateZ(100px); background: rgba(255,255,255,0.9); }
.face-bottom { transform: rotateX(-90deg) translateZ(100px); background: rgba(255,255,255,0.9); }

@keyframes rotateCube {
  0%   { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Circular navigation categories dial (Section 2) */
.circular-nav-container {
  position: relative;
  width: 460px;
  height: 460px;
  border-radius: var(--radius-full);
  border: 1px dashed var(--border-color);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 550px) {
  .circular-nav-container {
    width: 290px;
    height: 290px;
  }
}

.circular-nav-center {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow-glow-blue);
  z-index: 10;
}

.circular-dial-slice {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  transition: all var(--trans-fast);
}

.circular-dial-slice:hover, .circular-dial-slice.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: var(--shadow-md);
}

/* Circular dial position coordinates (8 category nodes) */
.dial-pos-1 { top: 6%; left: 45%; }
.dial-pos-2 { top: 18%; right: 10%; }
.dial-pos-3 { top: 45%; right: 4%; }
.dial-pos-4 { bottom: 18%; right: 10%; }
.dial-pos-5 { bottom: 6%; left: 45%; }
.dial-pos-6 { bottom: 18%; left: 10%; }
.dial-pos-7 { top: 45%; left: 4%; }
.dial-pos-8 { top: 18%; left: 10%; }

/* Custom list of module cards (Section 3) */
.library-filter-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.search-input-field {
  flex-grow: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  font-size: 14px;
  outline: none;
  transition: border var(--trans-fast);
}

.search-input-field:focus {
  border-color: var(--color-primary);
}

.filter-select-dropdown {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  font-size: 14px;
  outline: none;
  background-color: #FFFFFF;
}

/* 40+ module cards grid container */
.modules-library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .modules-library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .modules-library-grid {
    grid-template-columns: 1fr;
  }
}

.library-module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.library-module-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.card-cat-badge {
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

.library-card-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(37,99,235,0.08);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.library-card-users {
  border-top: 1.5px solid var(--bg-subtle);
  padding-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.library-card-users span {
  background-color: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Marketplace App connector cards (Section 10) */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .marketplace-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .marketplace-grid {
    grid-template-columns: 1fr;
  }
}

.marketplace-app-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.marketplace-app-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.app-store-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  background-color: var(--color-primary);
  color: #FFFFFF;
  transition: all var(--trans-fast);
}

.app-store-btn.installed {
  background-color: var(--color-emerald-light);
  color: var(--color-emerald);
  cursor: default;
}


/* ==========================================================================
   SOLUTIONS PORTAL PAGE STYLES (AUDIENCES.HTML)
   ========================================================================== */

/* Section 2: Choose your institution Selector */
.institution-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .institution-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .institution-selector-grid {
    grid-template-columns: 1fr;
  }
}

.selector-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  cursor: pointer;
  transition: all var(--trans-normal);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.selector-card-item:hover, .selector-card-item.active {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

/* Section 3: Storytelling transformation panes */
.transformation-story-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.transformation-story-pane.active {
  display: block;
}

.story-grid-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 992px) {
  .story-grid-split {
    grid-template-columns: 1fr;
  }
}

/* Before vs After comparative cards */
.before-after-wrapper {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.before-card-segment, .after-card-segment {
  border-bottom: 1.5px dashed var(--border-color);
  padding-bottom: 16px;
}

.after-card-segment {
  border-bottom: none;
  padding-bottom: 0;
}

/* Section 6: Stakeholder day-in-the-life journeys */
.stakeholder-timeline-track {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 30px 0;
}

.stakeholder-milestone {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 220px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}

.stakeholder-milestone::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
}

.stakeholder-milestone:last-child::after {
  display: none;
}

/* Section 8: Common Challenges Problem-Solution cards */
.challenges-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .challenges-grid-layout {
    grid-template-columns: 1fr;
  }
}

.challenge-solution-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.challenge-problem-block {
  background-color: var(--color-red-light);
  padding: 30px 24px;
  color: var(--text-primary);
}

.challenge-solution-block {
  background-color: var(--color-emerald-light);
  padding: 30px 24px;
  color: var(--text-primary);
}

/* Section 9: Success KPI Charts Progress bars */
.kpi-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .kpi-charts-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
}

.kpi-progress-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.kpi-bar-chart {
  width: 100%;
  height: 8px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-full);
  margin-top: 16px;
  overflow: hidden;
}

.kpi-bar-progress {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================================
   NEW SCHOLAR AI SHOWCASE PAGE STYLES (AI.HTML)
   ========================================================================== */

/* Body Light Theme parameters override */
.ai-page-light {
  background-color: #FFFFFF !important;
  color: var(--text-primary) !important;
}

.ai-page-light .site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--border-color);
}

.ai-page-light h1, .ai-page-light h2, .ai-page-light h3, .ai-page-light h4 {
  color: var(--text-primary) !important;
}

.ai-page-light p {
  color: var(--text-secondary) !important;
}

.ai-page-light .section, .ai-page-light .section-subtle {
  background-color: #FFFFFF !important;
  border-bottom-color: var(--border-color);
}

.ai-page-light .btn-secondary {
  background-color: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.ai-page-light .btn-secondary:hover {
  background-color: var(--bg-subtle);
}

/* Background canvas flow */
.ai-background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Section 3: Full-width animated pulse line heartbeat (Bloomberg Style) */
.heartbeat-pulse-container {
  width: 100%;
  height: 180px;
  background-color: rgba(0, 0, 0, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.heartbeat-pulse-svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
}

/* Section 7: Starmap Constellation galaxy */
.galaxy-cluster-universe {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1.2;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 0 auto;
}

.galaxy-star-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--color-indigo);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--color-indigo);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.galaxy-star-node:hover {
  transform: scale(2);
  background-color: #00D2C4;
  box-shadow: 0 0 16px #00D2C4;
}

.star-pos-1 { top: 20%; left: 30%; }
.star-pos-2 { top: 35%; left: 55%; }
.star-pos-3 { top: 15%; right: 20%; }
.star-pos-4 { bottom: 30%; left: 25%; }
.star-pos-5 { bottom: 25%; right: 35%; }

/* Section 8: Document glide extractor animation */
.document-glide-wrapper {
  position: relative;
  height: 320px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.glide-document-sheet {
  position: absolute;
  width: 180px;
  height: 240px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  top: 40px;
  animation: documentGlideAnim 6s linear infinite;
  box-shadow: var(--shadow-sm);
}

.glide-ocr-mask {
  position: absolute;
  top: 40px;
  left: 20px;
  width: 140px;
  height: 30px;
  background-color: rgba(0, 210, 196, 0.1);
  border-left: 2px solid #00D2C4;
  opacity: 0;
  animation: ocrScanMaskAnim 6s linear infinite;
}

@keyframes documentGlideAnim {
  0% { left: -200px; opacity: 0; }
  10% { left: 40px; opacity: 1; }
  90% { left: 280px; opacity: 1; }
  100% { left: 500px; opacity: 0; }
}

@keyframes ocrScanMaskAnim {
  0% { opacity: 0; }
  20% { opacity: 1; top: 40px; }
  60% { opacity: 1; top: 180px; }
  80% { opacity: 0; }
}

/* Section 10: Scenario Range slider simulation */
.scenario-simulation-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.slider-input-element {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--border-color);
  outline: none;
  margin: 20px 0;
}

.slider-input-element::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: var(--color-indigo);
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-indigo);
  transition: transform var(--trans-fast);
}

.slider-input-element::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.metric-impact-bar {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}

.impact-fill {
  height: 100%;
  background-color: var(--color-primary);
  width: 30%;
  transition: width 0.3s ease-out;
}


/* ==========================================================================
   SCHOLAR ERP PRICING PAGE STYLES (PRICING.HTML)
   ========================================================================== */

/* Pricing 3-Column Grid */
.pricing-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .pricing-cards-container {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 40px auto 0 auto;
  }
}

.price-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
  position: relative;
}

.price-card-box.highlighted {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  transform: translateY(-8px);
}

.price-card-box:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(37,99,235,0.08);
}

.price-card-box.highlighted:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue), 0 15px 40px rgba(37,99,235,0.15);
}

/* Pricing Switch Toggle Custom */
.pricing-toggle-container {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
}

.pricing-toggle-control {
  position: relative;
  width: 48px;
  height: 24px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: background-color var(--trans-fast);
}

.pricing-toggle-control.active {
  background-color: var(--color-indigo);
}

.pricing-toggle-control span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background-color: #FFFFFF;
  border-radius: var(--radius-full);
  transition: transform var(--trans-fast);
}

.pricing-toggle-control.active span {
  transform: translateX(24px);
}

/* Feature Matrix Table */
.feature-matrix-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface);
}

.feature-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.feature-matrix-table th, .feature-matrix-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.feature-matrix-table th {
  background-color: var(--bg-subtle);
  font-weight: 700;
}

.feature-matrix-table tr:hover td {
  background-color: rgba(37,99,235,0.01);
}

.feature-matrix-table td.category-header {
  font-weight: 800;
  background-color: var(--bg-subtle);
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

/* Marketplace Addons Grid */
.addons-marketplace-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .addons-marketplace-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .addons-marketplace-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 400px) {
  .addons-marketplace-grid {
    grid-template-columns: 1fr;
  }
}

.addon-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
}

.addon-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

/* Custom Evolving Campus Visual Frame */
.pricing-evolving-canvas {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1.1;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-evolving-canvas svg {
  width: 90%;
  height: 90%;
}


/* ==========================================================================
   SCHOLAR ERP RESOURCES PAGE STYLES (RESOURCES.HTML)
   ========================================================================== */

/* Editorial Cards */
.editorial-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .editorial-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .editorial-grid-layout {
    grid-template-columns: 1fr;
  }
}

.featured-editorial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.featured-editorial-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md), 0 10px 30px rgba(37,99,235,0.08);
}

.editorial-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.editorial-body-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Learning Roadmap Progressive Timelines */
.learning-timeline-progress {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding-left: 32px;
}

.learning-timeline-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 11px;
  width: 2px;
  height: 100%;
  background-color: var(--border-color);
  z-index: 1;
}

.learning-roadmap-milestone {
  position: relative;
  z-index: 2;
}

.learning-roadmap-milestone::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: #FFFFFF;
  border: 3px solid var(--color-primary);
  transition: all var(--trans-fast);
}

.learning-roadmap-milestone:hover::before {
  background-color: var(--color-primary);
  transform: scale(1.2);
}

/* Horizontal Video Carousel viewports */
.resources-carousel-viewport {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.resources-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.video-carousel-card {
  min-width: 280px;
  max-width: 280px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
}

.video-carousel-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.video-card-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
}

.video-duration-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(15,23,42,0.85);
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.resources-hero-canvas svg {
  width: 90%;
  height: 90%;
}


/* ==========================================================================
   ABOUT DIDC PAGE STYLES (ABOUT.HTML)
   ========================================================================== */

/* Orb Ecosystem Orbit styling */
.didc-orbiting-universe {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  border: 1.5px dashed var(--border-color);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 550px) {
  .didc-orbiting-universe {
    width: 290px;
    height: 290px;
  }
}

.didc-core-node {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: var(--color-indigo);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 0 40px rgba(79,70,229,0.3);
  border: 4px solid #FFFFFF;
  z-index: 10;
}

.didc-core-node span.sub {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.orbit-child-node {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: #FFFFFF;
  border: 2px solid var(--color-indigo);
  color: var(--color-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  z-index: 5;
  transition: all var(--trans-fast);
}

.orbit-child-node:hover, .orbit-child-node.active {
  background-color: var(--color-indigo);
  color: #FFFFFF;
  border-color: transparent;
  transform: scale(1.2);
  box-shadow: var(--shadow-md);
}

/* Orbit position coordinates (8 nodes) */
.orbit-pos-1 { top: 4%; left: 45%; }
.orbit-pos-2 { top: 16%; right: 10%; }
.orbit-pos-3 { top: 45%; right: 4%; }
.orbit-pos-4 { bottom: 16%; right: 10%; }
.orbit-pos-5 { bottom: 4%; left: 45%; }
.orbit-pos-6 { bottom: 16%; left: 10%; }
.orbit-pos-7 { top: 45%; left: 4%; }
.orbit-pos-8 { top: 16%; left: 10%; }

/* Circular Corporate Values layout */
.values-circle-rotator {
  position: relative;
  width: 440px;
  height: 440px;
  border-radius: var(--radius-full);
  border: 1px dashed var(--border-color);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 550px) {
  .values-circle-rotator {
    width: 280px;
    height: 280px;
  }
}

.value-center-emblem {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow-glow-blue);
  z-index: 10;
}

.value-node-item {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  transition: all var(--trans-fast);
}

.value-node-item:hover, .value-node-item.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: var(--shadow-md);
}

/* Coordinates value circles */
.val-pos-1 { top: 5%; left: 45%; }
.val-pos-2 { top: 18%; right: 10%; }
.val-pos-3 { top: 45%; right: 4%; }
.val-pos-4 { bottom: 18%; right: 10%; }
.val-pos-5 { bottom: 5%; left: 45%; }
.val-pos-6 { bottom: 18%; left: 10%; }
.val-pos-7 { top: 45%; left: 4%; }
.val-pos-8 { top: 18%; left: 10%; }


/* ==========================================================================
   SUPPORT PORTAL STYLES (CONTACT.HTML)
   ========================================================================== */

/* Live Uptime Pulsing Indicator */
.status-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-emerald);
  border-radius: var(--radius-full);
  display: inline-block;
  position: relative;
  margin-right: 8px;
}

.status-pulse-dot::after {
  content: '';
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background-color: var(--color-emerald);
  position: absolute;
  top: 0;
  left: 0;
  animation: status-pulse-glow 1.8s infinite ease-out;
}

@keyframes status-pulse-glow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Ticket Wizard Step panels layout */
.ticket-wizard-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
}

.ticket-wizard-steps-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 15px;
}

.wizard-header-indicator {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--trans-fast);
}

.wizard-header-indicator.active {
  color: var(--color-primary);
}

.ticket-wizard-pane {
  display: none;
  animation: wizard-fade-in 0.25s ease-out forwards;
}

.ticket-wizard-pane.active {
  display: block;
}

@keyframes wizard-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Support SLA Table Matrix styling */
.support-sla-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .support-sla-grid {
    grid-template-columns: 1fr;
  }
}

.support-sla-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
}

.support-sla-box:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* Custom Help Desk Grid */
.help-desk-channels-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 28px;
}

.help-desk-channels-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 9px;
  width: 2px;
  height: 100%;
  background-color: var(--border-color);
}

.channel-node-timeline {
  position: relative;
}

.channel-node-timeline::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: #FFFFFF;
  border: 2px solid var(--color-primary);
}


/* ==========================================================================
   INTERACTIVE HOMEPAGE HERO MOCKUP STYLES
   ========================================================================== */

.hero-kpi-card.interactive {
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  user-select: none;
}

.hero-kpi-card.interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.hero-kpi-card.interactive.active {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.08);
}

.hero-kpi-card.interactive.active.accent-1 { border-color: var(--color-primary) !important; background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), #FFFFFF); }
.hero-kpi-card.interactive.active.accent-2 { border-color: var(--color-emerald) !important; background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), #FFFFFF); }
.hero-kpi-card.interactive.active.accent-3 { border-color: var(--color-orange) !important; background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), #FFFFFF); }
.hero-kpi-card.interactive.active.accent-4 { border-color: var(--color-cyan) !important; background: linear-gradient(135deg, rgba(0, 210, 196, 0.04), #FFFFFF); }

/* Smooth SVG Path transition */
.hero-chart-svg path, .hero-chart-svg polyline {
  transition: d 0.35s cubic-bezier(0.16, 1, 0.3, 1), points 0.35s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.35s ease;
}

/* Activity Feed Swapper Transition */
.hero-activity-row {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-activity-row.fade-out {
  opacity: 0;
  transform: translateX(-8px);
}


/* ==========================================================================
   HOMEPAGE TRUST BAR / LOGO CLOUD IMPROVEMENTS
   ========================================================================== */

.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #64748B;
  opacity: 0.55;
  transition: opacity 0.3s ease, color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.logo-item svg {
  transition: stroke 0.3s ease, fill 0.3s ease, transform 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
  color: var(--text-primary);
}

.logo-item:hover svg {
  transform: scale(1.04);
}

.logo-item:hover svg path {
  stroke: var(--color-primary);
}

.logo-item span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
}

/* Compliance details row */
.logo-compliance-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.logo-compliance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.logo-compliance-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-emerald);
}


/* ==========================================================================
   DESIGN SYSTEM — Components (v1)
   Canonical classes for Phase 2 page rebuilds. Prefer these over per-page
   inline styles. Legacy .btn / .section rules above remain for compatibility.
   ========================================================================== */

/* ── Dark-theme token overrides (opt-in via data-theme="dark") ───────────── */
[data-theme="dark"] {
  --bg-main: #0B0F19;
  --bg-subtle: #111827;
  --bg-surface: #111827;
  --border-color: #1F2937;
  --text-primary: #F9FAFB;
  --text-secondary: #E5E7EB;
  --text-muted: #9CA3AF;
  --surface-0: #111827;
  --surface-1: #0B0F19;
  --surface-2: #1F2937;
  --surface-3: #374151;
  --ink-1: #F9FAFB;
  --ink-2: #E5E7EB;
  --ink-3: #9CA3AF;
  --ink-4: #6B7280;
  --brand-soft: rgba(79, 70, 229, 0.18);
}

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }

.section--sm { padding: var(--section-y-sm) 0; }
.section--lg { padding: calc(var(--section-y) + 24px) 0; }
.section--flush { padding-top: 0; padding-bottom: 0; }

.stack-2  > * + * { margin-top: var(--space-2); }
.stack-3  > * + * { margin-top: var(--space-3); }
.stack-4  > * + * { margin-top: var(--space-4); }
.stack-6  > * + * { margin-top: var(--space-6); }
.stack-8  > * + * { margin-top: var(--space-8); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.cluster--center { justify-content: center; }
.cluster--between { justify-content: space-between; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Eyebrow / badge / pill ──────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px 6px 6px;
  background: var(--surface-0);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-1);
  line-height: 1;
}
.eyebrow__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--brand), #7C3AED);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--success);
}

/* Base badge: compatible with legacy .section-headline .badge usage.
   Modifiers (.badge--brand etc.) opt into the denser chip style. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.2;
  border: 1px solid rgba(79, 70, 229, 0.18);
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.section-headline .badge {
  margin-bottom: 20px;
}
.badge--brand,
.badge--success,
.badge--warning,
.badge--danger,
.badge--neutral {
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.4px;
  margin-bottom: 0;
}
.badge--brand   { background: var(--brand-soft); color: var(--brand-strong); border-color: rgba(79,70,229,0.2); }
.badge--success { background: var(--success-soft); color: #047857; border-color: rgba(16,185,129,0.25); }
.badge--warning { background: var(--warning-soft); color: #B45309; border-color: rgba(245,158,11,0.3); }
.badge--danger  { background: var(--danger-soft); color: #B91C1C; border-color: rgba(239,68,68,0.25); }
.badge--neutral { background: var(--surface-2); color: var(--ink-3); border-color: var(--surface-3); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--surface-0);
  border: 1px solid var(--border-color);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}

/* ── Buttons (extended variants) ─────────────────────────────────────────── */
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--ink-1);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid rgba(79, 70, 229, 0.35);
}
.btn-outline:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.btn-crimson {
  background: var(--crimson);
  color: #fff;
  border: 1px solid var(--crimson);
}
.btn-crimson:hover {
  background: #b91c35;
  border-color: #b91c35;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: var(--fs-md);
  border-radius: var(--radius-md);
}
.btn-sm {
  padding: 6px 12px;
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
}
.btn-block { width: 100%; justify-content: center; }

.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface-0);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans-normal), transform var(--trans-normal), border-color var(--trans-normal);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.2);
}
.card--flat {
  box-shadow: none;
}
.card--flat:hover {
  box-shadow: none;
  transform: none;
}
.card--interactive {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: var(--space-4);
  font-size: 20px;
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.3px;
  margin-bottom: var(--space-2);
}
.card__body {
  font-size: var(--fs-base);
  color: var(--ink-3);
  line-height: var(--lh-relaxed);
}

/* ── Section header ──────────────────────────────────────────────────────── */
.section-header {
  max-width: 720px;
  margin: 0 auto var(--space-12);
  text-align: center;
}
.section-header--left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.section-header .eyebrow {
  margin-bottom: var(--space-4);
}
.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: 800;
  letter-spacing: -1px;
  line-height: var(--lh-tight);
  color: var(--ink-1);
  margin-bottom: var(--space-4);
}
.section-header__lead {
  font-size: var(--fs-lg);
  color: var(--ink-3);
  line-height: var(--lh-relaxed);
}

/* ── Stats ───────────────────────────────────────────────────────────────── */
.stat {
  text-align: center;
  padding: var(--space-6);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--ink-1);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  padding: var(--space-16) 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(79, 70, 229, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 50%, rgba(6, 182, 212, 0.25) 0%, transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, #1a2744 50%, #0d1b3e 100%);
  color: #fff;
  overflow: hidden;
  border-radius: 0;
}
.cta-band--rounded {
  margin: 0 var(--space-6);
  border-radius: var(--radius-xl);
}
.cta-band__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: 800;
  letter-spacing: -1px;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
  color: #fff;
}
.cta-band__lead {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.cta-band .btn-primary:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.cta-band .btn-secondary,
.cta-band .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta-band .btn-secondary:hover,
.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ── Form primitives ─────────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}
.field__hint {
  font-size: var(--fs-xs);
  color: var(--ink-4);
}
.field__error {
  font-size: var(--fs-xs);
  color: var(--danger);
  font-weight: 600;
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink-1);
  background: var(--surface-0);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
  outline: none;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--ink-4);
}
.textarea { min-height: 120px; resize: vertical; }
.field--error .input,
.field--error .select,
.field--error .textarea {
  border-color: var(--danger);
}

/* ── Toast host + cards (Phase 3) ────────────────────────────────────────── */
.toast-host {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-3);
  max-width: min(400px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--surface-0);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast--out {
  animation: toastOut 0.28s ease forwards;
}
.toast--success { border-left: 4px solid var(--success); }
.toast--error   { border-left: 4px solid var(--danger); }
.toast--info    { border-left: 4px solid var(--info); }
.toast--warning { border-left: 4px solid var(--warning); }
.toast__content { flex: 1; min-width: 0; }
.toast__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 2px;
}
.toast__body {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: var(--lh-snug);
}
.toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--ink-4);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.toast__close:hover { color: var(--ink-1); background: var(--surface-2); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

/* ── Skip link (a11y) ────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ── Styleguide-only helpers ─────────────────────────────────────────────── */
.sg-swatch {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--surface-0);
}
.sg-swatch__chip {
  height: 72px;
}
.sg-swatch__meta {
  padding: var(--space-3) var(--space-4);
}
.sg-swatch__name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-1);
}
.sg-swatch__value {
  font-size: var(--fs-xs);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-3);
}
.sg-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}
.sg-panel {
  background: var(--surface-1);
  border: 1px dashed var(--surface-3);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}


/* ==========================================================================
   Phase 3 — Interactions & Micro-UX
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-scroll,
  .animate-on-scroll,
  .section-header,
  [data-reveal],
  .btn,
  .site-header {
    transition: none !important;
    animation: none !important;
  }
  .animate-scroll,
  .animate-on-scroll,
  .section-header,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Header compact polish */
.site-header.header-compact {
  backdrop-filter: saturate(200%) blur(28px);
  -webkit-backdrop-filter: saturate(200%) blur(28px);
}
.site-header .nav-logo img {
  transition: height var(--trans-normal), transform var(--trans-normal);
}
.site-header.scrolled .nav-logo img {
  transform: scale(0.92);
}

/* Button press / ripple / loading */
.btn {
  position: relative;
  overflow: hidden;
  transition:
    transform var(--trans-fast),
    box-shadow var(--trans-fast),
    background-color var(--trans-fast),
    border-color var(--trans-fast),
    color var(--trans-fast);
}
.btn:active:not(.is-loading):not(:disabled) {
  transform: translateY(1px) scale(0.985);
}
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: btnRipple 0.55s ease-out forwards;
  pointer-events: none;
}
.btn-secondary .btn-ripple,
.btn-outline .btn-ripple,
.btn-ghost .btn-ripple {
  background: rgba(79, 70, 229, 0.18);
}
@keyframes btnRipple {
  to { transform: scale(2.4); opacity: 0; }
}

.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
  cursor: wait;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}
.btn-secondary.is-loading::after,
.btn-outline.is-loading::after,
.btn-ghost.is-loading::after {
  border-color: rgba(79, 70, 229, 0.2);
  border-top-color: var(--brand);
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* Skeleton loader (for async panels) */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  animation: skeletonShine 1.2s ease-in-out infinite;
}
@keyframes skeletonShine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* Focus-visible polish for interactive controls */
.btn:focus-visible,
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .toast-host {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    max-width: none;
  }
}


/* ==========================================================================
   Phase 4 — Forms & Conversion UX
   ========================================================================== */

.field__req {
  color: var(--danger);
  margin-left: 2px;
}

.field--error .field__label,
.field--error .captcha-field__label {
  color: var(--danger);
}

.consent-field {
  margin: var(--space-4) 0;
}
.consent-field__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: var(--lh-snug);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.consent-field__input {
  width: 18px !important;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand);
}
.consent-field__text a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-field--error {
  outline: 1px solid rgba(239, 68, 68, 0.35);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Honeypot — visually and interactionally hidden */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.captcha-field {
  margin: var(--space-4) 0;
}
.captcha-field__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: var(--space-2);
}
.captcha-field__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.captcha-field__img {
  height: 50px;
  width: auto;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  cursor: pointer;
  display: block;
}
.captcha-field__input {
  flex: 1;
  min-width: 100px;
  max-width: 140px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.captcha-field__refresh {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color var(--trans-fast), color var(--trans-fast), background var(--trans-fast);
}
.captcha-field__refresh:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.captcha-field__hint {
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--ink-4);
}
.captcha-field--dark .captcha-field__label,
.captcha-field--dark .captcha-field__hint {
  color: rgba(255, 255, 255, 0.65);
}
.captcha-field--dark .captcha-field__img,
.captcha-field--dark .captcha-field__refresh,
.captcha-field--dark .captcha-field__input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

#footer-captcha-box .consent-field__label,
#footer-captcha-box .consent-field__text {
  color: rgba(255, 255, 255, 0.75);
}
#footer-captcha-box .consent-field__text a {
  color: #93c5fd;
}
#subscribeForm .consent-field__label,
#subscribeForm .consent-field__text {
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}
#subscribeForm .consent-field__text a {
  color: #93c5fd;
}

.form-success-note {
  margin-top: var(--space-3);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #047857;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}


/* ==========================================================================
   Phase 5 — Performance & Accessibility
   ========================================================================== */

/* Header chrome (moved out of inline <head> for cacheability) */
.site-header {
  border-color: rgba(37, 99, 235, 0.12);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.site-header.scrolled {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.nav-link {
  position: relative;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 99px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.nav-link:hover::after { width: 14px; }
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  width: 20px;
  background: var(--color-primary);
}
.nav-actions .btn-primary {
  position: relative;
  overflow: hidden;
}
.nav-actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}
.nav-actions .btn-primary:hover::before { left: 100%; }

/* Global focus-visible (keyboard); keep mouse clicks clean */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-primary, #2563EB);
  outline-offset: 3px;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Lock page scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
}

/* Logo intrinsic size without layout shift */
.nav-logo img {
  height: 70px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* Reduce motion: kill header shine animation */
@media (prefers-reduced-motion: reduce) {
  .nav-actions .btn-primary::before { display: none; }
  .btn-ripple { display: none !important; }
}

/* ============================================================
   Breadcrumb trail — visible UI for SEO + UX (H5-E pro redesign)
   Pill background + SVG home icon + chevron separator.
   Matches BreadcrumbList JSON-LD emitted by includes/seo.php
   ============================================================ */
.bc-trail {
  font-size: 14px;
  line-height: 1.4;
  color: #475569;
  margin: 0 0 24px;
  padding: 0 24px;
  font-family: inherit;
  display: block;
  width: 100%;
  clear: both;
  box-sizing: border-box;
}
@media (min-width: 1200px) {
  .bc-trail { padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px)); }
}
.bc-trail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  /* Pill background + soft shadow for visual presence */
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  width: fit-content;
  max-width: 100%;
}
.bc-trail__item {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.bc-trail__link {
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.bc-trail__link:hover,
.bc-trail__link:focus-visible {
  color: #1d4ed8;
  background-color: rgba(37, 99, 235, 0.08);
  text-decoration: none;
  outline: none;
}
.bc-trail__link:focus-visible {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}
.bc-trail__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  transition: background-color 0.15s ease, transform 0.15s ease;
  margin-left: -2px;
}
.bc-trail__link:hover .bc-trail__icon-wrap,
.bc-trail__link:focus-visible .bc-trail__icon-wrap {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  transform: translateY(-1px);
}
.bc-trail__icon {
  display: block;
}
.bc-trail__current {
  color: #0f172a;
  font-weight: 600;
  max-width: 36ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 6px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.2);
}
.bc-trail__current .bc-trail__icon { color: rgba(255,255,255,0.9); }
.bc-trail__current-text { display: inline-block; }
.bc-trail__sep {
  color: #cbd5e1;
  font-size: 14px;
  user-select: none;
  line-height: 1;
  margin: 0 4px;
  font-weight: 400;
}
/* Home item gets tighter spacing (no leading link padding) */
.bc-trail__item--home .bc-trail__link { padding-left: 4px; }
/* Slightly larger variant for use above hero sections */
.bc-trail--lg {
  font-size: 15px;
  margin-top: 20px;
}
.bc-trail--lg .bc-trail__list { padding: 10px 18px; }
/* On dark backgrounds (e.g. when used inside .hero) */
.bc-trail--invert .bc-trail__list {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.bc-trail--invert .bc-trail__link { color: rgba(255,255,255,0.85); }
.bc-trail--invert .bc-trail__link:hover,
.bc-trail--invert .bc-trail__link:focus-visible { color: #ffffff; background-color: rgba(255,255,255,0.1); }
.bc-trail--invert .bc-trail__icon-wrap {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}
.bc-trail--invert .bc-trail__current {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bc-trail--invert .bc-trail__current .bc-trail__icon { color: #1d4ed8; }
.bc-trail--invert .bc-trail__sep { color: rgba(255,255,255,0.4); }
@media (max-width: 767px) {
  /* On mobile the main nav menu is always visible and a breadcrumb takes
     precious vertical space without adding navigation value (the user can
     already see/use the top nav). Hide the visible breadcrumb entirely;
     the JSON-LD BreadcrumbList in <head> is still emitted for SEO. */
  .bc-trail { display: none !important; }
}
@media (max-width: 600px) {
  .bc-trail__list {
    padding: 6px 8px;
    border-radius: 12px;
  }
  .bc-trail__link { padding: 4px 8px; font-size: 13px; }
  .bc-trail__current { font-size: 13px; padding: 4px 10px; }
  .bc-trail__icon-wrap { width: 24px; height: 24px; }
  .bc-trail { font-size: 13px; }
  .bc-trail__current-text { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 380px) {
  .bc-trail__icon-wrap .bc-trail__icon { width: 12px; height: 12px; }
  .bc-trail__list { padding: 5px 6px; }
}
