/* =============================================================
   CLIENTABLE — DESIGN SYSTEM (DARK CORE REBUILD)
   ============================================================= */

/* --- Font Faces --- */
@font-face {
  font-family: 'Circular';
  src: url('../fonts/CircularStd-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* =============================================================
   CSS CUSTOM PROPERTIES
   ============================================================= */
:root {
  /* Brand Colors (Brief Integrations) */
  --cobalt: #0047AB;
  --cobalt-dark: #003585;
  --cobalt-light: #1d69d4;
  --slate: #384959;
  --slate-dark: #121b26;
  /* Deep Dark Slate core */
  --slate-deep: #090d14;
  /* Deepest black-navy background */
  --stormy: #6A89A7;
  --sky: #82C8E5;
  --sky-glow: rgba(130, 200, 229, 0.4);
  --mist: #BDDDFC;
  --white: #FFFFFF;
  --light-gray: #F7F8FA;

  /* Text Colors */
  --text-primary: #f3f4f6;
  /* Bright off-white for dark readability */
  --heading-color: var(--white);
  --text-secondary: #9ca3af;
  /* Soft gray for body copy */
  --text-muted: #6b7280;

  /* Theme variables for accents, navigation, circuit, CTA callout & text gradients */
  --accent-color: var(--sky);
  --role-color: var(--sky);
  --nav-link-active-color: var(--sky);
  --circuit-bg: rgba(18, 27, 38, 0.8);
  --circuit-border: var(--glass-border);
  --circuit-connector-bg: rgba(255, 255, 255, 0.08);
  --mission-bg: linear-gradient(135deg, var(--slate-dark) 0%, #06090e 100%);
  --mission-border: rgba(255, 255, 255, 0.05);
  --mission-overlay: rgba(9, 13, 20, 0.88);
  --timeline-line: linear-gradient(90deg, var(--cobalt) 0%, var(--sky) 50%, rgba(255, 255, 255, 0.08) 100%);

  /* Gradient Text & Hero Overlays theme custom variables */
  --text-gradient-start: var(--white);
  --text-gradient-end: var(--sky);
  --hero-overlay-bg: linear-gradient(135deg, rgba(9, 13, 20, 0.94) 0%, rgba(0, 30, 80, 0.65) 60%, rgba(9, 13, 20, 0.96) 100%);

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

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 5.5rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  /* Glassmorphism Defaults */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --glass-active: rgba(0, 71, 171, 0.1);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px rgba(0, 71, 171, 0.35);
  --shadow-sky: 0 0 25px rgba(130, 200, 229, 0.25);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Nav height */
  --nav-h: 80px;
}

/* Light Theme Variables Override */
[data-theme="light"] {
  --slate-deep: #f8fafc;
  --slate-dark: #ffffff;
  --slate: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --heading-color: #0f172a;

  /* Glassmorphism */
  --glass-bg: rgba(15, 23, 42, 0.02);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-hover: rgba(15, 23, 42, 0.05);
  --glass-active: rgba(0, 71, 171, 0.06);

  /* Navbar & Mobile menu */
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --navbar-border: rgba(15, 23, 42, 0.08);
  --mobile-nav-bg: rgba(255, 255, 255, 0.96);

  /* Nav Links styling */
  --nav-link-color: rgba(15, 23, 42, 0.7);
  --nav-link-hover-color: #0f172a;

  /* Logo Image Inversion Filter */
  --logo-filter: brightness(0) brightness(0.12);

  /* Light Theme overrides for Gradient Text & Hero Overlays */
  --text-gradient-start: var(--cobalt);
  --text-gradient-end: var(--cobalt-light);
  --hero-overlay-bg: linear-gradient(135deg, rgba(248, 250, 252, 0.94) 0%, rgba(130, 200, 229, 0.22) 60%, rgba(248, 250, 252, 0.96) 100%);

  /* Light theme detail elements overrides */
  --accent-color: var(--cobalt);
  --role-color: var(--cobalt-light);
  --nav-link-active-color: var(--cobalt);
  --circuit-bg: var(--slate-dark);
  --circuit-border: var(--glass-border);
  --circuit-connector-bg: rgba(15, 23, 42, 0.12);
  --mission-bg: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-deep) 100%);
  --mission-border: rgba(15, 23, 42, 0.05);
  --mission-overlay: rgba(248, 250, 252, 0.88);
  --timeline-line: linear-gradient(90deg, var(--cobalt) 0%, var(--cobalt-light) 50%, rgba(15, 23, 42, 0.08) 100%);

  /* Drop Shadows */
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

/* =============================================================
   LIGHT THEME ELEMENT & WATERMARK OVERRIDES
   ============================================================= */
[data-theme="light"] .value-panel::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%230047AB' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpolygon points='50,15 15,85 85,85'/%3E%3Cpolygon points='50,45 32,80 68,80' opacity='0.45'/%3E%3Cline x1='30' y1='65' x2='70' y2='65' stroke-width='2.2'/%3E%3C/svg%3E");
  opacity: 0.08;
}

[data-theme="light"] .profile-card::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%230047AB' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpolygon points='50,15 15,85 85,85'/%3E%3Cpolygon points='50,45 32,80 68,80' opacity='0.45'/%3E%3Cline x1='30' y1='65' x2='70' y2='65' stroke-width='2.2'/%3E%3C/svg%3E");
  opacity: 0.08;
}

