/* ClawSky — Pure CSS (brand: purple/pink cosmic) */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette — pink claw + purple sky */
  --pink-300: #ff8fa3;
  --pink-400: #ff758f;
  --pink-500: #e77d8f;
  --pink-600: #c9184a;
  --pink-700: #a4133c;
  --pink-800: #800f2f;

  --purple-300: #e0aaff;
  --purple-400: #c77dff;
  --purple-500: #9d4edd;
  --purple-600: #7b2cbf;
  --purple-700: #5a189a;
  --purple-800: #3c096c;
  --purple-900: #240046;
  --purple-950: #10002b;

  --accent: var(--purple-400);
  --accent-hover: var(--purple-300);
  --accent-pink: var(--pink-400);

  /* Neutral grays */
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;
  --gray-950: #09090b;

  /* Semantic */
  --bg: #0a0514;
  --bg-elevated: rgba(36, 0, 70, 0.25);
  --border: rgba(199, 125, 255, 0.15);
  --border-hover: rgba(199, 125, 255, 0.45);
  --text: #f4f4f5;
  --text-muted: #a5a0b5;
  --text-dim: #726d82;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-glow: 0 0 40px rgba(199, 125, 255, .25);
  --shadow-glow-pink: 0 0 40px rgba(231, 125, 143, .2);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Global background: subtle cosmic gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(157, 78, 221, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(231, 125, 143, 0.12), transparent 60%),
    radial-gradient(ellipse 80% 80% at 50% 120%, rgba(60, 9, 108, 0.2), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

::selection { background: var(--purple-500); color: #fff; }

/* ===== Utility ===== */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.gradient-text {
  background: linear-gradient(135deg, var(--pink-400) 0%, var(--purple-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== COSMIC BACKGROUND ===== */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cosmic-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.aurora-a {
  width: 55vw; height: 55vh; top: -10%; left: 5%;
  background: rgba(99, 102, 241, 0.09);
  animation: auroraA 28s ease-in-out infinite;
}

.aurora-b {
  width: 45vw; height: 45vh; top: 30%; right: -10%;
  background: rgba(139, 92, 246, 0.07);
  animation: auroraB 33s ease-in-out infinite;
}

.aurora-c {
  width: 50vw; height: 40vh; bottom: 5%; left: -5%;
  background: rgba(245, 158, 11, 0.05);
  animation: auroraC 37s ease-in-out infinite;
}

.aurora-d {
  width: 40vw; height: 40vh; top: 55%; left: 35%;
  background: rgba(56, 189, 248, 0.04);
  animation: auroraD 31s ease-in-out infinite;
}

@keyframes auroraA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(6vw, -4vh) scale(1.12); }
  50% { transform: translate(-4vw, 7vh) scale(0.92); }
  75% { transform: translate(5vw, 2vh) scale(1.08); }
}

@keyframes auroraB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-5vw, 6vh) scale(1.08); }
  50% { transform: translate(3vw, -5vh) scale(0.95); }
  75% { transform: translate(-7vw, 3vh) scale(1.05); }
}

@keyframes auroraC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8vw, -4vh) scale(1.15); }
  66% { transform: translate(-6vw, 5vh) scale(0.88); }
}

@keyframes auroraD {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-6vw, -5vh) scale(1.1); }
  66% { transform: translate(5vw, 4vh) scale(0.93); }
}

.noise-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.025;
}

.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.025) 35%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  opacity: 0;
  will-change: left, top;
}

