* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #e4e4e7;
  background: #050508;
  margin: 0;
}

/* ── Landing page (homepage) ── */

:root {
  --accent: #60a5fa;
  --accent-bright: #93c5fd;
  --accent-deep: #3b82f6;
  --gradient-brand: linear-gradient(135deg, #3b82f6, #6366f1);
  --gradient-text: linear-gradient(135deg, #93c5fd 0%, #60a5fa 45%, #818cf8 100%);
  --glow-brand: rgba(59, 130, 246, 0.3);
  --ambient-blue: rgba(37, 99, 235, 0.24);
  --ambient-indigo: rgba(49, 46, 129, 0.14);
}

body.landing,
body.legal-page {
  background: #030508;
  overflow-x: hidden;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--ambient-blue), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, var(--ambient-indigo), transparent 50%),
    #030508;
}

.stars::before,
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 70% 45%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 85% 75%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 45% 90%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 92% 10%, rgba(255, 255, 255, 0.5), transparent);
  background-size: 100% 100%;
}

.stars::after {
  opacity: 0.6;
  transform: scale(1.05);
}

body.landing .page,
body.legal-page .page {
  position: relative;
  z-index: 1;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1rem;
  gap: 0.75rem;
  position: relative;
  z-index: 20;
}

.landing-nav-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.landing-nav-menu {
  display: none;
  position: relative;
}

.landing-nav-menu-btn {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #e4e4e7;
  transition: background 0.15s, border-color 0.15s;
}

.landing-nav-menu-btn::-webkit-details-marker {
  display: none;
}

.landing-nav-menu-btn svg {
  width: 18px;
  height: 18px;
}

.landing-nav-menu[open] .landing-nav-menu-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.landing-nav-menu-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  padding: 0.35rem;
  background: rgba(12, 12, 14, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.landing-nav-menu-panel a {
  color: #d4d4d8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.15s, background 0.15s;
}

.landing-nav-menu-panel a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.landing-logo {
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  background: transparent;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo--nav {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.45));
}

.brand-logo--footer {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.35));
}

.brand-logo--docs {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.35));
}

.landing-nav-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.landing-nav-pill a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.landing-nav-pill a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.landing-nav-pill a.active {
  color: #fff;
  background: rgba(96, 165, 250, 0.14);
}

.landing-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #e4e4e7;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.landing-nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.landing-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.5rem;
  flex: 1;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem;
  align-items: center;
  min-height: auto;
  padding: 0.75rem 0 1.5rem;
}

.landing-hero-copy {
  max-width: 540px;
}

.landing-br {
  display: none;
}

.landing-h1 {
  margin: 0 0 1.25rem;
}

.landing-wordmark {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(3.75rem, 9vw, 5.75rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.065em;
  color: #ffffff;
  text-transform: lowercase;
  transform-origin: left center;
  will-change: transform, opacity;
}

@media (min-width: 961px) and (hover: hover) {
  .hover-letter-wrap {
    display: inline-block;
  }

  .hover-letter {
    display: inline-block;
    transition:
      transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
      color 0.22s ease,
      text-shadow 0.22s ease;
    transform-origin: center bottom;
  }

  .hover-letter--space {
    width: 0.28em;
  }

  .landing-wordmark .hover-letter:hover {
    transform: translateY(-0.14em) scale(1.12) rotate(-3deg);
    color: #93c5fd;
    text-shadow: 0 0 24px rgba(96, 165, 250, 0.45);
  }

  .landing-features-heading .hover-letter:hover {
    transform: translateY(-0.1em) scale(1.1);
    color: #93c5fd;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.35);
  }

  .hover-letter-wrap:hover .hover-letter:not(:hover) {
    transform: translateY(-0.02em);
    color: #e4e4e7;
  }

  .landing-wordmark .hover-letter-wrap:hover .hover-letter:not(:hover) {
    color: #f4f4f5;
  }
}

.landing-hero--scroll .landing-lead,
.landing-hero--scroll .landing-actions,
.landing-hero--scroll .landing-tags {
  will-change: transform, opacity;
}

.landing-brand {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-accent {
  color: var(--accent);
}

.landing-btn-label-mobile {
  display: none;
}

.landing-btn-chevron {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.7;
}

.landing-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d4d4d8;
}

.landing-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.landing-lead {
  color: #71717a;
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0 0 2rem;
  max-width: none;
  white-space: nowrap;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.landing-btn:hover {
  transform: translateY(-1px);
}

.landing-btn-primary {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #fff;
}

.landing-btn-primary:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.35);
  color: #fff;
}

.landing-btn-icon {
  font-size: 0.85rem;
  opacity: 0.85;
}

.landing-tags {
  position: relative;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

.landing-tags::before {
  content: "";
  position: absolute;
  inset: -8% -10% -8% -18%;
  background: radial-gradient(
    ellipse 70% 62% at 52% 50%,
    rgba(59, 130, 246, 0.14),
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.landing-tags-carousel {
  position: relative;
  z-index: 1;
  width: 112%;
  max-width: none;
  height: 390px;
  overflow: hidden;
  mask-image: radial-gradient(
    ellipse 98% 92% at 46% 50%,
    #000 42%,
    rgba(0, 0, 0, 0.65) 68%,
    transparent 100%
  );
}

.landing-tags-stage {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1500px;
  perspective-origin: 46% 48%;
  transform-style: preserve-3d;
}

.landing-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 999px;
  color: #f4f4f5;
  font-size: 1.28rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  box-shadow: 0 10px 32px rgba(59, 130, 246, 0.1);
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transition:
    transform 0.85s cubic-bezier(0.4, 0.12, 0.2, 1),
    opacity 0.85s cubic-bezier(0.4, 0.12, 0.2, 1),
    filter 0.85s cubic-bezier(0.4, 0.12, 0.2, 1);
  will-change: transform, opacity;
}

.landing-tag[data-slot="0"] {
  transform: translate(-50%, -50%) translate3d(8px, 0, 175px) rotateY(-8deg) scale(1.14);
  opacity: 1;
  filter: blur(0);
  z-index: 3;
  border-color: rgba(96, 165, 250, 0.32);
  box-shadow: 0 20px 48px rgba(59, 130, 246, 0.24);
}

.landing-tag[data-slot="1"] {
  transform: translate(-50%, -50%) translate3d(42px, 118px, -35px) rotateX(38deg) rotateY(-14deg) scale(0.94);
  opacity: 0.62;
  filter: blur(0.4px);
  z-index: 2;
}

.landing-tag[data-slot="2"] {
  transform: translate(-50%, -50%) translate3d(-20px, -124px, -80px) rotateX(-42deg) rotateY(10deg) scale(0.86);
  opacity: 0.22;
  filter: blur(1.2px);
  z-index: 1;
}

.landing-tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: var(--accent-bright);
  flex-shrink: 0;
}

.landing-tag[data-slot="0"] .landing-tag-icon {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(147, 197, 253, 0.35);
}

.landing-tag-icon svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 901px) {
  .landing-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.75rem);
    min-height: auto;
    padding: 0.5rem 0 0.25rem;
  }

  .landing-hero-copy {
    flex: 0 1 auto;
    max-width: 600px;
    padding-right: 0;
  }

  .landing-h1 {
    margin-bottom: 1.35rem;
  }

  .landing-wordmark {
    font-size: clamp(5rem, 7.2vw, 7.25rem);
    letter-spacing: -0.07em;
  }

  .landing-lead {
    font-size: 1.1rem;
    margin-bottom: 2.1rem;
  }

  .landing-actions {
    gap: 0.85rem;
  }

  .landing-btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.98rem;
  }

  .landing-btn-icon {
    font-size: 0.92rem;
  }

  .landing-tags {
    flex: 0 0 auto;
    width: clamp(290px, 34vw, 390px);
    margin-left: 0;
    justify-content: center;
  }

  .landing-tags-carousel {
    width: 100%;
    height: clamp(300px, 36vh, 380px);
    margin-inline: auto;
  }

  .landing-stats {
    padding: 0.65rem 0 0.75rem;
  }

  .guild-carousel-wrap {
    padding-bottom: 0.35rem;
  }

  .landing-features {
    padding-top: 0.5rem;
  }

  .landing-features-heading {
    padding-bottom: 0.85rem;
  }

  .landing-features-divider {
    margin-bottom: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-tag {
    transition: none;
  }

  .landing-tag[data-slot="1"],
  .landing-tag[data-slot="2"] {
    opacity: 0;
    pointer-events: none;
  }
}

