html { scroll-behavior: smooth; }
body { background-color: #0a0a0f; }

.gradient-text {
  background: linear-gradient(135deg, #7c5cfc 0%, #6366f1 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-scroll {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 42, 58, 0.6);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-hover {
  transition: all 0.25s;
}
.card-hover:hover {
  border-color: #7c5cfc;
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.15);
}

.btn-primary {
  padding: 0.625rem 1.25rem;
  background: #7c5cfc;
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: #8f72ff; }

.btn-ghost {
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  background: transparent;
}
.btn-ghost:hover {
  border-color: #7c5cfc;
  color: #7c5cfc;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #16161f;
  border: 1px solid #2a2a3a;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  padding: 4px;
  min-width: 176px;
  z-index: 100;
  display: none;
}
.lang-dropdown.active { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #8888aa;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.lang-option:hover { background: #22222f; color: #f0f0f8; }
.lang-option.active { color: #7c5cfc; background: rgba(124,92,252,0.12); }

.lang-selector-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #2a2a3a;
  background: transparent;
  color: #8888aa;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lang-selector-btn:hover {
  background: #1c1c28;
  color: #f0f0f8;
  border-color: #3a3a50;
}
.lang-flag-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Hamburger button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s;
}
.hamburger-btn:hover { border-color: #7c5cfc; }
.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #d1d5db;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.mobile-nav.open { display: block; }
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #0e0e18;
  border-left: 1px solid #2a2a3a;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
}
.mobile-nav-close:hover { border-color: #7c5cfc; color: #fff; }
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.mobile-nav-link {
  padding: 0.75rem 1rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-link:hover { background: #1c1c28; color: #fff; }
.mobile-nav-divider {
  height: 1px;
  background: #1f1f2e;
  margin: 1rem 0;
}
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-nav-listen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: 8px;
  border: 1px solid #2a2a3a;
  transition: border-color 0.15s, color 0.15s;
}
.mobile-nav-listen:hover { border-color: #7c5cfc; color: #fff; }
.mobile-nav-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color 0.15s, color 0.15s;
}
.mobile-nav-signin:hover { border-color: #7c5cfc; color: #7c5cfc; }
.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: #7c5cfc;
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-nav-cta:hover { background: #8f72ff; }
.mobile-nav-lang {
  margin-top: auto;
  padding-top: 1.5rem;
}

@media (max-width: 767px) {
  .hamburger-btn { display: flex; }
  .hide-mobile { display: none !important; }
  .lang-selector-btn { display: none; }
}

/* Cookie consent banner */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #13131e;
  border-top: 1px solid #2a2a3a;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.consent-banner.visible { transform: translateY(0); }
.consent-banner p { font-size: 0.875rem; color: #9ca3af; margin: 0; flex: 1; min-width: 200px; line-height: 1.5; }
.consent-banner a { color: #7c5cfc; text-decoration: underline; white-space: nowrap; }
.consent-banner-actions { display: flex; gap: 0.625rem; align-items: center; flex-shrink: 0; }
.consent-accept {
  padding: 0.5rem 1rem;
  background: #7c5cfc;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.consent-accept:hover { background: #8f72ff; }
.consent-reject {
  padding: 0.5rem 1rem;
  background: transparent;
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid #2a2a3a;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.consent-reject:hover { border-color: #4b4b6b; color: #d1d5db; }


/* Prose styles for documentation pages */
.prose-doc h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0f0f8;
  margin-bottom: 0.5rem;
  margin-top: 1.75rem;
}
.prose-doc h2:first-child { margin-top: 0; }
.prose-doc h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #d0d0e8;
  margin-bottom: 0.375rem;
  margin-top: 1.25rem;
}
.prose-doc p {
  color: #9090aa;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.prose-doc p:last-child { margin-bottom: 0; }
.prose-doc ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: #9090aa;
  line-height: 1.7;
  margin-bottom: 0;
}
.prose-doc li { margin-bottom: 0.2rem; }
.prose-doc a { color: #7c5cfc; text-decoration: underline; }
.prose-doc a:hover { color: #a78bfa; }
.prose-doc strong { color: #f0f0f8; font-weight: 600; }
