/* ============================================
   PaySentry — Global Design System
   ============================================ */

/* --- CSS Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

/* --- Custom Properties --- */
:root {
  /* Primary */
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  /* Accent */
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --sky-500: #0ea5e9;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);

  /* Radii */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* Spacing */
  --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 --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--gray-600); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-teal { color: var(--teal-600); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-20) 0; }
.section-lg { padding: var(--space-24) 0; }
.grid { display: grid; gap: var(--space-8); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  transition: all 0.3s var(--ease);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--teal-600);
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 0.9rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  position: relative;
}
.nav-link:hover {
  color: var(--teal-600);
  background: var(--teal-50);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .nav-link { display: flex; align-items: center; gap: 4px; }
.nav-dropdown .nav-link::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s var(--ease);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease);
  pointer-events: none;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown:hover .nav-link::after { transform: rotate(180deg); }
.dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: all 0.15s var(--ease);
}
.dropdown-item:hover {
  background: var(--teal-50);
  color: var(--teal-700);
}
.dropdown-item .dropdown-label { font-weight: 600; display: block; }
.dropdown-item .dropdown-desc { font-size: 0.78rem; color: var(--gray-400); display: block; margin-top: 2px; }

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
/* Light hamburger lines when navbar is transparent over dark hero */
.navbar:not(.scrolled) .hamburger span { background: var(--white); }
/* Dark lines when menu is open (white overlay background) — !important to beat :not(.scrolled) specificity */
.hamburger.active span { background: var(--gray-700) !important; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 1001;
  padding: 80px var(--space-6) var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1),
              transform 0.35s cubic-bezier(0.4,0,0.2,1),
              visibility 0s 0.35s;
}
.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1),
              transform 0.35s cubic-bezier(0.4,0,0.2,1),
              visibility 0s 0s;
}
/* Stagger links on open */
.mobile-nav .mobile-nav-inner > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-nav.active .mobile-nav-inner > * {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav.active .mobile-nav-inner > *:nth-child(1)  { transition-delay: 0.06s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(2)  { transition-delay: 0.09s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(3)  { transition-delay: 0.12s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(4)  { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(5)  { transition-delay: 0.18s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(6)  { transition-delay: 0.21s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(7)  { transition-delay: 0.24s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(8)  { transition-delay: 0.27s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(9)  { transition-delay: 0.30s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(10) { transition-delay: 0.33s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(11) { transition-delay: 0.36s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(12) { transition-delay: 0.39s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(13) { transition-delay: 0.42s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(14) { transition-delay: 0.45s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(15) { transition-delay: 0.48s; }
.mobile-nav.active .mobile-nav-inner > *:nth-child(16) { transition-delay: 0.51s; }

/* Navbar state when mobile menu is open (class toggled by JS) */
.navbar.menu-open {
  z-index: 1002;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.navbar.menu-open .hamburger span { background: var(--gray-700) !important; }
.navbar.menu-open .nav-logo { color: var(--teal-600); }
.mobile-nav a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.mobile-nav a:hover { background: var(--teal-50); color: var(--teal-700); }
.mobile-nav-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  padding: var(--space-4) var(--space-4) var(--space-1);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13,148,136,0.4);
}
.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.btn-secondary:hover {
  border-color: var(--teal-300);
  color: var(--teal-700);
  background: var(--teal-50);
}
.btn-outline {
  border: 2px solid var(--teal-600);
  color: var(--teal-600);
}
.btn-outline:hover {
  background: var(--teal-600);
  color: var(--white);
}
.btn-ghost {
  color: var(--gray-600);
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--teal-600); background: var(--teal-50); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-white { background: var(--white); color: var(--teal-700); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-indigo {
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-600));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.btn-indigo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

/* ============================================
   Hero Sections
   ============================================ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--gray-900) 50%, var(--teal-800) 100%);
  color: var(--white);
}
.hero-compact { padding: 140px 0 80px; }
.hero canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-content.text-center { margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal-200);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
  animation: floatBadge 3s ease-in-out infinite;
}
.hero-badge .badge-dot {
  width: 6px; height: 6px;
  background: var(--emerald-500);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.hero h1 { color: var(--white); margin-bottom: var(--space-6); }
.hero h1 .text-gradient {
  background: linear-gradient(135deg, var(--teal-300), var(--teal-100));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-12);
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-1);
}

/* Hero Gradient Orbs */
.hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  border-radius: 50%;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

/* Dashboard Mockup in Hero */
.hero-visual {
  position: relative;
  z-index: 2;
  margin-top: var(--space-12);
}
.dashboard-mockup {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(10px);
  max-width: 900px;
  margin: 0 auto;
}
.dashboard-mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-4);
}
.dashboard-mockup-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.dashboard-mockup-bar span:first-child { background: #ef4444; }
.dashboard-mockup-bar span:nth-child(2) { background: #f59e0b; }
.dashboard-mockup-bar span:nth-child(3) { background: #22c55e; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.dash-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.dash-card-title {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-2);
}
.dash-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.dash-card-change {
  font-size: 0.75rem;
  color: var(--emerald-500);
  margin-top: var(--space-1);
}
.dash-card-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: var(--space-3);
  overflow: hidden;
}
.dash-card-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-600);
  margin-bottom: var(--space-4);
}
.section-label .label-dot {
  width: 6px; height: 6px;
  background: var(--teal-500);
  border-radius: 50%;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-top: var(--space-4);
  line-height: 1.7;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all 0.3s var(--ease);
}
.card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-5);
}
.card-icon.teal { background: var(--teal-50); color: var(--teal-600); }
.card-icon.indigo { background: var(--indigo-50); color: var(--indigo-500); }
.card-icon.amber { background: #fffbeb; color: var(--amber-500); }
.card-icon.emerald { background: #ecfdf5; color: var(--emerald-500); }
.card-icon.rose { background: #fff1f2; color: var(--rose-500); }
.card-icon.sky { background: #f0f9ff; color: var(--sky-500); }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: var(--space-3); }
.card p { font-size: 0.9rem; line-height: 1.7; }

/* Feature Cards */
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

/* Product Cards */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.product-card-visual {
  height: 200px;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-visual.indigo { background: linear-gradient(135deg, var(--indigo-50), var(--indigo-100)); }
.product-card-visual.amber { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.product-card-visual .visual-icon {
  font-size: 3rem;
  opacity: 0.3;
}
.product-card-body { padding: var(--space-8); }
.product-card-body h3 { margin-bottom: var(--space-3); }
.product-card-body p { font-size: 0.9rem; margin-bottom: var(--space-5); }

/* ============================================
   Logo Marquee
   ============================================ */
.marquee-section {
  padding: var(--space-12) 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-8);
}
.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-10);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-300);
  white-space: nowrap;
  user-select: none;
}
.marquee-image img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.marquee-image:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all 0.3s var(--ease);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.testimonial-stars { color: var(--amber-500); font-size: 0.875rem; margin-bottom: var(--space-4); letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.8rem;
}
.testimonial-name { font-weight: 600; font-size: 0.875rem; color: var(--gray-800); }
.testimonial-role { font-size: 0.75rem; color: var(--gray-400); }

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: all 0.3s var(--ease);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.pricing-card.popular {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 1px var(--teal-500), var(--shadow-xl);
}
.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-full);
}
.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}
.pricing-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: var(--space-6);
}
.pricing-price {
  margin-bottom: var(--space-6);
}
.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}
.pricing-period {
  font-size: 0.85rem;
  color: var(--gray-400);
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--gray-600);
}
.pricing-check {
  color: var(--teal-500);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   Forms
   ============================================ */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: all 0.2s var(--ease);
}
.form-input:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.form-input::placeholder { color: var(--gray-400); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-hint { font-size: 0.75rem; color: var(--gray-400); margin-top: var(--space-1); }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: var(--gray-600);
}
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--teal-600);
}
textarea.form-input { resize: vertical; min-height: 120px; }

/* Auth Layout */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-12) var(--space-16);
}
.auth-form-container { max-width: 440px; width: 100%; }
.auth-brand { margin-bottom: var(--space-10); }
.auth-brand a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal-600);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.auth-title { font-size: 1.75rem; margin-bottom: var(--space-2); }
.auth-subtitle { font-size: 0.95rem; color: var(--gray-500); margin-bottom: var(--space-8); }
.auth-benefit-side {
  background: linear-gradient(135deg, var(--teal-900), var(--gray-900));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  position: relative;
  overflow: hidden;
}
.auth-benefit-side::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(13,148,136,0.2) 0%, transparent 70%);
  top: -50px; right: -50px;
  border-radius: 50%;
}
.auth-benefits { position: relative; z-index: 2; max-width: 400px; }
.auth-benefits h2 { color: var(--white); font-size: 1.75rem; margin-bottom: var(--space-8); }
.auth-benefit-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(8px);
}
.auth-benefit-card h4 { color: var(--white); font-size: 1rem; margin-bottom: var(--space-2); }
.auth-benefit-card p { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.auth-divider {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.8rem;
  margin: var(--space-6) 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--gray-200);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-footer-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: var(--space-6);
}
.auth-footer-text a { color: var(--teal-600); font-weight: 600; }
.auth-link { color: var(--teal-600); font-size: 0.85rem; font-weight: 500; }
.password-requirements {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.password-req {
  font-size: 0.75rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.password-req .req-icon { font-size: 0.7rem; }

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--teal-900), var(--gray-900));
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(13,148,136,0.2) 0%, transparent 70%);
  top: -50px; right: 10%;
  border-radius: 50%;
}
.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-content h2 { color: var(--white); margin-bottom: var(--space-4); }
.cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: var(--space-8);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: linear-gradient(135deg, #111827, #0f172a);
  border-top: 2px solid var(--teal-500);
  padding: var(--space-16) 0 var(--space-8);
  color: rgba(255,255,255,0.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-top: var(--space-4); color: rgba(255,255,255,0.4); }
.footer-brand .nav-logo { margin-bottom: var(--space-2); }
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--teal-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: var(--space-6); }
.footer-bottom-links a { color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: var(--teal-400); }
.footer-bottom-links .cookie-settings-link { cursor: pointer; color: rgba(255,255,255,0.4); }
.footer-bottom-links .cookie-settings-link:hover { color: var(--teal-400); }
.footer-social { display: flex; gap: var(--space-4); }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: all 0.2s var(--ease);
  font-size: 0.85rem;
}
.footer-social a:hover { background: var(--teal-600); color: white; }
.footer-social-links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-3);
}
.footer-social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: all 0.2s var(--ease);
}
.footer-social-links a:hover { background: var(--teal-600); color: white; }
.footer-social-links svg { flex-shrink: 0; }
.footer-brand .footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-3);
  line-height: 1.6;
}
.footer-brand .footer-registration {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: var(--space-3);
  line-height: 1.6;
}
.footer-trust-badges {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.footer-trust-badges span {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--teal-400);
  border: 1px solid rgba(20,184,166,0.25);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.footer-certifications {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
  align-items: center;
}
.footer-certifications img {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ============================================
   Comparison Table
   ============================================ */
.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}
.comparison-table thead tr {
  background: var(--gray-50);
}
.comparison-table th {
  padding: var(--space-5) var(--space-6);
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--gray-200);
}
.comparison-table th:first-child {
  text-align: left;
}
.comparison-table th.comparison-highlight {
  color: var(--teal-700);
  background: var(--teal-50);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
}
.comparison-table td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
  font-size: 1.1rem;
}
.comparison-table td:first-child {
  text-align: left;
  font-size: 0.9rem;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table tbody tr:hover {
  background: var(--gray-50);
}
.comparison-table td:last-child {
  background: rgba(240,253,250,0.4);
}

/* ============================================
   Process / Steps
   ============================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
}
.process-step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto var(--space-5);
}
.process-step h4 { margin-bottom: var(--space-2); }
.process-step p { font-size: 0.85rem; color: var(--gray-500); }

/* ============================================
   Principles / Benefits
   ============================================ */
.principle-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
}
.principle-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
}
.principle-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.principle-card h4 { margin-bottom: var(--space-2); }
.principle-card p { font-size: 0.85rem; color: var(--gray-500); }

