/* ==============================================================================
   Coreytics Data Solutions — Unified Production Design System (main.css)
   ============================================================================== */

:root {
  /* Surfaces & Backgrounds */
  --bg-page: #F8F9F7;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F0F3F1;
  --bg-muted: #E6ECE8;
  --bg-dark: #0B1915;
  --bg-dark-surface: #122420;

  /* Typography Colors (High contrast, WCAG AAA compliant) */
  --text-main: #0C1E19;
  --text-muted: #3D4E48;
  --text-subtle: #687973;
  --text-inverse: #F8F9F7;
  --text-inverse-muted: #A3B5AE;

  /* Brand Accents */
  --primary: #177359;
  --primary-hover: #115743;
  --primary-bright: #29A882;
  --primary-light: #E6F3EE;
  --primary-border: #9DD2BF;

  --accent-blue: #166488;
  --accent-warn: #B8582B;
  --accent-warn-light: #FBEFEA;

  /* Borders & Dividers */
  --border: #D7E0DC;
  --border-light: #E7EEEA;
  --border-dark: #1E3831;

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Layout Container */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(12, 30, 25, 0.05);
  --shadow-md: 0 4px 12px rgba(12, 30, 25, 0.06);
  --shadow-lg: 0 10px 24px rgba(12, 30, 25, 0.08);

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-base: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 3px;
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 12px 20px;
  z-index: 99999;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-bright);
  transition: top var(--trans-fast);
}
.skip-link:focus {
  top: 16px;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal-delay-1, .reveal-delay-2, .reveal-delay-3,
  .reveal-delay-4, .reveal-delay-5 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }
  .reveal-text .word-inner {
    transform: translateY(0) !important;
    transition: none !important;
  }
  .hover-lift:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Container */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .wrap {
    padding: 0 32px;
  }
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-main);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Technical Eyebrow & Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-bright);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(41, 168, 130, 0.25);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(41, 168, 130, 0.5); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(41, 168, 130, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(41, 168, 130, 0); }
}

/* Technical Grid Background (Extremely subtle) */
.tech-grid {
  background-image: 
    linear-gradient(to right, rgba(23, 115, 89, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 115, 89, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--trans-fast), background-color var(--trans-fast), border-color var(--trans-fast), color var(--trans-fast), box-shadow var(--trans-fast);
}

.btn:hover {
  transform: translateY(-1.5px);
}
.btn:active {
  transform: translateY(0.5px);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 2px 4px rgba(12, 30, 25, 0.08);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(23, 115, 89, 0.28);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(12, 30, 25, 0.04);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--bg-surface);
  box-shadow: 0 4px 12px rgba(12, 30, 25, 0.06);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(23, 115, 89, 0.04);
}

.btn-outline-dark {
  border-color: rgba(248, 249, 247, 0.3);
  color: var(--text-inverse);
  background: transparent;
}
.btn-outline-dark:hover {
  border-color: var(--primary-bright);
  color: var(--primary-bright);
}

/* ==============================================================================
   HEADER & NAVIGATION
   ============================================================================== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 249, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(215, 224, 220, 0.8);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast), background-color var(--trans-fast);
}

header.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(12, 30, 25, 0.06);
}

.nav-bar, .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18.5px;
  color: var(--text-main);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity var(--trans-fast);
}
.brand:hover {
  opacity: 0.9;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(11, 25, 21, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-mark svg {
  width: 19px;
  height: 19px;
  color: var(--primary-bright);
}

.nav-links, .nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a, .nav-menu a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--trans-fast);
  padding: 8px 0;
  position: relative;
  text-decoration: none;
  display: inline-block;
}

.nav-links a:hover, .nav-menu a:hover {
  color: var(--primary);
}

.nav-links a.active, .nav-menu a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active::after, .nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-bright) 100%);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-actions .nav-cta {
  min-height: 40px;
  padding: 9px 20px;
  font-size: 14px;
}

/* Accessible Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: background-color var(--trans-fast), border-color var(--trans-fast);
  position: relative;
}

.nav-toggle:hover {
  background-color: var(--bg-subtle);
  border-color: var(--primary-border);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  position: relative;
  transition: background-color var(--trans-fast);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  position: absolute;
  left: 0;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 6px;
}

.nav-toggle.open span {
  background: transparent;
}
.nav-toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Drawer Backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 30, 25, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Drawer (Pro Max Slide-out) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(12, 30, 25, 0.12);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 24px;
}
.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.mobile-drawer-close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1;
  transition: background-color var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast);
}
.mobile-drawer-close:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: background var(--trans-fast), color var(--trans-fast);
}
.mobile-nav-link:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}
.mobile-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

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

@media (max-width: 960px) {
  .nav-links,
  .nav-menu {
    display: none !important;
  }
  .nav-toggle {
    display: inline-flex !important;
  }
}

@media (max-width: 640px) {
  .nav-actions .nav-cta {
    display: none !important;
  }
  .nav-bar, .nav-container {
    height: 62px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .brand-mark svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 400px) {
  .brand-name {
    font-size: 13.5px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ==============================================================================
   SECTION UTILITIES
   ============================================================================== */
.section {
  padding: 88px 0;
}
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  margin-top: 14px;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 16.5px;
  color: var(--text-muted);
}

/* Cards Baseline */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: transform var(--trans-base), border-color var(--trans-base), box-shadow var(--trans-base);
}
.card:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */
.hero {
  padding: 80px 0 96px;
  background-image: 
    radial-gradient(800px 420px at 85% 15%, rgba(23,115,89,0.07), transparent 70%),
    linear-gradient(to right, rgba(23, 115, 89, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 115, 89, 0.06) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  background-color: var(--bg-page);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.1;
  margin: 20px 0 20px;
  color: var(--text-main);
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}

.hero .lead {
  font-size: clamp(16px, 1.8vw, 18.5px);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}

.hero-trust-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-subtle);
  font-family: var(--font-body);
}
.hero-trust-note svg {
  color: var(--primary-bright);
}

/* Analytics Panel (Hero Right) */
.hero-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.panel-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-body {
  padding: 24px;
}

.panel-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 500px) {
  .panel-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-mini-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.kpi-mini-card .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  margin-bottom: 4px;
}
.kpi-mini-card .val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}
.kpi-mini-card .delta {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
  display: block;
}

/* ==============================================================================
   VALUE STRIP & MOVING CAPABILITIES MARQUEE (Section 13)
   ============================================================================== */
.value-strip {
  background: var(--bg-page);
  border: none;
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  cursor: grab;
  user-select: none;
}

.marquee-track:active {
  cursor: grabbing;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  flex-shrink: 0;
}

.value-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(12, 30, 25, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.value-strip-item:hover {
  color: var(--primary);
  background: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 115, 89, 0.12);
}

.value-strip-item:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 2px;
}

.value-strip-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 6px rgba(41, 168, 130, 0.6);
  flex-shrink: 0;
  display: inline-block;
  -webkit-animation: pulse 2.5s infinite ease-in-out;
  animation: pulse 2.5s infinite ease-in-out;
}