.landing-stats {
  text-align: center;
  padding: 0.75rem 0 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-stats p {
  color: #71717a;
  font-size: 0.95rem;
  margin: 0;
}

.landing-stats strong {
  color: #e4e4e7;
  font-weight: 600;
}

.landing-communities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-bottom: 2rem;
}

.guild-carousel-wrap {
  overflow: hidden;
  padding: 0 0 0.5rem;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.guild-carousel {
  overflow: hidden;
  width: 100%;
}

.guild-carousel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: guild-scroll var(--carousel-duration, 40s) linear infinite;
  will-change: transform;
}

.guild-carousel-set {
  display: flex;
  gap: 1rem;
  flex: 0 0 auto;
}

.guild-carousel-track:hover {
  animation-play-state: paused;
}

.guild-carousel-card {
  flex: 0 0 auto;
  min-width: 220px;
  max-width: 240px;
}

.guild-carousel-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.guild-carousel-empty {
  color: #71717a;
  font-size: 0.9rem;
  padding: 1rem 0;
}

.landing-community-avatar img,
.landing-community-avatar .guild-carousel-icon {
  width: 40px;
  height: 40px;
}

@keyframes guild-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-1 * var(--carousel-shift, 0px)), 0, 0);
  }
}

/* ── Landing features (floating cards) ── */

.landing-features {
  padding: 0.75rem 1rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.landing-features-heading {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 0 0.5rem 1.25rem;
  text-align: center;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  color: #fafafa;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-features-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0 0 1.5rem;
}

.landing-features.is-inview .landing-features-heading {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.landing-features-stage {
  position: relative;
  min-height: 320px;
  margin: 0 auto;
}

@media (min-width: 961px) {
  .landing-features-stage {
    min-height: 300px;
  }
}

.feature-card {
  position: absolute;
  width: min(100%, 300px);
  opacity: 0;
  left: 50%;
  top: 50%;
  will-change: transform, opacity;
  transition: none;
}

.landing-features.is-inview .feature-card {
  opacity: 1;
}

@media (min-width: 961px) {
  .landing-features-heading-line {
    display: inline;
  }

  .landing-features-heading-line + .landing-features-heading-line::before {
    content: " ";
  }

  .landing-features.is-inview .feature-card {
    opacity: 0;
  }
}

.feature-card--automod {
  transition-delay: 0.05s;
}

.feature-card--voicemaster {
  transition-delay: 0.12s;
}

.feature-card--embed {
  transition-delay: 0.18s;
}

.feature-card--themes {
  transition-delay: 0.24s;
}

.feature-card-inner {
  background: rgba(18, 19, 22, 0.48);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  will-change: transform;
}

.feature-card-preview {
  min-height: 148px;
  padding: 0.85rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.008) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-preview--themes {
  min-height: 168px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .feature-card-inner {
    background: #121316;
  }

  .feature-card-body {
    background: transparent;
  }
}

.feature-card-body {
  padding: 0.85rem 1rem 1rem;
  background: rgba(18, 19, 22, 0.12);
}

.feature-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.45rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: var(--accent-bright);
}

.feature-card-icon svg {
  width: 15px;
  height: 15px;
}

.feature-card-body h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fafafa;
}

.feature-card-body p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #71717a;
}

.feature-mock-chat {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.feature-mock-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.feature-mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-mock-avatar--mod {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

.feature-mock-avatar--bot {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
}

.feature-mock-bubble {
  font-size: 0.72rem;
  line-height: 1.4;
  color: #a1a1aa;
}

.feature-mock-bubble strong {
  color: #e4e4e7;
  font-weight: 600;
}

.feature-mock-bubble p {
  margin: 0.15rem 0 0;
  color: #d4d4d8;
}

.feature-mock-app {
  font-size: 0.58rem;
  padding: 0.1rem 0.28rem;
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.25);
  color: #c7d2fe;
  vertical-align: middle;
}

.feature-mock-voice {
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.65rem;
}

.feature-mock-voice-head {
  font-size: 0.72rem;
  font-weight: 600;
  color: #e4e4e7;
  margin-bottom: 0.45rem;
}

.feature-mock-voice-user {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: #a1a1aa;
  margin-bottom: 0.65rem;
}

.feature-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.feature-mock-voice-controls {
  display: flex;
  gap: 0.35rem;
}

.feature-mock-voice-controls span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-mock-embed {
  display: grid;
  grid-template-columns: 4px 1fr;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.feature-mock-embed-bar {
  background: #5865f2;
}

.feature-mock-embed-body {
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feature-mock-embed-body strong {
  font-size: 0.75rem;
  color: #fafafa;
}

.feature-mock-embed-body span {
  font-size: 0.68rem;
  color: #a1a1aa;
  line-height: 1.35;
}

.feature-mock-themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  padding: 0.35rem;
}

.feature-mock-themes span {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--swatch, #5865f2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  opacity: 0.55;
}

.feature-theme-swatch.is-active {
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.45), 0 10px 24px rgba(0, 0, 0, 0.4);
}

.feature-mock-theme-cmd {
  margin: 0.65rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  color: #a1a1aa;
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 1.65rem;
}

.feature-typed {
  color: #d4d4d8;
}

.feature-mock-bubble .feature-typed {
  color: #a1a1aa;
}

.feature-type-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: #60a5fa;
  opacity: 0;
}

.feature-type-cursor.is-active {
  opacity: 1;
  animation: feature-cursor-blink 0.85s step-end infinite;
}

@keyframes feature-cursor-blink {
  50% {
    opacity: 0;
  }
}