[data-theme="light"] .hero-content::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%230047AB' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpolygon points='50,15 15,85 85,85'/%3E%3Cpolygon points='50,45 32,80 68,80' opacity='0.45'/%3E%3Cline x1='30' y1='65' x2='70' y2='65' stroke-width='1.8'/%3E%3C/svg%3E");
  opacity: 0.04;
}

[data-theme="light"] .value-panel,
[data-theme="light"] .profile-card {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(0, 71, 171, 0.015) 100%);
}

[data-theme="light"] .value-panel:hover,
[data-theme="light"] .profile-card:hover {
  background: linear-gradient(135deg, var(--glass-hover) 0%, rgba(0, 71, 171, 0.035) 50%, rgba(130, 200, 229, 0.02) 100%);
  border-color: rgba(0, 71, 171, 0.2);
}

[data-theme="light"] .value-panel:hover::before,
[data-theme="light"] .profile-card:hover::before {
  opacity: 0.25;
}

/* =============================================================
   RESET & BASE
   ============================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--slate-deep);
}

body {
  font-family: var(--font-body);
  background: var(--slate-deep);
  color: var(--text-primary);
  line-height: 1.625;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

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

input,
textarea,
select {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--slate-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--slate);
  border-radius: 5px;
  border: 2px solid var(--slate-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cobalt);
}

/* =============================================================
   TYPOGRAPHY
   ============================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.125;
  letter-spacing: -0.03em;
  color: var(--heading-color);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stormy);
}

p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 300;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
  display: block;
}

.eyebrow-accent {
  color: var(--cobalt-light);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-gradient-start) 30%, var(--text-gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-cobalt {
  background: linear-gradient(135deg, var(--sky) 0%, var(--cobalt-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =============================================================
   LAYOUT UTILITIES
   ============================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 2;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.section-lg {
  padding: var(--space-2xl) 0;
}

.section-sm {
  padding: var(--space-lg) 0;
}

.section-dark {
  background: var(--slate-deep);
}

/* Background Glowing Blurs */
.glow-bg {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 71, 171, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.glow-top-right {
  top: -10vw;
  right: -10vw;
}

.glow-bottom-left {
  bottom: -10vw;
  left: -10vw;
}

.glow-center {
  top: 25%;
  left: 25%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(130, 200, 229, 0.06) 0%, transparent 60%);
}

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

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

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-xs {
  margin-bottom: var(--space-xs);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mt-xl {
  margin-top: var(--space-xl);
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-primary {
  background: var(--cobalt);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 71, 171, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cobalt-light) 0%, var(--cobalt) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 71, 171, 0.5), 0 0 15px rgba(130, 200, 229, 0.3);
  border-color: rgba(130, 200, 229, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--glass-hover);
  border-color: var(--sky);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-lg {
  padding: 1.1rem 2.75rem;
  font-size: 1rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* =============================================================
   NAVIGATION
   ============================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all var(--transition);
  padding: 0 var(--space-md);
  border-bottom: 1px solid transparent;
}

.navbar.transparent {
  background: transparent;
}

.navbar.solid {
  background: var(--navbar-bg, rgba(9, 13, 20, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navbar-border, rgba(255, 255, 255, 0.07));
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 38px;
  width: auto;
  filter: var(--logo-filter, brightness(0) invert(1));
  /* Render the logo text dynamically or default to white */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nav-link-color, rgba(255, 255, 255, 0.7));
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--nav-link-hover-color, var(--white));
  background: var(--glass-hover);
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--nav-link-active-color);
  border-radius: 1px;
  box-shadow: var(--shadow-sky);
}

.nav-cta {
  margin-left: 0.5rem;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Panel */
.mobile-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--mobile-nav-bg, rgba(9, 13, 20, 0.96));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + var(--space-md)) var(--space-md) var(--space-md);
  gap: 1rem;
  z-index: 999;
  border-left: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

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

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--text-primary);
  background: var(--glass-hover);
  border-left-color: var(--cobalt);
  padding-left: 1.25rem;
}

