/* WujaDev — shared design system (rift / void aesthetic) */
:root {
  --void-0: #03040a;
  --void-1: #070a14;
  --void-2: #0c1222;
  --void-3: #141c30;
  --rift-cyan: #3de8ff;
  --rift-cyan-dim: #1a9bb0;
  --rift-teal: #00c9a7;
  --rift-rose: #ff3d7a;
  --rift-violet: #8b5cff;
  --text: #e8eef8;
  --text-muted: #8b97ad;
  --text-dim: #5c677a;
  --border: rgba(61, 232, 255, 0.14);
  --glow-cyan: 0 0 40px rgba(61, 232, 255, 0.25);
  --code-bg: rgba(12, 18, 34, 0.9);
  --sidebar-w: 260px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 4px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--void-0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--rift-cyan); text-decoration: none; }
a:hover { color: #7af0ff; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Atmosphere */
.rift-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 232, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 40% at 85% 20%, rgba(139, 92, 255, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 45% at 10% 70%, rgba(255, 61, 122, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 90%, rgba(0, 201, 167, 0.06), transparent 45%),
    linear-gradient(180deg, var(--void-0) 0%, var(--void-1) 40%, var(--void-0) 100%);
}

.rift-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(3, 4, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.1;
  color: inherit;
}

.brand:hover { color: inherit; }

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow:
    0 0 18px rgba(61, 232, 255, 0.3),
    0 0 8px rgba(255, 61, 122, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-dev {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rift-cyan-dim);
}

.brand-product {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, var(--rift-cyan), var(--rift-teal));
  color: var(--void-0) !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-cyan);
  color: var(--void-0) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.lang-switch button {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0.2rem 0.15rem;
  transition: color 0.2s;
}

.lang-switch button:hover { color: var(--text); }

.lang-switch button.active {
  color: var(--rift-cyan);
  font-weight: 500;
}

.lang-switch .lang-sep { color: var(--text-dim); pointer-events: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.hero-compact {
  min-height: auto;
  padding: 8rem 0 3.5rem;
}

.hero-rift {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.rift-tear {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 720px);
  height: min(70vh, 520px);
  transform: translate(-50%, -48%);
  background:
    radial-gradient(ellipse 30% 55% at 50% 50%, rgba(61, 232, 255, 0.35), transparent 70%),
    radial-gradient(ellipse 18% 70% at 48% 50%, rgba(255, 61, 122, 0.2), transparent 60%),
    radial-gradient(ellipse 12% 80% at 52% 48%, rgba(139, 92, 255, 0.25), transparent 55%);
  filter: blur(2px);
  animation: riftPulse 8s ease-in-out infinite;
}

.rift-tear::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 49%;
  width: 2px;
  height: 90%;
  background: linear-gradient(
    180deg,
    transparent,
    var(--rift-cyan) 20%,
    #fff 50%,
    var(--rift-rose) 80%,
    transparent
  );
  box-shadow:
    0 0 20px var(--rift-cyan),
    0 0 60px rgba(61, 232, 255, 0.5),
    0 0 100px rgba(255, 61, 122, 0.3);
  animation: tearFlicker 4s ease-in-out infinite;
}

.rift-particles { position: absolute; inset: 0; }

.rift-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rift-cyan);
  opacity: 0;
  animation: particleDrift 12s linear infinite;
}

.rift-particles span:nth-child(1) { left: 20%; top: 30%; animation-delay: 0s; }
.rift-particles span:nth-child(2) { left: 70%; top: 25%; background: var(--rift-rose); animation-delay: 2s; }
.rift-particles span:nth-child(3) { left: 45%; top: 60%; animation-delay: 4s; }
.rift-particles span:nth-child(4) { left: 80%; top: 55%; background: var(--rift-violet); animation-delay: 1s; }
.rift-particles span:nth-child(5) { left: 30%; top: 70%; animation-delay: 6s; }
.rift-particles span:nth-child(6) { left: 55%; top: 35%; background: var(--rift-teal); animation-delay: 3s; }

