/* ==========================================================================
   HyperScalar Technologies — Core Stylesheet
   Modern, semantic, performant CSS architecture with Bootstrap 5 integration
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette (exact matching with sRGB fallbacks & OKLCH support) */
  --color-background: #ffffff;
  --color-foreground: #121b29;
  --color-surface: #f4f7fb;
  --color-surface-strong: #e4ecf5;
  --color-ink: #121b29;
  --color-ink-soft: #4b5666;
  --color-border: #d9dfe6;
  --color-input: #d9dfe6;
  --color-brand: #0b5ed0;
  --color-brand-deep: #072c73;
  --color-brand-soft: #cde8ff;
  --color-teal: #0891b2;
  --color-white: #ffffff;
  --color-primary-foreground: #ffffff;

  /* Typography */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing & Sizing */
  --header-height: 72px;
  --max-content-width: 1280px;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (color: oklch(51% 0.19 259)) {
  :root {
    --color-brand: oklch(51% 0.19 259);
    --color-brand-deep: oklch(32% 0.13 262);
    --color-brand-soft: oklch(92% 0.045 246);
    --color-surface: oklch(97.5% 0.006 250);
    --color-surface-strong: oklch(94% 0.015 250);
    --color-ink: oklch(22% 0.03 260);
    --color-ink-soft: oklch(45% 0.03 258);
    --color-border: oklch(90% 0.012 253);
    --color-input: oklch(90% 0.012 253);
  }
}

/* --------------------------------------------------------------------------
   2. Base & Reset Overrides
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-ink);
  background-color: var(--color-background);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  padding-top: var(--header-height);
  font-family: var(--font-sans);
  color: var(--color-ink);
  background-color: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-ink);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
  margin-bottom: 0;
}

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

a:hover {
  color: var(--color-brand);
}

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

svg {
  display: inline-block;
  vertical-align: middle;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Font utilities */
.font-mono {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   3. Layout & Container
   -------------------------------------------------------------------------- */
.site-container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 1024px) {
  .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Section Backgrounds */
.bg-background {
  background-color: var(--color-background);
}

.bg-surface {
  background-color: var(--color-surface);
}

.bg-surface-strong {
  background-color: var(--color-surface-strong);
}

.bg-brand-soft {
  background-color: var(--color-brand-soft);
}

.bg-brand-deep {
  background-color: var(--color-brand-deep);
}

.border-bottom-divider {
  border-bottom: 1px solid var(--color-border);
}

.border-top-divider {
  border-top: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(18, 27, 41, 0.04);
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 16px rgba(18, 27, 41, 0.08);
}

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

@media (min-width: 768px) {
  .site-header .site-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
  }
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-ink);
  text-decoration: none;
  line-height: 1.2;
  transition: opacity var(--transition-fast);
  justify-self: start;
}

.brand-logo-link:hover {
  opacity: 0.92;
  text-decoration: none;
}

.brand-logo-link .logo-subtitle {
  font-weight: 400;
  color: var(--color-ink-soft);
}

.logo-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  transition: transform var(--transition-fast);
}

.brand-logo-link:hover .logo-svg {
  transform: scale(1.05);
}

.brand-text-wrap {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}

.brand-name {
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.brand-name-deep {
  font-weight: 700;
  color: var(--color-brand-deep);
  transition: color var(--transition-fast);
}

.brand-name-brand {
  font-weight: 400;
  color: var(--color-brand);
  transition: color var(--transition-fast);
}

.brand-tagline {
  display: none;
}

.brand-logo-link:hover .brand-name-deep {
  color: var(--color-brand);
}

@media (max-width: 1024px) {
  .desktop-nav {
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .brand-logo-link {
    gap: 0.5rem;
  }
  .logo-svg {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 1rem;
    gap: 0.25rem;
  }
}

.fill-brand {
  fill: var(--color-brand);
}

.fill-brand-deep {
  fill: var(--color-brand-deep);
}

/* Desktop Navigation - Centered */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    justify-content: center;
    justify-self: center;
  }
}

.nav-link-custom {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
  font-weight: 500;
  padding: 0.375rem 0.25rem;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link-custom:hover {
  color: var(--color-brand);
}

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

.header-cta-wrapper {
  display: none;
}

@media (min-width: 768px) {
  .header-cta-wrapper {
    display: flex;
    justify-content: flex-end;
    justify-self: end;
    margin-left: 0;
  }
}

/* Mobile Toggle Button */
.mobile-nav-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: var(--color-ink);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background-color: var(--color-surface);
}

.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .mobile-nav-toggle {
    display: none;
  }
}