.is-typing-hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, max-height 0.35s ease;
}

.feature-mock-row.is-typing-hidden,
.feature-mock-voice-user.is-typing-hidden,
.feature-mock-voice-controls.is-typing-hidden {
  max-height: 0;
  margin: 0;
  padding: 0;
}

.feature-mock-row:not(.is-typing-hidden),
.feature-mock-voice-user:not(.is-typing-hidden),
.feature-mock-voice-controls:not(.is-typing-hidden),
.feature-typed--desc:not(.is-typing-hidden),
.feature-type-cursor--desc:not(.is-typing-hidden) {
  opacity: 1;
  max-height: 120px;
}

.feature-mock-voice-controls:not(.is-typing-hidden) {
  max-height: 40px;
}

.feature-typed--desc.is-typing-hidden,
.feature-type-cursor--desc.is-typing-hidden {
  display: none;
}

.feature-typed--desc:not(.is-typing-hidden),
.feature-type-cursor--desc:not(.is-typing-hidden) {
  display: inline;
}

@media (max-width: 960px) {
  .guild-carousel-wrap {
    padding-bottom: 0;
  }

  .landing-features {
    padding: 1rem 1.25rem 1.75rem;
  }

  .landing-features-heading {
    margin-bottom: 0;
    padding: 0 0.5rem 1.1rem;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.05rem, 8.4vw, 2.65rem);
    line-height: 0.96;
    letter-spacing: -0.075em;
    color: #ffffff;
  }

  .landing-features-heading-line {
    display: block;
  }

  .landing-features-divider {
    margin-bottom: 1.1rem;
  }

  .landing-features-stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 0;
  }

  .feature-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 340px;
    margin: 0 auto;
    transform: none !important;
    pointer-events: auto !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .landing-features:not(.is-inview) .feature-card {
    opacity: 0;
    transform: translate3d(0, 20px, 0) !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .landing-features.is-inview .feature-card {
    opacity: 1;
    transform: translate3d(0, 0, 0) !important;
  }

  .feature-card-inner {
    transform: none !important;
  }
}

@media (max-width: 560px) {
  .landing-features {
    padding: 1.5rem 1rem 1.5rem;
  }

  .landing-features-heading {
    max-width: 18.5rem;
    padding-bottom: 1.5rem;
    font-size: clamp(1.95rem, 8vw, 2.35rem);
    line-height: 0.94;
    letter-spacing: -0.08em;
  }

  .landing-features-divider {
    margin-bottom: 0.9rem;
  }

  .landing-features-stage {
    gap: 1rem;
    max-width: 100%;
  }

  .feature-card {
    max-width: 100%;
  }

  .feature-card--automod {
    transition-delay: 0.05s;
  }

  .feature-card--voicemaster {
    transition-delay: 0.1s;
  }

  .feature-card--embed {
    transition-delay: 0.15s;
  }

  .feature-card--themes {
    transition-delay: 0.2s;
  }
}