.mobile-nav .btn {
  margin-top: 1rem;
  justify-content: center;
}

/* Theme Toggle Button Layout Rules */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all var(--transition);
  margin-left: 0.5rem;
  cursor: pointer;
  pointer-events: auto;
}

.theme-toggle:hover {
  background: var(--glass-hover);
  color: var(--sky);
  border-color: var(--sky-glow);
  box-shadow: var(--shadow-sky);
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  pointer-events: none;
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

/* Default Dark mode icon configuration (show Sun icon to switch to light) */
.theme-toggle .sun-icon {
  display: block;
}
.theme-toggle .moon-icon {
  display: none;
}

/* Light mode icon configuration (show Moon icon to switch to dark) */
[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}
[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}

.mobile-nav .theme-toggle {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
  margin-left: 0;
  margin-top: auto;
}

/* =============================================================
   HERO SECTIONS
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.12);
  transition: transform 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay-bg);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%2382C8E5' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpolygon points='50,15 15,85 85,85'/%3E%3Cpolygon points='50,45 32,80 68,80' opacity='0.45'/%3E%3Cline x1='30' y1='65' x2='70' y2='65' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: -1;
  opacity: 0.08;
}

.hero-content .container {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.hero-text {
  max-width: 820px;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.hero-text p.lead {
  max-width: 680px;
  margin-bottom: 1.25rem;
}

.hero-text p.body-brief {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 0;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  /* Balanced gap between descriptive paragraphs and CTA button groups */
}

/* Inner Page Hero Variant */
.hero-sm {
  min-height: 60vh;
  padding-top: calc(var(--nav-h) + var(--space-md));
  display: flex;
  align-items: center;
}

.hero-sm .hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.hero-sm .hero-text p {
  max-width: 700px;
  margin-bottom: 0;
}

/* Animated Scroll Prompt Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  pointer-events: none;
}

.scroll-indicator::after {
  content: '';
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, var(--sky) 0%, transparent 100%);
  animation: scroll-ping 1.6s infinite ease-in-out;
}

@keyframes scroll-ping {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 0.8;
  }

  100% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* =============================================================
   GLASS CARDS (PREMIUM PATTERN)
   ============================================================= */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.25rem var(--space-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Inner card glow overlay */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(130, 200, 229, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-5px);
  background: var(--glass-hover);
  border-color: rgba(130, 200, 229, 0.2);
  box-shadow: var(--shadow-lg), var(--shadow-sky);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Icon box component */
.icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(0, 71, 171, 0.15);
  border: 1px solid rgba(0, 71, 171, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.icon-box svg {
  color: var(--sky);
  width: 24px;
  height: 24px;
  transition: transform var(--transition);
}

.glass-card:hover .icon-box {
  background: var(--cobalt);
  border-color: var(--sky);
  box-shadow: var(--shadow-glow);
}

.glass-card:hover .icon-box svg {
  color: var(--white);
  transform: scale(1.1);
}

.glass-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.glass-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* =============================================================
   CHALLENGE SECTION
   ============================================================= */
.challenge-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.challenge-text h2 {
  margin-bottom: 1.5rem;
}

.challenge-highlight {
  margin-top: 2.5rem;
  padding: 2.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 71, 171, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--cobalt);
  border-radius: var(--radius-md);
}

.challenge-highlight p {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin: 0;
}

.challenge-highlight strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--sky);
  margin-top: 0.5rem;
}

.challenge-questions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.challenge-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.challenge-card .q-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 71, 171, 0.15);
  border: 1px solid rgba(0, 71, 171, 0.4);
  color: var(--sky);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.challenge-card p {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

.challenge-card:hover {
  background: var(--glass-hover);
  border-color: rgba(0, 71, 171, 0.3);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.challenge-card:hover .q-badge {
  background: var(--cobalt);
  border-color: var(--sky);
  color: var(--white);
  box-shadow: 0 0 10px rgba(0, 71, 171, 0.5);
}

/* =============================================================
   SOLUTION SECTION (WITH CIRCUIT FLOW DIAGRAM)
   ============================================================= */
.solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.solution-details p {
  margin-bottom: 1.5rem;
}

/* Interactive Circuit Flow Visual */
.circuit-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 2rem 0;
}

.circuit-step {
  width: 100%;
  max-width: 320px;
  position: relative;
  z-index: 2;
}

.circuit-node {
  background: var(--circuit-bg, rgba(18, 27, 38, 0.8));
  border: 1px solid var(--circuit-border, var(--glass-border));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.5rem;
  text-align: center;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: default;
}

.circuit-node.highlight {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-dark) 100%);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.circuit-node.accent {
  background: var(--glass-bg);
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: var(--shadow-sky);
}

