:root {
  --bg: #f8f9fc;
  --bg-soft:
    radial-gradient(ellipse at top, rgba(124, 58, 237, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 24%),
    linear-gradient(160deg, #f0f2f8 0%, #e4e8f2 50%, #f6f4fb 100%);
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(139, 92, 246, 0.08);
  --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 24px rgba(139, 92, 246, 0.06);
  --card-shadow-hover: 0 12px 40px rgba(139, 92, 246, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #06b6d4 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.08));
  --accent-soft: rgba(124, 58, 237, 0.1);
  --header-bg: rgba(255, 255, 255, 0.72);
  --header-border: rgba(139, 92, 246, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-soft);
}

a {
  color: inherit;
}

.docs-root {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.docs-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.65;
}

.docs-glow-a {
  width: 360px;
  height: 360px;
  left: -120px;
  top: -80px;
  background: rgba(124, 58, 237, 0.18);
}

.docs-glow-b {
  width: 340px;
  height: 340px;
  right: -100px;
  top: 120px;
  background: rgba(6, 182, 212, 0.14);
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.docs-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.8;
}

.docs-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.docs-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.docs-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(124, 58, 237, 0.18));
}

.docs-logo-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.docs-logo-sub {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 3px;
}

.docs-header-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-header-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.docs-header-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.docs-link-accent {
  background: var(--accent-gradient-soft);
  color: var(--accent);
}

.docs-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.docs-sidebar {
  position: sticky;
  top: 86px;
  height: fit-content;
  display: grid;
  gap: 16px;
}

.docs-sidebar-card,
.docs-card,
.hero-card,
.mini-card,
.feature-panel,
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
}

.docs-sidebar-card {
  border-radius: 24px;
  padding: 18px;
}

.docs-sidebar-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.docs-nav {
  display: grid;
  gap: 8px;
}

.docs-nav a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text);
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.docs-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateX(2px);
}

.docs-sidebar-highlight {
  background: var(--accent-gradient-soft);
}

.docs-sidebar-highlight p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.docs-content {
  min-width: 0;
}

.hero-card {
  border-radius: 30px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.35rem, 5.4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 680px;
}

.docs-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-gradient-soft);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-stats {
  display: grid;
  gap: 14px;
}

.stat-card {
  border-radius: 22px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-value {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-sub {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.mini-card {
  border-radius: 24px;
  padding: 20px;
}

.mini-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.docs-card {
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 18px;
}

.section-heading {
  margin-bottom: 12px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.7rem;
}

.docs-card p,
.docs-card li {
  line-height: 1.8;
}

.docs-card p {
  margin-top: 0;
}

.docs-card ul,
.docs-card ol {
  margin: 0;
  padding-left: 20px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-panel {
  border-radius: 22px;
  padding: 18px;
}

.feature-panel h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--accent-gradient-soft);
  border: 1px solid var(--card-border);
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--accent-gradient);
  color: white;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--card-shadow-hover);
}

.support-button:hover {
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: relative;
    top: 0;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .docs-header-inner,
  .docs-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .docs-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-header-links {
    width: 100%;
  }

  .docs-header-links a {
    padding-left: 0;
    padding-right: 0;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .docs-card,
  .mini-card,
  .docs-sidebar-card {
    border-radius: 20px;
    padding: 18px;
  }

  .hero-copy h1 {
    line-height: 1;
  }
}