@keyframes riftPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -48%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -48%) scale(1.06); }
}

@keyframes tearFlicker {
  0%, 100% { opacity: 0.85; filter: brightness(1); }
  40% { opacity: 1; filter: brightness(1.3); }
  42% { opacity: 0.6; }
  70% { opacity: 0.95; }
}

@keyframes particleDrift {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  15% { opacity: 0.8; }
  85% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.2); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 740px;
  margin-inline: auto;
}

.hero-logo {
  width: clamp(96px, 18vw, 148px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 42px rgba(61, 232, 255, 0.32),
    0 0 16px rgba(255, 61, 122, 0.22);
  animation: brandReveal 1s ease-out both;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #fff 20%, var(--rift-cyan) 55%, var(--rift-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandReveal 1.2s ease-out both;
}

.hero-dev {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rift-cyan-dim);
  margin-bottom: 1.75rem;
  animation: brandReveal 1.2s 0.15s ease-out both;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.85rem;
  animation: brandReveal 1.2s 0.3s ease-out both;
}

.hero-support {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  animation: brandReveal 1.2s 0.45s ease-out both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  animation: brandReveal 1.2s 0.6s ease-out both;
}

@keyframes brandReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rift-cyan), var(--rift-teal));
  color: var(--void-0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
  color: var(--void-0);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--rift-cyan);
  background: rgba(61, 232, 255, 0.06);
  color: var(--text);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: brandReveal 1.2s 0.9s ease-out both;
}

/* Sections */
section { padding: 5.5rem 0; position: relative; }

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rift-cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.section-head { margin-bottom: 0.5rem; }

/* Homepage catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.plugin-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(12, 18, 34, 0.35);
  color: inherit;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  min-height: 200px;
}

.plugin-card .card-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(61, 232, 255, 0.24);
}

.plugin-card:hover {
  border-color: rgba(61, 232, 255, 0.45);
  background: rgba(61, 232, 255, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: inherit;
}

.plugin-card.ghost {
  border-style: dashed;
  opacity: 0.55;
  pointer-events: none;
  background: transparent;
}

.plugin-card .card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--rift-teal);
  text-transform: uppercase;
}

.plugin-card.ghost .card-tag { color: var(--text-dim); }

.plugin-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.plugin-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.plugin-card .card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rift-cyan);
}

.plugin-card.ghost .card-cta { color: var(--text-dim); }

/* Features / product landing */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

.feature {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--rift-cyan);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.feature p { color: var(--text-muted); font-size: 0.95rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step { position: relative; padding-top: 1rem; }

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  background: linear-gradient(180deg, var(--rift-cyan), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p { color: var(--text-muted); font-size: 0.9rem; }

.showcase-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.showcase-list li {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.35rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.showcase-list li:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--border);
}

.showcase-mark {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  background: var(--rift-cyan);
  box-shadow: 0 0 12px var(--rift-cyan);
  border-radius: 1px;
  transform: rotate(45deg);
}

.showcase-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.showcase-list span { color: var(--text-muted); font-size: 0.92rem; }

.pricing-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--rift-cyan), var(--rift-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-alt {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0.5rem 0 1.25rem;
}

.price-includes { list-style: none; }

.price-includes li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 1.25rem;
  position: relative;
}

.price-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  background: var(--rift-teal);
  border-radius: 1px;
}

.pricing-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
  margin-top: 0.35rem;
}

.store-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.store-badge:hover {
  color: var(--rift-teal);
  border-bottom-color: var(--rift-teal);
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.compat-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.compat-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.compat-item p { color: var(--text-muted); font-size: 0.9rem; }

.compat-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--rift-teal);
  margin-bottom: 0.5rem;
}

.faq-list { max-width: 720px; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--rift-cyan);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.final-cta {
  text-align: center;
  padding: 4rem 0 5rem;
}