.landing-community {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.landing-community:not(.landing-community-static):hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.landing-community-static {
  cursor: default;
}

.landing-community-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.landing-community-avatar-purple {
  background: linear-gradient(135deg, #818cf8, #6366f1);
}

.landing-community-avatar-blue {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.landing-community-avatar-pink {
  background: linear-gradient(135deg, #7dd3fc, #6366f1);
}

.landing-community-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.landing-community-name {
  color: #fafafa;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-community-meta {
  color: #52525b;
  font-size: 0.78rem;
}

body.landing .site-footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  body.landing .stars {
    background:
      radial-gradient(ellipse 90% 55% at 50% 32%, rgba(37, 99, 235, 0.32), transparent 60%),
      radial-gradient(ellipse 60% 40% at 50% 85%, rgba(49, 46, 129, 0.12), transparent 50%),
      #030508;
  }

  .landing-nav {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    padding: 1.15rem 1.35rem 0.85rem;
  }

  .landing-nav-pill {
    display: none;
  }

  .landing-nav-cta {
    display: none;
  }

  .landing-logo {
    flex-shrink: 0;
  }

  .brand-logo--nav {
    width: 32px;
    height: 32px;
  }

  .landing-nav-end {
    margin-left: auto;
  }

  .landing-nav-menu {
    display: block;
  }

  .landing-nav-menu-btn {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    padding: 0.25rem;
    color: #fafafa;
  }

  .landing-nav-menu[open] .landing-nav-menu-btn {
    background: transparent;
    border: none;
  }

  .landing-nav-menu-btn svg {
    width: 24px;
    height: 24px;
  }

  .landing-main {
    padding: 0 1.35rem 2rem;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0.5rem 0 0;
    gap: 0;
  }

  .landing-hero-copy {
    max-width: 22rem;
    text-align: center;
    margin: 0 auto;
  }

  .landing-h1 {
    margin-bottom: 1.35rem;
  }

  .landing-wordmark {
    font-size: clamp(3.5rem, 16vw, 4.75rem);
    letter-spacing: -0.07em;
    transform-origin: center center;
  }

  .landing-lead {
    font-size: clamp(0.78rem, 3.4vw, 0.9rem);
    line-height: 1.4;
    max-width: none;
    color: #94949c;
    margin: 0 auto 1.85rem;
    padding: 0;
    white-space: nowrap;
  }

  .landing-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.6rem;
    max-width: 21.5rem;
    margin: 0 auto;
  }

  .landing-btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.72rem 0.75rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .landing-btn-icon {
    font-size: 0.72rem;
  }

  .landing-btn-label-desktop {
    display: none;
  }

  .landing-btn-label-mobile {
    display: inline;
  }

  .landing-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .landing-tags {
    display: none;
  }

  .landing-stats {
    border-top: none;
    padding: 0.85rem 0 1rem;
    margin-top: 0;
  }

  .landing-stats p {
    font-size: 0.84rem;
    line-height: 1.55;
    padding: 0;
    color: #71717a;
  }

  .landing-stats strong {
    color: #f4f4f5;
    font-weight: 600;
  }

  .guild-carousel-wrap {
    margin: 0 -0.5rem;
    padding: 0;
  }

  .guild-carousel-card {
    min-width: 200px;
    max-width: 220px;
  }

  .landing-communities {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .landing-nav {
    padding: 1rem 1.15rem 0.75rem;
  }

  .landing-main {
    padding: 0 1.15rem 1.75rem;
  }

  .landing-hero-copy {
    max-width: 100%;
  }

  .landing-wordmark {
    font-size: clamp(3.15rem, 18vw, 4.25rem);
  }

  .landing-lead {
    font-size: clamp(0.76rem, 3.6vw, 0.875rem);
  }

  .landing-actions {
    max-width: 100%;
    gap: 0.5rem;
  }

  .landing-btn {
    font-size: 0.78rem;
    padding: 0.68rem 0.65rem;
  }

  .landing-communities {
    grid-template-columns: 1fr;
  }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
}

.home-main {
  max-width: 960px;
  flex: 1;
  padding: 3rem 1.5rem 5rem;
}

.home-header {
  margin-bottom: 4rem;
}

.home-hero {
  max-width: 520px;
}

.home-hero h1 {
  font-size: 3rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.home-subtitle {
  color: #71717a;
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
}

.home-desc {
  color: #a1a1aa;
  font-size: 1.05rem;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.home-cta {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: #fff;
  color: #09090b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: opacity 0.15s;
}

.home-cta:hover {
  opacity: 0.9;
  color: #09090b;
}

/* ── Legal pages (Terms, Privacy) ── */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  width: 100%;
  flex: 1;
}

.legal-document {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.04),
    0 24px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.legal-doc-header {
  text-align: center;
  padding: 2.75rem 2.5rem 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(
    180deg,
    rgba(59, 130, 246, 0.07) 0%,
    transparent 100%
  );
}

.legal-doc-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fafafa;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.legal-doc-header .effective {
  display: inline-block;
  margin: 0;
  padding: 0.4rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.legal-body {
  padding: 2rem 2.5rem 2.75rem;
}

.legal-body h2 {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #f4f4f5;
  margin: 2.75rem 0 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.35;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  margin: 0 0 1.05rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #b4b4bc;
}

.legal-body p:last-child {
  margin-bottom: 0;
}

.legal-kicker {
  margin: 1.35rem 0 0.65rem !important;
  font-size: 0.8125rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-bright) !important;
  line-height: 1.4 !important;
}

.legal-kicker strong {
  color: inherit;
  font-weight: inherit;
}

.legal-callout {
  margin: 0 0 1.1rem !important;
  padding: 0.85rem 1rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 10px;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  color: #d4d4d8 !important;
}

.legal-callout strong {
  color: #e4e4e7;
  font-weight: 600;
}

.legal-body ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.legal-body ul:last-child {
  margin-bottom: 0;
}

.legal-body li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #b4b4bc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.legal-body li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
  transform: translateY(-50%);
}

.legal-body li strong {
  color: #e4e4e7;
  font-weight: 600;
}

.legal-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(96, 165, 250, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

.legal-body a:hover {
  color: var(--accent-bright);
  border-bottom-color: rgba(147, 197, 253, 0.55);
}

.legal-body strong {
  color: #ececef;
  font-weight: 600;
}

.legal-nav-pill a.active {
  color: #fff;
  background: rgba(96, 165, 250, 0.14);
}

.legal-home-link {
  font-size: 0.88rem;
}

body.legal-page .site-footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  body.legal-page .landing-nav-pill {
    display: flex;
  }

  body.legal-page .landing-nav-menu {
    display: none;
  }

  body.legal-page .landing-nav-cta.legal-home-link {
    display: inline-flex;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  body.legal-page .landing-nav {
    gap: 0.5rem;
  }

  body.legal-page .legal-nav-pill {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .legal-nav-pill {
    padding: 0.3rem 0.4rem;
  }

  .legal-nav-pill a {
    font-size: 0.78rem;
    padding: 0.4rem 0.65rem;
  }

  .legal-main {
    padding: 0.5rem 1rem 2.5rem;
  }

  .legal-document {
    border-radius: 16px;
  }

  .legal-doc-header {
    padding: 2rem 1.35rem 1.75rem;
  }

  .legal-body {
    padding: 1.5rem 1.35rem 2rem;
  }

  .legal-body h2 {
    font-size: 1rem;
    margin-top: 2.25rem;
  }
}

@media (max-width: 520px) {
  .legal-doc-header h1 {
    font-size: 1.55rem;
  }

  .legal-body p,
  .legal-body li {
    font-size: 0.9rem;
  }
}

/* ── Footer ── */

.site-footer {
  background: #0c0c0e;
  border-top: 1px solid #1c1c1f;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.75rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.footer-logo .brand-logo--footer {
  flex-shrink: 0;
}

.footer-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 999px;
  color: #a1a1aa;
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.status-pill:hover {
  border-color: #3f3f46;
  color: #e4e4e7;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transition: background 0.2s, box-shadow 0.2s;
}

.status-dot--online {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.status-dot--offline {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.55);
}

.status-pill--online {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.35);
}

.status-pill--offline {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.footer-tagline {
  color: #71717a;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #a1a1aa;
  font-size: 0.82rem;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.lang-flag svg {
  width: 18px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: #71717a;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-divider {
  height: 1px;
  background: #1c1c1f;
  margin: 2rem 0 1.25rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  color: #52525b;
  font-size: 0.78rem;
  margin: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #71717a;
  transition: color 0.15s;
}

.footer-social a:hover {
  color: #fff;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #18181b;
  border: 1px solid #27272a;
  color: #a1a1aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  z-index: 50;
}

.back-to-top:hover {
  background: #27272a;
  color: #fff;
  border-color: #3f3f46;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    gap: 2.5rem;
  }

  .home-hero h1 {
    font-size: 2.25rem;
  }
}

/* ── Status / Shards page ── */

.status-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  width: 100%;
  flex: 1;
}

.status-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.status-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-title h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fafafa;
}

.status-search {
  display: flex;
  align-items: stretch;
  min-width: min(100%, 320px);
  flex: 1;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.status-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fafafa;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

.status-search input::placeholder {
  color: #71717a;
}

.status-search input:focus {
  outline: none;
}

.status-search button {
  width: 48px;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #a1a1aa;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.status-search button:hover {
  color: #fff;
  background: rgba(96, 165, 250, 0.1);
}

.status-search button svg {
  width: 18px;
  height: 18px;
}

.status-search-msg {
  margin: -0.75rem 0 1.25rem;
  font-size: 0.875rem;
  color: var(--accent-bright);
}

.status-search-msg--error {
  color: #fca5a5;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.status-loading,
.status-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #71717a;
  font-size: 0.95rem;
}

.shard-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.shard-card--highlight {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15), 0 12px 32px rgba(59, 130, 246, 0.12);
}

.shard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.shard-card-title h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fafafa;
}

.shard-updated {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #71717a;
}

.shard-updated-icon svg {
  width: 14px;
  height: 14px;
}

.shard-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

.shard-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.shard-status--online {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

.shard-status--online .shard-status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
}

.shard-status--offline {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

.shard-status--offline .shard-status-dot {
  background: #ef4444;
}

.shard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.shard-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  min-height: 68px;
}

.shard-stat-icon {
  color: #71717a;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.shard-stat-icon svg {
  width: 16px;
  height: 16px;
}

.shard-stat-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.shard-stat-label {
  font-size: 0.72rem;
  color: #71717a;
}

.shard-stat-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f4f4f5;
  line-height: 1.2;
}

body.status-page .site-footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

@media (max-width: 1024px) {
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.status-page .landing-nav-pill {
    display: none;
  }

  body.status-page .landing-nav-menu {
    display: block;
  }

  .status-main {
    padding: 0.75rem 1.15rem 3rem;
  }

  .status-toolbar {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1.25rem;
  }

  .status-search {
    max-width: none;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Commands page ── */

.commands-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  width: 100%;
  flex: 1;
}

.commands-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.commands-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.commands-title h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fafafa;
}

.commands-search {
  display: flex;
  align-items: stretch;
  min-width: min(100%, 320px);
  flex: 1;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.commands-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fafafa;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

.commands-search input::placeholder {
  color: #71717a;
}

.commands-search input:focus {
  outline: none;
}

.commands-search button {
  width: 48px;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #a1a1aa;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.commands-search button:hover {
  color: #fff;
  background: rgba(96, 165, 250, 0.1);
}

.commands-search button svg {
  width: 18px;
  height: 18px;
}

.commands-categories {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.commands-categories::-webkit-scrollbar {
  display: none;
}

.commands-category {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #a1a1aa;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.commands-category:hover {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.04);
}

.commands-category.is-active {
  color: #fafafa;
  background: rgba(59, 130, 246, 0.16);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}

.commands-category-icon {
  display: inline-flex;
  color: #71717a;
}

.commands-category.is-active .commands-category-icon {
  color: var(--accent-bright);
}

.commands-category-icon svg {
  width: 15px;
  height: 15px;
}

.commands-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #71717a;
  font-size: 0.72rem;
  font-weight: 600;
}

.commands-category.is-active .commands-category-count {
  background: rgba(59, 130, 246, 0.22);
  color: var(--accent-bright);
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.commands-loading,
.commands-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #71717a;
  font-size: 0.95rem;
}

.cmd-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1rem 1.05rem 1.05rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cmd-card:hover {
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
}

.cmd-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.cmd-card-title-wrap {
  min-width: 0;
}

.cmd-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fafafa;
  word-break: break-word;
}

.cmd-card-alias {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: #71717a;
}

.cmd-copy {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #71717a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.cmd-copy:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(59, 130, 246, 0.12);
}

.cmd-copy.is-copied {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.1);
}