/* ============================================
   Certification Seal
   ============================================ */
.cert-seal {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  margin: 0 auto;
  box-shadow: 0 0 0 12px rgba(13,148,136,0.15), 0 0 0 24px rgba(13,148,136,0.08);
  animation: sealPulse 3s ease-in-out infinite;
}

/* ============================================
   Articles / News
   ============================================ */
.article-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.article-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--teal-50), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card-image .article-icon { font-size: 2.5rem; opacity: 0.2; }
.article-card-body { padding: var(--space-6); }
.article-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.article-badge.news { background: var(--teal-50); color: var(--teal-700); }
.article-badge.article { background: var(--indigo-50); color: var(--indigo-600); }
.article-badge.interview { background: #fffbeb; color: #92400e; }
.article-card-body h3 {
  font-size: 1rem;
  margin-bottom: var(--space-2);
  line-height: 1.4;
}
.article-card-body p { font-size: 0.8rem; color: var(--gray-500); margin-bottom: var(--space-3); }
.article-meta {
  font-size: 0.75rem;
  color: var(--gray-400);
  display: flex;
  gap: var(--space-4);
}
.article-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-10);
}
.article-featured-image {
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.article-featured-body { padding: var(--space-10); display: flex; flex-direction: column; justify-content: center; }
.article-featured-body h2 { font-size: 1.5rem; margin-bottom: var(--space-3); }
.article-featured-body p { margin-bottom: var(--space-4); }

/* Tabs */
.tab-nav {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: var(--space-2);
}
.tab-btn {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: all 0.2s var(--ease);
  border-bottom: 2px solid transparent;
}
.tab-btn:hover { color: var(--teal-600); }
.tab-btn.active {
  color: var(--teal-600);
  border-bottom-color: var(--teal-600);
  font-weight: 600;
}

/* ============================================
   Team Cards
   ============================================ */
.team-card {
  text-align: center;
  padding: var(--space-8);
}
.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-700));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 2rem; font-weight: 700;
  margin: 0 auto var(--space-4);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: var(--space-1); }
.team-card .team-role { font-size: 0.85rem; color: var(--teal-600); margin-bottom: var(--space-3); }
.team-card p { font-size: 0.85rem; }

