:root {
  --color-void: #000000;
  --color-surface-1: #0b0d10;
  --color-surface-2: #11161c;
  --color-surface-3: #18202a;
  --color-surface-4: #202937;
  --color-text: #f5f7fa;
  --color-text-dim: #c7d0da;
  --color-text-muted: #8f98a6;
  --color-teal: #2f8190;
  --color-indigo: #393b97;
  --color-violet: #573b97;
  --color-gold: #f9c743;
  --color-bronze: #c96a11;
  --color-info: #4c8bf5;
  --color-success: #2ea86b;
  --color-warning: #d9842b;
  --color-danger: #c85a52;
  --color-white: #ffffff;

  --rgb-teal: 47 129 144;
  --rgb-indigo: 57 59 151;
  --rgb-violet: 87 59 151;
  --rgb-gold: 249 199 67;
  --rgb-bronze: 201 106 17;
  --rgb-info: 76 139 245;
  --rgb-success: 46 168 107;
  --rgb-warning: 217 132 43;
  --rgb-danger: 200 90 82;
  --rgb-text: 245 247 250;
  --rgb-text-dim: 199 208 218;

  --surface-shell: rgb(11 13 16 / 0.92);
  --surface-panel: linear-gradient(180deg, rgb(24 32 42 / 0.96), rgb(17 22 28 / 0.96));
  --surface-panel-strong: linear-gradient(180deg, rgb(32 41 55 / 0.94), rgb(17 22 28 / 0.98));
  --surface-hero: linear-gradient(180deg, rgb(17 22 28 / 0.84), rgb(11 13 16 / 0.92));
  --surface-code: linear-gradient(180deg, rgb(14 18 24 / 0.98), rgb(8 10 14 / 0.98));

  --line-soft: rgb(255 255 255 / 0.06);
  --line-strong: rgb(255 255 255 / 0.12);
  --line-accent: rgb(var(--rgb-gold) / 0.42);
  --line-teal: rgb(var(--rgb-teal) / 0.46);
  --line-indigo: rgb(var(--rgb-indigo) / 0.52);

  --shadow-sm: 0 8px 18px rgb(0 0 0 / 0.22);
  --shadow-md: 0 18px 40px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 28px 72px rgb(0 0 0 / 0.44);
  --glow-teal: 0 0 0 1px rgb(var(--rgb-teal) / 0.2), 0 18px 50px rgb(var(--rgb-teal) / 0.16);
  --glow-indigo: 0 0 0 1px rgb(var(--rgb-indigo) / 0.22), 0 18px 50px rgb(var(--rgb-indigo) / 0.18);
  --glow-gold: 0 0 0 1px rgb(var(--rgb-gold) / 0.22), 0 14px 34px rgb(var(--rgb-gold) / 0.12);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --font-ui: "Avenir Next", "Segoe UI Variable", "Segoe UI", "Trebuchet MS", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;

  --transition-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 260ms cubic-bezier(0.22, 1, 0.36, 1);

  --icon-sigil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12,2l7,4v12l-7,4l-7-4V6l7-4zm0,3.2L8,7.4v7.2l4,2.2l4-2.2V7.4L12,5.2zm0,2.1l2.2,1.2v3.5L12,13.2l-2.2-1.2V8.5L12,7.3z'/%3E%3C/svg%3E");
  --icon-secure: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12,2l7,3v5c0,4.6-3,8.8-7,10c-4-1.2-7-5.4-7-10V5l7-3zm-1,5H9v3H6v2h3v3h2v-3h3v-2h-3V7z'/%3E%3C/svg%3E");
  --icon-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5,6h12a2,2,0,0,1,2,2v8a2,2,0,0,1-2,2H5a2,2,0,0,1-2-2V8a2,2,0,0,1,2-2zm0,3v6h12V9H5zm10,1.5a1,1,0,1,1,0,2a1,1,0,0,1,0-2z'/%3E%3C/svg%3E");
  --icon-permissions: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12,2l7,3v5c0,4.6-3,8.8-7,10c-4-1.2-7-5.4-7-10V5l7-3zm-1.1,10.8l4.7-4.7l1.4,1.4l-6.1,6.1L8,12.7l1.4-1.4l1.5,1.5z'/%3E%3C/svg%3E");
  --icon-messaging: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4,6h16v12H4V6zm2,2v0.5l6,4l6-4V8H6zm12,8v-5l-6,4l-6-4v5h12z'/%3E%3C/svg%3E");
  --icon-market: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4,8l2-4h12l2,4v2a2,2,0,0,1-2,2a2,2,0,0,1-2-2a2,2,0,0,1-2,2a2,2,0,0,1-2-2a2,2,0,0,1-2,2a2,2,0,0,1-2-2a2,2,0,0,1-2,2a2,2,0,0,1-2-2V8zm2,4h12v8H6v-8zm2,2v4h3v-4H8z'/%3E%3C/svg%3E");
  --icon-typescript: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13,2L5,13h5l-1,9l8-11h-5l1-9z'/%3E%3C/svg%3E");
  --icon-game: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7,9h10a4,4,0,0,1,4,4v1a3,3,0,0,1-3,3h-2l-2-2H10l-2,2H6a3,3,0,0,1-3-3v-1a4,4,0,0,1,4-4zm1,2v2H6v2h2v2h2v-2h2v-2H10v-2H8zm7,1.5a1,1,0,1,1,0,2a1,1,0,0,1,0-2zm3,0a1,1,0,1,1,0,2a1,1,0,0,1,0-2z'/%3E%3C/svg%3E");
  --icon-store: var(--icon-market);
  --icon-chain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.8,15.2l-2.5,2.5a3,3,0,1,0,4.2,4.2l2.5-2.5l-1.4-1.4l-2.5,2.5a1,1,0,1,1-1.4-1.4l2.5-2.5l-1.4-1.4zm6.4-6.4l2.5-2.5a3,3,0,1,0-4.2-4.2l-2.5,2.5l1.4,1.4l2.5-2.5a1,1,0,1,1,1.4,1.4l-2.5,2.5l1.4,1.4zm-5.7,7.1l8-8l1.4,1.4l-8,8l-1.4-1.4z'/%3E%3C/svg%3E");
  --icon-github: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12,0C5.373,0,0,5.373,0,12c0,5.302,3.438,9.8,8.207,11.387c0.599,0.111,0.793-0.261,0.793-0.577v-2.234c-3.338,0.726-4.033-1.416-4.033-1.416c-0.546-1.387-1.333-1.756-1.333-1.756c-1.089-0.745,0.083-0.729,0.083-0.729c1.205,0.084,1.839,1.237,1.839,1.237c1.07,1.834,2.807,1.304,3.492,0.997c0.107-0.775,0.418-1.305,0.762-1.604c-2.665-0.305-5.467-1.334-5.467-5.931c0-1.311,0.469-2.381,1.236-3.221C6.445,7.85,6.034,6.629,6.686,4.977c0,0,1.008-0.322,3.301,1.23C10.944,5.941,11.97,5.808,12.99,5.803c1.02,0.005,2.047,0.138,3.006,0.404c2.291-1.552,3.297-1.23,3.297-1.23c0.653,1.653,0.242,2.874,0.118,3.176c0.77,0.84,1.235,1.911,1.235,3.221c0,4.609-2.807,5.624-5.479,5.921c0.43,0.372,0.823,1.102,0.823,2.222v3.293c0,0.319,0.192,0.694,0.801,0.576C20.566,21.799,24,17.302,24,12C24,5.373,18.627,0,12,0z'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  font-family: var(--font-ui);
  color: var(--color-text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top, rgb(var(--rgb-teal) / 0.14), transparent 28%),
    radial-gradient(circle at 82% 12%, rgb(var(--rgb-indigo) / 0.16), transparent 22%),
    linear-gradient(180deg, #060709 0%, #0b0d10 28%, #10151c 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23f9c743' stroke-opacity='.16'%3E%3Cpath d='M110 20l70 40v100l-70 40-70-40V60z'/%3E%3Cpath d='M110 54l40 23v66l-40 23-40-23V77z'/%3E%3Cpath d='M110 82l14 8v24l-14 8-14-8V90z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
  background-position: center top;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(var(--rgb-gold) / 0.05), transparent 18%),
    radial-gradient(circle at 50% 0%, rgb(var(--rgb-gold) / 0.07), transparent 32%);
}