.circuit-node:hover {
  transform: scale(1.04);
  border-color: var(--sky);
  color: var(--white);
  box-shadow: var(--shadow-sky);
}

.circuit-connector {
  width: 2px;
  height: 30px;
  background: var(--circuit-connector-bg, rgba(255, 255, 255, 0.08));
  position: relative;
  z-index: 1;
}

/* Traveling glow pulse */
.circuit-connector::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 4px;
  height: 12px;
  background: var(--sky);
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--sky);
  animation: pulse-down 2.2s infinite linear;
}

/* Delay staggered loops */
.circuit-connector.delay-1::after {
  animation-delay: 0.5s;
}

.circuit-connector.delay-2::after {
  animation-delay: 1.0s;
}

.circuit-connector.delay-3::after {
  animation-delay: 1.5s;
}

@keyframes pulse-down {
  0% {
    top: -10px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: calc(100% + 10px);
    opacity: 0;
  }
}

/* =============================================================
   TWO WAYS WE HELP CARDS (Home)
   ============================================================= */
.two-ways-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.way-panel {
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.way-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 71, 171, 0.15), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.way-panel.cobalt-accent {
  border-top: 3px solid var(--cobalt);
}

.way-panel.sky-accent {
  border-top: 3px solid var(--sky);
}

.way-panel.sky-accent::before {
  background: radial-gradient(circle at top right, rgba(130, 200, 229, 0.1), transparent 60%);
}

.way-panel:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
}

.way-panel.cobalt-accent:hover {
  border-color: var(--cobalt-light);
  box-shadow: var(--shadow-lg), 0 10px 40px rgba(0, 71, 171, 0.15);
}

.way-panel.sky-accent:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-lg), 0 10px 40px rgba(130, 200, 229, 0.1);
}

.way-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

.way-panel .way-num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sky);
  text-transform: uppercase;
  margin: 0;
  display: block;
}

.way-panel.cobalt-accent .way-num {
  color: var(--stormy);
}

.way-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 71, 171, 0.1);
  border: 1px solid rgba(0, 71, 171, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  transition: all var(--transition);
}

.way-panel.sky-accent .way-icon {
  background: rgba(130, 200, 229, 0.08);
  border-color: rgba(130, 200, 229, 0.2);
  color: var(--sky);
}

.way-panel:hover .way-icon {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--white);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.way-panel.cobalt-accent:hover .way-icon {
  background: var(--cobalt);
  border-color: var(--cobalt-light);
}

.way-panel h3 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.way-panel p {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.way-panel ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.way-panel ul li {
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.way-panel ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: var(--shadow-sky);
  flex-shrink: 0;
}

.way-panel.cobalt-accent ul li::before {
  background: var(--cobalt-light);
  box-shadow: 0 0 6px var(--cobalt);
}

.way-panel .target-audience {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* =============================================================
   TESTIMONIALS SECTION
   ============================================================= */
.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-slide {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.testimonial-slide::before {
  content: '“';
  position: absolute;
  top: 1.5rem;
  left: 2.5rem;
  font-size: 7rem;
  font-family: Georgia, serif;
  color: rgba(130, 200, 229, 0.08);
  line-height: 1;
}

.testimonial-slide p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-style: italic;
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Avatar Placeholder (Corporate branding) */
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--sky) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.testimonial-meta strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
}

.testimonial-meta span {
  font-size: 0.82rem;
  color: var(--stormy);
}

/* Horizontal Testimonial Grid fallback on desktop */
.testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonials-row .testimonial-slide {
  padding: 2.25rem 2rem;
}

.testimonials-row .testimonial-slide::before {
  left: 1rem;
  top: 0.5rem;
  font-size: 5rem;
}

.testimonials-row .testimonial-slide p {
  font-size: 0.97rem;
  margin-bottom: 1.5rem;
}

/* =============================================================
   WHY CHOOSE CLIENTABLE (Home)
   ============================================================= */
.value-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.value-panel {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(0, 71, 171, 0.02) 100%);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.value-panel::before {
  content: '';
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%2382C8E5' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpolygon points='50,15 15,85 85,85'/%3E%3Cpolygon points='50,45 32,80 68,80' opacity='0.45'/%3E%3Cline x1='30' y1='65' x2='70' y2='65' stroke-width='2.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  transition: transform var(--transition), opacity var(--transition);
}

.value-panel:hover {
  background: linear-gradient(135deg, var(--glass-hover) 0%, rgba(0, 71, 171, 0.05) 50%, rgba(130, 200, 229, 0.03) 100%);
  border-color: rgba(130, 200, 229, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-sky);
}

.value-panel:hover::before {
  transform: translateY(-2px) scale(1.05);
  opacity: 0.35;
}

.value-count {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--sky);
  opacity: 0.3;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.value-panel h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.value-panel p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* =============================================================
   WHO WE SERVE
   ============================================================= */
.serve-panel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.serve-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
}