/* Content above cosmic bg */
.nav, .hero, .footer, .docs-layout, .blog-list, .blog-post,
.page-header, .section, main, section, article {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none !important; }
  .mouse-glow { display: none; }
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 5, 20, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .9; }
.nav-logo img {
  width: 28px;
  height: 28px;
}
.nav-logo .brand-pink { color: var(--pink-400); }
.nav-logo .brand-purple { color: var(--purple-400); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: .875rem;
}
.nav-links a {
  color: var(--text-muted);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: #fff; }

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .8125rem;
  padding: .125rem;
  background: rgba(199, 125, 255, .08);
  border: 1px solid var(--border);
  border-radius: .5rem;
}
.lang-switch a {
  padding: .25rem .625rem;
  border-radius: .375rem;
  transition: all .2s;
  font-weight: 500;
}
.lang-switch a.active {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  color: #fff;
  box-shadow: 0 2px 8px rgba(157, 78, 221, .4);
}
.lang-switch a:not(.active) { color: var(--text-muted); }
.lang-switch a:not(.active):hover { color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 6rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 30%, rgba(199, 125, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 40%, rgba(231, 125, 143, 0.15), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 125, 255, .3), transparent);
}
.hero-content {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}
.hero-logo {
  width: 160px;
  height: 160px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 40px rgba(199, 125, 255, 0.4));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-muted);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: .625rem;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  box-shadow:
    0 4px 20px rgba(157, 78, 221, .35),
    inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  border: 1px solid rgba(199, 125, 255, .3);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-400), var(--pink-400));
  opacity: 0;
  transition: opacity .25s;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(199, 125, 255, .45),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: .625rem;
  border: 1px solid var(--border-hover);
  background: rgba(199, 125, 255, .05);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  transition: all .25s;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: var(--purple-400);
  background: rgba(199, 125, 255, .12);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Section spacing ===== */
.section { padding: 5rem 0; }
.section-header { padding-top: 5rem; padding-bottom: 1rem; text-align: center; position: relative; }
.section-header h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
}
.section-header p {
  max-width: 42rem;
  margin: 1rem auto 0;
  font-size: 1.125rem;
  color: var(--text-muted);
}
.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}
.section-subtitle {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* ===== Grid layouts ===== */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Cards ===== */
.card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(36, 0, 70, .25), rgba(16, 0, 43, .4));
  padding: 1.75rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(199, 125, 255, 0), rgba(199, 125, 255, .3), rgba(231, 125, 143, .2), rgba(199, 125, 255, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background: linear-gradient(135deg, rgba(199, 125, 255, .15), rgba(231, 125, 143, .1));
  border: 1px solid var(--border);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.card p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Community cards (centered) */
.card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.75rem;
}
.card-center .card-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: .875rem;
  background: linear-gradient(135deg, rgba(199, 125, 255, .15), rgba(231, 125, 143, .1));
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  color: var(--purple-300);
  transition: all .3s;
}
.card-center:hover .card-svg {
  color: var(--pink-400);
  transform: scale(1.08);
  border-color: var(--border-hover);
}
.card-center .card-cta {
  margin-top: auto;
  padding-top: .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--purple-300);
  transition: color .2s;
}
.card-center:hover .card-cta { color: var(--pink-400); }
.card-center.no-link .card-cta { color: var(--text-dim); }