body,
button,
input,
textarea,
select {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--color-void);
  background: rgb(var(--rgb-gold) / 0.9);
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

a:hover {
  color: rgb(var(--rgb-text) / 0.98);
}

button {
  font: inherit;
  color: inherit;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid rgb(var(--rgb-gold) / 0.92);
  outline-offset: 3px;
}

main,
section,
nav,
footer,
header {
  position: relative;
  z-index: 1;
}

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

.site-shell {
  overflow-x: clip;
}

.site-shell main {
  padding-bottom: 88px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgb(8 10 13 / 0.9), rgb(8 10 13 / 0.72));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.22);
}

.navbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--rgb-gold) / 0.7), transparent);
}

.nav-container {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-logo:hover {
  color: var(--color-white);
}

.logo-icon,
.feature-icon,
.arch-icon,
.example-preview {
  font-size: 0;
  line-height: 0;
}

.logo-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgb(var(--rgb-gold) / 0.2), rgb(var(--rgb-teal) / 0.18)),
    linear-gradient(180deg, rgb(255 255 255 / 0.08), transparent);
  border: 1px solid rgb(var(--rgb-gold) / 0.25);
  box-shadow: var(--glow-gold);
}

.logo-icon::before,
.feature-icon::before,
.arch-icon::before,
.example-preview::before,
.nav-github::before {
  content: "";
  display: block;
  flex: none;
  background: linear-gradient(180deg, rgb(var(--rgb-text) / 1), rgb(var(--icon-rgb, var(--rgb-gold)) / 0.82));
  mask: var(--icon-mask) no-repeat center / contain;
  -webkit-mask: var(--icon-mask) no-repeat center / contain;
}

