@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600");
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800");

:root {
  --bg-obsidian: #050507;
  --bg-surface: #0c0d10;
  --bg-elevated: #13151a;
  --red-500: #ef4444;
  --discord-blurple: #5865f2;
  --discord-green: #23a55a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: #f4f4f6;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-obsidian);
  color: #f4f4f6;
  overflow-x: hidden;
  margin: 0;
}

.font-mono-code {
  font-family: "JetBrains Mono", monospace;
}

body::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body::-webkit-scrollbar-track,
.custom-scrollbar::-webkit-scrollbar-track {
  background: #070709;
}

body::-webkit-scrollbar-thumb,
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #ef4444;
  border-radius: 9999px;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: #050507;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modern Fluid Floating Header */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 24px;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-wrapper.scrolled {
  padding: 12px 24px;
}

.header-shell {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(12, 13, 17, 0.72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 10px 18px;
  transition:
    max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-wrapper.scrolled .header-shell {
  max-width: 980px;
  background: rgba(10, 11, 15, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.85);
}

.nav-links-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 4px;
}

.nav-pill-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 0;
  background: #ef4444;
  border-radius: 10px;
  transition:
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.nav-item {
  position: relative;
  z-index: 1;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
}

.subtle-noise {
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 28px 28px;
}

/* Interactive Spotlight Card */
.spotlight-card {
  position: relative;
  background: #0c0d11;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-card:hover {
  border-color: rgba(239, 68, 68, 0.35);
}

/* Hero Floating Discord Layers */
.floating-layer {
  background: rgba(16, 17, 22, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.85);
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes floatGentleDelayed {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(8px);
  }
}

.animate-float-1 {
  animation: floatGentle 6s ease-in-out infinite;
}

.animate-float-2 {
  animation: floatGentleDelayed 7s ease-in-out infinite;
}

/* Animated Soundwave Equalizer */
.eq-bar {
  width: 3px;
  background: #10b981;
  border-radius: 9999px;
  animation: eqBounce 1.1s ease-in-out infinite;
}

.eq-bar.paused {
  animation-play-state: paused;
  height: 4px !important;
}

.eq-bar:nth-child(1) {
  height: 14px;
  animation-delay: 0s;
}
.eq-bar:nth-child(2) {
  height: 22px;
  animation-delay: 0.2s;
}
.eq-bar:nth-child(3) {
  height: 10px;
  animation-delay: 0.4s;
}
.eq-bar:nth-child(4) {
  height: 18px;
  animation-delay: 0.15s;
}
.eq-bar:nth-child(5) {
  height: 12px;
  animation-delay: 0.35s;
}

@keyframes eqBounce {
  0%, 100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Solid 500 Badges and Pills */
.app-tag {
  background: #5865f2;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
  text-transform: uppercase;
}

.mention-pill {
  background: #5865f2;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.channel-pill {
  background: #3b82f6;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.discord-inline-code {
  background: #1e1f22;
  color: #f2f3f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

/* Realistic Discord Slash Command Picker List */
.slash-item {
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.slash-item:hover {
  background: #181a20;
  border-color: rgba(255, 255, 255, 0.14);
}

.slash-item.active {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.workbench-cat-btn {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.workbench-cat-btn.active {
  background: #ef4444;
  color: #ffffff;
}

/* Realistic Discord Chat Surface */
.discord-chat-window {
  background: #313338;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.discord-chat-header {
  background: #2b2d31;
  border-bottom: 1px solid #1f2023;
}

.discord-chat-input {
  background: #383a40;
  border-radius: 8px;
}

.discord-reply-spine {
  position: relative;
  padding-left: 28px;
}

.discord-reply-spine::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  width: 11px;
  height: 12px;
  border-left: 2px solid #4e5058;
  border-top: 2px solid #4e5058;
  border-top-left-radius: 6px;
}

/* Solid Red 500 Button */
.btn-red-500 {
  background-color: #ef4444;
  color: #ffffff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.btn-red-500:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-view {
  animation: fadeSlideUp 0.18s ease-out forwards;
}