@-webkit-keyframes marqueeGlide {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marqueeGlide {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 640px) {
  .value-strip {
    padding: 12px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
  }
  .marquee-content {
    gap: 14px;
    padding-right: 14px;
  }
  .value-strip-item {
    font-size: 11px;
    padding: 6px 14px;
    gap: 7px;
  }
}

/* ==============================================================================
   PROBLEM → SOLUTION (Section 14)
   ============================================================================== */
.problem-solution {
  background: var(--bg-page);
}
.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 820px) {
  .ps-grid {
    grid-template-columns: 1fr;
  }
}

.ps-box {
  border-radius: var(--radius-md);
  padding: 36px 32px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-base);
}

.ps-box > * {
  position: relative;
  z-index: 1;
}

.ps-box.problem-side {
  background: linear-gradient(145deg, #FFFFFF 65%, rgba(254, 242, 242, 0.85) 100%);
  border: 1px solid rgba(220, 38, 38, 0.22);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.04);
}

/* Big Red Cross Background Watermark - Centered in Middle Section */
.ps-box.problem-side::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(280px, 70%);
  height: min(280px, 70%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

.ps-box.problem-side:hover::after {
  opacity: 0.18;
  transform: translate(-50%, -50%) scale(1.05);
}

.ps-box.solution-side {
  background: linear-gradient(145deg, var(--primary-light) 65%, rgba(209, 250, 229, 0.75) 100%);
  border: 1px solid var(--primary-border);
  box-shadow: 0 2px 8px rgba(23, 115, 89, 0.06);
}

/* Big Green Checkmark Background Watermark - Centered in Middle Section */
.ps-box.solution-side::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(290px, 72%);
  height: min(290px, 72%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.ps-box.solution-side:hover::after {
  opacity: 0.20;
  transform: translate(-50%, -50%) scale(1.05);
}

.ps-box h3 {
  font-size: 22px;
  margin: 12px 0 16px;
}
.ps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.ps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}
.ps-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==============================================================================
   SERVICES GRID (Sections 15, 16)
   ============================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-base), border-color var(--trans-base), box-shadow var(--trans-base);
}
.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg {
  width: 22px;
  height: 22px;
}
.service-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}
.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--trans-fast), color var(--trans-fast);
}
.service-card:hover .service-link {
  color: var(--primary-hover);
  gap: 10px;
}

/* ==============================================================================
   TIMELINE / PROCESS (Section 18)
   ============================================================================== */
.timeline-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 900px) {
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.timeline-step {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
}
.timeline-step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 16px;
}
.timeline-step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.timeline-step p {
  font-size: 14.5px;
  line-height: 1.55;
}

/* ==============================================================================
   WHY COREYTICS (Section 19)
   ============================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 580px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
.why-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.why-card .why-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-card .why-icon svg {
  width: 20px;
  height: 20px;
}
.why-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 14px;
}

/* ==============================================================================
   CASE STUDIES & PROOF
   ============================================================================== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}
.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.case-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 16px;
  align-self: flex-start;
}
.case-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.case-client {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-subtle);
  margin-bottom: 14px;
  display: block;
}
.case-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==============================================================================
   DEMO SPOTLIGHT (Section 17, 20)
   ============================================================================== */
.demo-spotlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
@media (max-width: 900px) {
  .demo-spotlight-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
}

.demo-preview-visual {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--text-inverse);
  box-shadow: var(--shadow-lg);
}

/* Download Cards Grid */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}
.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
}

/* ==============================================================================
   REVIEWS & TESTIMONIALS
   ============================================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .testi-grid {
    grid-template-columns: 1fr;
  }
}
.testi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.testi-card .quote-mark {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 12px;
}
.testi-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.testi-meta strong {
  display: block;
  font-size: 14px;
  color: var(--text-main);
}
.testi-meta span {
  font-size: 12.5px;
  color: var(--text-subtle);
}

.review-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 30px;
  max-width: 640px;
  margin: 0 auto;
}

/* Testimonials empty state */
.testi-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.testi-empty-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.testi-empty-state p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 580px) {
  .review-form-card {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }
  .testi-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }
}

/* ==============================================================================
   FAQ ACCORDION
   ============================================================================== */
.faq-accordion {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-item:last-child {
  border-bottom: none;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
  transition: background-color var(--trans-fast), color var(--trans-fast);
  -webkit-tap-highlight-color: transparent;
}
.faq-trigger:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}
.faq-trigger:hover .faq-icon {
  color: var(--primary);
}
.faq-item.faq-open .faq-trigger {
  background: var(--primary-light);
  color: var(--primary);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--text-subtle);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color var(--trans-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-icon svg {
  width: 18px;
  height: 18px;
}
.faq-item.faq-open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.faq-open .faq-body {
  max-height: 400px;
}
.faq-body p {
  padding: 4px 24px 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.faq-body p strong {
  color: var(--text-main);
  font-weight: 600;
}

@media (max-width: 580px) {
  .faq-trigger {
    padding: 16px 18px;
    font-size: 14.5px;
  }
  .faq-body p {
    padding: 2px 18px 18px;
    font-size: 13.5px;
  }
}


/* ==============================================================================
   CTA BANNER (Section 22)
   ============================================================================== */
.cta-banner {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  color: var(--text-inverse);
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}
.cta-banner p {
  color: var(--text-inverse-muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 32px;
}
.cta-banner .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 580px) {
  .cta-banner {
    padding: 52px 0;
  }
  .cta-banner h2 {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 12px;
  }
  .cta-banner p {
    font-size: 14.5px;
    margin-bottom: 24px;
  }
  .cta-banner .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-banner .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ==============================================================================
   FORM INPUTS & LABELS (Section 23, 24)
   ============================================================================== */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-main);
  transition: border-color var(--trans-fast), background-color var(--trans-fast);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-status-msg {
  display: none;
  font-size: 14px;
  font-weight: 500;
  margin-top: 14px;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.form-status-msg.show {
  display: block;
}
.form-status-msg.success {
  background: var(--primary-light);
  color: var(--primary-hover);
  border: 1px solid var(--primary-border);
}

/* ==============================================================================
   PRODUCTION ENTERPRISE FOOTER — LIGHT THEME
   ============================================================================== */
footer.site-footer {
  background: #FFFFFF;
  background-image: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(23, 115, 89, 0.05) 0%, transparent 70%);
  border-top: 1px solid var(--border);
  padding: 68px 0 32px;
  margin-top: auto;
  position: relative;
  color: var(--text-muted);
}

/* 1. Top Strip (Brand & Quick Actions) */
.footer-top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform var(--trans-fast);
}
.footer-brand:hover {
  transform: translateY(-1px);
}

.footer-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-dark);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-bright);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  transition: all var(--trans-fast);
}
.footer-brand:hover .footer-brand-mark {
  box-shadow: 0 4px 16px rgba(23, 115, 89, 0.3);
}
.footer-brand-mark svg {
  width: 22px;
  height: 22px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}
.footer-brand-text .brand-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.footer-brand-text .brand-subtitle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-top: 1px;
}

.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 500;
}
.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 8px rgba(41, 168, 130, 0.6);
  animation: footerPulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes footerPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 6px rgba(41, 168, 130, 0.5);
  }
  50% {
    transform: scale(1.35);
    opacity: 0.7;
    box-shadow: 0 0 14px rgba(41, 168, 130, 0.35);
  }
}