.icon-sigil {
  --icon-mask: var(--icon-sigil);
  --icon-rgb: var(--rgb-gold);
}

.logo-icon::before {
  width: 1.2rem;
  height: 1.2rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-menu li {
  display: flex;
}

.nav-menu a {
  position: relative;
  padding: 10px 12px;
  color: var(--color-text-dim);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  inset: auto 12px 6px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-teal), var(--color-indigo));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-white);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-github {
  gap: 8px;
}

.nav-github::before {
  width: 1rem;
  height: 1rem;
  background: currentColor;
  --icon-mask: var(--icon-github);
  --icon-rgb: var(--rgb-text-dim);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.02);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-toggle:hover {
  background: rgb(var(--rgb-teal) / 0.1);
  border-color: rgb(var(--rgb-teal) / 0.42);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-text);
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

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

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

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

.hero {
  padding: 76px 0 32px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 24px 0 0;
  background:
    radial-gradient(circle at 50% 10%, rgb(var(--rgb-teal) / 0.18), transparent 24%),
    radial-gradient(circle at 70% 20%, rgb(var(--rgb-indigo) / 0.16), transparent 28%),
    linear-gradient(180deg, rgb(var(--rgb-gold) / 0.08), transparent 16%);
  pointer-events: none;
}

.hero-content {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 58px 56px 52px;
  text-align: center;
  background: var(--surface-hero);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-content::before,
.hero-content::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content::before {
  background:
    linear-gradient(135deg, rgb(var(--rgb-gold) / 0.16), transparent 16%),
    linear-gradient(315deg, rgb(var(--rgb-teal) / 0.1), transparent 28%);
  opacity: 0.8;
}

.hero-content::after {
  inset: 14px;
  border: 1px solid rgb(var(--rgb-gold) / 0.14);
  border-radius: calc(var(--radius-xl) - 8px);
}

.hero h1 {
  position: relative;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  color: var(--color-text);
  text-shadow: 0 6px 18px rgb(0 0 0 / 0.34);
}

.hero-subtitle {
  position: relative;
  max-width: 680px;
  margin: 0 auto 18px;
  color: var(--color-text-dim);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-description {
  position: relative;
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

.hero-buttons,
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-buttons {
  position: relative;
  margin-bottom: 28px;
}

.btn,
.copy-btn,
.code-copy-btn {
  border: 0;
  border-radius: var(--radius-pill);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-teal), var(--color-indigo));
  box-shadow: var(--glow-teal);
}

.btn-primary:hover {
  color: var(--color-white);
  box-shadow:
    0 0 0 1px rgb(var(--rgb-teal) / 0.25),
    0 18px 42px rgb(var(--rgb-indigo) / 0.26);
}

.btn-secondary {
  color: var(--color-text);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.02));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.btn-secondary:hover {
  color: var(--color-white);
  border-color: rgb(var(--rgb-gold) / 0.35);
  background: linear-gradient(180deg, rgb(var(--rgb-gold) / 0.08), rgb(255 255 255 / 0.03));
}

