/* ==========================================================================
   SEENOAH — Corporate Technology, AI & Digital Growth Design System
   TAGLINE: TECHNOLOGY • AI • DIGITAL GROWTH | SUB-BRAND: A SEENBYAI COMPANY
   STRICT 8PX MATHEMATICAL SYMMETRY & 12-COLUMN GRID ARCHITECTURE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & COLOR SYSTEM
   -------------------------------------------------------------------------- */
:root {
  /* Core Brand Colors */
  --navy: #071426;
  --midnight: #0B1020;
  --electric-blue: #315CCB;
  --royal-blue: #3D5ED8;
  --indigo: #4A3FB8;
  --purple: #6D3FC8;
  --violet: #7B4FD4;
  --cyan: #19B8C9;
  --teal: #18A7B7;

  /* Neutrals */
  --light-bg: #F7F8FC;
  --light-surface: #FFFFFF;
  --light-surface-subtle: #F1F4F9;
  --dark-bg: #07101F;
  --dark-surface: #0B1628;
  --dark-surface-elevated: #0F1D35;

  --text-dark: #0B1020;
  --text-light: #F8FAFC;
  --text-muted: #64748B;
  --text-muted-light: #94A3B8;

  /* Mathematical Spacing Rhythm (8px Base Scale with Generous Whitespace) */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-112: 112px;
  --space-120: 120px;

  /* Typography Scale */
  --font-family-primary: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-md: 1.125rem;
  /* 18px */
  --font-size-lg: 1.25rem;
  /* 20px */
  --font-size-xl: 1.5rem;
  /* 24px */
  --font-size-2xl: 2rem;
  /* 32px */
  --font-size-3xl: 2.5rem;
  /* 40px */
  --font-size-4xl: 3.25rem;
  /* 52px */
  --font-size-5xl: 4.25rem;
  /* 68px */

  /* Layout & Dimensions */
  --container-max-width: 1400px;
  --header-height: 84px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Strategic Brand Gradients */
  --gradient-brand: linear-gradient(135deg, #19B8C9 0%, #315CCB 50%, #6D3FC8 100%);
  --gradient-accent: linear-gradient(135deg, #315CCB 0%, #4A3FB8 100%);
  --gradient-cyan-blue: linear-gradient(135deg, #19B8C9 0%, #315CCB 100%);
  --gradient-indigo-purple: linear-gradient(135deg, #4A3FB8 0%, #6D3FC8 100%);
  --gradient-teal-cyan: linear-gradient(135deg, #18A7B7 0%, #19B8C9 100%);
}

/* --------------------------------------------------------------------------
   2. THEME DEFINITIONS (LIGHT & DARK MODES)
   -------------------------------------------------------------------------- */
/* Dark Mode Defaults */
body.dark-theme,
:root:not(.light-theme) {
  --bg-main: var(--dark-bg);
  --bg-surface: var(--dark-surface);
  --bg-surface-elevated: var(--dark-surface-elevated);
  --bg-card: rgba(11, 22, 40, 0.9);
  --bg-card-hover: rgba(15, 29, 53, 0.95);
  --bg-tag: rgba(49, 92, 203, 0.12);
  --bg-input: #0B1628;

  --text-primary: var(--text-light);
  --text-secondary: #CBD5E1;
  --text-tertiary: var(--text-muted-light);
  --text-accent: #19B8C9;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-color: rgba(49, 92, 203, 0.22);
  --border-focus: #19B8C9;
  --border-card: rgba(255, 255, 255, 0.08);

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 12px 36px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(25, 184, 201, 0.18);

  --header-bg: rgba(7, 16, 31, 0.9);
  --pattern-color: rgba(49, 92, 203, 0.08);
}

/* Light Mode */
body.light-theme {
  --bg-main: var(--light-bg);
  --bg-surface: var(--light-surface);
  --bg-surface-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-tag: rgba(49, 92, 203, 0.07);
  --bg-input: #FFFFFF;

  --text-primary: var(--text-dark);
  --text-secondary: #334155;
  --text-tertiary: var(--text-muted);
  --text-accent: #315CCB;

  --border-subtle: #E2E8F0;
  --border-color: #CBD5E1;
  --border-focus: #315CCB;
  --border-card: #E2E8F0;

  --shadow-subtle: 0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 12px 32px -8px rgba(15, 23, 42, 0.07);
  --shadow-glow: 0 0 24px rgba(49, 92, 203, 0.12);

  --header-bg: rgba(247, 248, 252, 0.94);
  --pattern-color: rgba(49, 92, 203, 0.04);
}

/* --------------------------------------------------------------------------
   3. CSS RESET & GLOBAL BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-main);
  background-image:
    radial-gradient(var(--pattern-color) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  background: var(--electric-blue);
  color: #FFFFFF;
  padding: 12px 24px;
  z-index: 10000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 24px;
}

/* Typography Base Elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-primary);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, var(--font-size-5xl));
}

h2 {
  font-size: clamp(2rem, 3.5vw, var(--font-size-4xl));
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, var(--font-size-2xl));
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-md);
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-16);
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  opacity: 0.85;
}

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

ul,
ol {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   4. STRICT SYMMETRICAL CONTAINER & GRID SYSTEM
   -------------------------------------------------------------------------- */
.site-container,
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-32);
  padding-right: var(--space-32);
}

.site-main {
  flex: 1;
  width: 100%;
}

/* 12-Column Mathematical Grid */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-32);
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-32);
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-32);
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
}

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

/* Spacious Symmetrical Spacers (Inspired by Mechlar Learning) */
.section-padding {
  padding-top: var(--space-112);
  padding-bottom: var(--space-112);
}