.cmd-copy svg {
  width: 16px;
  height: 16px;
}

.cmd-card-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #a1a1aa;
}

.cmd-card-meta {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}

.cmd-card-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cmd-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--accent-bright);
}

.cmd-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cmd-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #d4d4d8;
  font-size: 0.76rem;
  line-height: 1.2;
}

.cmd-pill--none {
  color: #71717a;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.05);
}

body.commands-page .site-footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

@media (max-width: 1024px) {
  .commands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.commands-page .landing-nav-pill {
    display: none;
  }

  body.commands-page .landing-nav-menu {
    display: block;
  }

  .commands-main {
    padding: 0.75rem 1.15rem 3rem;
  }

  .commands-toolbar {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1.1rem;
  }

  .commands-search {
    max-width: none;
  }

  .commands-categories {
    margin-bottom: 1.1rem;
  }
}

@media (max-width: 640px) {
  .commands-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Docs page ── */

body.docs-page {
  background: #030508;
  color: #e4e4e7;
  overflow-x: hidden;
}

.docs-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--ambient-blue), transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, var(--ambient-indigo), transparent 50%);
}

.docs-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(3, 5, 8, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.docs-header-start,
.docs-header-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.docs-header-end {
  justify-content: flex-end;
}

.docs-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #d4d4d8;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.docs-menu-btn svg {
  width: 18px;
  height: 18px;
}

.docs-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fafafa;
  font-weight: 700;
  font-size: 0.95rem;
}

.docs-logo .brand-logo {
  flex-shrink: 0;
}

.docs-search-wrap {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.docs-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: min(100%, 420px);
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.docs-search svg {
  width: 16px;
  height: 16px;
  color: #71717a;
  flex-shrink: 0;
}

.docs-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fafafa;
  font: inherit;
  font-size: 0.88rem;
}

.docs-search input:focus {
  outline: none;
}

.docs-search input::placeholder {
  color: #71717a;
}

.docs-search-kbd {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #71717a;
  font-size: 0.68rem;
  font-family: inherit;
}

.docs-search-results {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1117;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.docs-search-result {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.docs-search-result:hover {
  background: rgba(59, 130, 246, 0.12);
}

.docs-search-result-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fafafa;
}

.docs-search-result-section {
  font-size: 0.72rem;
  color: #71717a;
}

.docs-search-empty {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.84rem;
  color: #71717a;
}

.docs-header-link {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.84rem;
  white-space: nowrap;
  transition: color 0.15s;
}

.docs-header-link:hover {
  color: #fff;
}

.docs-header-home {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  text-decoration: none;
  font-size: 0.84rem;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.docs-header-home:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.25);
}

.docs-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 0;
  flex: 1;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.docs-sidebar-inner {
  padding: 1.25rem 0.85rem 2rem;
}

.docs-nav-group + .docs-nav-group {
  margin-top: 1.35rem;
}

.docs-nav-heading {
  margin: 0 0 0.55rem;
  padding: 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: #a1a1aa;
  font-size: 0.86rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.15s, background 0.15s;
}

.docs-nav-link:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.04);
}

.docs-nav-link.is-active {
  color: #fafafa;
  background: rgba(59, 130, 246, 0.16);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.docs-nav-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #71717a;
  flex-shrink: 0;
}

.docs-nav-link.is-active .docs-nav-icon {
  color: var(--accent-bright);
}

.docs-nav-icon svg {
  width: 16px;
  height: 16px;
}

.docs-nav-external {
  width: 13px;
  height: 13px;
  margin-left: auto;
  opacity: 0.45;
}

.docs-main {
  min-width: 0;
  padding: 1.5rem 2.5rem 3rem;
}

.docs-mobile-toc {
  display: none;
  margin-bottom: 1rem;
}

.docs-mobile-toc-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.docs-mobile-toc-panel summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fafafa;
  list-style: none;
}

.docs-mobile-toc-panel summary::-webkit-details-marker {
  display: none;
}

.docs-mobile-toc-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.75rem 0.85rem;
}

.docs-breadcrumb {
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.docs-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fafafa;
}

.docs-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #a1a1aa;
  max-width: 42rem;
}

.docs-article h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fafafa;
  scroll-margin-top: 88px;
}

.docs-article h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f4f4f5;
  scroll-margin-top: 88px;
}

.docs-article p,
.docs-article li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #b4b4bc;
}

.docs-article ul,
.docs-article ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.docs-article li {
  margin-bottom: 0.35rem;
}

