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

:root {
  --bg-canvas: #050505;
  --bg-card: rgba(11, 15, 25, 0.4);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #727784;
  --accent-blue: #38BDF8;
  --accent-primary: #0066CC;
  --accent-green: #34D399;
  --accent-purple: #A78BFA;
  --accent-amber: #FBBF24;
  --accent-red: #F87171;
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --font-family: 'Inter', sans-serif;
  --font-display: 'EB Garamond', serif;
  --font-mono: 'Geist Mono', monospace;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: -0.011em;
}

/* Glass Card Component */
.glass-card {
  background: rgba(11, 15, 25, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  border-left: 0.5px solid rgba(255, 255, 255, 0.1);
  border-right: 0.5px solid rgba(255, 255, 255, 0.05);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Cursor Glare Effect */
.cursor-glare {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.glass-card:hover .cursor-glare {
  opacity: 1;
}

.kpi-card:hover {
  transform: translateY(-4px);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Liquid Glare Hover Effect */
.liquid-glare-effect {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.liquid-glare-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.4) 50%, transparent 75%);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.liquid-glare-effect:hover::after {
  left: 150%;
}
.liquid-glare-effect:hover {
  box-shadow: 0 0 20px rgba(215, 227, 255, 0.2);
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px) scale(1.25); }
  50% { transform: translateY(-15px) scale(1.25); }
  100% { transform: translateY(0px) scale(1.25); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Stagger Row Scroll Reveal */
.stagger-row {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.stagger-row.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.stagger-1 { animation-delay: 0.04s; }
.stagger-2 { animation-delay: 0.08s; }
.stagger-3 { animation-delay: 0.12s; }
.stagger-4 { animation-delay: 0.16s; }
.stagger-5 { animation-delay: 0.20s; }
.stagger-6 { animation-delay: 0.24s; }

/* Custom Table Styling */
.custom-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px; }
.custom-table th { background: rgba(255, 255, 255, 0.03); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; padding: 14px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.custom-table td { padding: 16px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-secondary); white-space: nowrap; transition: background 0.15s ease; }
.custom-table tr:hover td { background-color: rgba(255, 255, 255, 0.04); }
.td-highlight { font-weight: 700; color: var(--text-primary); }
.td-note { font-size: 11px; color: var(--accent-blue); background: rgba(56, 189, 248, 0.1); padding: 3px 8px; border-radius: 5px; font-weight: 600; }