.section-padding-sm {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

/* --------------------------------------------------------------------------
   5. STANDARDIZED SECTION HEADERS & LABELS
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-64);
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--font-size-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  background: var(--bg-tag);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(25, 184, 201, 0.28);
  margin-bottom: var(--space-20);
}

.light-theme .section-label {
  color: var(--electric-blue);
  background: rgba(49, 92, 203, 0.06);
  border-color: rgba(49, 92, 203, 0.2);
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 1px;
}

.section-title {
  margin-bottom: var(--space-20);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header.text-left .section-subtitle {
  margin-left: 0;
  margin-right: 0;
}

/* Gradient Text Highlight */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   6. BUTTONS & INTERACTIVE CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 14px 28px;
  font-weight: 700;
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  min-height: 48px;
  min-width: 48px;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(61, 94, 216, 0.35);
}

.btn-primary:hover {
  background: var(--gradient-indigo-purple);
  box-shadow: 0 6px 24px rgba(61, 94, 216, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary) !important;
  border-color: var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-tag);
  border-color: var(--electric-blue);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cyan) !important;
  border-color: var(--cyan);
}

.light-theme .btn-outline {
  color: var(--electric-blue) !important;
  border-color: var(--electric-blue);
}

.btn-outline:hover {
  background: var(--cyan);
  color: #07101F !important;
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--font-size-xs);
  min-height: 36px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--font-size-base);
  min-height: 56px;
}

.btn:disabled,
button:disabled,
.btn[disabled],
button[disabled] {
  opacity: 0.55;
  cursor: not-allowed !important;
  pointer-events: auto;
  box-shadow: none !important;
  transform: none !important;
  filter: grayscale(15%);
}

/* --------------------------------------------------------------------------
   7. STICKY HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease, height 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-subtle);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  height: 20px;
  width: auto;
}

.site-logo .logo-light {
  display: none;
}

.site-logo .logo-dark {
  display: block;
}

.light-theme .site-logo .logo-light {
  display: block;
}

.light-theme .site-logo .logo-dark {
  display: none;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-link:hover,
.nav-item:hover>.nav-link,
.nav-item.is-hovered>.nav-link,
.nav-item:focus-within>.nav-link {
  color: var(--text-primary);
  background: var(--bg-tag);
}

.nav-link.active,
.nav-item.active-item>.nav-link,
.nav-item.current-menu-item>.nav-link,
.nav-item.current-menu-ancestor>.nav-link {
  color: var(--cyan);
  background: var(--bg-tag);
}

.light-theme .nav-link:hover,
.light-theme .nav-item:hover>.nav-link,
.light-theme .nav-item.is-hovered>.nav-link,
.light-theme .nav-item:focus-within>.nav-link {
  color: var(--electric-blue);
  background: rgba(49, 92, 203, 0.08);
}

.light-theme .nav-link.active,
.light-theme .nav-item.active-item>.nav-link,
.light-theme .nav-item.current-menu-item>.nav-link,
.light-theme .nav-item.current-menu-ancestor>.nav-link {
  color: var(--electric-blue);
}

/* Dropdown Chevron */
.dropdown-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}

.nav-item:hover>.nav-link .dropdown-chevron,
.nav-item.is-hovered>.nav-link .dropdown-chevron,
.nav-item:focus-within>.nav-link .dropdown-chevron,
.sub-nav-item:hover>.sub-nav-link .dropdown-chevron,
.sub-nav-item.is-hovered>.sub-nav-link .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Level 1 Submenu Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 8px;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease 0.14s, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) 0.14s, visibility 0.22s ease 0.14s;
  pointer-events: none;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Invisible hover bridge to eliminate gap between 1st level menu item and 2nd level dropdown */
.nav-menu .sub-menu::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  display: block;
  z-index: 10;
  pointer-events: auto;
}

.light-theme .nav-menu .sub-menu {
  background: var(--light-surface);
  border-color: var(--border-subtle);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Hover & Focus reveal for Level 1 */
.nav-menu .nav-item.menu-item-has-children:hover>.sub-menu,
.nav-menu .nav-item.menu-item-has-children.is-hovered>.sub-menu,
.nav-menu .nav-item.menu-item-has-children:focus-within>.sub-menu,
.nav-menu .nav-item.has-dropdown:hover>.sub-menu,
.nav-menu .nav-item.has-dropdown.is-hovered>.sub-menu,
.nav-menu .nav-item.has-dropdown:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.18s ease 0s, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1) 0s, visibility 0s 0s;
}

/* Submenu Items & Links */
.sub-nav-item {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sub-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.sub-nav-link:hover,
.sub-nav-item:hover>.sub-nav-link,
.sub-nav-item.is-hovered>.sub-nav-link,
.sub-nav-item:focus-within>.sub-nav-link {
  color: var(--cyan);
  background: var(--bg-tag);
  transform: translateX(4px);
}

.light-theme .sub-nav-link:hover,
.light-theme .sub-nav-item:hover>.sub-nav-link,
.light-theme .sub-nav-item.is-hovered>.sub-nav-link,
.light-theme .sub-nav-item:focus-within>.sub-nav-link {
  color: var(--electric-blue);
  background: rgba(49, 92, 203, 0.08);
}

.sub-nav-link.active,
.sub-nav-item.current-menu-item>.sub-nav-link {
  color: var(--cyan);
  background: var(--bg-tag);
  font-weight: 700;
}

.light-theme .sub-nav-link.active,
.light-theme .sub-nav-item.current-menu-item>.sub-nav-link {
  color: var(--electric-blue);
  background: rgba(49, 92, 203, 0.08);
}

/* Level 2 Flyout (Nested Submenu Level 3+) */
.nav-menu .sub-menu .sub-menu {
  top: -6px;
  left: calc(100% + 6px);
  transform: translateX(8px);
}

/* Invisible hover bridge for Level 2 to Level 3 flyout */
.nav-menu .sub-menu .sub-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: -24px;
  width: 24px;
  height: calc(100% + 24px);
  background: transparent;
  display: block;
  z-index: 10;
  pointer-events: auto;
}