.docs-article a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(96, 165, 250, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

.docs-article a:hover {
  color: var(--accent-bright);
  border-bottom-color: rgba(147, 197, 253, 0.55);
}

.docs-article code {
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e4e4e7;
  font-size: 0.86em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.docs-article pre {
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
}

.docs-article pre code {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  color: #dbeafe;
}

.docs-cmd-block {
  margin: 0 0 1.15rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.docs-cmd-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.docs-cmd-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-cmd-tab {
  border: none;
  background: transparent;
  color: #71717a;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.docs-cmd-tab:hover {
  color: #d4d4d8;
}

.docs-cmd-tab.is-active {
  color: #fafafa;
  background: rgba(59, 130, 246, 0.18);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.docs-cmd-copy {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #71717a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.docs-cmd-copy:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(59, 130, 246, 0.12);
}

.docs-cmd-copy.is-copied {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.1);
}

.docs-cmd-copy svg {
  width: 15px;
  height: 15px;
}

.docs-cmd-pre {
  margin: 0;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
}

.docs-cmd-pre code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

.docs-callout {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.docs-callout p {
  margin: 0;
}

.docs-callout--info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(96, 165, 250, 0.18);
}

.docs-callout--tip {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(74, 222, 128, 0.18);
}

.docs-callout-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 700;
}

.docs-callout-icon svg {
  width: 14px;
  height: 14px;
}

.docs-callout--tip .docs-callout-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.docs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.docs-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  border-bottom: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.docs-card:hover {
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.docs-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: var(--accent-bright);
}

.docs-card-icon svg {
  width: 18px;
  height: 18px;
}

.docs-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fafafa;
}

.docs-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #a1a1aa;
}

.docs-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-bottom: none;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.docs-article a.docs-btn,
.docs-article a.docs-btn:hover {
  color: #fff;
  border-bottom: none;
}

.docs-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.32);
}

.docs-toc {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-toc-inner {
  padding: 1.5rem 1rem 2rem 1.25rem;
}

.docs-toc-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #71717a;
}

.docs-toc-link {
  display: block;
  padding: 0.35rem 0;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #71717a;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  margin-left: -0.65rem;
  transition: color 0.15s, border-color 0.15s;
}

.docs-toc-link--h3 {
  padding-left: 1.15rem;
  font-size: 0.78rem;
}

.docs-toc-link:hover,
.docs-toc-link.is-active {
  color: var(--accent-bright);
  border-left-color: var(--accent);
}

.docs-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-page-footer p {
  margin: 0;
  font-size: 0.78rem;
  color: #52525b;
}

.docs-page-footer-links a {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #71717a;
  transition: color 0.15s;
}

.docs-page-footer-links a:hover {
  color: #fff;
}

.docs-page-footer-links svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .docs-toc {
    display: none;
  }

  .docs-mobile-toc {
    display: block;
  }
}

@media (max-width: 1024px) {
  .docs-header {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "start end"
      "search search";
    padding: 0.65rem 1rem;
  }

  .docs-header-start {
    grid-area: start;
  }

  .docs-header-end {
    grid-area: end;
  }

  .docs-search-wrap {
    grid-area: search;
    justify-content: stretch;
  }

  .docs-search {
    width: 100%;
  }

  .docs-search-kbd {
    display: none;
  }

  .docs-menu-btn {
    display: inline-flex;
  }

  .docs-header-link {
    display: none;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: min(88vw, 300px);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    background: #0a0c10;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.35);
  }

  body.docs-nav-open .docs-sidebar {
    transform: translateX(0);
  }

  .docs-sidebar-inner {
    padding-top: 5rem;
  }

  .docs-main {
    padding: 1rem 1rem 2.5rem;
  }
}

@media (max-width: 640px) {
  .docs-cmd-toolbar {
    flex-wrap: wrap;
  }

  .docs-cmd-tabs {
    flex: 1;
    min-width: 0;
  }

  .docs-cards {
    grid-template-columns: 1fr;
  }

  .docs-header-home {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }

  .docs-hero h1 {
    font-size: 1.85rem;
  }

  .docs-lead {
    font-size: 0.95rem;
  }
}

/* ── VoiceMaster interface preview (docs) ── */

.docs-vm-preview {
  margin: 1rem 0 1.75rem;
  max-width: 100%;
  width: 100%;
}

.docs-vm-shell {
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.docs-vm-message {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docs-vm-embed {
  width: 100%;
}

.docs-vm-embed-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem 0.5rem 0.55rem;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
}

.docs-vm-embed-main {
  min-width: 0;
}

.docs-vm-embed-title {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  color: #f2f3f5;
}

.docs-vm-embed-desc {
  color: #c4c9ce;
  font-size: 0.74rem;
  line-height: 1.35;
}

.docs-vm-section-label {
  margin: 0 0 0.12rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #f2f3f5;
}

.docs-vm-section-label--booster {
  margin-top: 0.35rem;
}

.docs-vm-feature-line {
  display: flex;
  align-items: flex-start;
  gap: 0.28rem;
  margin: 0;
  line-height: 1.35;
}

.docs-vm-feature-line strong {
  font-weight: 600;
  color: #f2f3f5;
}

.docs-vm-emoji {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 0.08rem;
  object-fit: contain;
}

.docs-vm-embed-thumb {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  align-self: start;
}

.docs-vm-components {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.docs-vm-button-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}

.docs-vm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: rgba(78, 80, 88, 0.85);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.15s ease;
}

.docs-vm-btn .docs-vm-emoji {
  width: 16px;
  height: 16px;
  margin-top: 0;
}

.docs-vm-btn--primary {
  background: rgba(88, 101, 242, 0.92);
}

.docs-vm-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.35),
    0 0 14px rgba(59, 130, 246, 0.35);
}

.docs-vm-btn--primary:hover {
  background: rgba(71, 82, 196, 0.95);
  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.4),
    0 0 16px rgba(88, 101, 242, 0.45);
}

.docs-vm-btn.is-pressed {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.55),
    0 0 18px rgba(96, 165, 250, 0.5),
    0 0 32px rgba(59, 130, 246, 0.25);
}

.docs-vm-btn--primary.is-pressed {
  background: rgba(71, 82, 196, 0.95);
  box-shadow:
    0 0 0 1px rgba(191, 219, 254, 0.65),
    0 0 22px rgba(88, 101, 242, 0.65),
    0 0 36px rgba(59, 130, 246, 0.3);
}

.docs-vm-btn:focus {
  outline: none;
}

.docs-vm-btn:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.65);
  outline-offset: 2px;
}

@media (min-width: 641px) {
  .docs-vm-preview {
    max-width: 520px;
  }

  .docs-vm-shell {
    padding: 1rem 1.05rem;
  }

  .docs-vm-embed-inner {
    gap: 0.75rem;
    padding: 0.5rem 0.15rem 0.55rem 0.1rem;
  }

  .docs-vm-embed-title {
    font-size: 0.92rem;
  }

  .docs-vm-embed-desc,
  .docs-vm-section-label {
    font-size: 0.78rem;
  }

  .docs-vm-embed-thumb {
    width: 64px;
    height: 64px;
  }

  .docs-vm-btn {
    height: 34px;
  }

  .docs-vm-button-row {
    gap: 0.4rem;
  }
}

@media (max-width: 640px) {
  .docs-vm-preview {
    max-width: 100%;
  }

  .docs-vm-shell {
    padding: 0.75rem;
  }

  .docs-vm-embed-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-vm-embed-thumb {
    display: none;
  }

  .docs-vm-button-row {
    gap: 0.3rem;
  }

  .docs-vm-btn {
    height: 30px;
  }
}

/* ── Embed builder page ── */

.embed-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 4rem;
  width: 100%;
  flex: 1;
}

.embed-hero {
  margin-bottom: 1.5rem;
}

