/* PREVION Design System - Advanced Executive & Tactical Aesthetics */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Newsreader:ital,opsz,wght@1,6..72,300;1,6..72,400;1,6..72,500&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-dark: #030712;
  --bg-surface: #0B132B;
  --bg-card: rgba(15, 23, 42, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(14, 165, 233, 0.4);
  --primary: #0284C7;
  --primary-glow: rgba(2, 132, 199, 0.35);
  --accent-cyan: #38BDF8;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-quote: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284C7;
}

/* Base smoothing & transitions */
html {
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  font-family: var(--font-body);
  overflow-x: hidden;
  selection-background-color: #0284C7;
  selection-color: #ffffff;
}

::selection {
  background: #0284C7;
  color: #ffffff;
}

/* Grid & ambient background */
.tactical-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

html:not(.dark) .tactical-grid {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
}

.radar-glow {
  background: radial-gradient(circle at 50% 30%, rgba(2, 132, 199, 0.15) 0%, rgba(11, 19, 43, 0.4) 45%, transparent 75%);
}

html:not(.dark) .radar-glow {
  background: radial-gradient(circle at 50% 30%, rgba(2, 132, 199, 0.09) 0%, rgba(241, 245, 249, 0.6) 50%, transparent 80%);
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(11, 19, 43, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html:not(.dark) .glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(2, 132, 199, 0.25);
}

html:not(.dark) .glass-panel-hover:hover {
  border-color: rgba(2, 132, 199, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -8px rgba(2, 132, 199, 0.12);
}

/* Brand logo adaptive filter for light mode */
html:not(.dark) .brand-logo {
  filter: invert(0.9) hue-rotate(185deg) contrast(1.15) brightness(0.85);
}

/* Text glow */
.text-glow {
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
}

html:not(.dark) .text-glow {
  text-shadow: 0 0 20px rgba(2, 132, 199, 0.2);
}

.text-glow-sm {
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

/* Shimmer animation on CTA button */
@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s infinite;
}

/* Letter animations */
.letter-box {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.letter-box.active {
  background: rgba(2, 132, 199, 0.18);
  border-color: #38bdf8;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.3);
}

html:not(.dark) .letter-box.active {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284C7;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.15);
}

.letter-box.active .letter-char {
  color: #38bdf8;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
}

html:not(.dark) .letter-box.active .letter-char {
  color: #0284C7;
  text-shadow: 0 0 16px rgba(2, 132, 199, 0.3);
}

/* Ladder step transition */
.ladder-step {
  transition: all 0.3s ease;
}

.ladder-step.current {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.25) 0%, rgba(11, 19, 43, 0.6) 100%);
  border-left-color: #38BDF8 !important;
}

html:not(.dark) .ladder-step.current {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.12) 0%, rgba(241, 245, 249, 0.95) 100%);
  border-left-color: #0284C7 !important;
}

html:not(.dark) .ladder-step.current .step-tag {
  background-color: #0284C7;
  color: #ffffff;
}

/* Pulse animation */
@keyframes pingSlow {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.pulse-radar {
  animation: pingSlow 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}
