:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  --bg: #0a1022;
  --bg-deep: #050814;
  --text: #e5e7eb;
  --muted: #cbd5f5;
  --card: #0b1120;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(
      circle at calc(20% + var(--bg-shift-x, 0px)) calc(20% + var(--bg-shift-y, 0px)),
      #1c2750,
      var(--bg) 55%,
      var(--bg-deep) 100%
    );
  color: var(--text);
  overflow: hidden;
}

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.scene::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 30% 30%, rgba(90, 120, 255, 0.14), transparent 60%);
  transform: translate(calc(var(--bg-shift-x, 0px) * 0.85), calc(var(--bg-shift-y, 0px) * 0.85));
  transition: transform 0.1s ease-out;
  pointer-events: none;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 16, 34, 0) 0%, rgba(5, 8, 20, 0.65) 70%, rgba(5, 8, 20, 0.85) 100%);
  pointer-events: none;
}

#constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px));
  transition: transform 0.12s ease-out;
  filter: blur(0.2px) saturate(115%);
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.glass-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  pointer-events: auto;
}

.card {
  pointer-events: auto;
  background: linear-gradient(160deg, rgba(19, 28, 56, 0.88), rgba(10, 16, 34, 0.92));
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  max-width: 420px;
  width: min(90vw, 420px);
  text-align: center;
  display: grid;
  gap: 14px;
}


.container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 10px 0;
  perspective: 600px;
}

.container.glass-row {
  gap: 12px;
}

.faq-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(140, 170, 255, 0.16));
  color: rgba(235, 241, 255, 0.96);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  font-size: 0.62rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 10px rgba(140, 170, 255, 0.08);
  border: 1px solid rgba(140, 170, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  opacity: 0;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.faq-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 170, 255, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), 0 0 22px rgba(120, 150, 255, 0.22);
}

.faq-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(140, 170, 255, 0.45),
    rgba(100, 140, 255, 0.08) 45%,
    transparent 75%
  );
  opacity: var(--glow-o, 0);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.container .glass {
  position: relative;
  width: 150px;
  height: 170px;
  background: linear-gradient(160deg, rgba(120, 160, 255, 0.18), rgba(10, 16, 34, 0.1));
  border: 1px solid rgba(140, 170, 255, 0.2);
  box-shadow: 0 25px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  text-decoration: none;
  pointer-events: auto;
  opacity: 0;
  transform-origin: center;
}

.container .glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(140, 170, 255, 0.45),
    rgba(100, 140, 255, 0.08) 40%,
    transparent 70%
  );
  opacity: var(--glow-o, 0);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.enter .glass {
  animation: cardIn 0.7s ease-out;
  animation-fill-mode: none;
}

.enter .glass-group .glass:nth-child(1) {
  animation-delay: 0.08s;
}

.enter .glass-group .glass:nth-child(2) {
  animation-delay: 0.18s;
}

.enter .glass-group .glass:nth-child(3) {
  animation-delay: 0.28s;
}

.enter .faq-pill {
  animation: cardIn 0.7s ease-out forwards;
  animation-delay: 0.38s;
}

@keyframes cardIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.02);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateZ(0px) scale(1);
    filter: blur(0px);
  }
}

.container .glass::before {
  content: attr(data-text);
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12));
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(235, 241, 255, 0.96);
  letter-spacing: 0.12em;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(70, 90, 160, 0.35);
  text-transform: uppercase;
  font-size: 0.62rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.container .glass svg {
  font-size: 2.2em;
  fill: #fff;
  filter: drop-shadow(0 6px 12px rgba(120, 150, 255, 0.4));
  transform: translateY(0px);
}

.card h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: #5865f2;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(88, 101, 242, 0.5);
}

.small {
  font-size: 0.9rem;
  color: #a5b4fc;
}

.small a {
  color: #a5b4fc;
  text-decoration: none;
}

.media-showcase {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}



.faq-shell {
  width: min(92vw, 980px);
  height: min(72vh, 640px);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: linear-gradient(165deg, rgba(14, 20, 42, 0.82), rgba(8, 12, 28, 0.9));
  border: 1px solid rgba(140, 170, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(80, 110, 200, 0.06);
  backdrop-filter: blur(16px);
  padding: 0;
  pointer-events: auto;
  overflow: hidden;
  position: relative;
}

@media (min-width: 861px) {
  .faq-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 220px;
    width: 24px;
    background: linear-gradient(90deg, rgba(140, 170, 255, 0.16), rgba(140, 170, 255, 0));
    pointer-events: none;
  }
}

.faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 20px 24px;
  background: rgba(8, 12, 28, 0.5);
  border-right: 1px solid rgba(140, 170, 255, 0.08);
  border-radius: 0;
}

.faq-brand {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: rgba(160, 185, 255, 0.95);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(140, 170, 255, 0.1);
}

.faq-nav {
  display: grid;
  gap: 6px;
}