.footer-quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--trans-fast);
}
.footer-btn-wa {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}
.footer-btn-wa:hover {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(23, 115, 89, 0.28);
  transform: translateY(-2px);
}
.footer-btn-wa svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.footer-btn-email {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border);
}
.footer-btn-email:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-subtle);
  transform: translateY(-2px);
}
.footer-btn-email svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--text-subtle);
}

/* 2. Main Footer Grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.6fr 2.4fr;
  gap: 52px;
  margin-bottom: 52px;
}

.footer-col-about {
  display: flex;
  flex-direction: column;
}

.footer-mission-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 22px;
  max-width: 440px;
}

.footer-trust-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 500;
}
.trust-chip svg {
  width: 15px;
  height: 15px;
  stroke: var(--primary);
  flex-shrink: 0;
}

.footer-nav-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav-list li a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--trans-fast), transform var(--trans-fast);
  display: inline-block;
}
.footer-nav-list li a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 3px;
}
.footer-contact-list a {
  font-size: 13.5px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--trans-fast);
  word-break: break-all;
}
.footer-contact-list a:hover {
  color: var(--primary);
}
.contact-val {
  font-size: 12.5px;
  color: var(--text-subtle);
  line-height: 1.4;
  display: block;
}

/* 3. Bottom Legal & Utility Bar */
.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-subtle);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-dot-sep {
  color: var(--border);
}
.footer-tagline {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.footer-utility-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-utility-links a {
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--trans-fast);
}
.footer-utility-links a:hover {
  color: var(--primary);
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--trans-fast);
  cursor: pointer;
}
.footer-back-top:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateY(-2px);
}
.footer-back-top svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

/* ==============================================================================
   REVEAL ON SCROLL — Corelytics-inspired staggered reveal system
   ============================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay variants (matching Corelytics' reveal-delay-1…5 pattern) */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }
.reveal-delay-4 { transition-delay: 0.38s; }
.reveal-delay-5 { transition-delay: 0.50s; }

/* Word-level text clip reveal (hero headings) */
.reveal-text .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.reveal-text .word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-text.is-visible .word-inner               { transform: translateY(0); }
.reveal-text.is-visible .word:nth-child(1)  .word-inner { transition-delay: 0.02s; }
.reveal-text.is-visible .word:nth-child(2)  .word-inner { transition-delay: 0.07s; }
.reveal-text.is-visible .word:nth-child(3)  .word-inner { transition-delay: 0.12s; }
.reveal-text.is-visible .word:nth-child(4)  .word-inner { transition-delay: 0.17s; }
.reveal-text.is-visible .word:nth-child(5)  .word-inner { transition-delay: 0.22s; }
.reveal-text.is-visible .word:nth-child(6)  .word-inner { transition-delay: 0.27s; }
.reveal-text.is-visible .word:nth-child(7)  .word-inner { transition-delay: 0.32s; }
.reveal-text.is-visible .word:nth-child(8)  .word-inner { transition-delay: 0.37s; }
.reveal-text.is-visible .word:nth-child(n+9).word-inner { transition-delay: 0.40s; }

/* Hover-lift for cards (matching Corelytics hover-lift class) */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow  0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
}

/* ==============================================================================
   PAGE HERO (Inner pages: Services, Process, Security, Contact)
   ============================================================================== */