/* ============================================
   Ecosystem Links
   ============================================ */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.ecosystem-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: all 0.2s var(--ease);
}
.ecosystem-card:hover {
  border-color: var(--teal-300);
  background: var(--teal-50);
}
.ecosystem-card .eco-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--teal-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-600);
  font-size: 1rem;
  flex-shrink: 0;
}
.ecosystem-card h4 { font-size: 0.9rem; margin-bottom: 2px; }
.ecosystem-card p { font-size: 0.75rem; color: var(--gray-400); }

/* ============================================
   Trust Logos / Badges
   ============================================ */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  flex-wrap: wrap;
}
.trust-logo {
  padding: var(--space-3) var(--space-5);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-800);
  transition: background 0.2s var(--ease);
}
.faq-question:hover { background: var(--gray-50); }
.faq-toggle {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================
   Misc Components
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-teal { background: var(--teal-50); color: var(--teal-700); }
.badge-indigo { background: var(--indigo-50); color: var(--indigo-600); }

.divider {
  height: 1px;
  background: var(--gray-100);
  margin: var(--space-8) 0;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.icon-box {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
}
.icon-box.teal { background: var(--teal-50); color: var(--teal-600); }
.icon-box.indigo { background: var(--indigo-50); color: var(--indigo-500); }
.icon-box.amber { background: #fffbeb; color: var(--amber-500); }

.bg-gray { background: var(--gray-50); }
.bg-white { background: var(--white); }
.bg-teal-dark { background: var(--teal-900); }

/* Visual mockup card */
.mockup-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--gray-100);
}
.mockup-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.mockup-line {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  margin-bottom: var(--space-3);
}
.mockup-line.w-75 { width: 75%; }
.mockup-line.w-50 { width: 50%; }
.mockup-line.w-100 { width: 100%; }

/* Search / Filter */
.search-bar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}
.search-input:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

/* ============================================
   Animations & Keyframes
   ============================================ */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

@keyframes sealPulse {
  0%, 100% { box-shadow: 0 0 0 12px rgba(13,148,136,0.15), 0 0 0 24px rgba(13,148,136,0.08); }
  50% { box-shadow: 0 0 0 16px rgba(13,148,136,0.2), 0 0 0 32px rgba(13,148,136,0.1); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Reveal classes — progressive enhancement: visible by default, JS enables animation */
.reveal {
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.js-reveal .reveal:not(.revealed) {
  opacity: 0;
  transform: translateY(30px);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   Feature Showcase Section
   ============================================ */
.showcase-section {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--gray-900) 0%, #0c1e2e 50%, var(--teal-900) 100%);
  position: relative;
  overflow: hidden;
}
.showcase-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(13,148,136,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(99,102,241,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Tabs */
.showcase-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.showcase-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.showcase-tab:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
}
.showcase-tab.active {
  background: rgba(13,148,136,0.2);
  border-color: var(--teal-500);
  color: var(--teal-300);
}
.showcase-tab-icon { font-size: 1rem; }
.showcase-tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--teal-400);
  width: 0%;
  transition: none;
}
.showcase-tab.active .showcase-tab-progress {
  animation: showcase-progress 5s linear forwards;
}
@keyframes showcase-progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Screen mockup */
.showcase-screen {
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  max-width: 960px;
  margin: 0 auto;
}
.showcase-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.showcase-dots { display: flex; gap: 6px; }
.showcase-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.showcase-dots span:first-child { background: #ef4444; }
.showcase-dots span:nth-child(2) { background: #f59e0b; }
.showcase-dots span:nth-child(3) { background: #22c55e; }
.showcase-url {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  font-family: monospace;
}

/* Viewport */
.showcase-viewport {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.showcase-slide {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.showcase-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* Sidebar */
.sc-sidebar {
  width: 160px;
  min-width: 160px;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
}
.sc-sidebar-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  padding: 0 16px;
  margin-bottom: 12px;
}
.sc-sidebar-item {
  padding: 7px 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  cursor: default;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.sc-sidebar-item.active {
  color: var(--teal-300);
  background: rgba(13,148,136,0.1);
  border-left-color: var(--teal-400);
}

/* Main content */
.sc-main {
  flex: 1;
  padding: 16px 20px;
  overflow: hidden;
}
.sc-topbar {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}

/* Staggered animation entry */
.sc-anim {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.12s);
}
.showcase-slide.active .sc-anim {
  opacity: 1;
  transform: translateY(0);
}

/* --- Slide 0: Due Diligence --- */
.sc-metrics { display: flex; gap: 12px; margin-bottom: 16px; }
.sc-metric-card {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
.sc-metric-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal-300);
}
.sc-metric-lbl {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}
.sc-metric-chg {
  font-size: 0.65rem;
  margin-top: 4px;
  font-weight: 600;
}
.sc-metric-chg.up { color: var(--emerald-500); }
.sc-checks {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}
.sc-check-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.sc-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.sc-chk-i { font-size: 0.8rem; }
.sc-chk-i.green { color: var(--emerald-500); }
.sc-chk-i.amber { color: var(--amber-500); }
.sc-tag {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sc-tag.green { background: rgba(16,185,129,0.15); color: var(--emerald-500); }
.sc-tag.amber { background: rgba(245,158,11,0.15); color: var(--amber-500); }
.sc-tag.red { background: rgba(244,63,94,0.15); color: var(--rose-500); }
.sc-alert {
  padding: 8px 12px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius);
  font-size: 0.72rem;
  color: var(--amber-400);
}

/* --- Slide 1: KID Generator --- */
.sc-kid-layout { display: flex; gap: 20px; margin-bottom: 12px; }
.sc-kid-form { flex: 1; }
.sc-form-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.75rem;
}
.sc-form-row.highlight {
  background: rgba(13,148,136,0.1);
  margin: 0 -8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  border-bottom: none;
}
.sc-form-lbl { color: rgba(255,255,255,0.4); }
.sc-form-val { color: rgba(255,255,255,0.85); font-weight: 600; }
.sc-kid-preview {
  width: 180px;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-kid-doc {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.sc-kid-doc-hdr {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 12px;
}
.sc-kid-doc-lines { display: flex; flex-direction: column; gap: 6px; }
.sc-kid-ln {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
.showcase-slide.active .sc-kid-ln {
  animation: showcase-line-fill 0.6s var(--ease) forwards;
  animation-delay: calc(0.8s + var(--d, 0) * 0.1s);
  opacity: 0;
}
.showcase-slide.active .sc-kid-ln:nth-child(1) { --d: 0; }
.showcase-slide.active .sc-kid-ln:nth-child(2) { --d: 1; }
.showcase-slide.active .sc-kid-ln:nth-child(3) { --d: 2; }
.showcase-slide.active .sc-kid-ln:nth-child(4) { --d: 3; }
.showcase-slide.active .sc-kid-ln:nth-child(5) { --d: 4; }
.showcase-slide.active .sc-kid-ln:nth-child(6) { --d: 5; }
.sc-kid-ln.short { width: 60%; }
.sc-kid-ln.med { width: 80%; }
@keyframes showcase-line-fill {
  from { opacity: 0; transform: scaleX(0); transform-origin: left; }
  to { opacity: 1; transform: scaleX(1); }
}
.sc-kid-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(-12deg);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--emerald-500);
  background: rgba(16,185,129,0.12);
  border: 2px solid var(--emerald-500);
  padding: 4px 14px;
  border-radius: var(--radius);
  opacity: 0;
}
.showcase-slide.active .sc-kid-stamp {
  animation: showcase-stamp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 1.8s;
}
@keyframes showcase-stamp {
  from { opacity: 0; transform: translate(-50%, -50%) scale(2.5) rotate(-12deg); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-12deg); }
}
.sc-kid-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Slide 2: Forensic Audits --- */
.sc-audit-content { display: flex; flex-direction: column; gap: 14px; }
.sc-payslip {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.sc-payslip-hdr {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 6px;
}
.sc-payslip-row {
  display: flex;
  align-items: center;
  padding: 5px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.3s;
}
.sc-payslip-row span:first-child { flex: 1; }
.sc-payslip-row span:nth-child(2) { width: 90px; text-align: right; font-weight: 600; margin-right: 10px; }
.sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sc-dot.green { background: var(--emerald-500); }
.sc-dot.amber { background: var(--amber-500); }
.sc-dot.red { background: var(--rose-500); }
.showcase-slide.active .sc-payslip-row.warn { animation: showcase-highlight-warn 0.5s 1.5s forwards; }
.showcase-slide.active .sc-payslip-row.error { animation: showcase-highlight-error 0.5s 2s forwards; }
@keyframes showcase-highlight-warn {
  from { background: transparent; }
  to { background: rgba(245,158,11,0.08); }
}
@keyframes showcase-highlight-error {
  from { background: transparent; }
  to { background: rgba(244,63,94,0.1); }
}
.sc-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-400), transparent);
  opacity: 0;
}
.showcase-slide.active .sc-scan-line {
  animation: showcase-scan 2s 0.3s var(--ease) forwards;
}
@keyframes showcase-scan {
  0% { top: 0; opacity: 0.8; }
  90% { top: 100%; opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}
.sc-findings {
  background: rgba(244,63,94,0.06);
  border: 1px solid rgba(244,63,94,0.15);
  border-radius: var(--radius);
  padding: 12px;
}
.sc-finding-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-400);
  margin-bottom: 6px;
}
.sc-finding-item {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  padding: 3px 0;
  padding-left: 12px;
  position: relative;
}
.sc-finding-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--rose-500);
}

