/* Custom Design System for CBE Modern Digital Sovereignty - 100% Solid Pure White Theme */

:root {
  /* Exact Official CBE Magenta-Purple & Gold Palette */
  --cbe-purple: #8a1c7c;
  --cbe-purple-dark: #6b1260;
  --cbe-purple-light: #aa289a;
  
  --cbe-gold: #e8a029;
  --cbe-gold-light: #fbbf24;
  --cbe-gold-dark: #b45309;

  --color-midnight: #ffffff;
  --color-text-dark: #0f172a;
  --color-text-muted: #475569;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #ffffff;
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
  overscroll-behavior-y: none;
}

/* Preloader Overlay */
#preloader {
  background-color: #ffffff;
  user-select: none;
  touch-action: none;
}

/* Pinned Viewport - Mobile dvh Compatible (No Address Bar Resizing Thrash) */
#hero-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #ffffff !important;
}

/* 3D WebGL Canvas Layer */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 10;
  background-color: #ffffff !important;
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
}

#webgl-canvas:active {
  cursor: grabbing;
}

#scroll-track {
  position: relative;
  width: 100%;
  height: 500vh;
  z-index: 20;
}

/* Fixed Hero Stage Overlays */
.hero-stage {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 30 !important;
  pointer-events: none;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  transition: opacity 0.4s ease-out;
}

/* Slide Reveal Containers */
.slide-left-target {
  will-change: transform, opacity;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out;
}

.slide-right-target {
  will-change: transform, opacity;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out;
}

/* Text Colors & Gradients */
.text-purple { color: var(--cbe-purple); }
.text-gold { color: var(--cbe-gold); }

.text-purple-gradient {
  background: linear-gradient(135deg, #0f172a 0%, var(--cbe-purple) 60%, var(--cbe-purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #0f172a 0%, var(--cbe-gold-dark) 50%, var(--cbe-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badge Tags */
.badge-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: monospace;
  background: rgba(138, 28, 124, 0.08);
  border: 1px solid rgba(138, 28, 124, 0.3);
  color: var(--cbe-purple);
  box-shadow: 0 4px 15px rgba(138, 28, 124, 0.12);
}

/* Navigation Header */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--cbe-purple);
  color: #0f172a;
}

/* Buttons */
.cbe-purple-btn {
  cursor: pointer;
  background: var(--cbe-purple);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cbe-purple-btn:hover {
  background: var(--cbe-purple-dark);
  box-shadow: 0 0 25px rgba(138, 28, 124, 0.4);
  transform: translateY(-2px);
}

/* Banking Cards */
.banking-card {
  background: #ffffff;
  border: 1px solid rgba(138, 28, 124, 0.12);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .banking-card {
    padding: 2rem;
  }
}

.banking-card:hover {
  transform: translateY(-6px);
  border-color: var(--cbe-purple);
  box-shadow: 0 20px 40px rgba(138, 28, 124, 0.15);
}

/* Metric Boxes */
.metric-box {
  background: #ffffff;
  border: 1px solid rgba(138, 28, 124, 0.12);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
}

@media (min-width: 768px) {
  .metric-box {
    padding: 2rem;
  }
}

.metric-box:hover {
  transform: translateY(-4px);
  border-color: var(--cbe-gold);
  box-shadow: 0 15px 35px rgba(232, 160, 41, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: var(--cbe-purple-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cbe-purple);
}