.nav-menu .sub-nav-item.menu-item-has-children:hover>.sub-menu,
.nav-menu .sub-nav-item.menu-item-has-children.is-hovered>.sub-menu,
.nav-menu .sub-nav-item.menu-item-has-children:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition: opacity 0.18s ease 0s, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1) 0s, visibility 0s 0s;
}

/* Hide desktop-only elements in mobile drawer or vice versa */
.nav-menu .mobile-sub-toggle {
  display: none;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

.light-theme .theme-toggle-btn .sun-icon {
  display: block;
}

.light-theme .theme-toggle-btn .moon-icon {
  display: none;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: var(--space-32);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-32);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-close {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  list-style: none;
  margin: 0 0 var(--space-32) 0;
  padding: 0;
}

.mobile-nav-menu .nav-item,
.mobile-nav-menu li {
  list-style: none;
  width: 100%;
}

.mobile-nav-menu .mobile-nav-item-wrap,
.mobile-nav-menu li.menu-item-has-children {
  position: relative;
}

.mobile-nav-menu li.menu-item-has-children>a {
  display: inline-flex;
  align-items: center;
  width: calc(100% - 44px);
  padding: 12px 14px;
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.mobile-nav-menu .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  width: 100%;
}

.mobile-nav-menu .nav-link.active,
.mobile-nav-menu li.active-item>a,
.mobile-nav-menu li.current-menu-item>a {
  color: var(--cyan);
  background: var(--bg-tag);
}

.light-theme .mobile-nav-menu .nav-link.active,
.light-theme .mobile-nav-menu li.active-item>a,
.light-theme .mobile-nav-menu li.current-menu-item>a {
  color: var(--electric-blue);
}

.mobile-nav-menu .mobile-sub-toggle {
  position: absolute;
  right: 0;
  top: 4px;
  width: 40px;
  height: 40px;
  background: var(--bg-tag);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
}

.mobile-nav-menu .mobile-sub-toggle svg {
  transition: transform 0.25s ease;
}

.mobile-nav-menu .mobile-sub-toggle.active svg,
.mobile-nav-menu .mobile-sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-nav-menu .sub-menu {
  list-style: none;
  margin: 4px 0 8px 12px;
  padding: 4px 0 4px 14px;
  border-left: 2px solid var(--border-color);
  display: none;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-menu .sub-menu.open,
.mobile-nav-menu .sub-menu.active {
  display: flex;
}

.mobile-nav-menu .sub-nav-link,
.mobile-nav-menu .sub-menu li a {
  display: block;
  padding: 8px 12px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-menu .sub-nav-link:hover,
.mobile-nav-menu .sub-menu li a:hover,
.mobile-nav-menu .sub-nav-link.active,
.mobile-nav-menu .sub-menu li.current-menu-item a {
  color: var(--cyan);
  background: var(--bg-tag);
}

.light-theme .mobile-nav-menu .sub-nav-link:hover,
.light-theme .mobile-nav-menu .sub-menu li a:hover,
.light-theme .mobile-nav-menu .sub-nav-link.active,
.light-theme .mobile-nav-menu .sub-menu li.current-menu-item a {
  color: var(--electric-blue);
}

/* --------------------------------------------------------------------------
   8. HERO SECTIONS & VISUALIZATIONS
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: var(--space-80);
  padding-bottom: var(--space-96);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-64);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--font-size-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  background: var(--bg-tag);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(25, 184, 201, 0.35);
  margin-bottom: var(--space-24);
}

.light-theme .hero-badge {
  color: var(--electric-blue);
  border-color: rgba(49, 92, 203, 0.25);
}

.hero-title {
  font-size: var(--font-size-5xl);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: var(--space-24);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-40);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   HERO 3D BANNER IMAGE VISUAL STYLING
   -------------------------------------------------------------------------- */
.hero-banner-image-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.hero-banner-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(25, 184, 201, 0.25), rgba(49, 92, 203, 0.2), transparent 70%);
  filter: blur(30px);
  border-radius: var(--radius-xl);
  pointer-events: none;
  z-index: 1;
}

.hero-banner-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 20px rgba(25, 184, 201, 0.15);
  background: var(--bg-card);
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.light-theme .hero-banner-frame {
  border-color: var(--border-subtle);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(49, 92, 203, 0.08);
}

.hero-banner-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 30px rgba(25, 184, 201, 0.25);
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 31, 0.05) 0%, rgba(7, 16, 31, 0.4) 100%);
  pointer-events: none;
}

.light-theme .hero-banner-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(247, 248, 252, 0.2) 100%);
}

/* --------------------------------------------------------------------------
   HERO BANNER BACKGROUND SECTION (Panoramic Architecture & Mobile Adaptive)
   -------------------------------------------------------------------------- */
.hero-banner-bg-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding-top: var(--space-64, 64px);
  padding-bottom: var(--space-64, 64px);
  background-color: #F4F7FC;
  overflow: hidden;
}

.dark-theme .hero-banner-bg-section {
  background-color: #07101F;
}

/* Background image layer — Preserves native aspect ratio and crisp positioning */
.hero-banner-bg-section .hero-bg-layer {
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-img);
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: right center;
  z-index: 1;
  transition: background-position 0.3s ease, background-size 0.3s ease;
}

.hero-banner-bg-section .hero-overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Light Theme: Gentle fade on text column for high contrast readability */
.light-theme .hero-banner-bg-section .hero-overlay-gradient {
  background: linear-gradient(to right,
      rgba(244, 247, 252, 0.98) 0%,
      rgba(244, 247, 252, 0.92) 34%,
      rgba(244, 247, 252, 0.55) 50%,
      rgba(244, 247, 252, 0.08) 68%,
      transparent 100%);
}