/* --- Slide 3: Watchdog --- */
.sc-watch-content { display: flex; flex-direction: column; gap: 14px; }
.sc-watch-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.sc-watch-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-500);
  animation: sc-pulse 1.5s infinite;
}
@keyframes sc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
.sc-watch-list { display: flex; flex-direction: column; gap: 8px; }
.sc-watch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  font-size: 0.75rem;
}
.sc-watch-name {
  width: 160px;
  min-width: 120px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.sc-watch-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.sc-watch-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--teal-500);
  width: 0%;
  transition: width 1.2s var(--ease);
}
.showcase-slide.active .sc-watch-fill {
  width: var(--w);
  transition-delay: calc(var(--d, 0) * 0.15s + 0.3s);
}
.sc-watch-score {
  font-weight: 700;
  font-size: 0.78rem;
  width: 55px;
  text-align: right;
}
.sc-watch-score.green { color: var(--emerald-500); }
.sc-watch-score.amber { color: var(--amber-500); }
.sc-watch-score.red { color: var(--rose-500); }
.sc-watch-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Slide 4: Certification --- */
.sc-cert-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding-top: 10px;
}
.sc-cert-badge {
  text-align: center;
  min-width: 140px;
}
.sc-cert-seal {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-cert-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--teal-500);
  border-radius: 50%;
  opacity: 0;
}
.showcase-slide.active .sc-cert-ring {
  animation: showcase-cert-ring 0.8s 0.3s var(--ease-out) forwards;
}
@keyframes showcase-cert-ring {
  from { opacity: 0; transform: scale(0.3) rotate(-90deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}
.sc-cert-ps {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--teal-300);
  opacity: 0;
}
.showcase-slide.active .sc-cert-ps {
  animation: showcase-fade-in 0.4s 0.8s forwards;
}
@keyframes showcase-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sc-cert-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.sc-cert-year {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}
.sc-cert-checks { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.sc-cert-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
}
.sc-cert-tick {
  color: var(--emerald-500);
  font-weight: 700;
  font-size: 0.9rem;
}

/* --- Enhanced Showcase Effects --- */

/* Glowing gradient border around screen */
.showcase-screen { position: relative; z-index: 1; }
.showcase-screen::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, var(--teal-500), var(--indigo-500), var(--teal-400), var(--indigo-400));
  background-size: 300% 300%;
  animation: sc-glow 8s linear infinite;
  z-index: -1;
  opacity: 0.3;
  filter: blur(6px);
}
@keyframes sc-glow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Dot grid background in viewport */
.showcase-viewport { position: relative; }
.showcase-viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}
.showcase-slide { z-index: 1; }

/* SVG Gauge Ring */
.sc-gauge {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 4px;
}
.sc-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-gauge-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 5; }
.sc-gauge-fill {
  fill: none;
  stroke: var(--teal-400);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
}
.showcase-slide.active .sc-gauge-fill {
  animation: sc-gauge-draw 1.5s 0.5s var(--ease) forwards;
}
@keyframes sc-gauge-draw {
  to { stroke-dashoffset: var(--target-offset, 8); }
}
.sc-gauge-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal-300);
}

/* Mini bar chart */
.sc-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 44px;
  padding: 4px 0;
}
.sc-mini-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-width: 3px;
  transform-origin: bottom;
  transform: scaleY(0);
}
.sc-mini-bar.teal { background: var(--teal-500); opacity: 0.7; }
.sc-mini-bar.indigo { background: var(--indigo-500); opacity: 0.6; }
.sc-mini-bar.emerald { background: var(--emerald-500); opacity: 0.7; }
.sc-mini-bar.amber-bar { background: var(--amber-500); opacity: 0.6; }
.showcase-slide.active .sc-mini-bar {
  animation: sc-bar-grow 0.5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 0.04s + 0.4s);
}
@keyframes sc-bar-grow { to { transform: scaleY(1); } }

/* Card shimmer sweep */
.sc-metric-card { position: relative; overflow: hidden; }
.sc-metric-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
}
.showcase-slide.active .sc-metric-card::after {
  animation: sc-shimmer 1.5s 1.2s forwards;
}
@keyframes sc-shimmer { to { left: 200%; } }

/* Decorative sparkles */
.sc-sparkle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal-400);
  opacity: 0;
  pointer-events: none;
}
.showcase-slide.active .sc-sparkle {
  animation: sc-sparkle-pop 2s infinite;
  animation-delay: var(--sd, 0s);
}
@keyframes sc-sparkle-pop {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Pipeline steps (certification flow) */
.sc-pipeline { display: flex; align-items: center; margin: 12px 0; }
.sc-pipe-step {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}
.sc-pipe-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 5px;
  font-weight: 700; font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  transition: all 0.4s var(--ease);
}
.showcase-slide.active .sc-pipe-step.done .sc-pipe-num {
  background: var(--teal-500); border-color: var(--teal-400); color: #fff;
}
.showcase-slide.active .sc-pipe-step.done { color: rgba(255,255,255,0.7); }
.sc-pipe-conn {
  width: 24px; height: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  flex-shrink: 0;
}
.sc-pipe-conn-fill {
  height: 100%; width: 0%;
  background: var(--teal-500);
}
.showcase-slide.active .sc-pipe-conn-fill {
  animation: sc-pipe-fill 0.4s var(--ease) forwards;
  animation-delay: calc(var(--step, 0) * 0.5s + 0.5s);
}
@keyframes sc-pipe-fill { to { width: 100%; } }