.final-cta .section-title { margin-bottom: 1rem; }
.final-cta .hero-cta { margin-top: 1.5rem; }

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer p { color: var(--text-dim); font-size: 0.85rem; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--rift-cyan); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Docs layout */
body.docs-page { overflow-x: hidden; }

.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  padding-top: 4.25rem;
}

.docs-sidebar {
  position: sticky;
  top: 4.25rem;
  height: calc(100vh - 4.25rem);
  overflow-y: auto;
  padding: 1.5rem 1.1rem 2rem;
  border-right: 1px solid var(--border);
  background: rgba(3, 4, 10, 0.92);
  backdrop-filter: blur(12px);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding: 0 0.4rem;
  color: inherit;
}

.side-brand:hover { color: inherit; }

.side-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(61, 232, 255, 0.28);
}

.side-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.side-dev {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rift-cyan-dim);
}

.side-product {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.side-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.side-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.side-nav a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.side-nav a:hover {
  background: rgba(61, 232, 255, 0.06);
  color: var(--text);
}

.side-nav a.active {
  background: rgba(61, 232, 255, 0.1);
  color: var(--rift-cyan);
  border-left: 2px solid var(--rift-cyan);
  padding-left: calc(0.65rem - 2px);
}

.side-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 1.1rem 0.65rem 0.4rem;
}

.docs-mobile-bar {
  display: none;
  position: sticky;
  top: 4.25rem;
  z-index: 50;
  padding: 0.85rem 1rem;
  background: rgba(3, 4, 10, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: space-between;
}

.docs-mobile-bar .side-product { font-size: 1.1rem; }

.docs-mobile-bar button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  font-family: var(--font-body);
  cursor: pointer;
}

.docs-content {
  padding: 2.5rem 2.5rem 4rem;
  max-width: 820px;
}

.page-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rift-cyan);
  margin-bottom: 0.5rem;
}

.docs-content h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.docs-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.docs-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.docs-content p { margin-bottom: 1rem; color: var(--text-muted); }
.docs-content p strong,
.docs-content li strong { color: var(--text); font-weight: 600; }

.docs-content ul,
.docs-content ol {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--text-muted);
}

.docs-content li { margin-bottom: 0.35rem; }

.docs-content .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--rift-cyan);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #c5d0e0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--rift-cyan);
  background: rgba(12, 18, 34, 0.6);
}

td { color: var(--text-muted); }
td code { white-space: nowrap; }

.callout {
  border-left: 3px solid var(--rift-cyan);
  background: rgba(61, 232, 255, 0.05);
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  border-radius: 0 4px 4px 0;
}

.callout.warn {
  border-left-color: var(--rift-rose);
  background: rgba(255, 61, 122, 0.06);
}

.callout p:last-child { margin-bottom: 0; }

.grid-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.grid-links a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.grid-links a:hover {
  border-color: var(--rift-cyan);
  background: rgba(61, 232, 255, 0.05);
  color: var(--text);
}

.grid-links strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.grid-links span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 55;
}

.sidebar-backdrop.show { display: block; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing-block { grid-template-columns: 1fr; gap: 2rem; }
  .compat-grid { grid-template-columns: 1fr 1fr; }
  .showcase-list { grid-template-columns: 1fr; }
  .showcase-list li:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; padding-top: 4.25rem; }
  .docs-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    width: min(280px, 85vw);
    z-index: 60;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }
  .docs-sidebar.open { transform: translateX(0); }
  .docs-mobile-bar { display: flex; }
  .docs-content { padding: 1.5rem 1.15rem 3rem; }
  .grid-links { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(3, 4, 10, 0.96);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
    align-items: flex-start;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .features-grid,
  .steps,
  .compat-grid,
  .catalog-grid { grid-template-columns: 1fr; }

  .hero { padding: 6rem 0 4rem; }
  .hero-compact { padding: 7rem 0 3rem; }
  section { padding: 4rem 0; }

  .nav-actions { gap: 0.65rem; }
}