/* Dark Theme: Obsidian gradient on left so white text is high-contrast */
.dark-theme .hero-banner-bg-section .hero-overlay-gradient {
  background: linear-gradient(to right,
      rgba(7, 16, 31, 0.98) 0%,
      rgba(7, 16, 31, 0.92) 34%,
      rgba(7, 16, 31, 0.65) 52%,
      rgba(7, 16, 31, 0.20) 70%,
      transparent 100%);
}

.hero-banner-bg-section .site-container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-banner-bg-section .hero-grid {
  display: block;
}

.hero-banner-bg-section .hero-content {
  max-width: 620px;
  width: 100%;
}

@media (min-width: 1440px) {
  .hero-banner-bg-section {
    min-height: 560px;
    padding-top: var(--space-80, 80px);
    padding-bottom: var(--space-80, 80px);
  }

  .hero-banner-bg-section .hero-bg-layer {
    background-size: auto 100%;
    background-position: right center;
  }

  .hero-banner-bg-section .hero-content {
    max-width: 660px;
  }
}

@media (max-width: 1024px) {
  .hero-banner-bg-section {
    min-height: 480px;
    padding-top: var(--space-48, 48px);
    padding-bottom: var(--space-48, 48px);
  }

  .hero-banner-bg-section .hero-bg-layer {
    background-size: auto 100%;
    background-position: right -60px center;
  }

  .hero-banner-bg-section .hero-content {
    max-width: 540px;
  }

  .light-theme .hero-banner-bg-section .hero-overlay-gradient {
    background: linear-gradient(to right,
        rgba(244, 247, 252, 0.98) 0%,
        rgba(244, 247, 252, 0.94) 45%,
        rgba(244, 247, 252, 0.70) 65%,
        rgba(244, 247, 252, 0.25) 85%,
        transparent 100%);
  }

  .dark-theme .hero-banner-bg-section .hero-overlay-gradient {
    background: linear-gradient(to right,
        rgba(7, 16, 31, 0.98) 0%,
        rgba(7, 16, 31, 0.94) 45%,
        rgba(7, 16, 31, 0.75) 65%,
        rgba(7, 16, 31, 0.30) 85%,
        transparent 100%);
  }
}

/* Mobile Adaptive & Responsive Hero Fix (max-width: 767px) */
@media (max-width: 767px) {
  .hero-banner-bg-section {
    min-height: auto;
    padding-top: clamp(40px, 9vw, 56px);
    padding-bottom: clamp(48px, 10vw, 64px);
  }

  .hero-banner-bg-section .hero-bg-layer {
    background-size: cover;
    background-position: 78% center;
  }

  /* Full adaptive gradient overlay on mobile guarantees high contrast while softly highlighting the background tech */
  .light-theme .hero-banner-bg-section .hero-overlay-gradient {
    background: linear-gradient(180deg,
        rgba(244, 247, 252, 0.96) 0%,
        rgba(244, 247, 252, 0.92) 45%,
        rgba(244, 247, 252, 0.84) 75%,
        rgba(244, 247, 252, 0.94) 100%);
  }

  .dark-theme .hero-banner-bg-section .hero-overlay-gradient {
    background: linear-gradient(180deg,
        rgba(7, 16, 31, 0.96) 0%,
        rgba(7, 16, 31, 0.92) 45%,
        rgba(7, 16, 31, 0.84) 75%,
        rgba(7, 16, 31, 0.95) 100%);
  }

  .hero-banner-bg-section .hero-content {
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .hero-banner-bg-section .hero-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
    line-height: 1.18;
    margin-bottom: 16px;
  }

  .hero-banner-bg-section .hero-subtitle {
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 100%;
  }

  .hero-banner-bg-section .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-banner-bg-section .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-banner-bg-section {
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .hero-banner-bg-section .hero-bg-layer {
    background-position: 82% 20%;
  }

  .hero-banner-bg-section .hero-badge {
    font-size: 10px;
    padding: 6px 14px;
    margin-bottom: 16px;
  }

  .hero-banner-bg-section .hero-title {
    font-size: 1.85rem;
  }
}

/* --------------------------------------------------------------------------
   8c. PAGE BANNER & HERO BACKGROUND (All Pages)
   -------------------------------------------------------------------------- */
.page-banner-section,
.hero-section:not(.hero-banner-bg-section) {
  position: relative;
  background-color: var(--bg-surface);
  background-image: linear-gradient(135deg, rgba(7, 16, 31, 0.94) 0%, rgba(11, 22, 40, 0.88) 45%, rgba(7, 16, 31, 0.70) 75%, rgba(7, 16, 31, 0.45) 100%), var(--page-banner-bg, url('../images/backgrounds/background-banner.webp'));
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.light-theme .page-banner-section,
.light-theme .hero-section:not(.hero-banner-bg-section) {
  background-image: linear-gradient(135deg, rgba(244, 247, 252, 0.97) 0%, rgba(255, 255, 255, 0.90) 40%, rgba(244, 247, 252, 0.65) 65%, rgba(244, 247, 252, 0.25) 100%), var(--page-banner-bg, url('../images/backgrounds/background-banner.webp'));
}

.page-banner-section>.site-container,
.hero-section:not(.hero-banner-bg-section)>.site-container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {

  .page-banner-section,
  .hero-section:not(.hero-banner-bg-section) {
    background-position: center center;
  }
}

/* Floating Badges on Hero Banner */
.hero-floating-badge {
  position: absolute;
  z-index: 4;
  background: rgba(11, 22, 40, 0.85);
  border: 1px solid rgba(25, 184, 201, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.light-theme .hero-floating-badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(49, 92, 203, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.hero-floating-badge.badge-top {
  top: -14px;
  right: -14px;
  animation: floatSlow 4s ease-in-out infinite;
}

.floating-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.floating-badge-content {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  font-family: var(--font-family-mono);
  letter-spacing: 0.04em;
}

.badge-status {
  font-size: 10px;
  color: var(--cyan);
  font-weight: 700;
  line-height: 1.2;
}

.light-theme .badge-status {
  color: var(--electric-blue);
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Symmetrical AI Neural Matrix Hero Visual */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.neural-matrix-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.neural-matrix-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(49, 92, 203, 0.15), transparent 70%);
  pointer-events: none;
}

.matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.matrix-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-glow 2s infinite ease-in-out;
}

.matrix-core-svg {
  width: 100%;
  height: auto;
  max-height: 280px;
  z-index: 2;
  margin: auto 0;
}

.matrix-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-16);
}

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

.metric-val {
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-family-mono);
}