/* Risk tags */
.sc-risk {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: var(--radius-full);
  font-size: 0.65rem; font-weight: 600;
}
.sc-risk.low { background: rgba(16,185,129,0.12); color: var(--emerald-500); }
.sc-risk.medium { background: rgba(245,158,11,0.12); color: var(--amber-500); }
.sc-risk.high { background: rgba(244,63,94,0.12); color: var(--rose-500); }

/* Upload zone */
.sc-upload-zone {
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 18px; text-align: center;
  color: rgba(255,255,255,0.3); font-size: 0.75rem;
}
.showcase-slide.active .sc-upload-zone {
  animation: sc-upload-pulse 2s 0.5s;
}
@keyframes sc-upload-pulse {
  0%, 100% { border-color: rgba(255,255,255,0.1); }
  50% { border-color: var(--teal-400); background: rgba(13,148,136,0.04); }
}

/* Table rows */
.sc-table { width: 100%; font-size: 0.72rem; }
.sc-table-head {
  display: flex; padding: 6px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: rgba(255,255,255,0.35); font-weight: 600;
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.sc-table-row {
  display: flex; padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.6); align-items: center;
}
.sc-table-head span, .sc-table-row span { flex: 1; }
.sc-table-head .col-sm, .sc-table-row .col-sm { flex: 0 0 80px; text-align: right; }
.sc-table-head .col-status, .sc-table-row .col-status { flex: 0 0 70px; text-align: center; }

/* Animated line (data flow between sections) */
.sc-flow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--teal-400) 50%, transparent 100%);
  background-size: 200% 100%;
  margin: 8px 0;
  opacity: 0;
}
.showcase-slide.active .sc-flow-line {
  animation: sc-flow-anim 1.5s var(--ease) forwards;
  animation-delay: var(--fd, 0.5s);
}
@keyframes sc-flow-anim {
  0% { opacity: 0; background-position: 200% 0; }
  50% { opacity: 0.6; }
  100% { opacity: 0.3; background-position: -200% 0; }
}

/* Showcase responsive */
@media (max-width: 768px) {
  .showcase-section { padding: var(--space-12) 0; }
  .showcase-tabs { gap: 4px; }
  .showcase-tab { padding: 8px 12px; font-size: 0.72rem; }
  .showcase-tab-name { display: none; }
  .showcase-tab-icon { font-size: 1.2rem; }
  .sc-sidebar { display: none; }
  .showcase-viewport { min-height: 300px; }
  .sc-metrics { flex-direction: column; gap: 8px; }
  .sc-kid-layout { flex-direction: column; }
  .sc-kid-preview { width: 100%; min-width: auto; }
  .sc-watch-name { width: 100px; min-width: 80px; font-size: 0.68rem; }
  .sc-cert-content { flex-direction: column; align-items: center; text-align: center; }
  .sc-payslip-row span:nth-child(2) { width: 70px; }
}

/* ============================================
   Loading Screen — AI + Security + Compliance
   ============================================ */
.loading-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #0a2f2c 0%, #0c1425 35%, #0f172a 60%, #112827 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
  overflow: hidden;
}
.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Holographic transistor strip (contained element) */
.loader-neural-canvas {
  width: 100%;
  max-width: 480px;
  height: 72px;
  border-radius: 4px;
  position: relative;
  z-index: 2;
  /* Multi-layer 3D depth: embossed foil on dark surface */
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 -1px 0 rgba(0,0,0,0.4) inset,
    1px 0 0 rgba(255,255,255,0.03) inset,
    -1px 0 0 rgba(0,0,0,0.15) inset,
    0 2px 4px rgba(0,0,0,0.6),
    0 6px 20px rgba(0,0,0,0.4),
    0 12px 40px rgba(0,0,0,0.25),
    0 0 25px rgba(94,234,212,0.06),
    0 0 50px rgba(99,102,241,0.03);
  /* Subtle 3D perspective tilt */
  transform: perspective(600px) rotateX(1.5deg);
  /* Slight metallic border */
  border: 1px solid rgba(255,255,255,0.04);
  border-top-color: rgba(255,255,255,0.08);
  border-bottom-color: rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.65s forwards;
}

/* Particle field */
.loader-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 1;
}
.loader-particle {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(94, 234, 212, 0.3);
  border-radius: 50%;
  animation: loaderParticleFloat linear infinite;
}

/* Scanning grid overlay */
.loader-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,148,136,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: loaderGridScroll 20s linear infinite;
  z-index: 1;
}

/* Scan line */
.loader-scanline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), rgba(13,148,136,0.6), rgba(99,102,241,0.4), transparent);
  animation: loaderScan 2.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(13,148,136,0.3), 0 0 60px rgba(99,102,241,0.1);
  z-index: 1;
}

/* Data streams — vertical flowing data */
.loader-data-streams {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.loader-data-stream {
  position: absolute;
  width: 1px;
  top: -20%;
  height: 20%;
  animation: dataStreamFlow linear infinite;
}
.stream-1 {
  left: 15%;
  background: linear-gradient(to bottom, transparent, rgba(99,102,241,0.3), transparent);
  animation-duration: 3s;
  animation-delay: 0s;
}
.stream-2 {
  left: 72%;
  background: linear-gradient(to bottom, transparent, rgba(13,148,136,0.3), transparent);
  animation-duration: 4s;
  animation-delay: 1s;
}
.stream-3 {
  left: 45%;
  background: linear-gradient(to bottom, transparent, rgba(99,102,241,0.2), transparent);
  animation-duration: 3.5s;
  animation-delay: 0.5s;
}
.stream-4 {
  left: 88%;
  background: linear-gradient(to bottom, transparent, rgba(94,234,212,0.25), transparent);
  animation-duration: 3.2s;
  animation-delay: 1.5s;
}
.stream-5 {
  left: 28%;
  background: linear-gradient(to bottom, transparent, rgba(129,140,248,0.2), transparent);
  animation-duration: 4.5s;
  animation-delay: 0.8s;
}

/* Floating compliance terms */
.loader-floating-terms {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.loader-float-term {
  position: absolute;
  bottom: -30px;
  color: rgba(94,234,212,0.07);
  font-weight: 700;
  font-family: 'Inter', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: floatTerm linear infinite;
  white-space: nowrap;
  user-select: none;
}
.loader-float-term.indigo-term {
  color: rgba(129,140,248,0.07);
}

/* Central content */
.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Animated Shield */
.loader-shield {
  position: relative;
  width: 120px;
  height: 140px;
}
.loader-shield svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(13,148,136,0.4)) drop-shadow(0 0 40px rgba(99,102,241,0.15));
}
.loader-shield-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawShield 1.8s ease-out forwards;
}
.loader-shield-fill {
  opacity: 0;
  animation: fillShield 0.8s ease-out 1.2s forwards;
}
.loader-shield-check {
  stroke-dasharray: 45;
  stroke-dashoffset: 45;
  animation: drawCheck 0.5s ease-out 1.6s forwards;
}