.hero-install {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px 14px 12px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.02));
  border: 1px solid rgb(var(--rgb-teal) / 0.2);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.05),
    var(--shadow-sm);
}

.hero-install::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgb(255 255 255 / 0.04);
  pointer-events: none;
}

.hero-install code {
  position: relative;
  color: var(--color-text-dim);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.copy-btn,
.code-copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
  background: linear-gradient(180deg, rgb(var(--rgb-teal) / 0.22), rgb(var(--rgb-indigo) / 0.22));
  border: 1px solid rgb(var(--rgb-teal) / 0.28);
  color: var(--color-text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.copy-btn::before,
.code-copy-btn::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  background: linear-gradient(180deg, rgb(var(--rgb-text) / 1), rgb(var(--rgb-teal) / 0.82));
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9,9h10v12H9V9zm-4-6h10v4H7v10H5V3zm4,2v2h4V5H9z'/%3E%3C/svg%3E")
    no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9,9h10v12H9V9zm-4-6h10v4H7v10H5V3zm4,2v2h4V5H9z'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

.copy-btn:hover,
.code-copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgb(var(--rgb-teal) / 0.46);
  box-shadow: var(--glow-teal);
}

.copy-btn[data-copy-state="copied"],
.code-copy-btn[data-copy-state="copied"] {
  background: linear-gradient(180deg, rgb(var(--rgb-success) / 0.24), rgb(var(--rgb-success) / 0.16));
  border-color: rgb(var(--rgb-success) / 0.42);
}

.copy-btn[data-copy-state="error"],
.code-copy-btn[data-copy-state="error"] {
  background: linear-gradient(180deg, rgb(var(--rgb-danger) / 0.22), rgb(var(--rgb-danger) / 0.14));
  border-color: rgb(var(--rgb-danger) / 0.42);
}

.features,
.code-example,
.architecture,
.packages,
.cta {
  padding: 86px 0;
}

.features,
.architecture,
.footer {
  background: linear-gradient(180deg, rgb(7 9 11 / 0.9), rgb(11 13 16 / 0.96));
}

.code-example,
.packages {
  background: linear-gradient(180deg, rgb(12 16 21 / 0.9), rgb(13 18 24 / 0.96));
}

.cta {
  background:
    radial-gradient(circle at center, rgb(var(--rgb-indigo) / 0.16), transparent 46%),
    linear-gradient(180deg, rgb(12 16 21 / 0.96), rgb(8 10 13 / 0.96));
}

.features h2,
.code-example h2,
.architecture h2,
.packages h2,
.cta h2 {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.features h2::after,
.code-example h2::after,
.architecture h2::after,
.packages h2::after,
.cta h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 92px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, transparent, rgb(var(--rgb-gold) / 0.88), transparent);
}

.code-example > .container > p,
.cta p,
.architecture-note {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
}

.code-example > .container > p,
.cta p {
  margin-bottom: 34px;
  font-size: 1.02rem;
}

.features-grid,
.packages-grid,
.example-grid {
  display: grid;
  gap: 24px;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.packages-grid,
.example-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card,
.package-card,
.example-card,
.arch-box,
.docs-nav,
.page-header,
.docs-content pre,
.docs-content table,
.permission-preview,
.code-panels,
.hero-content,
.docs-content .alert,
.docs-content .info-box,
.docs-content .warning-box {
  position: relative;
}

.feature-card {
  --card-accent: var(--color-teal);
  --card-accent-rgb: var(--rgb-teal);
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface-panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.feature-card::before,
.package-card::before,
.example-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgb(var(--card-accent-rgb, var(--rgb-gold)) / 0.9), transparent);
}

.feature-card::after,
.package-card::after,
.example-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-lg) - 10px);
  border: 1px solid rgb(255 255 255 / 0.04);
  pointer-events: none;
}

.feature-card:hover,
.package-card:hover,
.example-card:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--card-accent-rgb, var(--rgb-gold)) / 0.42);
  box-shadow:
    0 28px 56px rgb(0 0 0 / 0.34),
    0 0 0 1px rgb(var(--card-accent-rgb, var(--rgb-gold)) / 0.1);
}