.page-hero {
  padding: 72px 0 54px;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(800px 420px at 85% 15%, rgba(23,115,89,0.07), transparent 70%),
    linear-gradient(to right, rgba(23, 115, 89, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 115, 89, 0.06) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero .wrap {
  position: relative;
}
.page-hero h1 {
  font-size: clamp(32px, 3.8vw, 48px);
  margin: 16px 0 16px;
  line-height: 1.15;
  max-width: 820px;
}
.page-hero p.lead {
  font-size: clamp(16px, 1.8vw, 18.5px);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.55;
}

/* ==============================================================================
   SERVICES DEEP-DIVE & DETAIL CARDS (Section 25)
   ============================================================================== */
.service-deep-dive {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.service-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--trans-base), box-shadow var(--trans-base);
}
.service-detail-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.service-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.service-header-row .left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.service-header-row .icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-header-row .icon-box svg {
  width: 24px;
  height: 24px;
}
.service-aspect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
@media (max-width: 900px) {
  .service-aspect-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
@media (max-width: 540px) {
  .service-aspect-grid {
    grid-template-columns: 1fr;
  }
}
.aspect-item {
  display: flex;
  flex-direction: column;
}
.aspect-item .aspect-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.aspect-item .aspect-label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.aspect-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==============================================================================
   PACKAGES / PRICING GRID (Section 15, 25)
   ============================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--trans-base), border-color var(--trans-base), box-shadow var(--trans-base);
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(23, 115, 89, 0.12);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--primary);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.price-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.price-card .price-desc {
  font-size: 14px;
  color: var(--text-subtle);
  margin-bottom: 20px;
}
.price-card .price-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-card .price-val span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-subtle);
}
.price-card ul.price-features {
  flex-grow: 1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card ul.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.price-card ul.price-features li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.price-card .btn {
  width: 100%;
  justify-content: center;
}

/* ==============================================================================
   SECURITY GRID (Section 21, 27)
   ============================================================================== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .security-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}
.security-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-base), border-color var(--trans-base);
}
.security-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.security-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.security-card .icon-wrap svg {
  width: 22px;
  height: 22px;
}
.security-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.security-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==============================================================================
   CONTACT PAGE LAYOUT & WHATSAPP CTA (Section 23, 24)
   ============================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.contact-info h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 16px;
}
.contact-info p.lead {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #0E2420;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 28px;
  text-decoration: none;
  border: 1px solid #1D3A34;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}
.whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.whatsapp-cta .wa-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.whatsapp-cta .wa-icon svg {
  width: 22px;
  height: 22px;
  fill: #FFFFFF;
}
.whatsapp-cta .wa-text strong {
  display: block;
  color: #F8F9F7;
  font-size: 15px;
  margin-bottom: 2px;
}
.whatsapp-cta .wa-text span {
  color: #A3B5AE;
  font-size: 13px;
}
.whatsapp-cta .wa-arrow {
  margin-left: auto;
  color: #25D366;
  font-size: 18px;
  font-weight: 700;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-detail .detail-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail .detail-icon svg {
  width: 18px;
  height: 18px;
}
.contact-detail strong {
  display: block;
  font-size: 14.5px;
  color: var(--text-main);
  margin-bottom: 2px;
}
.contact-detail span, .contact-detail a {
  font-size: 14px;
  color: var(--text-muted);
}
.contact-detail a:hover {
  color: var(--primary);
}

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

/* ==============================================================================
   FLOW / OUTCOME BOX (Section 18, 26)
   ============================================================================== */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
}
.flow-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
}
.flow-icon {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-row strong {
  display: block;
  font-size: 14.5px;
  color: var(--text-main);
}
.flow-row span {
  font-size: 13px;
  color: var(--text-subtle);
}

/* ==============================================================================
   MOBILE-FIRST RESPONSIVE SYSTEM (Screens <= 768px, <= 580px, <= 360px)
   ============================================================================== */

@media (max-width: 768px) {
  /* App-Style Header & Navigation */
  .nav-bar, .nav-container {
    height: 58px;
  }
  .brand {
    font-size: 15.5px;
    gap: 8px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .brand-mark svg {
    width: 16px;
    height: 16px;
  }
  .brand-name {
    font-size: 14.5px;
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  /* Compact Global Section Spacing */
  .section {
    padding: 38px 0;
  }
  .section-head {
    margin-bottom: 22px;
  }
  .section-head h2 {
    font-size: clamp(20px, 5.2vw, 25px);
    margin: 6px 0 8px;
    line-height: 1.25;
  }
  .section-head p {
    font-size: 13.5px;
    line-height: 1.45;
  }
  .eyebrow {
    font-size: 10px;
    padding: 2.5px 8px;
    letter-spacing: 0.08em;
  }

  /* Mobile drawer full height safety on iOS & Android */
  .mobile-drawer {
    height: 100vh;
    height: 100dvh;
    width: min(300px, 86vw);
    padding: 18px;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-nav-link {
    padding: 10px 14px;
    font-size: 14.5px;
  }

  /* Table responsive scrolling */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    margin: 0 -2px;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 580px) {
  /* Container Side Insets on Phones */
  .wrap {
    padding: 0 14px;
  }

  /* 1. App-Style Hero Section */
  .hero {
    padding: 22px 0 26px;
  }
  .hero-grid {
    gap: 20px;
  }
  .hero h1 {
    font-size: clamp(23px, 6.8vw, 29px);
    line-height: 1.2;
    margin: 10px 0 12px;
    letter-spacing: -0.02em;
  }
  .hero .lead {
    font-size: 13.5px;
    line-height: 1.48;
    margin-bottom: 16px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 9px;
    width: 100%;
    margin-bottom: 14px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    font-size: 13.5px;
    border-radius: 9px;
    font-weight: 600;
  }
  .hero-trust-note {
    font-size: 11.5px;
    gap: 6px;
    justify-content: center;
  }

  /* Hero Analytics Panel (Right Side Mini App Card) */
  .hero-panel {
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
  }
  .panel-header {
    padding: 9px 12px;
  }
  .panel-header-title {
    font-size: 10px;
    gap: 6px;
  }
  .panel-body {
    padding: 12px;
  }
  .panel-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
  }
  .kpi-mini-card {
    padding: 8px 6px;
    border-radius: 8px;
    text-align: center;
  }
  .kpi-mini-card .label {
    font-size: 8.5px;
    margin-bottom: 2px;
  }
  .kpi-mini-card .val {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
  }
  .kpi-mini-card .delta {
    font-size: 8.5px;
  }

  /* 2. Compact Moving Ticker (Value Strip) */
  .value-strip {
    padding: 8px 0;
  }
  .marquee-content {
    gap: 10px;
    padding-right: 10px;
  }
  .value-strip-item {
    font-size: 10.5px;
    padding: 5px 12px;
    gap: 6px;
    border-radius: 999px;
  }
  .value-strip-item .dot {
    width: 5px;
    height: 5px;
  }

  /* 3. Problem -> Solution Compact App Segments */
  .ps-grid {
    gap: 12px;
  }
  .ps-box {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .ps-box .eyebrow {
    font-size: 9.5px;
    padding: 2px 7px;
  }
  .ps-box h3 {
    font-size: 16px;
    margin: 6px 0 8px;
  }
  .ps-box p {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 10px;
  }
  .ps-list {
    gap: 8px;
    margin-top: 10px;
  }
  .ps-list li {
    font-size: 12.5px;
    line-height: 1.4;
    gap: 8px;
  }
  .ps-list li svg {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    flex-shrink: 0;
  }
  /* Centered Watermarks - Scaled down for compact cards */
  .ps-box.problem-side::after {
    width: 130px;
    height: 130px;
    opacity: 0.10;
  }
  .ps-box.solution-side::after {
    width: 140px;
    height: 140px;
    opacity: 0.12;
  }

  /* 4. Compact Service & Value Cards (Home & Services Page) */
  .services-grid {
    gap: 12px;
  }
  .service-card {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .service-card .service-num {
    font-size: 10px;
    padding: 2px 6px;
  }
  .service-card h3 {
    font-size: 16px;
    margin: 8px 0 6px;
  }
  .service-card p {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .service-card a {
    font-size: 12.5px;
  }

  .why-grid {
    gap: 10px;
  }
  .why-card {
    padding: 14px 12px;
    border-radius: 10px;
  }
  .why-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    margin-bottom: 10px;
  }
  .why-icon svg {
    width: 16px;
    height: 16px;
  }
  .why-card h3 {
    font-size: 14.5px;
    margin-bottom: 4px;
  }
  .why-card p {
    font-size: 12.5px;
    line-height: 1.42;
  }

  /* 5. Case Studies, Testimonials & FAQ (Compact Cards) */
  .case-grid {
    gap: 12px;
  }
  .case-card {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .case-tag {
    font-size: 9.5px;
    padding: 2px 6px;
  }
  .case-client {
    font-size: 11.5px;
  }
  .case-card h3 {
    font-size: 15.5px;
    margin: 6px 0 6px;
  }
  .case-card p {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .testi-grid {
    gap: 12px;
    margin-bottom: 20px;
  }
  .testi-card {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .testi-card .quote-mark {
    font-size: 20px;
    margin-bottom: 2px;
  }
  .testi-card p {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 10px;
  }
  .testi-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .testi-meta strong {
    font-size: 12.5px;
  }
  .testi-meta span {
    font-size: 11px;
  }

  .faq-grid {
    gap: 9px;
  }
  .faq-card {
    padding: 13px 13px;
    border-radius: 9px;
  }
  .faq-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .faq-card p {
    font-size: 12px;
    line-height: 1.45;
  }

  /* CTA Banner on mobile */
  .cta-banner {
    padding: 22px 16px;
    border-radius: 12px;
    margin-top: 6px;
  }
  .cta-banner h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .cta-banner p {
    font-size: 12.5px;
    margin-bottom: 14px;
  }
  .cta-banner .btn {
    width: 100%;
    min-height: 42px;
    font-size: 13.5px;
    justify-content: center;
  }

  /* 6. Inner Page Heroes (Services, Process, Security, Contact, Demo) */
  .page-hero {
    padding: 24px 0 20px;
  }
  .page-hero h1 {
    font-size: clamp(21px, 6vw, 25px);
    line-height: 1.2;
    margin: 6px 0 8px;
  }
  .page-hero p.lead {
    font-size: 13px;
    line-height: 1.45;
  }

  /* 7. Demo Dashboard Page (App UI) */
  .demo-control-bar {
    top: 58px;
    padding: 7px 0;
  }
  .filter-group {
    gap: 5px;
  }
  .filter-pill {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 999px;
  }
  .kpi-row {
    gap: 8px;
    margin-bottom: 14px;
  }
  .kpi-card {
    padding: 12px 12px;
    border-radius: 10px;
  }
  .kpi-card .kpi-label {
    font-size: 9.5px;
    margin-bottom: 3px;
  }
  .kpi-card .kpi-val {
    font-size: 20px;
    margin-bottom: 3px;
  }
  .kpi-card .kpi-delta {
    font-size: 10px;
  }
  .chart-grid {
    gap: 10px;
    margin-bottom: 14px;
  }
  .chart-panel {
    padding: 14px 12px;
    border-radius: 10px;
  }
  .chart-header {
    margin-bottom: 12px;
  }
  .chart-header h3 {
    font-size: 14px;
  }
  .chart-header p {
    font-size: 11px;
  }
  .chart-canvas-container {
    height: 180px;
  }
  .data-viewer-panel {
    padding: 14px 12px;
    border-radius: 10px;
    margin-bottom: 20px;
  }
  .data-tabs-nav {
    gap: 6px;
    padding-bottom: 10px;
    margin-bottom: 14px;
  }
  .data-tab-btn {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 7px;
  }
  table.data-table th {
    padding: 7px 9px;
    font-size: 9.5px;
  }
  table.data-table td {
    padding: 7px 9px;
    font-size: 11px;
  }
  .download-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }
  .download-card {
    padding: 16px 14px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
  }
  .download-card .case-tag {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 5px;
    margin-bottom: 6px;
  }
  .download-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .download-card p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .download-card .btn {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    min-height: 38px;
    padding: 8px 12px;
  }
  .demo-spotlight-card {
    grid-template-columns: 1fr;
    padding: 18px 14px;
    border-radius: 12px;
    gap: 16px;
  }
  .demo-spotlight-card h2 {
    font-size: 19px;
    margin: 6px 0 10px;
  }
  .demo-spotlight-card p {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 14px;
  }
  .demo-spotlight-card .btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    font-size: 13px;
  }
  .demo-preview-visual {
    padding: 14px 12px;
    border-radius: 10px;
  }

  /* 8. Sub-Pages Compact Cards (Services, Process, Security, Contact) */
  .service-detail-card {
    padding: 16px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .service-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }
  .service-header-row .left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }
  .service-header-row .icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .service-header-row .icon-box svg {
    width: 18px;
    height: 18px;
  }
  .service-header-row h3 {
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 2px;
  }
  .service-header-row p {
    font-size: 12.5px;
    line-height: 1.35;
  }
  .service-header-row .btn {
    width: 100%;
    justify-content: center;
    min-height: 38px;
    font-size: 12.5px;
    border-radius: 8px;
  }
  .service-aspect-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
  }
  .aspect-item {
    padding: 10px 11px;
    border-radius: 8px;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
  }
  .aspect-item .aspect-label {
    font-size: 9.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
  }
  .aspect-item p {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .price-card {
    padding: 18px 14px;
    border-radius: 12px;
  }
  .price-badge {
    top: -10px;
    left: 16px;
    font-size: 10px;
    padding: 2px 8px;
  }
  .price-card h3 {
    font-size: 17px;
    margin-bottom: 4px;
  }
  .price-card .price-desc {
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
  }
  .price-card .price-val {
    font-size: 24px;
    margin-bottom: 14px;
  }
  .price-card ul.price-features {
    gap: 6px;
    margin-bottom: 16px;
  }
  .price-card ul.price-features li {
    font-size: 12px;
    gap: 8px;
  }
  .price-card ul.price-features li svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .price-card .btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    font-size: 13px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .why-card {
    padding: 14px 12px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
  }
  .why-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-bottom: 8px;
  }
  .why-icon svg {
    width: 16px;
    height: 16px;
  }
  .why-card h3 {
    font-size: 14.5px;
    margin-bottom: 4px;
    font-weight: 700;
  }
  .why-card p {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0;
  }

  .timeline-row {
    flex-direction: column;
    gap: 10px;
  }
  .timeline-step {
    padding: 14px 12px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .timeline-step .step-num {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 6px;
  }
  .timeline-step h3 {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 700;
  }
  .timeline-step p {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
  }
  .timeline-step ul {
    margin-top: 8px;
    font-size: 11.5px;
    gap: 4px;
  }

  .flow-box {
    padding: 12px 10px;
    border-radius: 10px;
    gap: 8px;
  }
  .flow-row {
    padding: 8px 10px;
    gap: 10px;
    border-radius: 8px;
  }
  .flow-icon {
    width: 26px;
    height: 26px;
    font-size: 11px;
    border-radius: 6px;
  }
  .flow-row strong {
    font-size: 12.5px;
  }
  .flow-row span {
    font-size: 11px;
    line-height: 1.35;
  }

  .security-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .security-card {
    padding: 14px 12px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .security-card .icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-bottom: 8px;
  }
  .security-card .icon-wrap svg {
    width: 16px;
    height: 16px;
  }
  .security-card h3 {
    font-size: 14.5px;
    margin-bottom: 4px;
    font-weight: 700;
  }
  .security-card p {
    font-size: 12px;
    line-height: 1.4;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-info h2 {
    font-size: 19px;
    margin-bottom: 6px;
  }
  .contact-info .lead {
    font-size: 12.5px;
    margin-bottom: 12px;
    line-height: 1.42;
  }
  .whatsapp-cta {
    padding: 12px 12px;
    border-radius: 10px;
    gap: 10px;
    margin-bottom: 14px;
  }
  .whatsapp-cta .wa-icon {
    width: 34px;
    height: 34px;
  }
  .whatsapp-cta .wa-icon svg {
    width: 17px;
    height: 17px;
  }
  .whatsapp-cta .wa-text strong {
    font-size: 13px;
  }
  .whatsapp-cta .wa-text span {
    font-size: 11px;
  }
  .contact-detail {
    padding: 6px 0;
    gap: 8px;
    font-size: 12px;
  }
  .detail-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }
  .contact-form-card {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .contact-form-card h3 {
    font-size: 17px;
    margin-bottom: 4px;
  }
  .contact-form-card p {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .contact-form-card .form-group {
    margin-bottom: 12px;
  }
  .contact-form-card label {
    font-size: 11.5px;
    margin-bottom: 4px;
  }
  .contact-form-card .form-input,
  .contact-form-card .form-textarea {
    padding: 9px 11px;
    font-size: 13px;
    border-radius: 8px;
  }
  .contact-form-card .btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    font-size: 13.5px;
  }

  /* ==============================================================================
     MOBILE FOOTER — LIGHT THEME
     ============================================================================== */
  footer.site-footer {
    padding: 38px 0 24px;
    background: #FFFFFF;
    background-image: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(23, 115, 89, 0.05) 0%, transparent 70%);
    border-top: 1px solid var(--border);
  }

  .footer-top-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 26px;
  }

  .footer-brand-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }
  .footer-brand {
    gap: 10px;
  }
  .footer-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  .footer-brand-mark svg {
    width: 20px;
    height: 20px;
  }
  .footer-brand-text .brand-title {
    font-size: 18px;
  }
  .footer-brand-text .brand-subtitle {
    font-size: 10px;
  }

  .footer-status-badge {
    font-size: 11px;
    padding: 5px 11px;
    border-radius: 999px;
  }

  .footer-quick-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .footer-action-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 10px;
    font-size: 12px;
    border-radius: 9px;
    min-height: 42px;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 26px;
  }

  .footer-mission-text {
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 14px;
    color: var(--text-muted);
  }

  .footer-trust-chips {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .trust-chip {
    font-size: 11px;
    padding: 5px 9px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 6px;
  }

  /* 2-Column Mobile App Directory */
  .footer-nav-groups {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
  }

  .footer-col-title {
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--text-subtle);
    margin-bottom: 12px;
  }

  .footer-nav-list {
    gap: 9px;
  }
  .footer-nav-list li a {
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 3px 0;
  }

  /* Direct Desk Full-Width Card on Mobile */
  .footer-nav-groups > .footer-nav-col:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding: 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 10px;
  }
  .footer-contact-list {
    gap: 11px;
  }
  .contact-lbl {
    font-size: 9.5px;
    margin-bottom: 2px;
  }
  .footer-contact-list a {
    font-size: 12.5px;
  }
  .contact-val {
    font-size: 11.5px;
  }

  /* Mobile Bottom Legal Bar */
  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-top: 20px;
    font-size: 11.5px;
  }
  .footer-legal {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    font-size: 11px;
  }
  .footer-dot-sep {
    display: none;
  }
  .footer-tagline {
    font-size: 10.5px;
  }
  .footer-utility-links {
    justify-content: center;
    gap: 14px;
    width: 100%;
    font-size: 12px;
  }
  .footer-back-top {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    margin-top: 4px;
    font-size: 12px;
  }
}