.metric-lbl {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   9. CARDS ARCHITECTURE (SYMMETRICAL, EQUAL HEIGHT, STANDARDIZED)
   -------------------------------------------------------------------------- */
/* Pillar Cards (3 Equal Columns) */
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-48) var(--space-32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--bg-tag);
  border: 1px solid rgba(49, 92, 203, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: var(--space-24);
  transition: all 0.25s ease;
}

.pillar-card:hover .pillar-icon-box {
  background: var(--gradient-cyan-blue);
  color: #07101F;
  border-color: var(--cyan);
}

.light-theme .pillar-icon-box {
  color: var(--electric-blue);
}

.light-theme .pillar-card:hover .pillar-icon-box {
  color: #FFFFFF;
}

.pillar-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: var(--space-16);
  letter-spacing: -0.02em;
}

.pillar-desc {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-32);
  flex-grow: 1;
}

.card-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--text-accent);
  letter-spacing: 0.01em;
}

.card-link-arrow svg {
  transition: transform 0.2s ease;
}

.pillar-card:hover .card-link-arrow svg,
.service-card:hover .card-link-arrow svg,
.case-study-card:hover .card-link-arrow svg,
.why-card:hover .card-link-arrow svg,
.insight-card:hover .card-link-arrow svg,
.card-link-arrow:hover svg {
  transform: translateX(6px);
}

/* Symmetrical Service Cards */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-40) var(--space-32);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--royal-blue);
  box-shadow: var(--shadow-card), 0 0 24px rgba(49, 92, 203, 0.15);
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-24);
}

.service-number {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.1em;
  background: var(--bg-tag);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(25, 184, 201, 0.2);
}

.light-theme .service-number {
  color: var(--electric-blue);
  border-color: rgba(49, 92, 203, 0.18);
}

.service-card-title {
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-bottom: var(--space-16);
  letter-spacing: -0.02em;
}

.service-card-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-32);
  flex-grow: 1;
}

/* Symmetrical Case Study Portfolio Cards */
.case-study-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
}

.case-study-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.case-study-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface-elevated);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.case-study-visual svg,
.case-study-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-study-card:hover .case-study-visual svg,
.case-study-card:hover .case-study-visual img {
  transform: scale(1.04);
}

.case-study-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(7, 16, 31, 0.9);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-study-body {
  padding: var(--space-40) var(--space-32);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-study-meta {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-study-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: var(--space-16);
  letter-spacing: -0.02em;
}

.case-study-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-24);
  flex-grow: 1;
}

.case-study-outcome {
  background: var(--bg-tag);
  border: 1px solid rgba(49, 92, 203, 0.25);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--text-accent);
  margin-bottom: var(--space-24);
  letter-spacing: 0.02em;
}

/* Insight Cards */
.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
}

.insight-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-card), 0 0 20px rgba(25, 184, 201, 0.12);
}

.insight-visual-link {
  display: block;
  width: 100%;
  overflow: hidden;
}

.insight-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.insight-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card:hover .insight-card-img {
  transform: scale(1.06);
}

.insight-body {
  padding: 24px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  flex-wrap: wrap;
  line-height: 1.4;
}

.insight-category {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.light-theme .insight-category {
  color: var(--electric-blue);
}

.insight-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.insight-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.insight-title-link:hover,
.insight-card:hover .insight-title-link {
  color: var(--cyan);
}

.light-theme .insight-title-link:hover,
.light-theme .insight-card:hover .insight-title-link {
  color: var(--electric-blue);
}

.insight-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
  width: 100%;
}

.insight-author {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}

/* Featured Insight Spotlight Banner */
.featured-insight-banner {
  transition: all 0.3s ease;
  box-shadow: var(--shadow-subtle);
}

.featured-insight-banner:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-card), 0 0 24px rgba(25, 184, 201, 0.15);
}

.featured-insight-banner:hover .featured-hero-thumb {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .featured-insight-grid {
    grid-template-columns: 1fr !important;
  }

  .featured-insight-banner .case-study-visual {
    min-height: 240px !important;
  }
}

/* Single Article Layout & Content Styling */
.single-article-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-48);
  align-items: start;
}

@media (max-width: 960px) {
  .single-article-grid {
    grid-template-columns: 1fr !important;
  }

  .article-sidebar {
    position: static !important;
    order: 2;
  }
}

.article-toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-24);
}

.article-toc-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: block;
}

.article-toc-list a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.tag-pill:hover {
  border-color: var(--cyan) !important;
  color: var(--cyan) !important;
  background: var(--bg-tag) !important;
}