.feature-card-secure {
  --card-accent: var(--color-teal);
  --card-accent-rgb: var(--rgb-teal);
}

.feature-card-wallet {
  --card-accent: var(--color-indigo);
  --card-accent-rgb: var(--rgb-indigo);
}

.feature-card-permissions {
  --card-accent: var(--color-gold);
  --card-accent-rgb: var(--rgb-gold);
}

.feature-card-messaging {
  --card-accent: var(--color-violet);
  --card-accent-rgb: var(--rgb-violet);
}

.feature-card-market {
  --card-accent: var(--color-bronze);
  --card-accent-rgb: var(--rgb-bronze);
}

.feature-card-typescript {
  --card-accent: var(--color-teal);
  --card-accent-rgb: var(--rgb-teal);
}

.feature-icon {
  width: 3.9rem;
  height: 3.9rem;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgb(var(--icon-rgb, var(--rgb-teal)) / 0.2), rgb(255 255 255 / 0.04)),
    linear-gradient(180deg, rgb(255 255 255 / 0.06), transparent);
  border: 1px solid rgb(var(--icon-rgb, var(--rgb-teal)) / 0.22);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.05),
    var(--shadow-sm);
}

.feature-icon::before {
  width: 1.45rem;
  height: 1.45rem;
}

.icon-secure {
  --icon-mask: var(--icon-secure);
  --icon-rgb: var(--rgb-teal);
}

.icon-wallet {
  --icon-mask: var(--icon-wallet);
  --icon-rgb: var(--rgb-indigo);
}

.icon-permissions {
  --icon-mask: var(--icon-permissions);
  --icon-rgb: var(--rgb-gold);
}

.icon-messaging {
  --icon-mask: var(--icon-messaging);
  --icon-rgb: var(--rgb-violet);
}

.icon-market,
.preview-market {
  --icon-mask: var(--icon-market);
  --icon-rgb: var(--rgb-bronze);
}

.icon-typescript {
  --icon-mask: var(--icon-typescript);
  --icon-rgb: var(--rgb-teal);
}

.icon-game,
.preview-game {
  --icon-mask: var(--icon-game);
  --icon-rgb: var(--rgb-teal);
}

.icon-store {
  --icon-mask: var(--icon-store);
  --icon-rgb: var(--rgb-indigo);
}

.icon-chain {
  --icon-mask: var(--icon-chain);
  --icon-rgb: var(--rgb-bronze);
}

.feature-card h3,
.package-card h3,
.example-info h3 {
  margin-bottom: 12px;
  color: var(--color-text);
}

.feature-card h3 {
  font-size: 1.28rem;
}

.feature-card p,
.package-card p,
.example-info p {
  color: var(--color-text-muted);
}

.code-tabs {
  display: flex;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.03), rgb(255 255 255 / 0.015));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.05),
    var(--shadow-sm);
}

.tab-btn {
  min-height: 44px;
  padding: 0 18px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  color: var(--color-white);
  background: linear-gradient(135deg, rgb(var(--rgb-teal) / 0.92), rgb(var(--rgb-indigo) / 0.88));
  box-shadow: var(--glow-indigo);
}

.code-panels {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-code);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-panels::before {
  content: "";
  display: block;
  height: 44px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 24px 50%, rgb(var(--rgb-danger) / 0.9) 0 5px, transparent 6px),
    radial-gradient(circle at 46px 50%, rgb(var(--rgb-warning) / 0.9) 0 5px, transparent 6px),
    radial-gradient(circle at 68px 50%, rgb(var(--rgb-success) / 0.9) 0 5px, transparent 6px),
    linear-gradient(180deg, rgb(255 255 255 / 0.05), transparent);
}

.code-panel {
  display: none;
}

.code-panel.active {
  display: block;
}

.code-panel pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
}

.site-shell pre code.hljs,
.site-shell .docs-content pre code.hljs,
.site-shell .code-panel pre code.hljs {
  display: block;
  padding: 0;
  background: transparent;
  color: #dce5ec;
  line-height: 1.75;
}

.site-shell .hljs-comment,
.site-shell .hljs-quote {
  color: #7e8b99;
}

.site-shell .hljs-keyword,
.site-shell .hljs-selector-tag,
.site-shell .hljs-literal {
  color: #8ad8de;
}

.site-shell .hljs-string,
.site-shell .hljs-doctag {
  color: #f7d777;
}