/* AI neural nodes + synapses inside shield */
.loader-ai-node {
  animation: aiNodePulse 2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.2s);
}
.loader-ai-node:nth-child(3) { --i: 0; }
.loader-ai-node:nth-child(4) { --i: 1; }
.loader-ai-node:nth-child(5) { --i: 2; }
.loader-ai-node:nth-child(6) { --i: 3; }
.loader-ai-node:nth-child(7) { --i: 4; }
.loader-ai-node:nth-child(8) { --i: 5; }
.loader-ai-node:nth-child(9) { --i: 6; }
.loader-ai-node:nth-child(10) { --i: 7; }
.loader-ai-synapse {
  animation: aiSynapsePulse 1.5s ease-in-out infinite alternate;
  animation-delay: calc(var(--j, 0) * 0.15s);
}
.loader-ai-synapse:nth-child(11) { --j: 0; }
.loader-ai-synapse:nth-child(12) { --j: 1; }
.loader-ai-synapse:nth-child(13) { --j: 2; }
.loader-ai-synapse:nth-child(14) { --j: 3; }
.loader-ai-synapse:nth-child(15) { --j: 4; }
.loader-ai-synapse:nth-child(16) { --j: 5; }
.loader-ai-synapse:nth-child(17) { --j: 6; }
.loader-ai-synapse:nth-child(18) { --j: 7; }
.loader-ai-synapse:nth-child(19) { --j: 8; }
.loader-ai-synapse:nth-child(20) { --j: 9; }
.loader-ai-synapse:nth-child(21) { --j: 10; }

/* Orbiting rings (3 now) */
.loader-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(13,148,136,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.loader-ring-1 {
  width: 180px; height: 180px;
  animation: loaderRingSpin 8s linear infinite;
}
.loader-ring-2 {
  width: 220px; height: 220px;
  animation: loaderRingSpin 12s linear infinite reverse;
  border-style: dashed;
  border-color: rgba(99,102,241,0.12);
}
.loader-ring-3 {
  width: 260px; height: 260px;
  animation: loaderRingSpin 16s linear infinite;
  border-style: dotted;
  border-color: rgba(99,102,241,0.08);
}
.loader-ring-1::after, .loader-ring-2::after, .loader-ring-3::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: var(--teal-400);
  border-radius: 50%;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(13,148,136,0.6);
}
.loader-ring-2::after {
  background: var(--indigo-400);
  box-shadow: 0 0 10px rgba(99,102,241,0.6);
  width: 6px; height: 6px; top: -3px;
}
.loader-ring-3::after {
  background: var(--teal-300);
  box-shadow: 0 0 10px rgba(94,234,212,0.4);
  width: 5px; height: 5px; top: -2.5px;
}
.loader-ring-4 {
  width: 300px; height: 300px;
  animation: loaderRingSpin 20s linear infinite reverse;
  border-style: dotted;
  border-color: rgba(94,234,212,0.05);
}
.loader-ring-4::after {
  background: var(--indigo-400);
  box-shadow: 0 0 8px rgba(129,140,248,0.4);
  width: 4px; height: 4px; top: -2px;
}

/* Radar pulse */
.loader-radar-ping {
  position: absolute;
  width: 160px; height: 160px;
  border: 1px solid rgba(13,148,136,0.2);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: radarPing 3s ease-out infinite;
  pointer-events: none;
}
.loader-radar-ping-2 {
  animation-delay: 1.5s;
}

/* Brand */
.loader-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}
.loader-brand .logo-icon {
  display: none; /* replaced by canvas logo */
}
.loader-logo-canvas {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 -1px 0 rgba(0,0,0,0.3) inset,
    0 2px 8px rgba(0,0,0,0.4),
    0 0 15px rgba(94,234,212,0.08);
  transform: perspective(300px) rotateX(1deg);
}
.loader-brand span {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.01em;
}

/* AI-Powered badge */
.loader-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(129,140,248,0.9);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.6s forwards;
}
.loader-ai-pulse {
  width: 6px; height: 6px;
  background: var(--indigo-400);
  border-radius: 50%;
  animation: aiPulseDot 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(99,102,241,0.6);
}

/* AI Processing Pipeline */
.loader-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.7s forwards;
}
.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.3;
  transition: all 0.4s ease;
}
.pipeline-stage.active { opacity: 1; }
.pipeline-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: all 0.4s ease;
}
.pipeline-stage.active .pipeline-dot {
  background: var(--teal-400);
  border-color: var(--teal-300);
  box-shadow: 0 0 10px rgba(13,148,136,0.5);
}
.pipeline-stage span {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.4s ease;
}
.pipeline-stage.active span { color: var(--teal-300); }
.pipeline-connector {
  width: 30px; height: 2px;
  background: rgba(255,255,255,0.08);
  margin: 0 4px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}
.pipeline-connector::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 100%;
  background: linear-gradient(90deg, var(--teal-400), var(--indigo-400));
  transition: width 0.4s ease;
  border-radius: 1px;
}
.pipeline-connector.active::after { width: 100%; }

/* Terminal Console */
.loader-terminal {
  width: 320px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.5s forwards;
  backdrop-filter: blur(10px);
}
.loader-terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.terminal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.terminal-dot.td-red { background: #ef4444; }
.terminal-dot.td-yellow { background: #f59e0b; }
.terminal-dot.td-green { background: #22c55e; }
.terminal-title {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
  font-family: 'Inter', monospace;
}
.loader-terminal-body {
  padding: 10px 12px;
  max-height: 110px;
  overflow-y: auto;
  font-family: 'Inter', monospace;
  scrollbar-width: none;
}
.loader-terminal-body::-webkit-scrollbar { display: none; }
.terminal-line {
  font-size: 0.58rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}
.terminal-line.command { color: rgba(129,140,248,0.7); }
.terminal-line.success { color: rgba(94,234,212,0.7); }

/* Compliance check steps */
.loader-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 280px;
}
.loader-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.loader-check.active {
  color: rgba(255,255,255,0.85);
  opacity: 1;
  transform: translateX(0);
}
.loader-check.done {
  color: var(--teal-300);
  opacity: 1;
  transform: translateX(0);
}
.loader-check-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.loader-check.active .loader-check-icon {
  border-color: var(--indigo-400);
  background: rgba(99,102,241,0.15);
  box-shadow: 0 0 8px rgba(99,102,241,0.2);
}
.loader-check.done .loader-check-icon {
  border-color: var(--teal-400);
  background: var(--teal-600);
  color: white;
  box-shadow: 0 0 8px rgba(13,148,136,0.3);
}

/* Spinner inside check icon when active */
.loader-check.active .loader-check-icon::after {
  content: '';
  width: 10px; height: 10px;
  border: 1.5px solid transparent;
  border-top-color: var(--indigo-400);
  border-right-color: var(--teal-400);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.loader-check.done .loader-check-icon::after {
  content: '✓';
  animation: none;
  border: none;
  width: auto; height: auto;
  font-size: 0.65rem;
}

/* Progress bar */
.loader-progress {
  width: 280px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.5s forwards;
}
.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--indigo-500), var(--teal-400), var(--teal-300));
  border-radius: 3px;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 8px rgba(13,148,136,0.4), 0 0 16px rgba(99,102,241,0.2);
}