/* Extra small devices (iPhone SE, Galaxy Fold, 320px-360px) */
@media (max-width: 360px) {
  .wrap {
    padding: 0 10px;
  }
  .btn {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .brand-name {
    font-size: 13px;
    max-width: 145px;
  }
  .panel-kpi-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* ==============================================================================
   APP UI & SHORT FOOTER OPTIMIZATIONS
   ============================================================================== */
@media (max-width: 768px) {
  body {
    background-color: #ffffff;
  }
  .card, .service-card, .why-card, .ps-box {
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 20px;
    padding: 24px;
    background: #FAFAFA;
  }
  .page-hero {
    padding: 40px 0 24px;
    text-align: center;
  }
  .page-hero .eyebrow {
    margin: 0 auto 16px;
  }
  .page-hero h1 {
    font-size: 32px;
  }
  .page-hero .lead {
    margin: 0 auto;
  }
  .site-header {
    border-bottom: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  }
  footer.site-footer {
    padding: 32px 0 24px;
    background: #FAFAFA;
    border-top: 1px solid #EAEAEA;
    text-align: center;
  }
  .footer-top-strip {
    justify-content: center;
    border-bottom: none;
    margin-bottom: 16px;
    padding-bottom: 0;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-top: 1px solid #EAEAEA;
    padding-top: 16px;
    margin-top: 16px;
  }
  .footer-utility-links {
    justify-content: center;
    width: 100%;
  }
  .footer-nav-groups {
    display: none; /* Hide large nav blocks on mobile for a short app-like footer */
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-col-about {
    text-align: center;
  }
  .footer-trust-chips {
    justify-content: center;
  }
}

/* Global Footer Adjustments for "short and professional" */
.site-footer {
  padding: 48px 0 24px !important;
}
.footer-main-grid {
  margin-bottom: 32px;
}
.footer-top-strip {
  margin-bottom: 32px;
  padding-bottom: 24px;
}


/* ==============================================================================
   DATA INTELLIGENCE AMBIENT SPOTLIGHT & CARD ILLUMINATION (Enterprise Data Theme)
   Native OS cursor preserved for precision, responsive B2B interaction
   ============================================================================== */

/* Ambient Viewport Spotlight: Follows cursor softly in the background */
.data-ambient-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    650px circle at var(--spotlight-x, -1000px) var(--spotlight-y, -1000px),
    rgba(41, 168, 130, 0.08),
    rgba(23, 115, 89, 0.02) 45%,
    transparent 70%
  );
}

body.has-spotlight .data-ambient-spotlight {
  opacity: 1;
}

/* Ensure interactive elements have crisp standard pointer cursors */
a, button, [role="button"], .btn, .social-circle-btn, .footer-subscribe-btn, .footer-logo-badge, .nav-link, .mobile-nav-link, .filter-pill, .faq-trigger {
  cursor: pointer;
}

input, textarea {
  cursor: text;
}

/* Interactive Card Illumination (Data Cards, Panels, Feature Blocks) */
.service-card,
.ps-card,
.why-card,
.case-card,
.download-card,
.pricing-card,
.flow-card,
.security-card,
.demo-card,
.panel-kpi-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-fast);
}