/* Mobile Navigation Drawer / Menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background-color: rgba(18, 27, 41, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  z-index: 999;
  padding: 1.5rem;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1.125rem;
  color: var(--color-ink);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-surface-strong);
  display: block;
}

.mobile-nav-link.active {
  color: var(--color-brand);
}

.mobile-menu-cta {
  margin-top: 1.5rem;
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Buttons & Links
   -------------------------------------------------------------------------- */
.btn-brand-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.5rem;
  background-color: var(--color-brand);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-brand-primary:hover {
  background-color: var(--color-brand-deep);
  border-color: var(--color-brand-deep);
  color: var(--color-white);
}

.btn-header-cta {
  height: 40px;
  padding: 0 1.25rem;
  background-color: var(--color-brand);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.btn-header-cta:hover {
  background-color: var(--color-brand-deep);
  color: var(--color-white);
}

.btn-outline-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.5rem;
  background-color: transparent;
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-outline-ink:hover {
  background-color: var(--color-surface);
  color: var(--color-ink);
}

.btn-banner-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.5rem;
  background-color: var(--color-background);
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.btn-banner-action:hover {
  background-color: var(--color-surface-strong);
  color: var(--color-ink);
}

/* Link Arrow */
.link-arrow {
  color: var(--color-brand);
  border-bottom: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--transition-fast);
}

.link-arrow:hover {
  border-bottom-color: var(--color-brand);
  color: var(--color-brand);
}

.link-arrow svg {
  transition: transform var(--transition-fast);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   6. Section Tags, Headings & Typography Classes
   -------------------------------------------------------------------------- */
.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-brand);
  margin-bottom: 1rem;
}

.hero-heading {
  font-size: 2.25rem;
  line-height: 1.05;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.03em;
}

@media (min-width: 992px) {
  .hero-heading {
    font-size: 3.75rem;
  }
}

.page-title {
  font-size: 2.25rem;
  line-height: 1.08;
  font-weight: 600;
  color: var(--color-ink);
  max-width: 56rem;
  letter-spacing: -0.025em;
}

@media (min-width: 992px) {
  .page-title {
    font-size: 3.75rem;
  }
}

.section-heading-large {
  font-size: 1.875rem;
  line-height: 1.15;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.025em;
}

@media (min-width: 992px) {
  .section-heading-large {
    font-size: 3rem;
  }
}

.section-heading-medium {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

@media (min-width: 992px) {
  .section-heading-medium {
    font-size: 2.25rem;
  }
}

.text-ink {
  color: var(--color-ink);
}

.text-ink-soft {
  color: var(--color-ink-soft);
}

.text-brand {
  color: var(--color-brand);
}

.text-brand-deep {
  color: var(--color-brand-deep);
}

.lead-text {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--color-ink-soft);
}

/* --------------------------------------------------------------------------
   7. Page Sections & Specific Component Layouts
   -------------------------------------------------------------------------- */

/* Hero Section — Architectural Grid (Boxes) Background */
.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background-color: #f8fbff;
}

/* Ambient Radial Luminous Glow (Luminous azure atmosphere matching reference) */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse 80% 55% at 50% 10%, rgba(186, 230, 253, 0.6) 0%, rgba(224, 242, 254, 0.32) 40%, rgba(248, 251, 255, 0) 80%),
    radial-gradient(circle at 10% 35%, rgba(219, 234, 254, 0.4) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 90% 55%, rgba(224, 242, 254, 0.4) 0%, rgba(255, 255, 255, 0) 55%);
}

/* Technical Blueprint Grid Boxes (Crisp graph paper boxes matching reference) */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(14, 116, 224, 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 116, 224, 0.13) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
}

@media (max-width: 767.98px) {
  .hero-section::after {
    background-size: 36px 36px;
    background-image:
      linear-gradient(to right, rgba(14, 116, 224, 0.14) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(14, 116, 224, 0.14) 1px, transparent 1px);
  }

  .hero-inner-grid {
    gap: 2rem;
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
  }
}