.site-shell .hljs-number,
.site-shell .hljs-attribute,
.site-shell .hljs-template-variable,
.site-shell .hljs-variable {
  color: #e3a95f;
}

.site-shell .hljs-title,
.site-shell .hljs-function,
.site-shell .hljs-section {
  color: #aebcff;
}

.site-shell .hljs-built_in,
.site-shell .hljs-type {
  color: #9ad4b7;
}

.architecture-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.arch-box {
  --arch-accent: var(--color-teal);
  --arch-accent-rgb: var(--rgb-teal);
  min-width: 180px;
  padding: 28px 28px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--surface-panel-strong);
  border: 1px solid rgb(var(--arch-accent-rgb) / 0.26);
  box-shadow:
    0 20px 48px rgb(0 0 0 / 0.34),
    0 0 0 1px rgb(var(--arch-accent-rgb) / 0.08);
}

.arch-box::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-lg) - 10px);
  border: 1px solid rgb(255 255 255 / 0.04);
  pointer-events: none;
}

.arch-box.game {
  --arch-accent: var(--color-teal);
  --arch-accent-rgb: var(--rgb-teal);
}

.arch-box.store {
  --arch-accent: var(--color-indigo);
  --arch-accent-rgb: var(--rgb-indigo);
}

.arch-box.blockchain {
  --arch-accent: var(--color-bronze);
  --arch-accent-rgb: var(--rgb-bronze);
}

.arch-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(var(--arch-accent-rgb) / 0.18), rgb(255 255 255 / 0.04));
  border: 1px solid rgb(var(--arch-accent-rgb) / 0.24);
}

.arch-icon::before {
  width: 1.4rem;
  height: 1.4rem;
  background: linear-gradient(180deg, rgb(var(--rgb-text) / 1), rgb(var(--arch-accent-rgb) / 0.88));
}

.arch-box h4 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.arch-box p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.arch-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgb(6 7 9 / 0.96);
  border: 1px solid rgb(var(--arch-accent-rgb) / 0.28);
  color: rgb(var(--arch-accent-rgb) / 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arch-arrow {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.arch-arrow span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arrow-line {
  position: relative;
  width: 74px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgb(var(--rgb-teal) / 0.7), rgb(var(--rgb-indigo) / 0.72));
}

.arrow-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 2px solid rgb(var(--rgb-indigo) / 0.8);
  border-right: 2px solid rgb(var(--rgb-indigo) / 0.8);
}

.architecture-note {
  font-size: 0.98rem;
}

.package-card,
.example-card {
  --card-accent: var(--color-gold);
  --card-accent-rgb: var(--rgb-gold);
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.package-card {
  min-height: 100%;
}

.package-card h3 {
  font-size: 1.02rem;
  font-family: var(--font-mono);
  color: var(--color-text);
}

.package-card code {
  display: block;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(8 10 13 / 0.94), rgb(14 18 24 / 0.94));
  border: 1px solid rgb(var(--rgb-gold) / 0.16);
  color: var(--color-text-dim);
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}

.cta .container {
  padding: 42px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgb(17 22 28 / 0.82), rgb(8 10 13 / 0.86));
  box-shadow: var(--shadow-lg);
}

.footer {
  padding: 56px 0 24px;
  border-top: 1px solid var(--line-soft);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--rgb-gold) / 0.45), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 28px;
}

.footer-section h4 {
  margin-bottom: 14px;
  color: var(--color-text);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-section p,
.footer-bottom p,
.footer-section a {
  color: var(--color-text-muted);
  font-size: 0.93rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li + li {
  margin-top: 10px;
}

.footer-section a:hover {
  color: var(--color-text);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.page-header {
  margin-top: 34px;
  padding: 42px 42px 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 20%, rgb(var(--rgb-gold) / 0.08), transparent 22%),
    radial-gradient(circle at 85% 18%, rgb(var(--rgb-indigo) / 0.12), transparent 24%), var(--surface-panel-strong);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgb(var(--rgb-gold) / 0.12);
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.4vw, 3.8rem);
  line-height: 1;
}

.page-header p {
  position: relative;
  max-width: 720px;
  color: var(--color-text-dim);
  font-size: 1.04rem;
}

.page-docs main.container {
  padding-top: 40px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.docs-nav {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(17 22 28 / 0.94), rgb(11 13 16 / 0.96));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}

.docs-nav::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-lg) - 10px);
  border: 1px solid rgb(255 255 255 / 0.04);
  pointer-events: none;
}