/* Live metrics */
.loader-metrics {
  display: flex;
  gap: 24px;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.8s forwards;
}
.loader-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.loader-metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-300);
  font-variant-numeric: tabular-nums;
}
.loader-metric-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Loading screen keyframes */
@keyframes loaderParticleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
@keyframes loaderGridScroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}
@keyframes loaderScan {
  0% { top: -2px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes dataStreamFlow {
  0% { top: -20%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes drawShield {
  to { stroke-dashoffset: 0; }
}
@keyframes fillShield {
  to { opacity: 0.15; }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
@keyframes loaderRingSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes aiNodePulse {
  0%, 100% { opacity: 0.3; r: 2; }
  50% { opacity: 0.9; r: 3.5; }
}
@keyframes aiSynapsePulse {
  0% { opacity: 0.1; stroke-width: 0.5; }
  100% { opacity: 0.5; stroke-width: 1.5; }
}
@keyframes aiPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.8); }
}
@keyframes floatTerm {
  0% { transform: translateY(0); opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translateY(-110vh); opacity: 0; }
}
@keyframes radarPing {
  0% { width: 160px; height: 160px; opacity: 0.4; border-color: rgba(13,148,136,0.3); }
  100% { width: 400px; height: 400px; opacity: 0; border-color: rgba(99,102,241,0.05); }
}

/* Loading screen responsive */
@media (max-width: 768px) {
  .loader-terminal { width: 280px; }
  .pipeline-connector { width: 18px; }
  .loader-ring-4 { display: none; }
  .loader-neural-canvas { max-width: 360px; height: 56px; }
}
@media (max-width: 480px) {
  .loader-metrics { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .loader-metric-value { font-size: 0.85rem; }
  .loader-checks { min-width: 240px; }
  .loader-check { font-size: 0.72rem; }
  .loader-progress { width: 240px; }
  .loader-ring-3, .loader-ring-4 { display: none; }
  .loader-terminal { width: 260px; }
  .loader-pipeline { transform: scale(0.85); }
  .loader-float-term { display: none; }
  .loader-neural-canvas { max-width: 280px; height: 48px; }
}

/* ============================================
   Security / Encryption Section
   ============================================ */
.security-section {
  padding: var(--space-24) 0;
  background: linear-gradient(160deg, #0a0e1a 0%, #0d1b2a 40%, #1b2a4a 100%);
  position: relative;
  overflow: hidden;
}
.security-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(99,102,241,0.03) 0px, rgba(99,102,241,0.03) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg, rgba(99,102,241,0.03) 0px, rgba(99,102,241,0.03) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}

/* Encryption visualiser container */
.enc-vis {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .enc-vis { grid-template-columns: 1fr; gap: var(--space-6); }
  .enc-vis-arrow { transform: rotate(90deg); }
}

/* Data card (left: readable, right: encrypted) */
.enc-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
}
.enc-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.enc-card.readable { border-color: rgba(239,68,68,0.3); }
.enc-card.readable .enc-card-title { color: var(--rose-400); }
.enc-card.encrypted { border-color: rgba(16,185,129,0.3); }
.enc-card.encrypted .enc-card-title { color: var(--emerald-400); }

.enc-card .enc-row { display: flex; gap: 8px; }
.enc-card .enc-label { color: rgba(255,255,255,0.35); min-width: 80px; }
.enc-card .enc-value { color: rgba(255,255,255,0.8); }
.enc-card.encrypted .enc-value {
  color: var(--emerald-400);
  opacity: 0.7;
  word-break: break-all;
}

/* Animated arrow between cards */
.enc-vis-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.enc-vis-arrow-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--rose-500), var(--indigo-500), var(--emerald-500));
  position: relative;
  border-radius: 2px;
}
.enc-vis-arrow-line::after {
  content: '';
  position: absolute;
  top: -3px; right: -2px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--emerald-500);
  border-right: 2px solid var(--emerald-500);
  transform: rotate(45deg);
}
.enc-vis-arrow-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--indigo-400);
  white-space: nowrap;
}

/* Scanning animation on encrypted card */
.enc-card.encrypted::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--emerald-400), transparent);
  animation: enc-scan 3s ease-in-out infinite;
}
@keyframes enc-scan {
  0%, 100% { top: 0; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  95%, 100% { top: 100%; opacity: 0; }
}

/* Security layer badges */
.sec-layers {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-10);
}
.sec-layer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.sec-layer:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.sec-layer-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}
.sec-layer-num.l1 { background: rgba(99,102,241,0.2); color: var(--indigo-400); border: 1px solid rgba(99,102,241,0.3); }
.sec-layer-num.l2 { background: rgba(13,148,136,0.2); color: var(--teal-400); border: 1px solid rgba(13,148,136,0.3); }
.sec-layer-num.l3 { background: rgba(245,158,11,0.2); color: var(--amber-400); border: 1px solid rgba(245,158,11,0.3); }
.sec-layer-num.l4 { background: rgba(16,185,129,0.2); color: var(--emerald-400); border: 1px solid rgba(16,185,129,0.3); }

/* Security stats row */
.sec-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}
.sec-stat {
  text-align: center;
}
.sec-stat-val {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.sec-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  font-weight: 500;
}

/* Competitor comparison row */
.sec-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-width: 840px;
  margin: var(--space-10) auto 0;
}
.sec-compare-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}
.sec-compare-card.ours {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.05);
}
.sec-compare-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.sec-compare-card.ours .sec-compare-name { color: var(--emerald-400); }
.sec-compare-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
}
.sec-compare-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255,255,255,0.45);
}
.sec-compare-item .green { color: var(--emerald-400); }
.sec-compare-item .red { color: var(--rose-400); }

/* ============================================
   Legal Page
   ============================================ */
.legal-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
.legal-nav a {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: all 0.25s var(--ease);
}
.legal-nav a:hover,
.legal-nav a.active {
  background: var(--teal-50);
  color: var(--teal-700);
  border-color: var(--teal-300);
}
.legal-document {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: var(--space-16);
}
.legal-document + .legal-document {
  border-top: 2px solid var(--gray-200);
  padding-top: var(--space-12);
}
.legal-document-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}
.legal-updated {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: var(--space-10);
}
.legal-document h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: var(--space-8) 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gray-100);
}
.legal-document h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: var(--space-5) 0 var(--space-2);
}
.legal-document p,
.legal-document li {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--gray-600);
}
.legal-document p {
  margin-bottom: var(--space-3);
}
.legal-document ul,
.legal-document ol {
  margin: var(--space-2) 0 var(--space-4);
  padding-left: var(--space-6);
}
.legal-document li {
  margin-bottom: var(--space-1);
}
.legal-document ol { list-style: decimal; }
.legal-document ul { list-style: disc; }
.legal-document ol ol { list-style: lower-alpha; }
.legal-document strong {
  color: var(--gray-700);
  font-weight: 600;
}
.legal-info-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin: var(--space-4) 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--gray-600);
}
.legal-info-box strong {
  display: block;
  color: var(--gray-800);
  margin-bottom: var(--space-1);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-stats { gap: var(--space-6); }
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-actions { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  .hero-compact { padding: 120px 0 60px; }
  .hero-stats { flex-direction: column; gap: var(--space-4); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-12) 0; }
  .section-lg { padding: var(--space-16) 0; }

  .auth-layout { grid-template-columns: 1fr; }
  .auth-benefit-side { display: none; }
  .auth-form-side { padding: var(--space-6); }

  .article-featured { grid-template-columns: 1fr; }
  .article-featured-image { min-height: 200px; }

  .form-row { grid-template-columns: 1fr; }

  .ecosystem-grid { grid-template-columns: 1fr; }

  .tab-nav { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
}

/* ============================================
   News / Blog Section
   ============================================ */

/* --- News Hero --- */
.news-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 80px 0 50px;
  text-align: center;
}
.news-hero__heading {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.news-hero__subheading {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Category Tabs --- */
.news-category-tabs {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.news-category-tabs__inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.news-category-tabs__inner::-webkit-scrollbar { display: none; }
.news-category-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-100);
  white-space: nowrap;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}
.news-category-tab:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}
.news-category-tab--active {
  background: var(--teal-600);
  color: #fff;
}
.news-category-tab--active:hover {
  background: var(--teal-700);
  color: #fff;
}