.service-card::before,
.ps-card::before,
.why-card::before,
.case-card::before,
.download-card::before,
.pricing-card::before,
.flow-card::before,
.security-card::before,
.demo-card::before,
.panel-kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(41, 168, 130, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.service-card:hover::before,
.ps-card:hover::before,
.why-card:hover::before,
.case-card:hover::before,
.download-card:hover::before,
.pricing-card:hover::before,
.flow-card:hover::before,
.security-card:hover::before,
.demo-card:hover::before,
.panel-kpi-card:hover::before {
  opacity: 1;
}


/* ==============================================================================
   STACKED CIRCULAR FOOTER (Premium Brand Theme — Fully Responsive)
   ============================================================================== */
.stacked-circular-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 64px 20px 36px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.stacked-circular-footer .footer-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.stacked-circular-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  text-decoration: none;
  flex-wrap: wrap;
  transition: opacity var(--trans-fast), transform var(--trans-fast);
}

.stacked-circular-footer .footer-brand:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.stacked-circular-footer .footer-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(11, 25, 21, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
  flex-shrink: 0;
}

.stacked-circular-footer .footer-brand:hover .brand-mark {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(11, 25, 21, 0.35);
}

.stacked-circular-footer .footer-brand .brand-mark svg {
  width: 24px;
  height: 24px;
  color: var(--primary-bright);
}

.stacked-circular-footer .footer-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 3.5vw, 22px);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stacked-circular-footer .footer-brand-title .brand-accent {
  color: var(--primary);
  font-weight: 600;
}

.stacked-circular-footer .footer-brand-sub {
  font-size: clamp(12.5px, 2.8vw, 14px);
  color: var(--text-subtle);
  margin-bottom: 24px;
  max-width: 580px;
  line-height: 1.55;
  padding: 0 8px;
}

.stacked-circular-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 22px;
  margin-bottom: 28px;
  width: 100%;
}

.stacked-circular-footer .footer-nav-link,
.stacked-circular-footer .footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color var(--trans-fast), background-color var(--trans-fast);
}

.stacked-circular-footer .footer-nav-link:hover,
.stacked-circular-footer .footer-nav a:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.stacked-circular-footer .footer-social-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stacked-circular-footer .social-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--trans-fast);
  box-shadow: 0 1px 4px rgba(12, 30, 25, 0.04);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.stacked-circular-footer .social-circle-btn:hover {
  border-color: var(--primary-bright);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 115, 89, 0.16);
}

.stacked-circular-footer .social-circle-btn.whatsapp-circle-btn {
  color: #25D366;
}

.stacked-circular-footer .social-circle-btn.whatsapp-circle-btn:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.12);
  color: #128C7E;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.stacked-circular-footer .social-circle-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

/* Direct Official Contact Pills */
.stacked-circular-footer .footer-contact-direct {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  width: 100%;
}

.stacked-circular-footer .footer-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: all var(--trans-fast);
  max-width: 100%;
  word-break: break-word;
}

.stacked-circular-footer .footer-contact-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.stacked-circular-footer .footer-contact-pill svg {
  flex-shrink: 0;
}