.hero-inner-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 992px) {
  .hero-inner-grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 2.75rem;
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

.hero-image {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

@media (min-width: 992px) {
  .hero-image {
    height: 460px;
  }
}

.dbaasnow-feature-img {
  width: 100%;
  height: auto;
  background-color: #ffffff;
  border-radius: var(--radius-md, 16px);
  border: 1px solid rgba(11, 94, 208, 0.12);
  box-shadow: 
    0 16px 36px -10px rgba(15, 23, 42, 0.08),
    0 2px 8px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.dbaasnow-feature-img:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 94, 208, 0.28);
  box-shadow: 
    0 22px 48px -10px rgba(15, 23, 42, 0.12),
    0 4px 12px -2px rgba(15, 23, 42, 0.06);
}

/* --------------------------------------------------------------------------
   HyperScalar Technologies — Cybernetic Cloud Architecture Visualizer
   Matches Picture 2: Rich Sapphire & Cobalt Blue Constellation Mesh & Orbit Card
   -------------------------------------------------------------------------- */
.cyber-hero-card {
  position: relative;
  width: 100%;
  max-width: 550px;
  height: 520px;
  min-height: 500px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
  background: #031336;
  background-image: 
    radial-gradient(circle at 50% 46%, #0d429a 0%, #082a68 32%, #041a46 65%, #020c24 100%),
    linear-gradient(rgba(29, 122, 252, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 122, 252, 0.12) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  border: 1.5px solid rgba(29, 122, 252, 0.55);
  box-shadow: 
    0 25px 60px -12px rgba(2, 6, 23, 0.85),
    0 0 50px rgba(26, 115, 232, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 0 40px rgba(8, 42, 110, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.1rem 1.25rem;
  user-select: none;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.cyber-hero-card:hover {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 
    0 30px 65px -12px rgba(2, 6, 23, 0.95),
    0 0 55px rgba(29, 122, 252, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

/* Background Constellation & Radar SVG Overlay */
.cyber-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.cyber-bg-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SVG Animations: Rotating Orbits, Scanner & Beacons */
.cyber-ambient-glow {
  animation: ambientGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes ambientGlowPulse {
  0% { opacity: 0.8; transform: scale(0.96); transform-origin: 250px 245px; }
  100% { opacity: 1; transform: scale(1.05); transform-origin: 250px 245px; }
}

.cyber-radar-outer-group {
  transform-origin: 250px 245px;
  animation: radarRotate 26s linear infinite;
}

.cyber-radar-inner-group {
  transform-origin: 250px 245px;
  animation: radarRotateRev 32s linear infinite;
}

.cyber-radar-scanner {
  transform-origin: 250px 245px;
  animation: radarScannerSweep 9s linear infinite;
}

.cyber-beacons-orbit-group {
  transform-origin: 250px 245px;
  animation: beaconsRevolve 16s linear infinite;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes radarRotateRev {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes radarScannerSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* Orbital Beacons at 12 O'Clock Pulsing Glow */
.orbital-beacon-outer {
  animation: beaconPulse 2s ease-in-out infinite;
}

.orbital-beacon-inner {
  animation: beaconPulse 2s ease-in-out infinite 0.6s;
}

@keyframes beaconPulse {
  0%, 100% {
    opacity: 0.75;
    transform: scale(0.9);
    filter: drop-shadow(0 0 6px #38bdf8);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
    filter: drop-shadow(0 0 14px #38bdf8) drop-shadow(0 0 22px #1d7afc);
  }
}

/* Streaming Data on Constellation Links */
.cyber-stream-line {
  stroke-dasharray: 4 6;
  animation: streamFlow 2.8s linear infinite;
}

@keyframes streamFlow {
  to { stroke-dashoffset: -20; }
}

/* Twinkling Constellation Star Nodes */
.star-twinkle-1 { animation: starTwinkle 2.8s ease-in-out infinite; }
.star-twinkle-2 { animation: starTwinkle 3.6s ease-in-out infinite 0.8s; }
.star-twinkle-3 { animation: starTwinkle 2.4s ease-in-out infinite 1.5s; }

@keyframes starTwinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.85); transform-origin: center; }
  50% { opacity: 1; transform: scale(1.35); transform-origin: center; filter: drop-shadow(0 0 8px #38bdf8); }
}

/* Floating Metric Cards Rows (2 Top, 2 Bottom) */
.cyber-cards-row {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.cyber-row-top {
  margin-bottom: auto;
}

.cyber-row-bottom {
  margin-top: auto;
  margin-bottom: 0.85rem;
}

/* Gentle Anti-Phase Zero-G Floating HUD for the 4 Cards */
.cyber-row-top #cardCloud {
  animation: hudFloatA 4.2s ease-in-out infinite alternate;
}

.cyber-row-top #cardDbaas {
  animation: hudFloatB 4.8s ease-in-out infinite alternate-reverse;
}

.cyber-row-bottom #cardMigration {
  animation: hudFloatB 4.6s ease-in-out infinite alternate;
}

.cyber-row-bottom #cardEfficiency {
  animation: hudFloatA 5.2s ease-in-out infinite alternate-reverse;
}

@keyframes hudFloatA {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3.5px); }
}

@keyframes hudFloatB {
  0% { transform: translateY(-3px); }
  100% { transform: translateY(1px); }
}

/* Individual Metric Card (Matches Picture 2 Royal Electric Blue) */
.cyber-metric-card {
  position: relative;
  background: rgba(6, 24, 66, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid #1d7afc;
  border-radius: 14px;
  padding: 0.7rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 
    0 10px 24px -4px rgba(2, 6, 23, 0.65),
    0 0 16px rgba(29, 122, 252, 0.35),
    inset 0 0 12px rgba(29, 122, 252, 0.15);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.cyber-metric-card:hover {
  border-color: #38bdf8;
  box-shadow: 
    0 14px 28px -4px rgba(2, 6, 23, 0.8),
    0 0 24px rgba(56, 189, 248, 0.55),
    inset 0 0 16px rgba(56, 189, 248, 0.25);
}

.cyber-metric-card.is-dimmed {
  opacity: 0.42;
  border-color: rgba(29, 122, 252, 0.3);
  box-shadow: none;
}

.cyber-metric-card.is-highlighted {
  opacity: 1;
  border-color: #38bdf8;
  box-shadow: 
    0 12px 28px -4px rgba(13, 110, 253, 0.6),
    0 0 22px rgba(56, 189, 248, 0.5),
    inset 0 0 14px rgba(56, 189, 248, 0.25);
}

/* Card Icon Box (Rounded Square with Neon Blue Outline) */
.card-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(29, 122, 252, 0.14);
  border: 1.5px solid #1d7afc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(29, 122, 252, 0.25), inset 0 0 8px rgba(29, 122, 252, 0.18);
  transition: all 0.25s ease;
}

.cyber-metric-card:hover .card-icon-box {
  background: rgba(29, 122, 252, 0.28);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

/* Card Content Typography */
.card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.card-label-row {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  margin-bottom: 0.15rem;
}

.card-label {
  font-family: 'IBM Plex Mono', monospace, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #dbeafe;
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Emerald Green Live Indicator Dot with Ping Ripple */
.card-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  flex-shrink: 0;
  position: relative;
  display: inline-block;
}

.card-live-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid #00e676;
  animation: dotPulseRipple 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes dotPulseRipple {
  0% { transform: scale(1); opacity: 0.9; }
  70% { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}

.card-value {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#cardEfficiency .card-value {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

/* Centerpiece: HyperScalar Logo Badge */
.cyber-center-badge {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.badge-halo {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 122, 252, 0.65) 0%, rgba(56, 189, 248, 0.25) 45%, transparent 75%);
  filter: blur(16px);
  pointer-events: none;
  animation: haloPulse 3.5s ease-in-out infinite alternate;
}

@keyframes haloPulse {
  0% { transform: scale(0.9); opacity: 0.65; }
  100% { transform: scale(1.15); opacity: 1; filter: blur(20px); }
}

.badge-outer-frame {
  padding: 6px;
  border-radius: 24px;
  background: rgba(29, 122, 252, 0.12);
  border: 1.5px solid #1d7afc;
  box-shadow: 
    0 12px 28px rgba(2, 6, 23, 0.65),
    0 0 24px rgba(29, 122, 252, 0.45),
    inset 0 0 16px rgba(29, 122, 252, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  animation: framePulse 3.5s ease-in-out infinite alternate;
}

@keyframes framePulse {
  0% { border-color: #1d7afc; box-shadow: 0 0 20px rgba(29, 122, 252, 0.4); }
  100% { border-color: #38bdf8; box-shadow: 0 0 32px rgba(56, 189, 248, 0.6); }
}

.cyber-center-badge:hover .badge-outer-frame {
  transform: scale(1.06);
  border-color: #38bdf8;
}

.badge-inner-glass {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  background: linear-gradient(145deg, #0e3880 0%, #061c48 100%);
  border: 1.5px solid #38bdf8;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 32px rgba(29, 122, 252, 0.65),
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 0 16px rgba(56, 189, 248, 0.3);
  transition: box-shadow 0.3s ease;
  animation: badgeBreathing 4s ease-in-out infinite alternate;
}

@keyframes badgeBreathing {
  0% {
    box-shadow: 0 0 25px rgba(29, 122, 252, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 42px rgba(29, 122, 252, 0.85), 0 0 18px rgba(56, 189, 248, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.45);
  }
}

.cyber-center-badge:hover .badge-inner-glass {
  box-shadow: 
    0 0 45px rgba(56, 189, 248, 0.85),
    inset 0 0 22px rgba(56, 189, 248, 0.5);
}

.badge-logo-svg {
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
  transition: transform 0.3s ease;
}

.cyber-center-badge:hover .badge-logo-svg {
  transform: scale(1.08);
}

/* Bottom Perspective Switcher Tabs (Matches Picture 2) */
.cyber-tabs-bar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0;
  padding-top: 0.5rem;
}

.cyber-tab-pill {
  padding: 0.48rem 1.35rem;
  border-radius: 9999px;
  background: rgba(6, 20, 52, 0.75);
  border: 1.2px solid rgba(29, 122, 252, 0.35);
  color: rgba(255, 255, 255, 0.75);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.cyber-tab-pill:hover {
  background: rgba(14, 40, 95, 0.9);
  border-color: rgba(29, 122, 252, 0.6);
  color: #ffffff;
}

.cyber-tab-pill.active {
  background: linear-gradient(135deg, #1d7afc 0%, #0b5ed7 100%);
  border: 1.5px solid #60a5fa;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 
    0 0 18px rgba(29, 122, 252, 0.8),
    0 0 32px rgba(13, 110, 253, 0.5);
}

/* Responsive Adaptations for Hero Visualizer */
@media (max-width: 991.98px) {
  .cyber-hero-card {
    max-width: 520px;
    height: 500px;
    margin: 1.5rem auto 0;
  }

  .card-value {
    font-size: 0.92rem;
  }

  #cardEfficiency .card-value {
    font-size: 0.88rem;
  }
}

@media (max-width: 767.98px) {
  .cyber-hero-card {
    max-width: 100%;
    height: 480px;
    padding: 1.15rem 0.65rem 0.95rem;
    border-radius: 18px;
  }

  .cyber-cards-row {
    gap: 0.5rem;
  }

  .cyber-row-bottom {
    margin-bottom: 0.65rem;
  }

  .cyber-metric-card {
    padding: 0.55rem 0.55rem;
    gap: 0.45rem;
    border-radius: 12px;
    min-width: 0;
  }

  .card-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .card-icon-box svg {
    width: 15px;
    height: 15px;
  }

  .card-content {
    min-width: 0;
    flex: 1;
  }

  .card-label-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.12rem;
    min-width: 0;
  }

  .card-label {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 600;
    color: #dbeafe;
    letter-spacing: -0.01em;
    text-transform: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
  }

  .card-value {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  #cardEfficiency .card-value {
    font-size: 0.76rem;
  }

  .badge-inner-glass {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }

  .badge-outer-frame {
    border-radius: 22px;
    padding: 5px;
  }

  .badge-logo-svg {
    width: 30px;
    height: 30px;
  }

  .cyber-tabs-bar {
    padding-top: 0.4rem;
    gap: 0.4rem;
  }

  .cyber-tab-pill {
    padding: 0.38rem 0.9rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 420px) {
  .cyber-hero-card {
    height: 440px;
    padding: 0.95rem 0.45rem 0.85rem;
  }

  .cyber-cards-row {
    gap: 0.38rem;
  }

  .cyber-row-bottom {
    margin-bottom: 0.5rem;
  }

  .cyber-metric-card {
    padding: 0.45rem 0.42rem;
    gap: 0.35rem;
    border-radius: 10px;
  }

  .card-icon-box {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .card-icon-box svg {
    width: 13px;
    height: 13px;
  }

  .card-label {
    font-size: 0.55rem;
    letter-spacing: -0.015em;
  }

  .card-value {
    font-size: 0.74rem;
  }

  #cardEfficiency .card-value {
    font-size: 0.7rem;
  }

  .badge-inner-glass {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .badge-outer-frame {
    border-radius: 18px;
    padding: 4px;
  }

  .badge-logo-svg {
    width: 26px;
    height: 26px;
  }

  .cyber-tab-pill {
    padding: 0.32rem 0.72rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 350px) {
  .cyber-hero-card {
    padding: 0.85rem 0.35rem 0.75rem;
  }

  .cyber-metric-card {
    padding: 0.4rem 0.35rem;
    gap: 0.3rem;
  }

  .card-icon-box {
    width: 24px;
    height: 24px;
  }

  .card-label {
    font-size: 0.49rem;
  }

  .card-value {
    font-size: 0.68rem;
  }

  #cardEfficiency .card-value {
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbital-beacon-outer,
  .orbital-beacon-inner,
  .badge-halo,
  .card-live-dot {
    animation: none !important;
  }
  .cyber-hero-card,
  .cyber-metric-card,
  .cyber-tab-pill {
    transition: none !important;
  }
}

/* Stats Row */
.stats-section {
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--color-border);
}

@media (min-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  background-color: var(--color-surface);
  padding: 2.5rem 1.5rem;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, background-color 0.28s ease;
  position: relative;
  cursor: default;
}

.stat-item:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(11, 94, 208, 0.08), 0 4px 12px -2px rgba(18, 27, 41, 0.03);
}

.stat-number {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--color-brand);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  display: inline-block;
  will-change: contents;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.stat-item:hover .stat-number {
  color: #1d7afc;
}

@keyframes statPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.stat-number.stat-counted,
.dbaas-stat-num.stat-counted {
  animation: statPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 992px) {
  .stat-number {
    font-size: 2.25rem;
  }
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.375;
  color: var(--color-ink-soft);
}

/* Numbered Stats for DBaasNow */
.stats-grid-dbaas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 992px) {
  .stats-grid-dbaas {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dbaas-stat-num {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-brand-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  display: inline-block;
  will-change: contents;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1px Border Grid for Service Cards */
.border-card-grid-3 {
  display: grid;
  gap: 1px;
  background-color: var(--color-border);
}

@media (min-width: 768px) {
  .border-card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .border-card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.border-card-grid-2 {
  display: grid;
  gap: 1px;
  background-color: var(--color-border);
}

@media (min-width: 768px) {
  .border-card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background-color: var(--color-background);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: background-color var(--transition-fast);
}

@media (min-width: 992px) {
  .service-card.large-padding {
    padding: 2.5rem;
  }
}

.service-card .card-title {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ink);
}

.service-card .card-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-ink-soft);
  flex-grow: 1;
}

.service-card .card-action {
  margin-top: 1.5rem;
}

/* Service Detail Bullets */
.service-bullet-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

.service-bullet-item {
  border-left: 2px solid var(--color-brand);
  padding-left: 0.75rem;
  line-height: 1.5;
}

/* How We Work steps */
.work-steps-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.work-step-item {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-brand);
  font-weight: 500;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Engagement Model Section (Matches Reference Image)
   -------------------------------------------------------------------------- */
.engagement-section {
  position: relative;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.engagement-header {
  max-width: 48rem;
  margin-bottom: 3.5rem;
}

.engagement-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-brand);
  margin-bottom: 0.85rem;
}

.engagement-tag .tag-dash {
  font-weight: 400;
  color: var(--color-brand);
}

.engagement-heading {
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .engagement-heading {
    font-size: 3rem;
  }
}

.heading-serif-italic {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  color: #0284c7;
  letter-spacing: -0.01em;
}

.engagement-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink-soft);
  max-width: 44rem;
  margin: 0;
}

/* Desktop Horizontal Timeline Track */
.engagement-timeline-wrapper {
  position: relative;
}

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

@media (min-width: 992px) {
  .engagement-timeline-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    margin-bottom: 2rem;
    gap: 2rem;
  }

  .engagement-timeline-track::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 11px;
    right: 11px;
    height: 2px;
    background: linear-gradient(to right, #cbd5e1, #e2e8f0);
    z-index: 0;
  }

  /* Animated glowing energy beam traveling along the timeline */
  .engagement-timeline-track::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 11px;
    width: 140px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.9), #0284c7, transparent);
    border-radius: 9999px;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.9));
    animation: timelineBeam 4s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
  }

  @keyframes timelineBeam {
    0% { left: 0%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: calc(100% - 140px); opacity: 0; }
  }

  .timeline-node {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    cursor: pointer;
  }

  .timeline-dot {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Rhythmic pulsing radar beacon ping */
  .timeline-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid rgba(2, 132, 199, 0.4);
    animation: dotPing 3.2s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
  }

  .timeline-node[data-step="1"] .timeline-dot::after { animation-delay: 0s; }
  .timeline-node[data-step="2"] .timeline-dot::after { animation-delay: 0.8s; }
  .timeline-node[data-step="3"] .timeline-dot::after { animation-delay: 1.6s; }
  .timeline-node[data-step="4"] .timeline-dot::after { animation-delay: 2.4s; }

  @keyframes dotPing {
    0% { transform: scale(0.85); opacity: 0.85; }
    70%, 100% { transform: scale(1.65); opacity: 0; }
  }

  .timeline-node.is-active .timeline-dot,
  .timeline-node:hover .timeline-dot {
    border-color: #0284c7;
    transform: scale(1.15);
    box-shadow: 0 0 0 4px #ffffff, 0 0 16px rgba(2, 132, 199, 0.5);
  }

  .timeline-dot .dot-core {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #0284c7;
    transition: transform 0.25s ease;
  }

  .timeline-node:hover .dot-core,
  .timeline-node.is-active .dot-core {
    transform: scale(1.2);
  }

  .timeline-watermark {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 2.125rem;
    line-height: 1;
    font-weight: 400;
    color: #cbd5e1;
    user-select: none;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
  }

  .timeline-node:hover .timeline-watermark,
  .timeline-node.is-active .timeline-watermark {
    color: #0284c7;
    transform: scale(1.06);
    text-shadow: 0 0 14px rgba(2, 132, 199, 0.25);
  }
}

/* 4 Phase Cards Grid */
.engagement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .engagement-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }
}

@media (min-width: 992px) {
  .engagement-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.engagement-phase-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding: 1.25rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.engagement-phase-card:hover,
.engagement-phase-card.is-active {
  transform: translateY(-5px);
  background-color: #ffffff;
  border-color: rgba(14, 116, 224, 0.15);
  box-shadow: 0 16px 36px -10px rgba(11, 94, 208, 0.1), 0 4px 12px -2px rgba(18, 27, 41, 0.03);
}

.engagement-phase-card:hover .phase-title,
.engagement-phase-card.is-active .phase-title {
  color: #0b5ed0;
}

.phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.phase-step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0284c7;
  background-color: rgba(2, 132, 199, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .phase-step-tag {
    display: none !important;
  }
}

.phase-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0;
  letter-spacing: -0.015em;
  transition: color 0.25s ease;
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  background-color: #f1f5f9;
  color: #475569;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.phase-badge-ongoing {
  background-color: rgba(14, 116, 224, 0.08);
  color: #0284c7;
}

.phase-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.phase-bullets li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-ink-soft);
}

.phase-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #0284c7;
}

.phase-deliverable {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.deliverable-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.deliverable-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.4;
  margin: 0;
}

/* Section Padding */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 992px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.page-header-section {
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 992px) {
  .page-header-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* CTA Banner (Let's scope your modernization roadmap) */
.cta-banner-section {
  background-color: var(--color-brand-deep);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.cta-banner-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .cta-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-banner-title {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: -0.025em;
}

@media (min-width: 992px) {
  .cta-banner-title {
    font-size: 2.25rem;
  }
}

.cta-banner-desc {
  margin-top: 0.75rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. Forms & Contact Page Elements
   -------------------------------------------------------------------------- */
.contact-layout-grid {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 992px) {
  .contact-layout-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

.form-group-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .form-group-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-label-custom {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-soft);
  margin-bottom: 0.5rem;
}

.form-control-custom,
.form-select-custom {
  width: 100%;
  height: 44px;
  background-color: var(--color-background);
  border: 1px solid var(--color-input);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: var(--color-ink);
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control-custom:focus,
.form-select-custom:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 1px var(--color-brand);
}

textarea.form-control-custom {
  height: auto;
  min-height: 130px;
  padding: 0.625rem 0.75rem;
  resize: vertical;
}

.contact-aside-box {
  background-color: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-sm);
}

.contact-direct-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

.contact-direct-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-direct-item svg {
  margin-top: 0.125rem;
  color: var(--color-brand);
  flex-shrink: 0;
}

.form-feedback {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.form-feedback.success {
  display: block;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-feedback.error {
  display: block;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.spinner-inline {
  display: inline-block;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.footer-inner {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-ink);
}

.footer-brand-desc {
  margin-top: 0.75rem;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--color-ink-soft);
}

.footer-contact-info {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

.footer-info-item svg {
  color: var(--color-brand);
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink);
}

.footer-nav-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

.footer-nav-list a {
  color: var(--color-ink-soft);
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--color-brand);
}

.footer-text {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-ink-soft);
  line-height: 1.625;
}

.footer-text a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-text a:hover {
  text-decoration: underline;
}

.footer-bottom-bar {
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom-bar a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   The Bubbles Media Link & Iridescent Bubble Animation
   -------------------------------------------------------------------------- */
.bubbles-media-link {
  position: relative;
  display: inline-block;
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bubbles-media-link:hover,
.bubbles-media-link:focus-visible {
  color: var(--color-brand);
  transform: translateY(-1px);
}

.bubble-particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 25;
}

.bubble-particle {
  position: absolute;
  bottom: 8px;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  user-select: none;
  /* Iridescent soap bubble appearance */
  background: radial-gradient(
    circle at 30% 28%,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.75) 16%,
    rgba(165, 225, 255, 0.6) 36%,
    rgba(244, 143, 235, 0.45) 60%,
    rgba(96, 165, 250, 0.65) 84%,
    rgba(37, 99, 235, 0.85) 100%
  );
  box-shadow:
    inset 0 0 5px rgba(255, 255, 255, 0.95),
    inset -2px -2px 6px rgba(59, 130, 246, 0.4),
    0 2px 8px rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  animation: bubbleAscend var(--bubble-duration, 1.4s) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  will-change: transform, opacity;
}

/* Primary specular highlight */
.bubble-particle::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 28%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  transform: rotate(-35deg);
  filter: blur(0.2px);
}

/* Secondary subtle reflection */
.bubble-particle::before {
  content: '';
  position: absolute;
  bottom: 16%;
  right: 20%;
  width: 14%;
  height: 14%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

@keyframes bubbleAscend {
  0% {
    opacity: 0;
    transform: translate3d(var(--start-x, 0px), 0px, 0) scale(0.2);
  }
  15% {
    opacity: 0.95;
    transform: translate3d(calc(var(--start-x, 0px) + var(--sway-1, 4px)), -12px, 0) scale(1);
  }
  45% {
    opacity: 0.9;
    transform: translate3d(calc(var(--start-x, 0px) - var(--sway-2, 6px)), -34px, 0) scale(1.06);
  }
  75% {
    opacity: 0.85;
    transform: translate3d(calc(var(--start-x, 0px) + var(--sway-3, 5px)), -54px, 0) scale(1.14);
  }
  92% {
    opacity: 0.7;
    transform: translate3d(calc(var(--start-x, 0px) - var(--sway-1, 3px)), var(--rise-distance, -70px), 0) scale(1.24);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--start-x, 0px) - var(--sway-1, 3px)), calc(var(--rise-distance, -70px) - 8px), 0) scale(1.42);
  }
}

/* Ambient companion micro-bubbles */
.bubbles-media-link::before,
.bubbles-media-link::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 30% 28%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(165, 225, 255, 0.6) 35%,
    rgba(244, 143, 235, 0.45) 60%,
    rgba(37, 99, 235, 0.85) 100%
  );
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.bubbles-media-link::before {
  width: 14px;
  height: 14px;
  top: 0px;
  right: -10px;
}

.bubbles-media-link::after {
  width: 10px;
  height: 10px;
  top: 4px;
  left: -8px;
}

.bubbles-media-link:hover::before {
  animation: pureCssBubbleRise1 1.7s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.bubbles-media-link:hover::after {
  animation: pureCssBubbleRise2 2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s infinite;
}

@keyframes pureCssBubbleRise1 {
  0% {
    opacity: 0;
    transform: translate3d(0, 0px, 0) scale(0.3);
  }
  20% {
    opacity: 0.95;
    transform: translate3d(-3px, -15px, 0) scale(1);
  }
  60% {
    opacity: 0.85;
    transform: translate3d(4px, -38px, 0) scale(1.1);
  }
  90% {
    opacity: 0.5;
    transform: translate3d(-2px, -55px, 0) scale(1.25);
  }
  100% {
    opacity: 0;
    transform: translate3d(-2px, -62px, 0) scale(1.4);
  }
}

@keyframes pureCssBubbleRise2 {
  0% {
    opacity: 0;
    transform: translate3d(0, 0px, 0) scale(0.3);
  }
  20% {
    opacity: 0.95;
    transform: translate3d(4px, -18px, 0) scale(1);
  }
  60% {
    opacity: 0.85;
    transform: translate3d(-3px, -42px, 0) scale(1.1);
  }
  90% {
    opacity: 0.5;
    transform: translate3d(3px, -60px, 0) scale(1.25);
  }
  100% {
    opacity: 0;
    transform: translate3d(3px, -68px, 0) scale(1.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble-particle,
  .bubble-particle-container,
  .bubbles-media-link::before,
  .bubbles-media-link::after {
    display: none !important;
  }
}

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

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   11. Floating Actions Dock (WhatsApp & Scroll-To-Top)
   -------------------------------------------------------------------------- */
.floating-actions-dock {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 990;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

/* Shared Floating Action Button Style */
.fab-btn {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s ease,
              background-color 0.25s ease,
              opacity 0.28s ease,
              visibility 0.28s ease;
  user-select: none;
  -webkit-user-select: none;
}

/* WhatsApp Floating Button */
.fab-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 
    0 10px 24px rgba(37, 211, 102, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.16);
}

.fab-whatsapp:hover {
  background: #22bf5b;
  color: #ffffff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 
    0 14px 30px rgba(37, 211, 102, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.22);
}

.fab-whatsapp:focus-visible {
  outline: 3px solid #25d366;
  outline-offset: 3px;
}

.fab-whatsapp:active {
  transform: translateY(0) scale(0.96);
}

/* Tooltip on Desktop Hover */
.fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: rgba(6, 24, 66, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.4);
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fab-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(6, 24, 66, 0.94);
}

.fab-whatsapp:hover .fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* WhatsApp Soft Pulse Ripple Effect */
.fab-whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waPulseRipple 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes waPulseRipple {
  0% { transform: scale(1); opacity: 0.85; }
  70% { transform: scale(1.42); opacity: 0; }
  100% { transform: scale(1.42); opacity: 0; }
}

/* Scroll-To-Top Button */
.fab-scroll-top {
  background: rgba(6, 24, 66, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #38bdf8;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow: 
    0 10px 22px rgba(2, 6, 23, 0.55),
    0 0 16px rgba(29, 122, 252, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.85);
}

.fab-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fab-scroll-top:hover {
  background: rgba(13, 71, 161, 0.95);
  color: #ffffff;
  border-color: #38bdf8;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 
    0 14px 28px rgba(2, 6, 23, 0.7),
    0 0 22px rgba(56, 189, 248, 0.55);
}

.fab-scroll-top:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

.fab-scroll-top:active {
  transform: translateY(0) scale(0.96);
}

/* Mobile Responsiveness for Floating Dock */
@media (max-width: 767.98px) {
  .floating-actions-dock {
    bottom: 1.25rem;
    right: 1.15rem;
    gap: 0.65rem;
  }

  .fab-btn {
    width: 48px;
    height: 48px;
  }

  .fab-tooltip {
    display: none; /* Disable tooltip on touch screens */
  }

  .fab-whatsapp-pulse {
    inset: -3px;
  }
}