.serve-panel:hover {
  transform: translateY(-5px);
  border-color: var(--cobalt-light);
  box-shadow: var(--shadow-md), 0 0 15px rgba(0, 71, 171, 0.2);
}

.serve-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(130, 200, 229, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all var(--transition);
}

.serve-badge svg {
  color: var(--sky);
  width: 22px;
  height: 22px;
  transition: transform var(--transition);
}

.serve-panel:hover .serve-badge {
  background: var(--cobalt);
  box-shadow: var(--shadow-glow);
}

.serve-panel:hover .serve-badge svg {
  color: var(--white);
  transform: rotate(10deg);
}

.serve-panel h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.serve-panel p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* =============================================================
   MISSION CALLOUT
   ============================================================= */
.mission-callout {
  background-color: var(--slate-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid var(--mission-border);
  border-bottom: 1px solid var(--mission-border);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
}

.mission-callout.mission-home {
  background-image: linear-gradient(var(--mission-overlay), var(--mission-overlay)), url('../images/mission-home.png');
}

.mission-callout.mission-about {
  background-image: linear-gradient(var(--mission-overlay), var(--mission-overlay)), url('../images/mission-about.png');
}

.mission-callout.mission-platforms {
  background-image: linear-gradient(var(--mission-overlay), var(--mission-overlay)), url('../images/mission-platforms.png');
}

.mission-callout.mission-biab {
  background-image: linear-gradient(var(--mission-overlay), var(--mission-overlay)), url('../images/mission-biab.png');
}

.mission-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 71, 171, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.mission-callout h2 {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.mission-callout p {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* =============================================================
   CAPABILITY CARDS & DETAILS (Platforms page)
   ============================================================= */
.problem-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 71, 171, 0.02) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.problem-card h3 {
  margin-bottom: 1.25rem;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.problem-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.problem-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt-light);
}

.problem-list li:has(svg)::before {
  display: none;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Alternate Layout Row Components */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse>* {
  direction: ltr;
}

.feature-description h2 {
  margin-bottom: 1.25rem;
}

.feature-description p {
  margin-bottom: 1.5rem;
}

.feature-box-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-box-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--cobalt);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}

.feature-box-list li:hover {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--sky);
  transform: translateX(4px);
}

/* =============================================================
   PLATFORM STACK LAYERED GRAPHIC (Platforms page)
   ============================================================= */
.stack-visualizer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.stack-layers-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

/* Vertical flow trace line on the left */
.stack-layers-list::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--sky) 0%, var(--cobalt) 100%);
  opacity: 0.3;
  z-index: 0;
}

.stack-layer-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  overflow: hidden;
}

.stack-layer-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: all 0.3s ease;
}

.stack-layer-card:hover, .stack-layer-card.active {
  background: var(--glass-hover);
  border-color: rgba(130, 200, 229, 0.4);
  transform: translateX(10px);
  box-shadow: 0 4px 20px rgba(0, 71, 171, 0.15);
}

/* Define individual colors / glows for active layers */
.stack-layer-card[data-layer="1"]:hover, .stack-layer-card[data-layer="1"].active { border-color: rgba(0, 71, 171, 0.5); }
.stack-layer-card[data-layer="2"]:hover, .stack-layer-card[data-layer="2"].active { border-color: rgba(106, 137, 167, 0.5); }
.stack-layer-card[data-layer="3"]:hover, .stack-layer-card[data-layer="3"].active { border-color: rgba(130, 200, 229, 0.5); }
.stack-layer-card[data-layer="4"]:hover, .stack-layer-card[data-layer="4"].active { border-color: rgba(0, 71, 171, 0.5); }
.stack-layer-card[data-layer="5"]:hover, .stack-layer-card[data-layer="5"].active { border-color: rgba(106, 137, 167, 0.5); }
.stack-layer-card[data-layer="6"]:hover, .stack-layer-card[data-layer="6"].active { border-color: rgba(130, 200, 229, 0.5); }
.stack-layer-card[data-layer="7"]:hover, .stack-layer-card[data-layer="7"].active { border-color: rgba(0, 71, 171, 0.5); }
.stack-layer-card[data-layer="8"]:hover, .stack-layer-card[data-layer="8"].active { border-color: rgba(130, 200, 229, 0.5); }

