@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --color-ocean: #005A8C;
  --color-red: #C72A2A;
  --color-gray: #4A5B6E;
  --color-bg: #F8F9FA;
  --color-navy: #1A2A3A;
  
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
}
.font-mono {
  font-family: var(--font-mono) !important;
}

/* Liquid Glass Protocol */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 
              0 20px 40px -15px rgba(0, 0, 0, 0.05);
}
.glass-panel-dark {
  background: rgba(26, 42, 58, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 
              0 20px 40px -15px rgba(0, 0, 0, 0.2);
  color: #F8F9FA;
}

/* Perpetual Micro-Interactions */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(199, 42, 42, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(199, 42, 42, 0); }
  100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(199, 42, 42, 0); }
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-red);
  border-radius: 50%;
  border: 1px solid white;
  animation: pulse-ring 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}
.status-dot.green {
  background-color: #10B981;
  animation: pulse-ring-green 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pulse-ring-green {
  0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 25s linear infinite;
}

/* Staggered Reveals */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* Interactive UI States */
.btn-primary {
  background-color: var(--color-ocean);
  color: white;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background-color: #00456c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(0, 90, 140, 0.5);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-accent {
  background-color: var(--color-red);
  color: white;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px 0 rgba(199, 42, 42, 0.39);
}
.btn-accent:hover {
  background-color: #a62020;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 42, 42, 0.23);
}
.btn-accent:active {
  transform: scale(0.98);
}

/* Magnetic Area */
.magnetic {
  display: inline-block;
  will-change: transform;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gray);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-navy);
}

/* Hardware Acceleration */
.hw-accel {
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* Forms */
.input-field {
  width: 100%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(74, 91, 110, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-main);
  transition: all 0.2s;
  outline: none;
}
.input-field:focus {
  border-color: var(--color-ocean);
  box-shadow: 0 0 0 3px rgba(0, 90, 140, 0.1);
  background: #ffffff;
}

/* Asymmetric Image Gradients */
.img-fade-right {
  mask-image: linear-gradient(to right, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 50%, transparent 100%);
}

.clip-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

/* Progress bars */
.progress-bar-fill {
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* HIGH DEFINITION IMAGE PROTOCOL */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  filter: contrast(1.04) brightness(1.02) saturate(1.02);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  transition: filter 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

img:hover {
  filter: contrast(1.1) brightness(1.05) saturate(1.05);
}

/* Sharp Typography for Dashboard Context */
.font-mono {
  -webkit-font-smoothing: initial;
  -moz-osx-font-smoothing: initial;
}