.nav-post-card:hover {
  border-color: var(--cyan) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

/* Rich Entry Content Typography */
.entry-content {
  font-size: var(--font-size-md);
  line-height: 1.85;
  color: var(--text-secondary);
}

.entry-content p {
  margin-bottom: var(--space-24);
}

.entry-content h2 {
  font-size: clamp(1.5rem, 2.5vw, var(--font-size-2xl));
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: var(--space-40);
  margin-bottom: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.entry-content h3 {
  font-size: clamp(1.2rem, 2vw, var(--font-size-xl));
  font-weight: 800;
  color: var(--text-primary);
  margin-top: var(--space-32);
  margin-bottom: var(--space-12);
}

.entry-content h4 {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-24);
  margin-bottom: var(--space-8);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
}

.entry-content li {
  margin-bottom: var(--space-8);
}

.entry-content blockquote {
  margin: var(--space-32) 0;
  padding: var(--space-20) var(--space-24);
  background: rgba(49, 92, 203, 0.08);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--font-size-lg);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
}

.entry-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--cyan);
}

.entry-content pre {
  margin: var(--space-32) 0;
  padding: var(--space-20);
  background: #0B1220;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.entry-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #E2E8F0;
  font-size: var(--font-size-sm);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  margin: var(--space-24) 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-32) 0;
  font-size: var(--font-size-sm);
}

.entry-content th,
.entry-content td {
  padding: var(--space-12) var(--space-16);
  border: 1px solid var(--border-card);
  text-align: left;
}

.entry-content th {
  background: var(--bg-tag);
  color: var(--text-primary);
  font-weight: 800;
}

.entry-content tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Pagination Styling */
.seenoah-pagination .nav-links,
.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-numbers:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.page-numbers.current {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(49, 92, 203, 0.4);
}

.page-numbers.dots {
  border: none;
  background: transparent;
}

/* Why SEENOAH Value Cards (4 Symmetrical Columns) */
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-40) var(--space-32);
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-subtle);
}

.why-card:hover {
  border-color: var(--cyan);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.why-number {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: var(--space-16);
}

.light-theme .why-number {
  color: var(--electric-blue);
}

.why-title {
  font-size: var(--font-size-md);
  font-weight: 800;
  margin-bottom: var(--space-12);
  letter-spacing: -0.01em;
}

.why-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Delivery Methodology Phase Cards (Single Service) */
.delivery-phase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.delivery-phase-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-card), 0 0 20px rgba(25, 184, 201, 0.12);
}

.delivery-phase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.delivery-phase-card:hover::before {
  opacity: 1;
}

.delivery-phase-badge {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-family-mono);
  color: var(--cyan);
  margin-bottom: var(--space-12);
  letter-spacing: 0.02em;
}

.light-theme .delivery-phase-badge {
  color: var(--electric-blue);
}

.delivery-phase-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-10);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.delivery-phase-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   10. HOW WE WORK (HORIZONTAL SYMMETRICAL TIMELINE)
   -------------------------------------------------------------------------- */
.process-timeline-wrapper {
  position: relative;
  margin-top: var(--space-48);
}

.process-timeline-line {
  position: absolute;
  top: 40px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, #19B8C9 0%, #315CCB 50%, #6D3FC8 100%);
  z-index: 1;
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-16);
  position: relative;
  z-index: 2;
}

.process-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-node {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-24);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-subtle);
}

.step-node:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
  transform: scale(1.08);
}

.step-number {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--cyan);
}

.light-theme .step-number {
  color: var(--electric-blue);
}

.step-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-8);
  text-transform: uppercase;
}

.step-desc {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. TECH ECOSYSTEM BADGE GRID & TECHNOLOGIES SHOWCASE
   -------------------------------------------------------------------------- */
.tech-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-16);
  justify-content: center;
}

.tech-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.tech-badge:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-subtle);
}

.tech-badge svg {
  width: 22px;
  height: 22px;
}

/* Technologies We Work With — Filter Tabs & Showcase Cards */
.section-technologies {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: clamp(64px, 8vw, 100px) 0;
}

.tech-filter-tabs-wrap {
  display: flex;
  justify-content: center;
  margin: 36px 0 28px;
  width: 100%;
}

.tech-filter-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 8px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tech-filter-tabs::-webkit-scrollbar {
  display: none;
}

.tech-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-family-primary, sans-serif);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-tab-btn .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-surface);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  transition: all 0.22s ease;
}

.tech-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(25, 184, 201, 0.08);
}

.tech-tab-btn.active {
  background: var(--cyan);
  color: #0b1120;
  border-color: var(--cyan);
  box-shadow: 0 4px 14px rgba(25, 184, 201, 0.35);
}

.tech-tab-btn.active .tab-count {
  background: #ffffff;
  color: #0b1120;
  border-color: transparent;
  font-weight: 800;
}

/* Tech Cards Showcase Grid */
.tech-cards-showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 16px;
  transition: all 0.3s ease;
}

.tech-logo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 14px);
  padding: 24px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.tech-logo-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: 0 12px 28px rgba(25, 184, 201, 0.15);
}

.tech-card-icon-wrap {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease;
}

.tech-logo-card:hover .tech-card-icon-wrap {
  transform: scale(1.08);
  border-color: rgba(25, 184, 201, 0.4);
  background: rgba(25, 184, 201, 0.06);
}

.tech-svg-logo {
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  display: block;
  flex-shrink: 0;
}

.tech-card-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tech-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  line-height: 1.3;
}

