:root {
  --bg: #07070d;
  --bg-2: #0d0d16;
  --card: rgba(15, 15, 24, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f5f4ff;
  --muted: #aaa6c3;
  --primary: #8a4fff;
  --primary-2: #a970ff;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 14px;
  --container: 1040px;
  --header-height: 76px;
  --footer-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(138, 79, 255, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(78, 41, 173, 0.12), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
}

.page-shell {
  padding-top: calc(var(--header-height) + 18px);
  padding-bottom: calc(var(--footer-height) + 18px);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 100%);
  pointer-events: none;
  z-index: -3;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
  z-index: -2;
}

.orb-1 {
  width: 260px;
  height: 260px;
  background: rgba(138, 79, 255, 0.16);
  top: 10px;
  left: -70px;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: rgba(95, 55, 187, 0.14);
  top: 180px;
  right: -90px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(7, 7, 13, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.brand-page,
.nav-page,
.mobile-page {
  display: none;
}

body.inner-page .brand-page,
body.inner-page .mobile-page {
  display: inline-flex;
}

body.inner-page .nav-page {
  display: flex;
}

body.inner-page .mobile-page {
  display: flex;
  flex-direction: column;
}

body.inner-page .brand-home,
body.inner-page .nav-home,
body.inner-page .mobile-home {
  display: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(7, 7, 13, 0.94);
}

.mobile-menu.open {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 16px;
}

.mobile-nav a {
  color: var(--muted);
  padding: 12px 4px;
  font-weight: 600;
}

.hero {
  padding: 40px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  color: #d9cbff;
  background: rgba(138, 79, 255, 0.12);
  border: 1px solid rgba(138, 79, 255, 0.2);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-content h1,
.docs-hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  margin-top: 14px;
}

.hero-content h1 {
  max-width: 11ch;
}

.hero-text {
  margin-top: 14px;
  max-width: 700px;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover,
.filter-btn:hover,
.copy-command:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 28px rgba(138, 79, 255, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-badges span {
  background: rgba(255, 255, 255, 0.04);
  color: #ded8f7;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

.hero-card,
.info-card,
.command-card {
  background: linear-gradient(180deg, rgba(18, 18, 29, 0.82), rgba(12, 12, 20, 0.82));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  padding: 18px;
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-card-top img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
}

.hero-card-top strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.hero-card-top p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.92rem;
}

.hero-card-body {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.mini-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 13px 14px;
}

.mini-label {
  display: block;
  color: #ccbdfc;
  font-size: 0.78rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.section {
  padding: 28px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-head-compact {
  margin-bottom: 14px;
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.info-card {
  padding: 18px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: rgba(138, 79, 255, 0.12);
  border: 1px solid rgba(138, 79, 255, 0.18);
  margin-bottom: 14px;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.info-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.card-link {
  margin-top: 14px;
  color: #d6c7ff;
  font-weight: 700;
  font-size: 0.92rem;
}

.docs-page .docs-hero {
  padding: 6px 0 4px;
}

.docs-toolbar {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.search-box input::placeholder {
  color: #9f99bc;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  transition: 0.2s ease;
}

.filter-btn.active {
  background: rgba(138, 79, 255, 0.16);
  border-color: rgba(168, 121, 255, 0.32);
}

.command-list {
  display: grid;
  gap: 14px;
}

.command-card {
  padding: 16px;
  transition: 0.25s ease;
}

.command-card:hover {
  border-color: rgba(168, 121, 255, 0.22);
  transform: translateY(-2px);
}

.command-card-full {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.command-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.command-top h3 {
  font-size: 1.02rem;
}

.command-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(138, 79, 255, 0.14);
  border: 1px solid rgba(138, 79, 255, 0.22);
  color: #ddceff;
}

.badge-vip {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.18);
  color: #ffe78d;
}

.command-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.command-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.command-meta span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ccbdfc;
}

.copy-command {
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f2ff;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  transition: 0.2s ease;
}

.copy-command:hover {
  border-color: rgba(168, 121, 255, 0.28);
  background: rgba(138, 79, 255, 0.08);
}

.command-preview {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  perspective: 1400px;
  transform-style: preserve-3d;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 30px rgba(0, 0, 0, 0.18);
}

.command-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 22%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

.command-preview::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
  opacity: 0.9;
  z-index: 1;
}

.command-preview:hover {
  border-color: rgba(168, 121, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 40px rgba(0, 0, 0, 0.24);
}

.command-preview:hover::before {
  opacity: 1;
}

.command-preview img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotateX(0deg) rotateY(0deg) scale(1);
  transform-style: preserve-3d;
  transition: transform 0.12s linear, box-shadow 0.2s ease, filter 0.2s ease;
  filter: brightness(0.985) saturate(1.01);
}

.command-preview:hover img {
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  filter: brightness(1.015) saturate(1.04);
}

@media (max-width: 980px) {
  .command-preview img {
    max-height: 300px;
  }
}

@media (max-width: 640px) {
  .command-preview {
    min-height: 180px;
    padding: 10px;
  }

  .command-preview img {
    max-height: 240px;
    border-radius: 12px;
  }
}

.command-card.hidden,
.docs-section.hidden {
  display: none;
}

.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  min-height: var(--footer-height);
  z-index: 90;
  background: rgba(7, 7, 13, 0.82);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-wrap {
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-wrap p,
.footer-note span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.9rem;
}

.copy-toast {
  position: fixed;
  right: 14px;
  bottom: calc(var(--footer-height) + 14px);
  background: rgba(16, 16, 26, 0.96);
  color: var(--text);
  border: 1px solid rgba(138, 79, 255, 0.22);
  border-radius: 12px;
  padding: 11px 13px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 120;
  font-size: 0.92rem;
}

.copy-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    max-width: 100%;
  }

  .desktop-nav {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-footer {
    position: static;
  }

  .page-shell {
    padding-bottom: 24px;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 0;
  }

  .command-preview img {
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 18px));
  }

  .hero {
    padding: 24px 0 18px;
  }

  .section {
    padding: 22px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .brand-text span {
    display: none;
  }

  .hero-card,
  .info-card,
  .command-card {
    border-radius: 16px;
  }

  .docs-page .docs-hero {
    padding-top: 0;
  }

  .command-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-toast {
    left: 10px;
    right: 10px;
    bottom: 12px;
  }

  .command-preview {
    padding: 8px;
  }

  .command-preview img {
    max-height: 280px;
  }
}