.docs-nav h4 {
  margin-bottom: 12px;
  color: rgb(var(--rgb-gold) / 0.88);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-nav h4 + ul,
.docs-nav ul + h4 {
  margin-top: 18px;
}

.docs-nav ul {
  list-style: none;
}

.docs-nav li + li {
  margin-top: 4px;
}

.docs-nav a {
  display: block;
  padding: 10px 12px 10px 14px;
  border-left: 2px solid transparent;
  border-radius: 14px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.docs-nav a:hover {
  color: var(--color-text);
  background: rgb(255 255 255 / 0.03);
}

.docs-nav a.active {
  color: var(--color-white);
  background: linear-gradient(90deg, rgb(var(--rgb-teal) / 0.18), rgb(var(--rgb-indigo) / 0.12));
  border-left-color: var(--color-teal);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.03);
}

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

.docs-content h2,
.docs-content h3 {
  color: var(--color-text);
  scroll-margin-top: 112px;
}

.docs-content h2 {
  margin-top: 54px;
  margin-bottom: 16px;
  padding-top: 26px;
  padding-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line-soft);
}

.docs-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.docs-content h3 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 1.16rem;
}

.docs-content p,
.docs-content ul,
.docs-content ol,
.docs-content table,
.docs-content .alert,
.docs-content .info-box,
.docs-content .warning-box,
.docs-content .permission-preview {
  margin-bottom: 20px;
}

.docs-content p,
.docs-content li,
.docs-content td {
  color: var(--color-text-dim);
}

.docs-content ul,
.docs-content ol {
  padding-left: 22px;
}

.docs-content li + li {
  margin-top: 8px;
}

.docs-content li::marker {
  color: rgb(var(--rgb-gold) / 0.78);
}

.docs-content strong {
  color: var(--color-text);
}

.docs-content a {
  color: rgb(var(--rgb-teal) / 0.96);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.docs-content a:hover {
  color: var(--color-white);
}

.docs-content p code,
.docs-content li code,
.package-card code,
.hero-install code {
  border-radius: 12px;
}

.docs-content p code,
.docs-content li code {
  padding: 0.18em 0.5em;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(var(--rgb-gold) / 0.12);
  color: var(--color-text);
  font-size: 0.88em;
}

.docs-content pre {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-code);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.code-block-wrapper {
  position: relative;
}

.code-copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 36px;
  padding: 0 14px;
  opacity: 0;
  pointer-events: none;
}

.code-block-wrapper:hover .code-copy-btn,
.code-block-wrapper:focus-within .code-copy-btn {
  opacity: 1;
  pointer-events: auto;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgb(14 18 24 / 0.94), rgb(10 12 15 / 0.94));
  box-shadow: var(--shadow-md);
}

.docs-content th,
.docs-content td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
}

.docs-content th {
  color: var(--color-text);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.02));
}

.docs-content tbody tr:hover td {
  background: rgb(255 255 255 / 0.02);
}

.alert,
.info-box,
.warning-box {
  --callout-accent: var(--color-info);
  --callout-accent-rgb: var(--rgb-info);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgb(var(--callout-accent-rgb) / 0.28);
  background: linear-gradient(180deg, rgb(var(--callout-accent-rgb) / 0.12), rgb(255 255 255 / 0.02));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.04),
    var(--shadow-sm);
}

.alert::before,
.info-box::before,
.warning-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgb(var(--callout-accent-rgb) / 1), rgb(var(--callout-accent-rgb) / 0.16));
}

.alert-title,
.info-box > strong:first-child,
.warning-box > strong:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text);
  font-weight: 700;
}

.alert-info,
.info-box {
  --callout-accent: var(--color-info);
  --callout-accent-rgb: var(--rgb-info);
}

.alert-warning,
.warning-box {
  --callout-accent: var(--color-warning);
  --callout-accent-rgb: var(--rgb-warning);
}

.alert-success {
  --callout-accent: var(--color-success);
  --callout-accent-rgb: var(--rgb-success);
}

.alert p,
.info-box p,
.warning-box p,
.info-box ul,
.warning-box ul {
  margin-bottom: 0;
}

.permission-preview {
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.03), rgb(255 255 255 / 0.02));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}

