/* ClawSky Deep Navy Theme — Shared styles */

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

:root {
  --bg: #0f1729;
  --bg-deep: #0a1628;
  --surface-1: #162037;
  --surface-2: #1c2844;
  --surface-3: #243352;
  --border: rgba(148, 180, 255, 0.1);
  --border-hover: rgba(148, 180, 255, 0.25);
  --text-primary: #e8edf5;
  --text-secondary: #94a3c4;
  --text-dim: #5b6b8a;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --sky: #38bdf8;
  --emerald: #34d399;
  --coral: #fb7185;
  --indigo-light: #a5b4fc;
  --violet-light: #c4b5fd;
  --glow-indigo: rgba(99, 102, 241, 0.15);
  --glow-amber: rgba(245, 158, 11, 0.1);
  --font-display: 'Urbanist', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 72rem;
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
ul { list-style: none; }

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

/* ===== UTILITIES ===== */
.container { max-width: var(--max-w); 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; }

.gradient-text {
  background: linear-gradient(135deg, var(--indigo-light), var(--violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== 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 */
.page-header, .pricing-section, .download-hero, .community-section,
.legal-content, .oss-section, .docs-layout, .cta-section, .footer,
main, section {
  position: relative;
  z-index: 2;
}

.footer {
  background: rgba(11, 19, 34, 0.92);
}

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

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 23, 41, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 180, 255, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(15, 23, 41, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.nav-logo img { width: 2rem; height: 2rem; }
.brand-coral { color: var(--coral); }
.brand-indigo { color: #818cf8; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a:not(.lang-switch a) {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 0.5rem;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:not(.lang-switch a):hover {
  color: var(--text-primary);
  background: rgba(148, 180, 255, 0.06);
}
.nav-links a:not(.lang-switch a).active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.12);
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 1rem;
  padding: 0.2rem;
  background: rgba(148, 180, 255, 0.06);
  border-radius: 2rem;
  border: 1px solid var(--border);
}
.lang-switch a {
  padding: 0.3rem 0.75rem !important;
  font-size: 0.8rem !important;
  border-radius: 2rem !important;
  font-weight: 600 !important;
  color: var(--text-dim) !important;
  transition: all var(--transition) !important;
}
.lang-switch a.active {
  background: linear-gradient(135deg, var(--indigo), var(--violet)) !important;
  color: #fff !important;
}
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  padding: 0.25rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.25), 0 4px 15px rgba(99, 102, 241, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.35), 0 8px 25px rgba(99, 102, 241, 0.3);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-secondary:hover {
  background: rgba(148, 180, 255, 0.06);
  border-color: rgba(148, 180, 255, 0.35);
  transform: translateY(-2px);
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  position: relative;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 10%, rgba(99, 102, 241, 0.2), transparent 70%),
    radial-gradient(ellipse 50% 50% at 70% 30%, rgba(139, 92, 246, 0.1), transparent 65%),
    radial-gradient(ellipse 40% 40% at 30% 60%, rgba(245, 158, 11, 0.06), transparent 60%);
  pointer-events: none;
}
.page-header h1 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}
.page-header p {
  position: relative;
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CARDS (generic) ===== */
.card {
  background: rgba(28, 40, 68, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.08);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== DOWNLOAD CARDS ===== */
.download-card {
  background: rgba(28, 40, 68, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.download-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.08);
}
.download-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.download-card .desc {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.download-actions {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.download-actions .version-info {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.download-card .note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.download-card .req {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.download-card code {
  display: inline-block;
  background: rgba(10, 22, 40, 0.6);
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--indigo-light);
  font-family: var(--font-mono);
  border: 1px solid var(--border);
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  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: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(28, 40, 68, 0.65);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.08);
}
.pricing-card.highlighted {
  border-color: var(--indigo);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), rgba(28, 40, 68, 0.7));
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.12);
}
.pricing-card.highlighted::before {
  content: attr(data-badge);
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  white-space: nowrap;
}
.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.pricing-price {
  margin-top: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.pricing-price .amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pricing-price .period {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.pricing-card .desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-height: 2.6rem;
}
.pricing-features {
  margin-top: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.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(--indigo), var(--violet));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.pricing-cta {
  display: block;
  margin-top: 2rem;
  padding: 0.875rem 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius);
  transition: all 0.25s;
}
.pricing-cta.primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.4);
}
.pricing-cta.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}
.pricing-cta.secondary {
  border: 1px solid var(--border-hover);
  background: rgba(148, 180, 255, 0.04);
  color: var(--text-primary);
}
.pricing-cta.secondary:hover {
  border-color: var(--indigo);
  background: rgba(99, 102, 241, 0.08);
}