.tech-card-role {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Card Filtering Animation */
.tech-logo-card.is-filtered-out {
  display: none !important;
}

.tech-logo-card.is-animating-in {
  animation: techCardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes techCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bottom Callout Banner */
.tech-stack-callout-wrap {
  margin-top: 36px;
}

.tech-callout-box {
  background: linear-gradient(135deg, rgba(25, 184, 201, 0.06) 0%, rgba(13, 20, 36, 0.4) 100%);
  border: 1px solid rgba(25, 184, 201, 0.25);
  border-radius: var(--radius-lg, 14px);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tech-callout-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tech-callout-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(25, 184, 201, 0.15);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-callout-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.tech-callout-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.tech-callout-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tech-callout-text p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Light Mode Overrides for Tech Stack */
body.light-theme .tech-callout-box {
  background: linear-gradient(135deg, rgba(25, 184, 201, 0.08) 0%, rgba(49, 92, 203, 0.05) 100%);
  border-color: rgba(25, 184, 201, 0.3);
}

body.light-theme .tech-filter-tabs {
  background: #ffffff;
  border-color: var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.light-theme .tech-tab-btn:hover {
  background: rgba(25, 184, 201, 0.1);
  color: #0b1120;
}

body.light-theme .tech-logo-card {
  background: #ffffff;
  border-color: var(--border-subtle);
}

body.light-theme .tech-logo-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 12px 28px rgba(25, 184, 201, 0.15);
}

body.light-theme .tech-card-icon-wrap {
  background: var(--light-bg);
  border-color: var(--border-subtle);
}

/* Responsive Rules for Tech Stack Showcase */
@media (max-width: 1200px) {
  .tech-cards-showcase-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media (max-width: 991px) {
  .tech-cards-showcase-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 820px) {
  .tech-cards-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .tech-filter-tabs-wrap {
    margin: 24px 0 20px;
  }

  .tech-cards-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .tech-logo-card {
    padding: 14px 8px 12px;
  }

  .tech-card-icon-wrap {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
  }

  .tech-card-name {
    font-size: 12px;
  }

  .tech-card-role {
    font-size: 10px;
  }

  .tech-stack-callout-wrap {
    margin-top: 24px;
  }

  .tech-callout-box {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 20px 16px;
    gap: 16px;
  }

  .tech-callout-box .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .tech-cards-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tech-card-icon-wrap {
    width: 40px;
    height: 40px;
  }
}

/* --------------------------------------------------------------------------
   12. ANIMATED STATISTICS (INTERSECTION OBSERVER)
   -------------------------------------------------------------------------- */
.stats-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-32);
}

.stat-item {
  text-align: center;
  padding: var(--space-48) var(--space-16);
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-size: var(--font-size-5xl);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  font-family: var(--font-family-mono);
}

.stat-number-wrap .gradient-text {
  font-size: inherit;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   13. TESTIMONIALS (PREMIUM STANDARDIZED)
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-40) var(--space-32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.testimonial-quote {
  font-size: var(--font-size-md);
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--space-24);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-20);
}

.author-avatar-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-tag);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--cyan);
}

.author-name {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--text-primary);
}

.author-role,
.author-title {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

/* Testimonial Media Attachment */
.testimonial-media-wrap {
  margin: var(--space-16) 0 var(--space-20) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.testimonial-media-link {
  display: block;
  overflow: hidden;
}

.testimonial-media-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.testimonial-media-img:hover {
  transform: scale(1.02);
}

.testimonial-media-video {
  width: 100%;
  max-height: 240px;
  background: #000;
  display: block;
}

.testimonial-media-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.testimonial-media-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.testimonial-media-caption {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  padding: 8px 12px;
  background: var(--bg-tag);
  border-top: 1px solid var(--border-subtle);
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   14. INTERACTIVE FAQ ACCORDION & KNOWLEDGE BASE
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.faq-search-box {
  position: relative;
  max-width: 780px;
  margin: 0 auto var(--space-20);
}

.faq-search-input {
  width: 100%;
  padding: 14px 24px 14px 54px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  outline: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-subtle);
}

.light-theme .faq-search-input {
  background: #FFFFFF;
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.faq-search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25, 184, 201, 0.2), var(--shadow-glow);
}

.light-theme .faq-search-input:focus {
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(49, 92, 203, 0.18);
}

.faq-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.faq-filter-pills,
.portfolio-filter-pills,
.portfolio-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-32);
  justify-content: center;
}

.portfolio-filter-pills,
.portfolio-filter-tabs {
  justify-content: flex-start;
  margin-bottom: 0;
  margin-top: var(--space-32);
}

.filter-pill,
.filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-family: inherit;
  font-size: var(--font-size-xs);
  font-weight: 700;
  line-height: 1.2;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  outline: none;
  text-decoration: none;
}

.light-theme .filter-pill,
.light-theme .filter-tab {
  background: #FFFFFF;
  border-color: rgba(226, 232, 240, 0.9);
  color: var(--text-secondary);
}

.filter-pill:hover,
.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.light-theme .filter-pill:hover,
.light-theme .filter-tab:hover {
  color: var(--electric-blue);
  border-color: var(--electric-blue);
}

.filter-pill.active,
.filter-tab.active {
  background: var(--electric-blue) !important;
  color: #FFFFFF !important;
  border-color: var(--electric-blue) !important;
  box-shadow: 0 4px 14px rgba(49, 92, 203, 0.35);
  transform: translateY(-1px);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
}