/* Open source cards */
.card-repo h3 { transition: color .2s; }
.card-repo:hover h3 {
  background: linear-gradient(135deg, var(--pink-400), var(--purple-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card-repo .meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.card-repo .lang-dot {
  display: inline-block;
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-400), var(--pink-400));
  margin-right: .375rem;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(199, 125, 255, .5);
}
.card-repo .license { transition: color .2s; }
.card-repo:hover .license { color: var(--purple-300); }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  gap: 1.75rem;
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  position: relative;
  border-radius: 1.125rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(36, 0, 70, .25), rgba(16, 0, 43, .4));
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all .3s;
}
.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card.highlighted {
  border-color: var(--purple-400);
  background: linear-gradient(180deg, rgba(123, 44, 191, .18), rgba(36, 0, 70, .5));
  box-shadow: var(--shadow-glow);
}
.pricing-card.highlighted::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .3125rem .75rem;
  border-radius: .375rem;
  box-shadow: 0 4px 12px rgba(157, 78, 221, .4);
}
.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.pricing-price {
  margin-top: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: .25rem;
}
.pricing-price .amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
}
.pricing-price .period {
  color: var(--text-muted);
  font-size: .9375rem;
}
.pricing-card .desc {
  margin-top: .75rem;
  font-size: .875rem;
  color: var(--text-muted);
  min-height: 2.6rem;
}
.pricing-features {
  margin-top: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  font-size: .9375rem;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  color: var(--text);
}
.pricing-features .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
  color: #fff;
  font-size: .625rem;
  font-weight: 700;
  margin-top: .1875rem;
  flex-shrink: 0;
}
.pricing-cta {
  display: block;
  margin-top: 2rem;
  padding: .875rem 0;
  text-align: center;
  font-weight: 600;
  border-radius: .625rem;
  transition: all .25s;
}
.pricing-cta.primary {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  color: #fff;
  box-shadow: 0 4px 16px rgba(157, 78, 221, .3);
  border: 1px solid rgba(199, 125, 255, .4);
}
.pricing-cta.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(199, 125, 255, .5);
}
.pricing-cta.secondary {
  border: 1px solid var(--border-hover);
  background: rgba(199, 125, 255, .04);
  color: var(--text);
}
.pricing-cta.secondary:hover {
  border-color: var(--purple-400);
  background: rgba(199, 125, 255, .1);
  color: #fff;
}

/* ===== Download cards ===== */
.download-card {
  border-radius: 1.125rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(36, 0, 70, .25), rgba(16, 0, 43, .4));
  padding: 2rem;
  transition: all .3s;
}
.download-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.download-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.download-card .desc {
  margin-top: .5rem;
  color: var(--text-muted);
}
.download-actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.download-actions .version-info {
  font-size: .875rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.download-card .note {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--text-dim);
}
.download-card .alt-install {
  margin-top: 1rem;
}
.download-card code {
  background: rgba(16, 0, 43, .6);
  padding: .5rem .875rem;
  border-radius: .375rem;
  font-size: .875rem;
  color: var(--purple-300);
  font-family: var(--font-mono);
  border: 1px solid var(--border);
}
.download-card .req {
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--text-dim);
}

/* ===== Legal ===== */
.legal-block {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(36, 0, 70, .25), rgba(16, 0, 43, .4));
  padding: 2rem;
  margin-bottom: 2rem;
}
.legal-block:last-child { margin-bottom: 0; }
.legal-block h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.legal-block p { color: var(--text-muted); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 5, 20, .6);
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3.5rem 0 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); }
}
.footer-brand { grid-column: 1 / -1; margin-bottom: 1rem; }
@media (min-width: 768px) {
  .footer-brand { grid-column: auto; margin-bottom: 0; }
}
.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: .875rem;
}
.footer-brand .logo-row img { width: 28px; height: 28px; }
.footer-brand .logo-row span {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}
.footer-brand p {
  font-size: .875rem;
  color: var(--text-muted);
  max-width: 18rem;
  line-height: 1.5;
}
.footer h3 {
  font-size: .8125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: .02em;
}
.footer ul { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--purple-300); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .8125rem;
  color: var(--text-dim);
}

/* ===== Docs layout ===== */
.docs-layout {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 0;
}
@media (min-width: 768px) {
  .docs-layout { grid-template-columns: 15rem 1fr; }
}

.docs-sidebar {
  font-size: .875rem;
  position: sticky;
  top: 5rem;
  align-self: start;
}
.docs-sidebar h3 {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .875rem;
}
.docs-sidebar ul { display: flex; flex-direction: column; gap: .25rem; }
.docs-sidebar a {
  display: block;
  padding: .5rem .875rem;
  border-radius: .5rem;
  color: var(--text-muted);
  transition: all .2s;
  border-left: 2px solid transparent;
}
.docs-sidebar a:hover { color: #fff; background: rgba(199, 125, 255, .08); }
.docs-sidebar a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(157, 78, 221, .2), transparent);
  border-left-color: var(--purple-400);
}