/* Token pack */
.token-pack {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(28, 40, 68, 0.65);
  padding: 2.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.token-pack h3 {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.token-pack .token-desc {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}
.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.token-item {
  text-align: center;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(99, 102, 241, 0.04);
  transition: border-color var(--transition);
}
.token-item:hover { border-color: var(--border-hover); }
.token-item.featured {
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.08);
}
.token-label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.35rem; }
.token-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.token-amount { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.2rem; }
.token-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1.25rem;
}

/* ===== COMMUNITY CARDS ===== */
.card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.75rem;
}
.card-center .card-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  color: var(--indigo-light);
  transition: all var(--transition);
}
.card-center:hover .card-svg {
  color: var(--coral);
  transform: scale(1.08);
  border-color: var(--border-hover);
}
.card-center .card-cta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--indigo-light);
  transition: color var(--transition);
}
.card-center:hover .card-cta { color: var(--coral); }
.card-center.no-link .card-cta { color: var(--text-dim); }

/* ===== OPEN SOURCE CARDS ===== */
.oss-card {
  background: rgba(28, 40, 68, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.oss-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.08);
}
.oss-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.oss-card-header svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-dim);
  flex-shrink: 0;
}
.oss-card-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
}
.oss-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.oss-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.oss-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.oss-lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.oss-lang-dot.python { background: #3572A5; }
.oss-lang-dot.js { background: #f1e05a; }
.oss-lang-dot.html { background: #e34c26; }

/* ===== LEGAL ===== */
.legal-block {
  background: rgba(28, 40, 68, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.legal-block:last-child { margin-bottom: 0; }
.legal-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.legal-block p { color: var(--text-secondary); line-height: 1.7; }

/* ===== DOCS LAYOUT ===== */
.docs-layout {
  display: grid;
  gap: 2.5rem;
  padding: 2rem 0 4rem;
}
@media (min-width: 768px) {
  .docs-layout { grid-template-columns: 15rem 1fr; }
}
.docs-sidebar {
  font-size: 0.875rem;
  position: sticky;
  top: 5rem;
  align-self: start;
}
.docs-sidebar h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.875rem;
}
.docs-sidebar ul { display: flex; flex-direction: column; gap: 0.25rem; }
.docs-sidebar a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.docs-sidebar a:hover { color: var(--text-primary); background: rgba(99, 102, 241, 0.06); }
.docs-sidebar a.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.1);
  border-left-color: var(--indigo);
}
.docs-content { max-width: 48rem; line-height: 1.75; }
.docs-content h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.docs-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.docs-content h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.docs-content p { margin-bottom: 1rem; }
.docs-content ul { margin-bottom: 1rem; padding-left: 1.5rem; list-style: disc; }
.docs-content ol { margin-bottom: 1rem; padding-left: 1.5rem; list-style: decimal; }
.docs-content li { margin-bottom: 0.375rem; }
.docs-content li::marker { color: var(--indigo); }
.docs-content strong { color: #fff; font-weight: 600; }
.docs-content a {
  color: var(--indigo-light);
  border-bottom: 1px dashed rgba(165, 180, 252, 0.4);
  transition: color var(--transition);
}
.docs-content a:hover { color: var(--coral); border-bottom-color: var(--coral); }
.docs-content code {
  background: rgba(10, 22, 40, 0.6);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--indigo-light);
  border: 1px solid var(--border);
}
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.docs-content th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.docs-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.docs-content tr:last-child td { border-bottom: 0; }

/* ===== GRIDS ===== */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { 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); }
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw; height: 50vh;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1), transparent 50%),
              radial-gradient(ellipse at 60% 40%, rgba(245, 158, 11, 0.06), transparent 50%);
  pointer-events: none;
}
.cta-section .section-title { margin-bottom: 1.25rem; }
.cta-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(11, 19, 34, 0.92);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 20rem;
}
.footer-brand .nav-logo { display: inline-flex; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(15, 23, 41, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.lang-switch a) {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
  }
  .lang-switch { margin: 0.5rem 0 0; width: fit-content; }
  .page-header { padding: 7rem 1.5rem 3rem; }
  .docs-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .token-grid { grid-template-columns: 1fr; }
}

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