.faq-nav a {
  text-decoration: none;
  color: rgba(200, 215, 255, 0.75);
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.faq-nav a::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  pointer-events: none;
  background: rgba(10, 16, 34, 0.9);
  border: 1px solid rgba(140, 170, 255, 0.22);
  color: rgba(220, 230, 255, 0.95);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.faq-nav a:hover {
  color: rgba(210, 225, 255, 1);
  background: rgba(140, 170, 255, 0.06);
  border-left-color: rgba(140, 170, 255, 0.25);
}

.faq-nav a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.faq-nav a.active {
  color: rgba(180, 200, 255, 1);
  background: rgba(140, 170, 255, 0.1);
  border-left-color: rgba(140, 170, 255, 0.7);
  font-weight: 600;
}

.faq-back {
  margin-top: auto;
  padding: 10px 16px;
  font-size: 0.75rem;
  text-align: center;
  border-radius: 10px;
}

.faq-content {
  padding: 36px 36px 32px;
  overflow-y: auto;
  max-height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.faq-scroll-hint {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(170, 190, 230, 0.7);
  pointer-events: none;
}

.faq-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.faq-header {
  margin-bottom: 8px;
}

.faq-header-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.faq-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(135deg, rgba(220, 230, 255, 1), rgba(140, 170, 255, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-header .small {
  font-size: 0.82rem;
  color: rgba(160, 180, 220, 0.7);
}

.faq-section {
  margin-top: 24px;
}

.faq-search {
  margin: 10px 0 4px;
}

.faq-search-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(140, 170, 255, 0.12);
  background: rgba(8, 12, 28, 0.65);
  color: rgba(230, 240, 255, 0.92);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.faq-search-input::placeholder {
  color: rgba(150, 170, 210, 0.7);
}

.faq-search-input:focus {
  border-color: rgba(140, 170, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(120, 150, 255, 0.15);
  background: rgba(10, 16, 34, 0.8);
}

.faq-section h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: rgba(140, 170, 255, 0.6);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(140, 170, 255, 0.08);
}

@media (max-width: 860px) {
  .faq-shell {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(140, 170, 255, 0.08);
    padding: 20px 20px 16px;
  }

  .faq-content {
    max-height: none;
    padding: 24px 20px;
  }

  .faq-nav a::after {
    display: none;
  }
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.faq-item {
  padding: 16px 18px;
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(18, 24, 48, 0.6), rgba(10, 14, 30, 0.4));
  border: 1px solid rgba(140, 170, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.22s ease,
              box-shadow 0.22s ease,
              background 0.22s ease;
  position: relative;
}

.faq-item.is-hidden {
  display: none;
}

.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, rgba(140, 170, 255, 0.3), rgba(100, 130, 220, 0.08));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.faq-item:hover {
  transform: translateY(-2px) translateX(2px);
  border-color: rgba(140, 170, 255, 0.2);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), 0 0 18px rgba(100, 140, 255, 0.06);
  background: linear-gradient(165deg, rgba(20, 28, 56, 0.7), rgba(12, 18, 38, 0.5));
}

.faq-item:hover::before {
  opacity: 1;
}

.faq-item h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(225, 235, 255, 0.95);
}

.faq-item p {
  color: rgba(180, 195, 230, 0.7);
  line-height: 1.55;
  font-size: 0.84rem;
}

.faq-steps {
  margin-top: 8px;
  margin-left: 4px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: rgba(190, 205, 235, 0.78);
  font-size: 0.82rem;
  line-height: 1.5;
}

.faq-steps li {
  margin-left: 4px;
}

.faq-code {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  padding: 12px 14px 12px;
  border-radius: 10px;
  background: rgba(6, 10, 22, 0.7);
  border: 1px solid rgba(140, 170, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(210, 225, 255, 0.92);
  overflow: hidden;
}

.faq-code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.faq-code-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(150, 175, 220, 0.7);
}

.faq-code code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(140, 170, 255, 0.22);
  background: rgba(14, 20, 42, 0.8);
  color: rgba(205, 220, 255, 0.9);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(140, 170, 255, 0.5);
  background: rgba(24, 34, 64, 0.9);
  color: rgba(230, 240, 255, 1);
}

.copy-btn.copied {
  border-color: rgba(120, 220, 180, 0.6);
  color: rgba(170, 255, 220, 0.95);
}

.faq-link {
  color: rgba(160, 190, 255, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 170, 255, 0.25);
}

.faq-link:hover {
  color: rgba(200, 220, 255, 1);
  border-bottom-color: rgba(140, 170, 255, 0.6);
}

.back-to-top {
  position: sticky;
  bottom: 18px;
  z-index: 2;
  margin-top: 22px;
  margin-left: auto;
  display: block;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(140, 170, 255, 0.25);
  background: rgba(10, 16, 34, 0.7);
  color: rgba(210, 225, 255, 0.9);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: rgba(140, 170, 255, 0.6);
}

.media-tile {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(9, 14, 30, 0.7);
  border: 1px solid rgba(140, 170, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(100, 140, 255, 0);
  transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.32s ease,
              box-shadow 0.32s ease;
}

.media-tile:hover {
  transform: translateY(-4px) scale(1.012);
  border-color: rgba(140, 170, 255, 0.28);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(100, 140, 255, 0.1);
}

.media-link {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: inherit;
}

.media-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(110%) contrast(105%);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.media-play {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 16, 34, 0.7);
  border: 1px solid rgba(140, 170, 255, 0.35);
  color: rgba(230, 240, 255, 0.95);
  font-size: 1.25rem;
  line-height: 1;
  text-indent: 2px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  backdrop-filter: blur(6px);
}

.media-link:hover .media-thumb {
  transform: scale(1.04);
  filter: saturate(120%) contrast(110%);
}

.media-link:hover .media-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(20, 28, 56, 0.85);
  border-color: rgba(140, 170, 255, 0.6);
}

.media-shell {
  grid-template-columns: 220px 1fr;
}
