@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-main: #08090e;
  --bg-card: rgba(18, 20, 31, 0.65);
  --bg-card-hover: rgba(28, 31, 48, 0.85);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-glow: rgba(168, 85, 247, 0.35);
  
  --primary: #a855f7;
  --primary-light: #c084fc;
  --secondary: #06b6d4;
  --accent: #ec4899;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --glow-gradient: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(6, 182, 212, 0.35), rgba(236, 72, 153, 0.25));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Outfit', sans-serif;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Background Ambient Glows */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  will-change: transform;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #8b5cf6, #3b82f6);
  top: -100px;
  left: 10%;
}

.glow-orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #ec4899, #8b5cf6);
  bottom: 10%;
  right: 5%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.glow-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #06b6d4, #3b82f6);
  top: 45%;
  left: 40%;
  animation-duration: 25s;
  animation-delay: -9s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-card-glow);
  box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.15);
}

.glass-nav {
  background: rgba(8, 9, 14, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, #f8fafc 20%, #c084fc 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glow Badge */
.badge-vibe {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 500;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: #d8b4fe;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px -2px rgba(147, 51, 234, 0.45);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a855f7, #8b5cf6);
  box-shadow: 0 6px 25px 0px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Music Visualizer Bars */
.visualizer-container {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  padding: 2px;
}

.v-bar {
  width: 3px;
  background: linear-gradient(to top, #06b6d4, #a855f7);
  border-radius: 2px;
  animation: bounceBar 1.2s ease-in-out infinite alternate;
}

.v-bar:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.v-bar:nth-child(2) { height: 75%; animation-delay: 0.3s; }
.v-bar:nth-child(3) { height: 50%; animation-delay: 0.15s; }
.v-bar:nth-child(4) { height: 95%; animation-delay: 0.4s; }
.v-bar:nth-child(5) { height: 60%; animation-delay: 0.25s; }
.v-bar:nth-child(6) { height: 40%; animation-delay: 0.05s; }

@keyframes bounceBar {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Compliance Notice Box */
.compliance-box {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-left: 4px solid #0284c7;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

/* Code block highlight */
.code-preview {
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Navigation Links */
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #08090e;
}
::-webkit-scrollbar-thumb {
  background: #1e2235;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333852;
}

/* Cursor Glow Follower */
.cursor-glow-orb {
  position: fixed;
  top: -150px;
  left: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Legal Pages Tab & Product Category Navigation */
.legal-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.legal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
}

.legal-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.legal-tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Category & Product Selector Bar */
.category-selector-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-tag {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.product-pill {
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.product-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

/* Policy Dropdown Navigation */
.dropdown-menu-container {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.dropdown-trigger:hover, .dropdown-trigger.active {
  color: var(--text-main);
}

.dropdown-menu-content {
  position: absolute;
  top: 100%;
  right: -50px;
  width: 320px;
  background: rgba(13, 16, 27, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  padding: 0.75rem;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.15);
  display: none;
  z-index: 100;
  animation: fadeInDown 0.2s ease forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu-container:hover .dropdown-menu-content,
.dropdown-menu-container:focus-within .dropdown-menu-content {
  display: block;
}

.dropdown-category-group {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-category-group:last-child {
  border-bottom: none;
}

.dropdown-category-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #60a5fa;
  margin-bottom: 0.35rem;
}

.dropdown-sublinks {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.dropdown-sublink {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dropdown-sublink:hover {
  color: #38bdf8;
  text-decoration: underline;
}