/* --- Article Section --- */
.news-article-section {
  padding: 3rem 0 4rem;
  background: var(--gray-50);
  min-height: 400px;
}

/* --- Article Grid --- */
.news-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --- Article Card --- */
.news-article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
}
.news-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-200);
}
.news-article-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-100);
}
.news-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.news-article-card:hover .news-article-card__image img {
  transform: scale(1.05);
}
.news-article-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-article-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0.5rem 0;
  line-height: 1.4;
}
.news-article-card__excerpt {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-article-card__date {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 1rem;
}

/* --- Category Badge --- */
.news-category-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-600);
}
.news-category-badge--compliance-news {
  background: #dbeafe;
  color: #1e40af;
}
.news-category-badge--payroll-updates {
  background: #d1fae5;
  color: #065f46;
}
.news-category-badge--product-news {
  background: #ede9fe;
  color: #5b21b6;
}
.news-category-badge--industry-insights {
  background: #fef3c7;
  color: #92400e;
}

/* --- Empty State --- */
.news-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--gray-500);
  font-size: 1rem;
}

/* --- Pagination --- */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}
.news-pagination__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal-700);
  background: var(--white);
  border: 1px solid var(--gray-300);
  transition: all 0.2s var(--ease);
  text-decoration: none;
}
.news-pagination__btn:hover {
  background: var(--teal-50);
  border-color: var(--teal-300);
}
.news-pagination__info {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* --- News Responsive --- */
@media (max-width: 1024px) {
  .news-article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-hero { padding: 60px 16px 40px; }
  .news-hero__heading { font-size: 2rem; }
  .news-article-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Hero Chip — Integration Map (v2: 3D depth)
   ============================================ */

.hero-chip {
  position: relative;
  background: linear-gradient(135deg, #111827, #0f172a);
  color: white;
  overflow: hidden;
  padding: 120px 0 60px;
}
.hero-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 40%, rgba(20,184,166,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 30% 70%, rgba(99,102,241,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 70% 30%, rgba(52,211,153,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* --- Header --- */
.hero-chip-header {
  position: relative;
  text-align: center;
  margin: 0 auto;
  padding: 0 24px 24px;
  z-index: 2;
}
.hero-chip-header h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--teal-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
}

/* --- Footer (subtitle + CTAs below diagram) --- */
.hero-chip-footer {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 24px 0;
  z-index: 2;
}
.hero-chip-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto 24px;
}
.hero-chip-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Diagram container with 3D perspective --- */
.hero-chip-diagram {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 1200 / 700;
  perspective: 1200px;
  perspective-origin: center;
}

/* --- SVG wires --- */
.hero-chip-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-chip-wire {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  will-change: stroke-dashoffset;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-chip-wire.animated {
  stroke-dashoffset: 0;
}

/* --- Pin connector dots (dim by default, flash on signal arrival) --- */
.hero-chip-pin {
  opacity: 0.25;
  transition: opacity 0.3s ease;
}

/* --- Pin flash when sweep reaches the chip --- */
@keyframes pinFlash {
  0%   { opacity: 1; }
  100% { opacity: 0.25; }
}
.hero-chip-pin.flash {
  animation: pinFlash 0.5s ease-out;
}

/* --- Central Chip graphic (static 3D, no animation) --- */
.hero-chip-body {}

/* --- Integration Cards (premium glass) --- */
.hero-chip-card {
  position: absolute;
  width: 160px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 14px 12px;
  z-index: 2;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 16px rgba(0,0,0,0.3),
    0 8px 32px rgba(0,0,0,0.15);
}
.hero-chip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-400), var(--indigo-400));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.hero-chip-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.05), transparent 70%);
  pointer-events: none;
}
.hero-chip-card:hover {
  transform: translateX(-50%) translateY(-8px) scale(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 8px 32px rgba(20,184,166,0.25),
    0 16px 48px rgba(0,0,0,0.3);
}
.hero-chip-card:hover::before {
  opacity: 1;
}
.hero-chip-card:hover .hero-chip-badge {
  filter: brightness(1.3);
}
.hero-chip-card:hover .hero-chip-card__name {
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.2);
}
.hero-chip-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  transition: filter 0.3s var(--ease);
}
.hero-chip-badge--teal {
  background: rgba(20,184,166,0.2);
  color: var(--teal-300);
}
.hero-chip-badge--indigo {
  background: rgba(129,140,248,0.2);
  color: var(--indigo-400);
}
.hero-chip-badge--emerald {
  background: rgba(52,211,153,0.2);
  color: var(--emerald-400);
}
.hero-chip-card__name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 4px;
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
}
.hero-chip-card__desc {
  font-size: 0.6875rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.5);
}

/* --- Responsive: Tablet (768-1024px) --- */
@media (max-width: 1024px) {
  .hero-chip { padding: 80px 0 48px; }
  .hero-chip-diagram { max-width: 900px; }
  .hero-chip-footer { padding-top: 48px; }
  .hero-chip-card { width: 130px; padding: 10px; font-size: 0.75rem; }
  .hero-chip-card__name { font-size: 0.75rem; }
  .hero-chip-card__desc { font-size: 0.625rem; }
}

/* --- Responsive: Mobile (<768px) — grid fallback --- */
@media (max-width: 768px) {
  .hero-chip { padding: 120px 16px 40px; }
  .hero-chip-header { padding-bottom: 16px; }
  .hero-chip-footer { padding-top: 32px; }

  /* Hide SVG wires/chip on mobile */
  .hero-chip-svg { display: none; }

  /* Cards → 2-column grid with chip badge */
  .hero-chip-diagram {
    aspect-ratio: unset;
    perspective: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 8px;
  }

  /* Show chip as standalone badge spanning full width */
  .hero-chip-diagram::before {
    content: 'PaySentry';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 80px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid var(--teal-500);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 0 30px rgba(20,184,166,0.25);
    grid-column: 1 / -1;
    justify-self: center;
    margin-bottom: 8px;
  }

  /* Cards become static grid items */
  .hero-chip-card {
    position: static;
    width: 100%;
    transform: none;
  }
  .hero-chip-card::before { display: none; }
  .hero-chip-card:hover {
    transform: scale(1.02);
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero-chip-wire.animated { stroke-dashoffset: 0 !important; transition: none !important; }
  .hero-chip-pin.flash { animation: none; }
}