.docs-content {
  max-width: 48rem;
  line-height: 1.75;
}
.docs-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.docs-content h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: #fff;
  margin-top: 2rem;
  margin-bottom: .5rem;
}
.docs-content p {
  color: var(--text);
  margin-bottom: 1rem;
}
.docs-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}
.docs-content ul li {
  color: var(--text);
  margin-bottom: .375rem;
}
.docs-content ul li::marker { color: var(--purple-400); }
.docs-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: decimal;
}
.docs-content ol li {
  color: var(--text);
  margin-bottom: .375rem;
}
.docs-content ol li::marker { color: var(--purple-400); }
.docs-content strong { color: #fff; font-weight: 600; }
.docs-content a {
  color: var(--purple-300);
  text-decoration: none;
  border-bottom: 1px dashed rgba(199, 125, 255, .4);
  transition: all .2s;
}
.docs-content a:hover {
  color: var(--pink-400);
  border-bottom-color: var(--pink-400);
}
.docs-content code {
  background: rgba(16, 0, 43, .6);
  padding: .125rem .375rem;
  border-radius: .25rem;
  font-size: .875rem;
  font-family: var(--font-mono);
  color: var(--purple-300);
  border: 1px solid var(--border);
}

/* Docs table */
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9375rem;
  border-radius: .625rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.docs-content th {
  text-align: left;
  padding: .75rem 1rem;
  background: rgba(60, 9, 108, .3);
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.docs-content td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.docs-content tr:last-child td { border-bottom: 0; }

/* ===== Blog ===== */
.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-post-card {
  display: block;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(36, 0, 70, .25), rgba(16, 0, 43, .4));
  padding: 1.75rem;
  transition: all .3s;
}
.blog-post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.blog-post-card .date {
  font-size: .75rem;
  color: var(--text-dim);
  margin-bottom: .5rem;
  font-family: var(--font-mono);
  letter-spacing: .05em;
}
.blog-post-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .625rem;
  letter-spacing: -.01em;
  transition: all .2s;
}
.blog-post-card:hover h2 {
  background: linear-gradient(135deg, var(--pink-400), var(--purple-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-post-card p { font-size: .9375rem; color: var(--text-muted); }
.blog-post-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--purple-300);
}

.blog-article { max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.blog-article .meta {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}
.blog-article h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.blog-article .tag {
  display: inline-block;
  background: rgba(199, 125, 255, .1);
  border: 1px solid var(--border);
  padding: .1875rem .5rem;
  border-radius: .25rem;
  font-size: .6875rem;
  color: var(--purple-300);
  margin-left: .5rem;
  font-family: var(--font-sans);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ===== Page header for inner pages ===== */
.page-header {
  position: relative;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(199, 125, 255, 0.2), transparent 70%),
    radial-gradient(ellipse 50% 50% at 70% 20%, rgba(231, 125, 143, 0.1), transparent 65%),
    radial-gradient(ellipse 40% 40% at 30% 50%, rgba(157, 78, 221, 0.08), transparent 60%);
  pointer-events: none;
}
.page-header h1 {
  position: relative;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.025em;
}
.page-header p {
  position: relative;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Mobile nav ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: .25rem .5rem;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 5, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: .75rem;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 3rem 1.5rem 4rem; }
  .hero-logo { width: 120px; height: 120px; }
  .docs-sidebar { position: static; }
}

/* ===== Scroll animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .card, .pricing-card, .download-card, .blog-post-card {
    animation: fadeUp .6s ease-out backwards;
  }
  .grid-2 > *:nth-child(1), .grid-3 > *:nth-child(1), .grid-4 > *:nth-child(1) { animation-delay: .05s; }
  .grid-2 > *:nth-child(2), .grid-3 > *:nth-child(2), .grid-4 > *:nth-child(2) { animation-delay: .1s; }
  .grid-2 > *:nth-child(3), .grid-3 > *:nth-child(3), .grid-4 > *:nth-child(3) { animation-delay: .15s; }
  .grid-2 > *:nth-child(4), .grid-3 > *:nth-child(4), .grid-4 > *:nth-child(4) { animation-delay: .2s; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