.stack-layer-card.active::before {
  background: var(--sky);
}

.stack-layer-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--sky);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(130, 200, 229, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.stack-layer-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stormy);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.stack-layer-card:hover .stack-layer-icon, .stack-layer-card.active .stack-layer-icon {
  background: rgba(0, 71, 171, 0.2);
  color: var(--sky);
  transform: scale(1.1);
}

.stack-layer-icon svg {
  width: 20px;
  height: 20px;
}

.stack-layer-info {
  flex: 1;
}

.stack-layer-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
  color: var(--heading-color);
}

.stack-layer-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  opacity: 0.8;
  margin: 0;
}

.stack-layer-arrow {
  color: var(--stormy);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  opacity: 0.5;
}

.stack-layer-card:hover .stack-layer-arrow, .stack-layer-card.active .stack-layer-arrow {
  transform: translateX(3px);
  color: var(--sky);
  opacity: 1;
}

/* Layer Detail Inspector (Right Column) */
.stack-inspector {
  background: linear-gradient(135deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 100px;
  height: fit-content;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.inspector-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.inspector-layer-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(130, 200, 229, 0.1);
  color: var(--sky);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.inspector-header h3 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--heading-color);
}

.inspector-subtitle {
  color: var(--sky);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.inspector-body {
  flex: 1;
}

.inspector-body p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.inspector-features-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--stormy);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.inspector-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inspector-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inspector-features li::before {
  content: '✓';
  color: var(--sky);
  font-weight: bold;
}

.inspector-graphic {
  height: 120px;
  border-radius: var(--radius-sm);
  background: rgba(0, 71, 171, 0.05);
  border: 1px dashed rgba(130, 200, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  margin-top: auto;
}

.inspector-graphic svg {
  width: 48px;
  height: 48px;
}

/* =============================================================
   PROCESS TIMELINE (Platforms page)
   ============================================================= */
.timeline-track {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 2rem 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--timeline-line);
  z-index: 1;
}

.timeline-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.timeline-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--slate-dark);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.timeline-node:hover .timeline-circle {
  border-color: var(--sky);
  background: var(--cobalt);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
  color: var(--white);
}

.timeline-node h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.timeline-node p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* =============================================================
   BUSINESS-IN-A-BOX OPERATING SYSTEM NET DIAGRAM
   ============================================================= */
.net-visualizer {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.net-container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.net-center-node {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-glow);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  flex-shrink: 0;
}

.net-flow-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt-light), var(--sky));
  position: relative;
}

.net-flow-line::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 8px var(--sky);
  animation: trace-right 1.8s infinite linear;
}

@keyframes trace-right {
  0% {
    left: 0%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

.net-orbit-nodes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.orbit-tag {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}

.orbit-tag:hover {
  background: var(--cobalt);
  border-color: var(--sky);
  box-shadow: var(--shadow-sky);
  transform: translateX(5px);
  color: var(--white);
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.module-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: all var(--transition);
}

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

.module-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.module-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Formula Graphic (BIAB page) */
.formula-graphic {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(130, 200, 229, 0.02) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
}

.formula-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.formula-node {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  min-width: 160px;
  text-align: center;
}

.formula-node strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--heading-color);
  margin-bottom: 0.25rem;
}

.formula-node span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.formula-symbol {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  opacity: 0.6;
}

.formula-result {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-glow);
}

.formula-result strong {
  color: var(--white);
}

.formula-result span {
  color: rgba(255, 255, 255, 0.7);
}

/* Growth options */
.growth-pkg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.growth-pkg-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.growth-pkg-card:hover {
  transform: translateY(-5px);
  border-color: var(--sky);
  box-shadow: var(--shadow-sky);
  background: var(--glass-hover);
}

.pkg-number,
.pkg-icon {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--sky);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.growth-pkg-card h4 {
  margin-bottom: 0.75rem;
}

.growth-pkg-card p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* =============================================================
   ABOUT PAGE VISUALS (Beliefs & Workforce)
   ============================================================= */
.beliefs-deck {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.belief-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--cobalt);
  border-radius: var(--radius-sm);
  padding: 2rem 1.25rem;
  transition: all var(--transition);
}

.belief-panel:hover {
  transform: translateY(-5px);
  border-top-color: var(--sky);
  box-shadow: var(--shadow-md), var(--shadow-sky);
  background: var(--glass-hover);
}

