body {
  background-image:
    linear-gradient(rgba(11, 4, 32, 0.98), rgba(11, 4, 32, 0.98)),
    url('../images/bg-sableye.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Legal pages (terms/privacy): hero art as a very-transparent backdrop. */
body.legal-hero-bg {
  background-image:
    linear-gradient(rgba(11, 4, 32, 0.90), rgba(11, 4, 32, 0.90)),
    url('../images/hero-pixel.webp');
}

/* Legal pages: white glass top bar that matches the landing nav (brand tokens
   inlined since these pages don't load landing.css). */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #EBE6F8;
  box-shadow: 0 8px 30px -20px rgba(60, 20, 110, 0.4);
}
.legal-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1A1326;
  letter-spacing: -0.01em;
}
.legal-brand__accent {
  background: linear-gradient(120deg, #A855F7 0%, #D946EF 55%, #22D3EE 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legal-nav__back {
  font-size: 0.875rem;
  color: #6B6480;
}
.legal-nav__back:hover {
  color: #7C3AED;
}

/* Legal pages: centre the divider line in the gap between sections so it sits
   evenly between sections instead of hugging the heading below it. */
body.legal-hero-bg main section + section::before { top: -20px; }

/* New brand typography (Space Grotesk display + Inter body, self-hosted via
   /css/fonts.css) so the shared old-theme pages match the redesigned site. */
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.01em; }

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-bg {
  background: linear-gradient(-45deg, #d946ef, #c026d3, #a21caf, #7c3aed);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

.hero-atmosphere {
  opacity: 0.7;
  object-position: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 68%, transparent 100%);
}

@media (min-width: 1024px) {
  .hero-atmosphere {
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(to left, #000 0%, #000 25%, transparent 90%);
    mask-image: linear-gradient(to left, #000 0%, #000 25%, transparent 90%);
  }
}

#loader {
  transition: opacity 0.5s ease-out;
}

.command-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.command-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.2);
}

.nav-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 70, 239, 0.18);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(217, 70, 239, 0.18);
  border-color: rgba(217, 70, 239, 0.5);
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  pointer-events: none;
}

.shine-effect:hover::before {
  animation: shine 1.5s ease-in-out;
}

@keyframes shine {
  100% { transform: translateX(100%); }
}

#mobileMenu {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 1rem)); }
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item {
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(217, 70, 239, 0.5);
}

section + section {
  position: relative;
}

section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 64rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(217, 70, 239, 0.7), transparent);
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.25);
  pointer-events: none;
}

/* ── Guide page (sidebar nav + top tabs + content cards) ───────────────── */
.nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(217, 70, 239, 0.42), rgba(125, 220, 255, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.tab {
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.guide-card {
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.guide-card h2 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}

.guide-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.guide-card code {
  color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Star-rating fill bar. The width represents the average rating (4.8/5
   = 96%). Lifted out of an inline style="width:96%" attribute on the hero
   stars so the CSP can drop 'unsafe-inline' from style-src. Bump this
   value alongside the displayed numeric rating in index.html. */
.star-rating-fill { width: 96%; }
