:root {
  --bg: #060b18;
  --bg-alt: #0c1225;
  --bg-card: #0f1629;
  --bg-card-hover: #151d35;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(0, 229, 153, 0.3);
  --text: #e2e8f0;
  --text-bright: #f8fafc;
  --text-muted: #64748b;
  --accent: #00e599;
  --accent-hover: #00cc88;
  --accent-glow: rgba(0, 229, 153, 0.15);
  --accent-dim: rgba(0, 229, 153, 0.06);
  --cyan: #38bdf8;
  --violet: #a78bfa;
  --dot-red: #ef4444;
  --dot-yellow: #eab308;
  --dot-green: #22c55e;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 229, 153, 0.08);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --content: 1140px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(0, 229, 153, 0.07) 0%, transparent 100%),
    radial-gradient(ellipse 60% 50% at 80% -5%, rgba(56, 189, 248, 0.05) 0%, transparent 100%);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  color: var(--text-bright);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

code {
  font-family: var(--font-mono);
}

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

ul, ol {
  padding-left: 1.25rem;
}

/* ===== LAYOUT ===== */

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

/* ===== HEADER ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 24, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 0 0;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.brand__icon svg {
  width: 18px;
  height: 18px;
  fill: var(--bg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav__gh {
  margin-left: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.nav__gh:hover {
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

.nav__gh svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== HERO ===== */

.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 24px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 153, 0.12);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 16ch;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 50%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(0, 229, 153, 0.25);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  box-shadow: 0 0 30px rgba(0, 229, 153, 0.35);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-bright);
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ===== TERMINAL MOCKUP ===== */

.terminal {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  text-align: left;
}

.terminal__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal__dot--red { background: var(--dot-red); }
.terminal__dot--yellow { background: var(--dot-yellow); }
.terminal__dot--green { background: var(--dot-green); }

.terminal__title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.terminal__body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text);
  overflow-x: auto;
}

.terminal__body .prompt {
  color: var(--accent);
  user-select: none;
}

.terminal__body .comment {
  color: var(--text-muted);
}

.terminal__body .flag {
  color: var(--cyan);
}

.terminal__body .value {
  color: var(--violet);
}

/* ===== STATS ROW ===== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 60px 0 0;
}

.stat {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease;
}

.stat:hover {
  border-color: rgba(0, 229, 153, 0.15);
}

.stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== SECTIONS ===== */

.section {
  padding: 80px 0;
}

.section--tight {
  padding-top: 40px;
}

.section__header {
  margin-bottom: 40px;
}

.section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 153, 0.1);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section__lead {
  max-width: 600px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== GRID ===== */

.grid {
  display: grid;
  gap: 16px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ===== CARDS ===== */

.card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: rgba(0, 229, 153, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 153, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
}

.card__icon--cyan {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.1);
}

.card__icon--violet {
  background: rgba(167, 139, 250, 0.06);
  border-color: rgba(167, 139, 250, 0.1);
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card__title a {
  color: var(--text-bright);
  text-decoration: none;
}

.card__title a:hover {
  color: var(--accent);
}

.card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.card ul {
  margin-top: 8px;
  padding-left: 1rem;
}

.card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 4px;
}

.card li a {
  color: var(--text);
}

.card li a:hover {
  color: var(--accent);
}

/* ===== FEATURE CARDS (larger) ===== */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.feature:hover {
  border-color: rgba(0, 229, 153, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 153, 0.1);
}

.feature__icon--cyan {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.1);
}

.feature__icon--violet {
  background: rgba(167, 139, 250, 0.06);
  border-color: rgba(167, 139, 250, 0.1);
}

.feature__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-bright);
}

.feature__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== DIVIDER ===== */

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: none;
  margin: 0;
}

/* ===== PAGE LAYOUT (content pages) ===== */

.page {
  padding: 48px 0 80px;
}

.page__hero {
  margin-bottom: 32px;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.page__hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 153, 0.06), transparent 70%);
  pointer-events: none;
}