.embed-hero-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.embed-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fafafa;
}

.embed-hero p {
  margin: 0.2rem 0 0;
  color: #a1a1aa;
  font-size: 0.95rem;
}

.embed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.75rem;
}

.embed-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
}

.embed-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.embed-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fafafa;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.embed-panel-head h2 svg {
  width: 18px;
  height: 18px;
  color: var(--accent-bright);
}

.embed-panel-sub {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #71717a;
}

.embed-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.embed-icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.embed-icon-btn svg {
  width: 16px;
  height: 16px;
}

.embed-icon-btn:hover,
.embed-icon-btn.is-copied {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(96, 165, 250, 0.28);
  color: #fff;
}

.embed-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.embed-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #a1a1aa;
}

.embed-counter {
  font-size: 0.75rem;
  color: #71717a;
}

.embed-field input[type="text"],
.embed-field input[type="url"],
.embed-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: #fafafa;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  resize: vertical;
}

.embed-field input:focus,
.embed-field textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.embed-field input::placeholder,
.embed-field textarea::placeholder {
  color: #52525b;
}

.embed-field--message textarea {
  min-height: 72px;
}

.embed-color-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.embed-color-row input[type="text"] {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: #fafafa;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
}

.embed-color-row input[type="color"] {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: transparent;
  padding: 2px;
  cursor: pointer;
}

.embed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.embed-tab {
  border: none;
  background: transparent;
  color: #a1a1aa;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.embed-tab:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.04);
}

.embed-tab.is-active {
  color: #fff;
  background: rgba(59, 130, 246, 0.18);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}

.embed-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #d4d4d8;
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: 0.25rem;
}

.embed-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.embed-check--inline {
  margin-top: 0.35rem;
}

.embed-fields-empty {
  margin: 0 0 0.75rem;
  color: #71717a;
  font-size: 0.85rem;
}

.embed-field-row {
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.embed-field-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.embed-field-row-head strong {
  font-size: 0.82rem;
  color: #d4d4d8;
}

.embed-field-remove {
  border: none;
  background: transparent;
  color: #71717a;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.embed-field-remove:hover {
  color: #f87171;
}

.embed-add-field-btn {
  width: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: #a1a1aa;
  border-radius: 10px;
  padding: 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.embed-add-field-btn:hover {
  border-color: rgba(96, 165, 250, 0.35);
  color: #fff;
  background: rgba(59, 130, 246, 0.08);
}

.embed-tab-note {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #71717a;
}

.embed-field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: #fafafa;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
}

.embed-field select:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.embed-select {
  position: relative;
}

.embed-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: #fafafa;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.embed-select-trigger span {
  text-align: left;
}

.embed-select-trigger svg {
  width: 16px;
  height: 16px;
  color: #71717a;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s;
}

.embed-select.is-open .embed-select-trigger {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.embed-select.is-open .embed-select-trigger svg {
  transform: rotate(180deg);
  color: var(--accent-bright);
}

.embed-select-trigger:hover {
  border-color: rgba(96, 165, 250, 0.22);
}

.embed-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #14161a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.embed-select-menu[hidden] {
  display: none;
}

.embed-select-option {
  width: 100%;
  border: none;
  background: transparent;
  color: #d4d4d8;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.embed-select-option-label {
  font-weight: 500;
  color: inherit;
}

.embed-select-option-desc {
  font-size: 0.76rem;
  color: #71717a;
  line-height: 1.35;
}

.embed-select-menu--types {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.38) rgba(255, 255, 255, 0.05);
}

.embed-select-menu--types::-webkit-scrollbar {
  width: 8px;
}

.embed-select-menu--types::-webkit-scrollbar-track {
  margin: 0.25rem 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.embed-select-menu--types::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.32);
  border: 2px solid #14161a;
  border-radius: 999px;
}

.embed-select-menu--types::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.5);
}

.embed-select-menu--types::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

.embed-button-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
}

.embed-button-color-field.is-hidden {
  display: none;
}

.embed-button-colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
}

.embed-button-color {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.embed-button-color:hover {
  transform: scale(1.06);
}

.embed-button-color.is-selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45);
}

.embed-button-color--primary {
  background: #5865f2;
}

.embed-button-color--secondary {
  background: #4e5058;
}

.embed-button-color--success {
  background: #248046;
}

.embed-button-color--danger {
  background: #da373c;
}

.embed-select-option:hover,
.embed-select-option.is-selected {
  background: rgba(59, 130, 246, 0.16);
  color: #fff;
}

.embed-select-option.is-selected {
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.24);
}

.embed-select-option.is-selected .embed-select-option-desc {
  color: #a1a1aa;
}

.embed-button-url,
.embed-button-role,
.embed-button-sku {
  display: none;
}

.embed-button-url.is-visible,
.embed-button-role.is-visible,
.embed-button-sku.is-visible {
  display: flex;
}

.embed-discord-buttons {
  margin-top: 0.65rem;
}

.embed-discord-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.embed-discord-button-row:last-child {
  margin-bottom: 0;
}

.embed-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
  border: none;
  color: #fff;
  max-width: 100%;
}

.embed-discord-btn-emoji {
  font-size: 1rem;
  line-height: 1;
}

.embed-discord-btn--primary {
  background: #5865f2;
}

.embed-discord-btn--secondary {
  background: #4e5058;
}

.embed-discord-btn--success {
  background: #248046;
}

.embed-discord-btn--danger {
  background: #da373c;
}

.embed-discord-btn--link {
  background: transparent;
  color: #00a8fc;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

.embed-discord-btn-link-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.embed-discord-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.embed-preview-wrap {
  min-height: 220px;
  padding: 1rem;
  border-radius: 12px;
  background: #313338;
  border: 1px solid rgba(0, 0, 0, 0.28);
  margin-bottom: 1rem;
}

.embed-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  text-align: center;
  color: #949ba4;
}

.embed-preview-empty p {
  margin: 0 0 0.35rem;
  color: #b5bac1;
  font-size: 0.95rem;
}

.embed-preview-empty span {
  font-size: 0.82rem;
}

.embed-preview-content {
  margin: 0 0 0.65rem;
  color: #dbdee1;
  font-size: 0.95rem;
  line-height: 1.375;
  word-break: break-word;
}

.embed-discord {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  max-width: 520px;
  border-radius: 4px;
  overflow: hidden;
}

.embed-discord-bar {
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--embed-color, #5865f2);
}

.embed-discord-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem 0.65rem 0.75rem;
  min-width: 0;
  background: #2b2d31;
  border-radius: 0 4px 4px 0;
}

.embed-discord-author {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
}

.embed-discord-author-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.embed-discord-main {
  min-width: 0;
}

.embed-discord-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #f2f3f5;
  margin-bottom: 0.35rem;
  text-decoration: none;
}

.embed-discord-title--link,
a.embed-discord-title {
  color: #00a8fc;
}

.embed-discord-title--link:hover,
a.embed-discord-title:hover {
  text-decoration: underline;
}