.light-theme .faq-item {
  background: #FFFFFF;
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.faq-item:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.light-theme .faq-item:hover {
  border-color: rgba(49, 92, 203, 0.35);
}

.faq-item.active {
  border-color: var(--cyan);
  box-shadow: var(--shadow-card), 0 0 16px rgba(25, 184, 201, 0.12);
}

.light-theme .faq-item.active {
  border-color: var(--electric-blue);
  box-shadow: 0 4px 16px rgba(49, 92, 203, 0.08);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  gap: 16px;
}

.faq-question:hover {
  color: var(--cyan);
}

.light-theme .faq-question:hover {
  color: var(--electric-blue);
}

.faq-question span {
  pointer-events: none;
}

.faq-question span:first-child {
  flex-grow: 1;
}

.faq-icon {
  width: 20px;
  height: 20px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
  pointer-events: none;
}

.light-theme .faq-icon {
  color: var(--electric-blue);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 2000px;
  opacity: 1;
  padding-bottom: 22px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Dedicated FAQ Page Bottom CTA Section */
.faq-cta-section {
  background: #081120 !important;
  color: #FFFFFF !important;
  padding: var(--space-80) 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-align: center;
}

.faq-cta-section .cta-title {
  color: #FFFFFF !important;
  font-size: clamp(2.2rem, 4.5vw, var(--font-size-4xl));
  font-weight: 800;
  letter-spacing: -0.02em;
}

.faq-cta-section .cta-subtitle {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: var(--font-size-base);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto var(--space-32);
}

.faq-cta-section .section-label {
  background: rgba(49, 92, 203, 0.22) !important;
  border: 1px solid rgba(25, 184, 201, 0.35) !important;
  color: var(--cyan) !important;
}

/* --------------------------------------------------------------------------
   15. CTA BANNER / CONVERSION SECTION (ADAPTIVE LIGHT & DARK MODES)
   -------------------------------------------------------------------------- */
.cta-section {
  position: relative;
  background: var(--midnight);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: var(--space-96) 0;
  text-align: center;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(49, 92, 203, 0.25), transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.light-theme .cta-section {
  background: linear-gradient(180deg, var(--light-surface) 0%, var(--light-bg) 100%);
  border-top-color: var(--border-subtle);
  border-bottom-color: var(--border-subtle);
}

.light-theme .cta-section::before {
  background: radial-gradient(ellipse at center, rgba(49, 92, 203, 0.08), transparent 70%);
}

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

.cta-title {
  color: var(--text-primary);
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--space-16);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  margin-bottom: var(--space-40);
}

/* --------------------------------------------------------------------------
   16. FOOTER (ADAPTIVE LIGHT & DARK MODES)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding-top: var(--space-80);
  padding-bottom: var(--space-40);
  font-size: var(--font-size-sm);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.light-theme .site-footer {
  background: var(--light-surface);
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  /*   grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; */
  grid-template-columns: 3fr 2fr 2fr 2fr;
  gap: var(--space-48);
  margin-bottom: var(--space-64);
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: var(--space-16);
  margin-bottom: var(--space-24);
  max-width: 320px;
  line-height: 1.65;
}

.footer-subbrand-badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan);
  background: rgba(25, 184, 201, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(25, 184, 201, 0.2);
}

.light-theme .footer-subbrand-badge {
  color: var(--electric-blue);
  background: rgba(49, 92, 203, 0.08);
  border-color: rgba(49, 92, 203, 0.2);
}

.footer-heading {
  font-size: var(--font-size-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: var(--space-24);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--cyan);
}

.light-theme .footer-link:hover {
  color: var(--electric-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: var(--font-size-xs);
  flex-wrap: wrap;
  gap: var(--space-16);
}

/* --------------------------------------------------------------------------
   17. FORMS, SCHEDULER & APPLICATION MODAL
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-20);
  text-align: left;
}

.form-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Form Success Banner */
.form-success-banner {
  display: none;
  padding: var(--space-24);
  background: rgba(25, 184, 201, 0.12);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  margin-bottom: var(--space-24);
  text-align: center;
}

/* Form Error Banner & Validation */
.form-error-banner,
.form-global-alert {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  color: #ef4444;
  margin-bottom: var(--space-20, 20px);
  font-size: 13px;
  font-weight: 600;
}

.form-group.has-error .form-control,
.form-field-group.has-error .form-input,
.form-field-group.has-error .form-textarea,
.form-control.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.form-group.has-error .form-label,
.form-field-group.has-error .form-label {
  color: #ef4444;
}

.field-error-msg,
.invalid-feedback {
  font-size: 12px;
  font-weight: 600;
  color: #ef4444 !important;
  margin-top: 6px;
  display: block;
}

/* Interactive Discovery Call Scheduler */
.scheduler-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: var(--space-40);
  box-shadow: var(--shadow-card);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-24);
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
  margin-bottom: var(--space-24);
}

.cal-day-header {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text-tertiary);
  padding-bottom: 8px;
}

.cal-date-btn {
  padding: 12px 0;
  font-size: var(--font-size-sm);
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.cal-date-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  background: var(--bg-tag);
}

.cal-date-btn.selected {
  background: var(--electric-blue);
  color: #FFFFFF;
  border-color: var(--electric-blue);
}

.cal-date-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  margin-top: var(--space-16);
  margin-bottom: var(--space-24);
}

.time-slot-btn {
  padding: 12px 14px;
  font-size: var(--font-size-xs);
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.time-slot-btn:hover {
  border-color: var(--cyan);
  background: var(--bg-tag);
}

.time-slot-btn.selected {
  background: var(--cyan);
  color: #07101F;
  border-color: var(--cyan);
}

/* Modal UI */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-24);
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-40);
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   18. LEGAL & DOCUMENTATION LAYOUT (STICKY TOC)
   -------------------------------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-64);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-24);
}

.toc-link {
  display: block;
  padding: 8px 12px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  margin-bottom: 4px;
}

.toc-link:hover,
.toc-link.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

.legal-content h2 {
  margin-top: var(--space-48);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-2xl);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-12);
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--electric-blue);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(49, 92, 203, 0.4);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--royal-blue);
  transform: translateY(-3px);
}

/* ==========================================================================
   CORE WEB VITALS: Offscreen Content-Visibility Deferral
   ========================================================================== */
.site-footer,
.section-faqs,
.section-testimonials,
.section-pillars,
.section-insights {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}