.permission-preview-label {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.permission-preview-modal {
  max-width: 420px;
  margin: 0 auto;
  padding: 22px 22px 18px;
  text-align: left;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgb(var(--rgb-indigo) / 0.18), transparent 30%),
    linear-gradient(180deg, rgb(14 18 24 / 0.96), rgb(8 10 13 / 0.98));
  border: 1px solid rgb(var(--rgb-teal) / 0.24);
  box-shadow:
    0 24px 44px rgb(0 0 0 / 0.32),
    0 0 0 1px rgb(var(--rgb-teal) / 0.1);
}

.permission-preview-title {
  margin-bottom: 10px;
  color: var(--color-text);
  font-size: 1rem;
}

.permission-preview-subtitle {
  margin-bottom: 16px;
  color: var(--color-text-dim);
  font-size: 0.92rem;
}

.permission-preview-heading {
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.permission-preview-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.permission-preview-list li {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.permission-preview-list li + li {
  margin-top: 8px;
}

.example-grid-featured {
  margin-bottom: 32px;
}

.example-card-game {
  --card-accent-rgb: var(--rgb-teal);
}

.example-card-market {
  --card-accent-rgb: var(--rgb-bronze);
}

.example-preview {
  min-height: 172px;
  display: grid;
  place-items: center;
  margin: -24px -24px 20px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 50% 34%, rgb(var(--preview-accent-rgb, var(--rgb-teal)) / 0.18), transparent 32%),
    linear-gradient(180deg, rgb(14 18 24 / 0.96), rgb(8 10 13 / 0.98));
  overflow: hidden;
}

.example-preview::before {
  width: 3rem;
  height: 3rem;
  position: relative;
  z-index: 1;
}

.example-preview::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 20px;
  border: 1px solid rgb(var(--preview-accent-rgb, var(--rgb-teal)) / 0.2);
  background:
    linear-gradient(135deg, rgb(var(--preview-accent-rgb, var(--rgb-teal)) / 0.08), transparent 30%),
    linear-gradient(315deg, rgb(255 255 255 / 0.03), transparent);
}

.preview-game {
  --preview-accent-rgb: var(--rgb-teal);
}

.preview-market {
  --preview-accent-rgb: var(--rgb-bronze);
}

.example-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.example-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  background: rgb(255 255 255 / 0.03);
  border: 1px solid var(--line-strong);
}

.example-links a:hover {
  border-color: rgb(var(--rgb-teal) / 0.36);
  background: linear-gradient(180deg, rgb(var(--rgb-teal) / 0.1), rgb(255 255 255 / 0.02));
}

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

  .docs-sidebar {
    position: static;
  }

  .docs-nav {
    overflow-x: auto;
  }

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

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 24px;
    right: 24px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgb(17 22 28 / 0.98), rgb(8 10 13 / 0.98));
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
  }

  .hero-content,
  .page-header {
    padding: 40px 28px;
  }

  .hero-install {
    flex-direction: column;
    padding: 16px 18px;
    border-radius: 22px;
  }

  .hero-install code {
    font-size: 0.88rem;
  }

  .architecture-diagram {
    flex-direction: column;
  }

  .arch-arrow {
    grid-auto-flow: column;
  }

  .arrow-line {
    width: 2px;
    height: 54px;
    background: linear-gradient(180deg, rgb(var(--rgb-teal) / 0.7), rgb(var(--rgb-indigo) / 0.72));
  }

  .arrow-line::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%) rotate(135deg);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-container {
    width: min(100% - 32px, 1220px);
  }

  .hero {
    padding-top: 56px;
  }

  .hero-content,
  .page-header {
    padding: 34px 20px 28px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
  }

  .btn,
  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
  }

  .features,
  .code-example,
  .architecture,
  .packages,
  .cta {
    padding: 68px 0;
  }

  .feature-card,
  .package-card,
  .example-card,
  .docs-nav,
  .docs-content pre,
  .permission-preview {
    padding-left: 18px;
    padding-right: 18px;
  }

  .code-panel pre {
    padding: 20px 18px;
  }

  .docs-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .code-copy-btn {
    top: 12px;
    right: 12px;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }

  .btn:hover,
  .feature-card:hover,
  .package-card:hover,
  .example-card:hover,
  .copy-btn:hover,
  .code-copy-btn:hover {
    transform: none;
  }
}