.stacked-circular-footer .footer-contact-pill.pill-email svg {
  color: var(--primary);
}

.stacked-circular-footer .footer-contact-pill.pill-whatsapp svg {
  color: #25D366;
  width: 18px;
  height: 18px;
  display: block;
}

.stacked-circular-footer .footer-contact-pill.pill-whatsapp:hover {
  border-color: #25D366;
  color: #128C7E;
  background: rgba(37, 211, 102, 0.08);
}

/* Newsletter Unified Pill Form */
.stacked-circular-footer .footer-subscribe-box {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 32px;
}

.stacked-circular-footer .footer-subscribe-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  padding: 5px 6px 5px 16px;
  box-shadow: 0 2px 8px rgba(12, 30, 25, 0.04);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.stacked-circular-footer .footer-subscribe-form:focus-within {
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px rgba(41, 168, 130, 0.16), 0 4px 16px rgba(23, 115, 89, 0.08);
}

.stacked-circular-footer .footer-subscribe-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stacked-circular-footer .footer-subscribe-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.stacked-circular-footer .footer-subscribe-input {
  width: 100%;
  height: 42px;
  border: none;
  background: transparent;
  padding: 0 8px 0 0;
  font-size: 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  outline: none;
}

.stacked-circular-footer .footer-subscribe-input::placeholder {
  color: var(--text-subtle);
  opacity: 0.85;
}

.stacked-circular-footer .footer-subscribe-btn {
  height: 42px;
  padding: 0 22px;
  border-radius: 9999px;
  border: none;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color var(--trans-fast), transform var(--trans-fast), box-shadow var(--trans-fast);
  box-shadow: 0 2px 8px rgba(23, 115, 89, 0.25);
}

.stacked-circular-footer .footer-subscribe-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(23, 115, 89, 0.35);
}

.stacked-circular-footer .footer-subscribe-btn:active {
  transform: translateY(0);
}

.stacked-circular-footer .footer-btn-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--trans-fast);
}

.stacked-circular-footer .footer-subscribe-btn:hover .footer-btn-icon {
  transform: translateX(2px);
}

.stacked-circular-footer .footer-subscribe-status {
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
  text-align: center;
}

.stacked-circular-footer .footer-subscribe-status.success {
  color: var(--primary);
  font-weight: 500;
}

.stacked-circular-footer .footer-subscribe-status.error {
  color: var(--accent-warn);
}

.stacked-circular-footer .footer-copyright {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  width: 100%;
}

.stacked-circular-footer .footer-copyright p {
  font-size: 13px;
  color: var(--text-subtle);
  margin: 0;
  line-height: 1.6;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 640px) {
  .stacked-circular-footer {
    padding: 48px 16px 28px;
  }
  .stacked-circular-footer .footer-brand {
    gap: 10px;
  }
  .stacked-circular-footer .footer-brand-title {
    font-size: 19px;
  }
  .stacked-circular-footer .footer-brand-sub {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .stacked-circular-footer .footer-nav {
    gap: 8px 14px;
    margin-bottom: 22px;
  }
  .stacked-circular-footer .footer-nav-link,
  .stacked-circular-footer .footer-nav a {
    font-size: 13.5px;
    padding: 6px 8px;
  }
  .stacked-circular-footer .footer-social-group {
    gap: 10px;
    margin-bottom: 20px;
  }
  .stacked-circular-footer .social-circle-btn {
    width: 42px;
    height: 42px;
  }
  .stacked-circular-footer .social-circle-btn svg {
    width: 19px;
    height: 19px;
  }
  .stacked-circular-footer .footer-contact-direct {
    gap: 8px;
    margin-bottom: 22px;
    flex-direction: column;
    align-items: center;
  }
  .stacked-circular-footer .footer-contact-pill {
    font-size: 13px;
    padding: 9px 16px;
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }
  .stacked-circular-footer .footer-subscribe-box {
    margin-bottom: 24px;
  }
  .stacked-circular-footer .footer-subscribe-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
    gap: 10px;
  }
  .stacked-circular-footer .footer-subscribe-input-wrap {
    width: 100%;
    padding: 0 6px;
    height: 42px;
  }
  .stacked-circular-footer .footer-subscribe-btn {
    width: 100%;
    height: 44px;
  }
  .stacked-circular-footer .footer-copyright p {
    font-size: 12.5px;
    line-height: 1.6;
  }
}