.embed-discord-desc {
  color: #dbdee1;
  font-size: 0.875rem;
  line-height: 1.375;
  word-break: break-word;
}

.embed-discord-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.embed-discord-field {
  flex: 1 1 100%;
  min-width: 0;
}

.embed-discord-field--inline {
  flex: 1 1 calc(33.333% - 0.5rem);
  min-width: 120px;
}

.embed-discord-field strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
}

.embed-discord-field span {
  display: block;
  font-size: 0.875rem;
  color: #dbdee1;
  line-height: 1.375;
  word-break: break-word;
}

.embed-discord-image {
  display: block;
  max-width: 100%;
  border-radius: 4px;
  margin-top: 0.65rem;
}

.embed-discord-thumb {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  align-self: start;
}

.embed-discord-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1.375;
  color: #949ba4;
}

.embed-discord-footer-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.embed-md-code {
  padding: 0.1em 0.2em;
  border-radius: 3px;
  background: #1e1f22;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.85em;
  color: #dbdee1;
}

.embed-md-pre {
  margin: 0.35rem 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid #1e1f22;
  border-radius: 4px;
  background: #1e1f22;
  overflow-x: auto;
}

.embed-md-pre code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #dbdee1;
  white-space: pre-wrap;
  word-break: break-word;
}

.embed-md-quote {
  display: flex;
  margin: 0.15rem 0;
  padding-left: 0.55rem;
  border-left: 4px solid #4e5058;
  color: #b5bac1;
}

.embed-md-underline {
  text-decoration: underline;
}

.embed-md-link {
  color: #00a8fc;
  cursor: default;
}

.embed-md-spoiler {
  border-radius: 3px;
  background: #1e1f22;
  color: transparent;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.embed-md-spoiler:hover,
.embed-md-spoiler:focus,
.embed-md-spoiler.is-revealed {
  background: rgba(30, 31, 34, 0.65);
  color: #dbdee1;
  outline: none;
}

.embed-discord-desc strong,
.embed-discord-field span strong,
.embed-preview-content strong {
  font-weight: 700;
}

.embed-discord-desc em,
.embed-discord-field span em,
.embed-preview-content em {
  font-style: italic;
}

.embed-discord-desc s,
.embed-discord-field span s,
.embed-preview-content s {
  text-decoration: line-through;
}

.embed-code-block {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.embed-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: #71717a;
}

.embed-code-head strong {
  color: #d4d4d8;
  font-size: 0.82rem;
}

.embed-code-head code {
  color: var(--accent-bright);
  font-size: 0.75rem;
}

.embed-code-block pre {
  margin: 0;
  padding: 0.85rem;
  overflow-x: auto;
}

.embed-code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #e4e4e7;
  white-space: pre-wrap;
  word-break: break-all;
}

.embed-code-url {
  color: #00a8fc;
}

.embed-variables {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
}

.embed-variables-head {
  margin-bottom: 0.85rem;
}

.embed-variables-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fafafa;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.embed-variables-head h2 svg {
  width: 18px;
  height: 18px;
  color: var(--accent-bright);
}

.embed-variables-head p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #71717a;
}

.embed-var-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.embed-var-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  color: #a1a1aa;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.embed-var-tab:hover {
  color: #fafafa;
}

.embed-var-tab.is-active {
  color: #fff;
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.28);
}

.embed-var-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.55rem;
}

.embed-var-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.embed-var-card:hover {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}

.embed-var-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--accent-bright);
}

.embed-var-card span {
  font-size: 0.74rem;
  color: #71717a;
  line-height: 1.35;
}

body.embed-page .site-footer {
  margin-top: auto;
}

@media (max-width: 960px) {
  body.embed-page .landing-nav-pill {
    display: none;
  }

  body.embed-page .landing-nav-menu {
    display: block;
  }

  .embed-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .embed-main {
    padding: 1rem 1rem 3rem;
  }

  .embed-panel {
    padding: 1rem;
  }

  .embed-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .embed-var-grid {
    grid-template-columns: 1fr 1fr;
  }

  .embed-button-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .embed-var-grid {
    grid-template-columns: 1fr;
  }
}

body.embed-modal-open {
  overflow: hidden;
}

.embed-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.embed-modal[hidden] {
  display: none;
}

.embed-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.embed-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.embed-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.embed-modal-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fafafa;
}

.embed-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.embed-modal-close svg {
  width: 18px;
  height: 18px;
}

.embed-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fafafa;
}

.embed-modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.1rem;
}

html.turnstile-pending body {
  overflow: hidden;
}

html.turnstile-pending body > :not(.turnstile-gate):not(script) {
  display: none !important;
}

.turnstile-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(10vh, 3.5rem) 1.25rem 1.5rem;
  background-color: #060608;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
  background-size: 22px 22px;
}

.turnstile-gate-shell {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.turnstile-gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.turnstile-gate-name {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  color: #fafafa;
  text-transform: lowercase;
}

.brand-logo--gate {
  width: 36px;
  height: 36px;
}

.turnstile-gate-card {
  width: 100%;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(12, 13, 16, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.turnstile-gate-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.turnstile-gate-bar {
  width: 3px;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #818cf8, #6366f1);
  flex-shrink: 0;
  margin-top: 0.08rem;
}

.turnstile-gate-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fafafa;
  text-transform: lowercase;
}

.turnstile-gate-sub {
  margin: 0.18rem 0 0;
  font-size: 0.76rem;
  color: #71717a;
}

.turnstile-gate-widget-wrap {
  width: 100%;
  padding: 0.15rem 0 0.35rem;
}

.turnstile-gate-widget-wrap iframe {
  width: 100% !important;
}

#turnstile-widget {
  width: 100%;
  min-height: 65px;
}

.turnstile-gate-ray {
  margin: 0.55rem 0 0;
  font-size: 0.68rem;
  color: #52525b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: lowercase;
}

.turnstile-gate-error {
  margin: 0.75rem 0 0;
  font-size: 0.76rem;
  color: #f87171;
  text-align: center;
}

@media (min-width: 901px) {
  .turnstile-gate {
    align-items: center;
    padding: 1.5rem;
  }

  .turnstile-gate-shell {
    gap: 2rem;
  }
}

.embed-modal-preview {
  min-height: 160px;
  padding: 1rem;
  border-radius: 10px;
  background: #313338;
  border: 1px solid rgba(0, 0, 0, 0.28);
}

.embed-modal-preview .embed-preview-empty {
  min-height: 140px;
}

.embed-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.embed-modal-footer > span {
  font-size: 0.78rem;
  color: #71717a;
}

.embed-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.embed-modal-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.embed-modal-btn svg {
  width: 14px;
  height: 14px;
}

.embed-modal-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.embed-modal-btn--primary {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.28);
  color: #fff;
}

.embed-modal-btn--primary:hover,
.embed-modal-btn--primary.is-copied {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(96, 165, 250, 0.4);
}

@media (max-width: 520px) {
  .embed-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .embed-modal-footer > span {
    text-align: center;
  }

  .embed-modal-actions {
    justify-content: center;
  }
}
