
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap');

:root, .dark {
  --background: 216 45% 4% !important;
  --foreground: 160 25% 96% !important;
  --card: 215 38% 7% !important;
  --card-foreground: 160 20% 96% !important;
  --popover: 215 40% 6% !important;
  --popover-foreground: 160 20% 96% !important;
  --primary: 158 84% 42% !important;
  --primary-foreground: 216 50% 4% !important;
  --secondary: 215 32% 11% !important;
  --secondary-foreground: 160 20% 92% !important;
  --muted: 215 30% 10% !important;
  --muted-foreground: 215 16% 65% !important;
  --accent: 162 90% 45% !important;
  --accent-foreground: 216 50% 4% !important;
  --border: 160 35% 15% !important;
  --input: 215 32% 12% !important;
  --ring: 158 84% 45% !important;
  --radius: 0.875rem !important;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background-color: #05080c !important;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.11) 0%, transparent 38%),
    radial-gradient(circle at 88% 15%, rgba(245, 158, 11, 0.07) 0%, transparent 35%),
    radial-gradient(circle at 50% 85%, rgba(0, 245, 160, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #05080c 0%, #080d14 50%, #05080c 100%) !important;
  background-attachment: fixed !important;
  color: #ecfdf5 !important;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, .font-bold, .font-extrabold {
  font-family: 'Space Grotesk', sans-serif !important;
  letter-spacing: -0.025em !important;
}

/* Monospace institutional styling for numbers, prices, badges */
.font-mono, [class*="tabular-nums"] {
  font-family: 'JetBrains Mono', monospace !important;
}

/* Remap old Slate / Navy surfaces to Carbon Obsidian & Smoked Onyx */
.bg-slate-950, .bg-gray-950, .bg-\[\#0a0e1a\], .bg-\[\#0f172a\] {
  background-color: #05080c !important;
}
.bg-slate-900, .bg-gray-900 {
  background-color: rgba(10, 16, 23, 0.88) !important;
}
.bg-slate-900\/95, .bg-slate-900\/90, .bg-slate-900\/80, .bg-slate-900\/50 {
  background-color: rgba(10, 17, 24, 0.78) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
}
.bg-slate-800, .bg-gray-800, .bg-slate-800\/50, .bg-slate-800\/80, .bg-slate-800\/90 {
  background-color: rgba(15, 24, 34, 0.75) !important;
  border-color: rgba(16, 185, 129, 0.16) !important;
}

/* Bento Card Architecture: Specular top highlight + Emerald Glass Border */
.rounded-xl.border, .rounded-2xl.border, .rounded-3xl.border, [class*="bg-slate-800"][class*="border"], [class*="bg-slate-900"][class*="border"] {
  border-color: rgba(16, 185, 129, 0.16) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 0 rgba(52, 211, 153, 0.14) !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease !important;
}
.rounded-xl.border:hover, .rounded-2xl.border:hover {
  border-color: rgba(16, 185, 129, 0.38) !important;
  box-shadow: 0 16px 36px -8px rgba(0, 245, 160, 0.12), inset 0 1px 0 0 rgba(52, 211, 153, 0.3) !important;
}

/* Floating Glassmorphic Navigation Header */
header, nav.sticky, nav.fixed {
  background: rgba(6, 10, 15, 0.82) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.22) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

/* Primary Buttons: Cyber Emerald -> Neon Mint Gradient */
button.bg-emerald-600, button.bg-emerald-500, a.bg-emerald-600, .bg-gradient-to-r.from-emerald-600, .bg-gradient-to-r.from-emerald-500 {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
  color: #022c22 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  border: 1px solid rgba(52, 211, 153, 0.5) !important;
}
button.bg-emerald-600:hover, button.bg-emerald-500:hover, .bg-gradient-to-r.from-emerald-600:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 60%, #059669 100%) !important;
  box-shadow: 0 6px 26px rgba(0, 245, 160, 0.55) !important;
  transform: translateY(-1px);
}

/* Keep text inside bright emerald buttons dark & ultra-legible, or crisp white on dark emerald */
button.bg-emerald-600, button.bg-emerald-500, .from-emerald-600, .from-emerald-500 {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Custom Institutional Top Ribbon */
#nexus-top-ribbon {
  background: linear-gradient(90deg, #042f2e 0%, #064e3b 50%, #042f2e 100%);
  border-bottom: 1px solid rgba(52, 211, 153, 0.25);
  color: #a7f3d0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
}
#nexus-top-ribbon .pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f5a0;
  box-shadow: 0 0 10px #00f5a0;
  margin-right: 8px;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #05080c; }
::-webkit-scrollbar-thumb { background: #134e4a; border-radius: 9999px; border: 1px solid rgba(16,185,129,0.3); }
::-webkit-scrollbar-thumb:hover { background: #10b981; }