.page__hero .badge {
  display: inline-flex;
  padding: 5px 12px;
  margin-bottom: 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 153, 0.1);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page__hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.page__hero .lead {
  margin-top: 14px;
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.page__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

.page__content {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.page__content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.page__content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.page__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 24px;
}

.page__content p {
  margin-top: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.page__content ul, .page__content ol {
  margin-top: 12px;
  padding-left: 1.25rem;
}

.page__content li {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.page__content li a {
  color: var(--text);
}

.page__content li a:hover {
  color: var(--accent);
}

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

/* ===== SIDEBAR ===== */

.page__sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.sidebar-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.sidebar-link {
  display: block;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sidebar-link:last-child {
  margin-bottom: 0;
}

.sidebar-link:hover {
  border-color: rgba(0, 229, 153, 0.15);
  background: rgba(0, 229, 153, 0.03);
}

.sidebar-link strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.sidebar-link span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CODE BLOCKS ===== */

.code-block {
  margin-top: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-block__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border);
}

.code-block__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-block__dot--red { background: var(--dot-red); }
.code-block__dot--yellow { background: var(--dot-yellow); }
.code-block__dot--green { background: var(--dot-green); }

.code-block pre {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text);
  overflow-x: auto;
  margin: 0;
}

.code-block .prompt { color: var(--accent); }
.code-block .key { color: var(--cyan); }
.code-block .str { color: var(--violet); }
.code-block .comment { color: var(--text-muted); }

/* Inline code */
.ic {
  display: inline;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--accent);
}

/* ===== FOOTER ===== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.footer__brand {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__brand a {
  color: var(--text);
  font-weight: 600;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* ===== 404 PAGE ===== */

.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  text-align: center;
  padding: 40px 24px;
}

.page-404__code {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 50%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  margin-bottom: 16px;
}

.page-404 h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-404 p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== TABLES ===== */

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th,
.table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.table td {
  color: var(--text-muted);
  vertical-align: top;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.table td code {
  font-size: 0.84em;
}

/* ===== CALLOUT / ADMONITION ===== */

.callout {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
}

.callout--warning {
  border-left-color: #eab308;
  background: rgba(234, 179, 8, 0.06);
}

.callout--error {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}

.callout--info {
  border-left-color: var(--cyan);
  background: rgba(56, 189, 248, 0.06);
}

.callout--violet {
  border-left-color: var(--violet);
  background: rgba(167, 139, 250, 0.06);
}

.callout__title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.callout p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.callout p:first-of-type {
  margin-top: 0;
}

.callout code {
  font-size: 0.85em;
}

/* ===== DEFINITION LISTS ===== */

.page__content dl {
  margin-top: 12px;
}

.page__content dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
  font-size: 0.95rem;
}

.page__content dt:first-child {
  margin-top: 0;
}

.page__content dd {
  color: var(--text-muted);
  margin-top: 4px;
  padding-left: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.page__content dd code {
  font-size: 0.86em;
}

.page__content dd + dt {
  margin-top: 22px;
}

/* ===== TABLE OF CONTENTS ===== */

.toc {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.toc__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 5px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.toc ol ol {
  padding-left: 20px;
  margin-top: 4px;
}

/* ===== TAGS / BADGES ===== */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tag--green {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.tag--red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.tag--yellow {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.tag--blue {
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
}

.tag--violet {
  background: rgba(167, 139, 250, 0.1);
  color: var(--violet);
}

/* ===== REFERENCE CARD GRID ===== */

.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.ref-card {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
}

.ref-card:hover {
  border-color: rgba(0, 229, 153, 0.15);
  background: rgba(0, 229, 153, 0.02);
}

.ref-card strong {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 3px;
}

.ref-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== SECTION ANCHOR ===== */

.page__content h2[id],
.page__content h3[id] {
  position: relative;
}

.page__content h2[id]:hover::before,
.page__content h3[id]:hover::before {
  content: "#";
  position: absolute;
  margin-left: -1.1em;
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.3;
  font-size: 0.8em;
}

.page__content h2[id]:hover::before {
  margin-top: 0.05em;
}

/* ===== RESPONSIVE ===== */

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .page__sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }

  .site-header__inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 2px;
  }

  .nav a {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .grid--3, .grid--2, .features {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 48px 0;
  }

  .page__hero {
    padding: 24px;
  }

  .page__content {
    padding: 24px;
  }

  .feature, .card {
    padding: 24px;
  }

  .terminal {
    border-radius: var(--radius-md);
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