@media (max-width: 380px) {
  .stacked-circular-footer {
    padding: 40px 12px 24px;
  }
  .stacked-circular-footer .footer-brand-title {
    font-size: 17px;
  }
  .stacked-circular-footer .footer-brand .brand-mark {
    width: 38px;
    height: 38px;
  }
  .stacked-circular-footer .footer-brand .brand-mark svg {
    width: 20px;
    height: 20px;
  }
  .stacked-circular-footer .footer-contact-pill {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* ==========================================================================
   Coreytics Online Workbook Spreadsheet Viewer Modal
   ========================================================================== */
.wb-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 20, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.wb-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wb-modal-card {
  width: 100%;
  max-width: 1280px;
  height: 90vh;
  max-height: 880px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(12, 90, 62, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: wbModalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wbModalPop {
  0% { transform: scale(0.96) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.wb-modal-backdrop.wb-fullscreen .wb-modal-card {
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  border: none;
}

.wb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.wb-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.wb-brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0c5a3e 0%, #15803d 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(12, 90, 62, 0.25);
}

.wb-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.wb-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #0c5a3e;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wb-modal-desc {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 580px;
}

.wb-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wb-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  transition: all 0.2s ease;
}

.wb-search-box:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.wb-search-box svg {
  color: #64748b;
  flex-shrink: 0;
}

.wb-search-box input {
  border: none;
  outline: none;
  font-size: 13px;
  color: #0f172a;
  background: transparent;
  width: 140px;
}

.wb-search-box input::placeholder {
  color: #94a3b8;
}

.wb-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wb-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.wb-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.wb-close-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* Tabs Bar */
.wb-sheet-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.wb-sheet-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wb-sheet-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
}

.wb-sheet-tab.active {
  background: #ffffff;
  color: #0c5a3e;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wb-tab-count {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.wb-sheet-tab.active .wb-tab-count {
  background: #dcfce7;
  color: #0c5a3e;
}

/* Grid & Table */
.wb-grid-viewport {
  flex: 1;
  overflow: auto;
  background: #ffffff;
  position: relative;
}

.wb-sheet-intro {
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.wb-intro-line {
  margin: 2px 0;
  font-size: 12.5px;
  color: #475569;
}

.wb-spreadsheet-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
}

.wb-header-row th {
  position: sticky;
  top: 0;
  z-index: 12;
  background: #f1f5f9;
  border-bottom: 2px solid #cbd5e1;
  border-right: 1px solid #e2e8f0;
  padding: 8px 12px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.wb-corner-cell {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 25 !important;
  width: 48px;
  min-width: 48px;
  text-align: center !important;
  background: #e2e8f0 !important;
  color: #475569 !important;
  border-right: 2px solid #cbd5e1 !important;
}

.wb-col-letter {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 1px;
}

.wb-col-title {
  display: block;
}

.wb-data-row {
  border-bottom: 1px solid #f1f5f9;
}

.wb-data-row:nth-child(even) {
  background: #fafafa;
}

.wb-data-row:hover {
  background: #f0fdf4 !important;
}

.wb-row-num {
  position: sticky;
  left: 0;
  z-index: 8;
  text-align: center;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border-right: 2px solid #cbd5e1;
  border-bottom: 1px solid #f1f5f9;
  padding: 6px 8px;
  font-size: 11px;
  user-select: none;
  width: 48px;
  min-width: 48px;
}

.wb-cell {
  padding: 7px 12px;
  border-right: 1px solid #f1f5f9;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-cell.text-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* Status Badges */
.wb-cell-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status-pill-green {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-pill-red {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-pill-amber {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-pill-blue {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.wb-no-match {
  padding: 36px 20px;
  text-align: center;
  color: #64748b;
  font-style: italic;
}

.wb-empty-msg {
  padding: 48px;
  text-align: center;
  color: #94a3b8;
}

/* Footer */
.wb-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
}

.wb-footer-tagline {
  font-size: 11px;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .wb-modal-card {
    height: 96vh;
    max-height: 96vh;
    border-radius: 12px;
  }
  .wb-modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  }
  .wb-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .wb-search-box {
    flex: 1;
  }
  .wb-search-box input {
    width: 100%;
  }
  .wb-footer-tagline {
    display: none;
  }
}

/* ==============================================================================
   Embedded Full-Page Workbook Card & Mobile UX Extensions
   ============================================================================== */
.wb-page-container {
  width: 100%;
  margin: 0 auto;
}

.wb-embedded-card {
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #d7e0dc;
  box-shadow: 0 12px 36px rgba(12, 30, 25, 0.06), 0 1px 3px rgba(12, 30, 25, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 650px;
}

.wb-embedded-header {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: #f8fafc;
}

.wb-mobile-hint {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  color: #166534;
  font-size: 11.5px;
  font-weight: 500;
}

.wb-mobile-hint svg {
  flex-shrink: 0;
  color: #15803d;
}

.wb-download-btn {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border-color: #a7f3d0 !important;
}

.wb-download-btn:hover {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
  color: #047857 !important;
}

@media (max-width: 900px) {
  .wb-mobile-hint {
    display: flex;
  }
}

@media (max-width: 768px) {
  .wb-embedded-card {
    border-radius: 12px;
    min-height: 520px;
    margin: 0 -4px;
  }
  .wb-hide-mobile {
    display: none !important;
  }
  .wb-sheet-tab {
    padding: 7px 11px;
    font-size: 12px;
  }
  .wb-modal-title {
    font-size: 1.05rem !important;
  }
  .wb-modal-desc {
    max-width: 100%;
    white-space: normal;
    font-size: 11.5px;
  }
}

/* ==============================================================================
   DPDP Act & Privacy-Compliant Cookie Consent Banner
   ============================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 32px);
  max-width: 900px;
  background: rgba(11, 25, 21, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(41, 168, 130, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border-radius: 14px;
  padding: 18px 24px;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-inverse);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.cookie-consent-banner.cookie-banner-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-consent-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}

.cookie-consent-icon {
  color: var(--primary-bright);
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-consent-text strong {
  display: block;
  font-size: 14.5px;
  color: #FFFFFF;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.cookie-consent-text p {
  font-size: 13px;
  color: var(--text-inverse-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-link {
  color: var(--primary-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.cookie-link:hover {
  color: #FFFFFF;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 16px !important;
  font-size: 13.5px !important;
  border-radius: 8px !important;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-link-pref {
  color: var(--text-inverse-muted);
  font-size: 13px;
  text-decoration: underline;
  margin-left: 4px;
  white-space: nowrap;
}

.cookie-link-pref:hover {
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    bottom: 12px;
    width: calc(100% - 20px);
    padding: 16px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-consent-actions {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .cookie-link-pref {
    text-align: center;
    margin: 4px 0 0 0;
  }
}

/* ==========================================================================
   Excel / LibreOffice Accurate Workbook Dashboard & Sheet Visuals
   ========================================================================== */
.excel-sheet-viewport {
  background: #ffffff;
  color: #1e293b;
  font-family: Calibri, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 24px 28px;
  min-height: 100%;
  box-sizing: border-box;
}

.excel-title-bar {
  margin-bottom: 18px;
}

.excel-sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: #16365c;
  letter-spacing: -0.01em;
  margin: 0 0 3px 0;
  font-family: Calibri, Arial, sans-serif;
}

.excel-sheet-subtitle {
  font-size: 11px;
  font-style: italic;
  color: #595959;
  margin: 0;
  line-height: 1.4;
  font-family: Calibri, Arial, sans-serif;
}

/* KPI Banner (Row 4 & 5) */
.excel-kpi-table-wrap {
  margin-bottom: 24px;
  overflow-x: auto;
}

.excel-kpi-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  background: #ffffff;
  border: 1px solid #16365c;
}

.excel-kpi-header th {
  background: #1b365d;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  padding: 6px 12px;
  border: 1px solid #203764;
  white-space: nowrap;
  font-family: Calibri, Arial, sans-serif;
}

.excel-kpi-values td {
  background: #d9e1f2;
  color: #1b365d;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  padding: 7px 12px;
  border: 1px solid #b4c6e7;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-family: Calibri, Arial, sans-serif;
}

/* Two-column grid for dashboards */
.excel-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  align-items: start;
}

.excel-dash-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.excel-section-label {
  font-size: 12px;
  font-weight: 700;
  color: #16365c;
  margin-bottom: 6px;
  font-family: Calibri, Arial, sans-serif;
}

/* Excel-styled data tables */
.excel-table-wrap {
  overflow-x: auto;
}

.excel-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  font-family: Calibri, Arial, sans-serif;
}

.excel-data-table th {
  background: #1b365d;
  color: #ffffff;
  font-weight: 700;
  padding: 5px 10px;
  border: 1px solid #162c4c;
  font-size: 11px;
  white-space: nowrap;
}

.excel-data-table td {
  padding: 5px 10px;
  border: 1px solid #d9d9d9;
  color: #000000;
  font-size: 11px;
  white-space: nowrap;
}

.excel-data-table tr:hover {
  background: #f7f9fc;
}

.excel-data-table td.align-right,
.excel-data-table th.align-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.excel-data-table td.align-center,
.excel-data-table th.align-center {
  text-align: center;
}

/* Excel Chart Card */
.excel-chart-card {
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 2px;
  padding: 16px 14px 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.excel-chart-title {
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
  font-family: Arial, Calibri, sans-serif;
}

.excel-chart-wrap {
  position: relative;
  width: 100%;
  height: 250px;
}

/* Cohort Heatmap table */
.excel-cohort-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.excel-cohort-table {
  border-collapse: collapse;
  font-size: 11px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  font-family: Calibri, Arial, sans-serif;
}

.excel-cohort-table th {
  background: #1b365d;
  color: #ffffff;
  font-weight: 700;
  padding: 6px 12px;
  border: 1px solid #162c4c;
  white-space: nowrap;
  font-size: 11px;
}

.excel-cohort-table td {
  padding: 5px 12px;
  border: 1px solid #d9d9d9;
  font-size: 11px;
  white-space: nowrap;
  color: #000000;
}

.excel-cohort-table td.cohort-heat-cell {
  text-align: center;
  font-weight: 500;
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