.belief-panel h4 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.belief-panel p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Team Grid (Profiles) */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.profile-card {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(0, 71, 171, 0.02) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  position: relative;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%2382C8E5' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpolygon points='50,15 15,85 85,85'/%3E%3Cpolygon points='50,45 32,80 68,80' opacity='0.45'/%3E%3Cline x1='30' y1='65' x2='70' y2='65' stroke-width='2.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 2; /* Sit on top of profile photo */
  opacity: 0.12;
  transition: transform var(--transition), opacity var(--transition);
}

.profile-card:hover {
  background: linear-gradient(135deg, var(--glass-hover) 0%, rgba(0, 71, 171, 0.05) 50%, rgba(130, 200, 229, 0.03) 100%);
  transform: translateY(-5px);
  border-color: rgba(130, 200, 229, 0.25);
  box-shadow: var(--shadow-lg), var(--shadow-sky);
}

.profile-card:hover::before {
  transform: translateY(-2px) scale(1.05);
  opacity: 0.35;
}

.profile-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--slate-dark);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}

.profile-card:hover .profile-photo img {
  transform: scale(1.05);
}

.profile-details {
  padding: 1.25rem;
}

.profile-details strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--heading-color);
  margin-bottom: 0.2rem;
}

.profile-details span {
  display: block;
  font-size: 0.82rem;
  color: var(--role-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.profile-details p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* AI Workforce Deck (Node branches) */
.agents-deck {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.agent-team-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  transition: all var(--transition);
}

.agent-team-box:hover {
  background: var(--glass-hover);
  border-color: rgba(130, 200, 229, 0.3);
  box-shadow: var(--shadow-md), 0 0 20px rgba(0, 71, 171, 0.2);
  transform: translateY(-4px);
}

.agent-team-box h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-team-box h4::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: var(--shadow-sky);
}

.agent-node-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agent-tag {
  font-size: 0.85rem;
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--cobalt-light);
  border-radius: 4px;
  transition: all var(--transition);
  cursor: default;
}

.agent-tag:hover {
  background: rgba(0, 71, 171, 0.2);
  border-left-color: var(--sky);
  padding-left: 1rem;
  color: var(--white);
}

/* Human + AI split */
.hai-philosophy {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.hai-card {
  padding: 3rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.hai-card.human-focused {
  border-top: 3px solid var(--stormy);
}

.hai-card.ai-focused {
  border-top: 3px solid var(--sky);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 71, 171, 0.04) 100%);
}

.hai-card h3 {
  margin-bottom: 1.5rem;
}

.hai-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hai-card ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hai-operator-plus {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--sky);
  opacity: 0.5;
  text-align: center;
}

/* Manifesto Card styling */
.manifesto-card {
  position: relative;
  max-width: 820px;
  margin: 4rem auto 0;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 71, 171, 0.03) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.manifesto-card:hover {
  border-color: rgba(130, 200, 229, 0.25);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.manifesto-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(130, 200, 229, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.manifesto-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin: 0 auto 1.5rem;
  color: var(--sky);
}

.manifesto-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.manifesto-lead {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--heading-color);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.manifesto-lead .highlight-text-gradient {
  background: linear-gradient(90deg, var(--sky) 0%, #a5b4fc 50%, var(--white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .manifesto-lead .highlight-text-gradient {
  background: linear-gradient(90deg, var(--cobalt) 0%, var(--cobalt-light) 60%, var(--cobalt-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.manifesto-body {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Light mode overrides */
[data-theme="light"] .manifesto-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.01) 0%, rgba(0, 71, 171, 0.015) 100%);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .manifesto-card:hover {
  border-color: rgba(0, 71, 171, 0.15);
  box-shadow: var(--shadow-md), 0 0 20px rgba(0, 71, 171, 0.08);
}

/* =============================================================
   CONTACT FORM & OFFICES (Contact page)
   ============================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: start;
}

.contact-text h2 {
  margin-bottom: 1.25rem;
}

.contact-text p {
  margin-bottom: 2rem;
}

.form-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-form-grid .full-span {
  grid-column: 1 / -1;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.input-group input,
.input-group select,
.input-group textarea {
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-sm);
  background: var(--glass-bg, rgba(255, 255, 255, 0.02));
  color: var(--text-primary, var(--white));
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
  width: 100%;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--sky);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(130, 200, 229, 0.15);
}

.input-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2382C8E5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  background-size: 16px;
  padding-right: 2.75rem;
}

.input-group select option {
  background: var(--slate-dark);
  color: var(--text-primary);
}

.input-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-response-msg {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-response-msg.success {
  background: rgba(46, 125, 50, 0.15);
  color: #81c784;
  border: 1px solid rgba(46, 125, 50, 0.3);
  display: block;
}

.form-response-msg.error {
  background: rgba(198, 40, 40, 0.15);
  color: #e57373;
  border: 1px solid rgba(198, 40, 40, 0.3);
  display: block;
}

/* Global Presence Strip */
.offices-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.office-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition);
}

.office-box:hover {
  transform: translateY(-4px);
  border-color: var(--sky);
  box-shadow: var(--shadow-sky);
}

.office-pin {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 71, 171, 0.15);
  border: 1px solid rgba(0, 71, 171, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--sky);
}

.office-box h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.office-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: #06090e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-xl) 0 var(--space-md);
}

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

.footer-info {
  max-width: 320px;
}

.footer-info img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-info p {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-info .tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sky);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul li a {
  color: #9ca3af;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-col ul li a:hover {
  color: var(--sky);
  padding-left: 4px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-bar p {
  font-size: 0.82rem;
  color: #6b7280;
}

.footer-bottom-bar a {
  font-size: 0.82rem;
  color: #6b7280;
}

.footer-bottom-bar a:hover {
  color: var(--white);
}

/* =============================================================
   SCROLL REVEAL TRIGGERS
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 {
  transition-delay: 0.08s;
}

.stagger-2 {
  transition-delay: 0.16s;
}

.stagger-3 {
  transition-delay: 0.24s;
}

.stagger-4 {
  transition-delay: 0.32s;
}

.stagger-5 {
  transition-delay: 0.4s;
}

.stagger-6 {
  transition-delay: 0.48s;
}

/* Animated underlines */
.hero-line {
  position: relative;
  display: inline-block;
}

.hero-line::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--cobalt) 0%, var(--sky) 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-line.animated::after {
  transform: scaleX(1);
}

/* =============================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================================= */
@media (max-width: 1100px) {
  .profiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .agents-deck {
    grid-template-columns: repeat(3, 1fr);
  }

  .beliefs-deck {
    grid-template-columns: repeat(3, 1fr);
  }

  .serve-panel-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .value-panel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offices-row {
    gap: 1.5rem;
  }

  .timeline-track::before {
    display: none;
  }

  .timeline-track {
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
    padding-left: 2rem;
    border-left: 2px solid var(--cobalt);
  }

  .timeline-node {
    flex-direction: row;
    text-align: left;
    padding: 0;
    gap: 1.5rem;
  }

  .timeline-circle {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .timeline-node p {
    max-width: 500px;
  }
}

@media (max-width: 960px) {
  .challenge-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .solution-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .two-ways-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-row {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 2rem;
  }

  .feature-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-split.reverse {
    direction: ltr;
  }

  .problem-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hai-philosophy {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hai-operator-plus {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }

  .net-container {
    gap: 1.5rem;
  }

  .net-flow-line {
    width: 2px;
    height: 30px;
  }

  .net-flow-line::after {
    animation: trace-down 1.8s infinite linear;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
  }

  @keyframes trace-down {
    0% {
      top: 0%;
      opacity: 0;
    }

    15% {
      opacity: 1;
    }

    85% {
      opacity: 1;
    }

    100% {
      top: 100%;
      opacity: 0;
    }
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 70px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .serve-panel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agents-deck {
    grid-template-columns: repeat(2, 1fr);
  }

  .beliefs-deck {
    grid-template-columns: repeat(2, 1fr);
  }

  .growth-pkg-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .offices-row {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .form-panel {
    padding: 2.25rem 1.5rem;
  }

  .footer-inner-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .serve-panel-grid {
    grid-template-columns: 1fr;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .agents-deck {
    grid-template-columns: 1fr;
  }

  .beliefs-deck {
    grid-template-columns: 1fr;
  }

  .growth-pkg-grid {
    grid-template-columns: 1fr;
  }

  .value-panel-grid {
    grid-template-columns: 1fr;
  }

  .way-panel {
    padding: 2.25rem 1.5rem;
  }

  .testimonial-slide {
    padding: 2.25rem 1.5rem;
  }

  .testimonial-slide::before {
    left: 1rem;
    top: 0.75rem;
    font-size: 5rem;
  }

  .testimonial-slide p {
    font-size: 1rem;
  }

  .stack-visualizer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stack-inspector {
    position: static;
    padding: 1.5rem;
  }

  .stack-layer-card {
    padding: 0.85rem 1rem;
    gap: 0.85rem;
  }

  .stack-layer-info h4 {
    font-size: 0.95rem;
  }

  .stack-layer-info p {
    font-size: 0.78rem;
  }

  .formula-graphic {
    padding: 2.25rem 1.5rem;
  }

  .formula-node {
    min-width: 100%;
  }
}

/* Hero Interactive Canvas Animations (Grouped) */
#hero-canvas,
#about-canvas,
#platforms-canvas,
#biab-canvas,
#contact-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}