/* ============================================================
   Create BSC Token — Editorial Pro Light Theme
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  --bg: #FFFFFF;
  --bg-2: #FAFAFB;
  --bg-3: #F4F4F7;
  --surface: #FFFFFF;
  --surface-2: #F7F7F9;
  --surface-3: #EFEFF3;
  --surface-hover: #FAFAFB;

  --border: #E8E8EC;
  --border-strong: #D6D6DC;
  --border-subtle: #F1F1F4;
  --border-hi: #C4C4CC;

  --text: #0B0B0F;
  --text-secondary: #4B4B54;
  --text-muted: #71717A;
  --text-dim: #A1A1AA;

  --accent: #F0B90B;
  --accent-ink: #9A6206;
  --accent-ink-strong: #7C4E05;
  --accent-text: #8A5705;
  --accent-soft: #FFFBEB;
  --accent-soft-2: #FEF3C7;
  --accent-line: #FCE9A8;

  --success: #15803D;
  --success-ink: #14532D;
  --success-soft: #F0FDF4;
  --success-line: #BBF7D0;
  --danger: #B91C1C;
  --danger-ink: #7F1D1D;
  --danger-soft: #FEF2F2;
  --danger-line: #FECACA;
  --info: #1D4ED8;
  --info-ink: #1E3A8A;
  --info-soft: #EFF6FF;
  --info-line: #BFDBFE;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 2px rgba(11, 11, 15, 0.04);
  --shadow-sm: 0 1px 3px rgba(11, 11, 15, 0.06), 0 1px 2px rgba(11, 11, 15, 0.03);
  --shadow-md: 0 6px 20px rgba(11, 11, 15, 0.07), 0 2px 5px rgba(11, 11, 15, 0.04);
  --shadow-lg: 0 18px 44px rgba(11, 11, 15, 0.09), 0 6px 12px rgba(11, 11, 15, 0.05);
  --shadow-xl: 0 32px 72px rgba(11, 11, 15, 0.12), 0 12px 24px rgba(11, 11, 15, 0.05);
  --shadow-gold: 0 12px 32px rgba(240, 185, 11, 0.22);

  --max-width: 1180px;
  --header-height: 66px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  scroll-padding-top: 88px;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-feature-settings: "cv11", "ss01", "ss03";
}

/* Ambient background: grid + gold wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 11, 15, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 15, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 100% 50% at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 100% 50% at 50% 0%, #000 0%, transparent 72%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 720px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 100% at 15% 0%, rgba(240, 185, 11, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 100% at 85% 0%, rgba(240, 185, 11, 0.10) 0%, transparent 60%);
}
body > * { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.04em; font-weight: 700; }
h3 { font-size: 1.08rem; letter-spacing: -0.02em; font-weight: 600; line-height: 1.42; }
h4 { font-size: 0.9rem; letter-spacing: -0.01em; font-weight: 600; }

p { color: var(--text-secondary); }
a { transition: color .15s ease; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
::selection { background: rgba(240, 185, 11, 0.30); color: var(--text); }

/* Inline code */
article code, .feature code, .faq-answer-inner code,
.section > .container > p code, .section > .container > ul code,
.section > .container > ol code, .callout code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 2px 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent-ink-strong);
  font-weight: 500;
  white-space: nowrap;
}
.code-body code {
  background: none; border: 0; padding: 0; color: inherit;
  font-size: inherit; white-space: pre;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -100px; left: 16px;
  padding: 10px 16px; background: var(--text); color: #fff;
  border-radius: var(--radius-md); font-weight: 600; z-index: 200;
  transition: top .2s ease; box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 12px; color: #fff; outline: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  transition: background .15s ease, border-color .15s ease, color .15s ease,
              box-shadow .2s ease, transform .15s ease;
  white-space: nowrap;
  isolation: isolate;
}
.btn svg { flex-shrink: 0; }
.btn:active { transform: translateY(0.5px); }

.btn-primary {
  background: var(--text); color: #FFF; border: 1px solid var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 2px 6px rgba(0,0,0,0.18);
}
.btn-primary:hover {
  background: #1E1E24; border-color: #1E1E24; color: #FFF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 22px rgba(0,0,0,0.16);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
  background: var(--surface-hover); border-color: var(--border-hi); color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.07); transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(180deg, #FFD045 0%, #F0B90B 100%);
  color: var(--text); border: 1px solid #D9A50A;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 2px 6px rgba(240,185,11,0.30);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #F5C32A 0%, #E0AC06 100%);
  border-color: #C7950A; color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 8px 22px rgba(240,185,11,0.35);
  transform: translateY(-1px);
}

.btn-youtube {
  background: #DC2626; color: #FFF; border: 1px solid #DC2626;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 2px 6px rgba(220,38,38,0.25);
}
.btn-youtube:hover {
  background: #B91C1C; border-color: #B91C1C; color: #FFF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 22px rgba(220,38,38,0.30);
  transform: translateY(-1px);
}

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--accent-line);
}
.badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(240,185,11,0.18);
}
.badge.badge-success { background: var(--success-soft); color: var(--success-ink); border-color: var(--success-line); }
.badge.badge-success::before { background: var(--success); box-shadow: 0 0 0 3px rgba(21,128,61,0.16); }
.badge.badge-danger { background: var(--danger-soft); color: var(--danger-ink); border-color: var(--danger-line); }
.badge.badge-danger::before { background: var(--danger); box-shadow: 0 0 0 3px rgba(185,28,28,0.16); }
.badge.badge-info { background: var(--info-soft); color: var(--info-ink); border-color: var(--info-line); }
.badge.badge-info::before { background: var(--info); box-shadow: 0 0 0 3px rgba(29,78,216,0.16); }

.pill {
  display: inline-flex; align-items: center;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 0.77rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all .15s ease;
}
.pill:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-hover); transform: translateY(-1px); }

/* ---------- Reading progress ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #9A6206);
  z-index: 200; transition: width .08s linear; pointer-events: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-width: 0;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; transition: opacity .15s ease; }
.logo:hover { opacity: 0.82; }
.logo img, .logo svg { height: 38px; width: auto; }

.nav-desktop {
  display: none; flex: 1 1 auto; align-items: center; justify-content: center;
  gap: 2px; min-width: 0;
}
.nav-desktop > a,
.nav-desktop > .has-dropdown > a {
  position: relative;
  padding: 8px 13px;
  font-size: 0.86rem; font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav-desktop > a:hover,
.nav-desktop > .has-dropdown > a:hover {
  color: var(--text); background: var(--surface-2);
}
.nav-desktop > a.active,
.nav-desktop > .has-dropdown > a.active { color: var(--text); font-weight: 600; }
.nav-desktop > a.active::after,
.nav-desktop > .has-dropdown > a.active::after {
  content: ""; position: absolute;
  left: 13px; right: 13px; bottom: -20px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-desktop .has-dropdown { position: relative; }
.nav-desktop .dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 320px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(6px) scale(.985);
  transform-origin: top left;
  transition: opacity .15s ease, transform .15s cubic-bezier(.2,.9,.2,1), visibility .15s;
  z-index: 10;
}
.nav-desktop .has-dropdown:hover .dropdown,
.nav-desktop .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.dropdown a {
  display: block; padding: 9px 12px;
  font-size: 0.85rem; font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background .12s ease, color .12s ease;
}
.dropdown a:hover { background: var(--surface-2); color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-actions .btn-primary { padding: 8px 15px; font-size: 0.82rem; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text);
  transition: all .15s ease;
}
.menu-btn:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.menu-btn svg { width: 18px; height: 18px; }

.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--surface); }
.mobile-menu.open { display: block; animation: slideDown .18s cubic-bezier(.2,.9,.2,1); }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu nav {
  max-width: var(--max-width); margin: 0 auto;
  padding: 12px 24px 18px;
  display: flex; flex-direction: column; gap: 1px;
}
.mobile-menu a {
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 500; color: var(--text-secondary);
  transition: background .12s ease, color .12s ease;
}
.mobile-menu a:hover, .mobile-menu a.active { background: var(--surface-2); color: var(--text); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { max-width: var(--max-width); margin: 0 auto; padding: 20px 24px 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--text-muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--text-dim); }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ============================================================
   HERO — the editorial showpiece
   ============================================================ */
.hero { position: relative; padding: 90px 0 80px; overflow: hidden; }
.hero.compact { padding: 56px 0 40px; }
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; }
.hero h1 { margin-top: 22px; max-width: 880px; }
.hero .lead {
  margin-top: 22px; max-width: 620px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-secondary); line-height: 1.7;
}
.hero-actions {
  margin-top: 34px; display: flex; flex-wrap: wrap;
  gap: 10px; align-items: center;
}
.hero-tags { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Split hero with illustration */
.hero-split .hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-split .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg, .hero-visual img {
  width: 100%;
  max-width: 560px;
  height: auto;
  animation: floatY 8s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; }
.section-head p  { margin-top: 14px; font-size: 1.02rem; line-height: 1.7; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Card ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2,.9,.2,1);
  box-shadow: var(--shadow-xs);
}
.card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), #B4880A);
  opacity: 0; transition: opacity .2s ease;
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(240,185,11,0.06) 0%, transparent 55%);
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3 { margin-top: 14px; }
.card p  { margin-top: 8px; font-size: 0.93rem; line-height: 1.65; }
.card .card-arrow {
  margin-top: auto; padding-top: 22px;
  color: var(--text); font-weight: 600; font-size: 0.86rem;
  display: inline-flex; align-items: center; gap: 5px;
  transition: gap .2s ease, color .2s ease;
}
.card:hover .card-arrow { gap: 10px; color: var(--accent-ink); }

/* Card with icon */
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent-soft-2) 100%);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink-strong);
  margin-bottom: 4px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.icon-green { background: var(--success-soft); border-color: var(--success-line); color: var(--success-ink); }
.card-icon.icon-red { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-ink); }
.card-icon.icon-blue { background: var(--info-soft); border-color: var(--info-line); color: var(--info-ink); }

/* Feature card */
.feature {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  box-shadow: var(--shadow-xs);
}
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature h3 { margin-top: 12px; }
.feature p  { margin-top: 8px; font-size: 0.93rem; line-height: 1.65; }
.feature ul, .feature ol { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.feature ul li, .feature ol li { color: var(--text-secondary); font-size: 0.93rem; }

/* ---------- Callouts ---------- */
.callout {
  position: relative;
  padding: 18px 22px 18px 24px;
  background: var(--info-soft);
  border: 1px solid var(--info-line);
  border-left: 3px solid var(--info);
  border-radius: var(--radius-md);
  margin-top: 24px;
}
.callout h3 { color: var(--info-ink); font-size: 0.95rem; }
.callout p, .callout li { color: var(--text-secondary); font-size: 0.92rem; }
.callout p { margin-top: 6px; }
.callout ul { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }

.callout.tip { background: var(--accent-soft); border-color: var(--accent-line); border-left-color: var(--accent); }
.callout.tip h3 { color: var(--accent-ink-strong); }
.callout.warn { background: #FFFBEB; border-color: #FDE68A; border-left-color: #B45309; }
.callout.warn h3 { color: #78350F; }
.callout.danger { background: var(--danger-soft); border-color: var(--danger-line); border-left-color: var(--danger); }
.callout.danger h3 { color: var(--danger-ink); }
.callout.success { background: var(--success-soft); border-color: var(--success-line); border-left-color: var(--success); }
.callout.success h3 { color: var(--success-ink); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.step {
  position: relative;
  counter-increment: step;
  padding: 22px 24px 22px 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.step:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.step::before {
  content: counter(step);
  position: absolute; left: 22px; top: 24px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #FFD045 0%, #F0B90B 100%);
  border: 1px solid #D9A50A;
  color: #0B0B0F;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 2px 6px rgba(240,185,11,0.30);
}
.step h3 { margin: 0; font-size: 1rem; }
.step p, .step ul, .step ol { margin-top: 8px; color: var(--text-secondary); font-size: 0.94rem; }
.step ul, .step ol { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Code block ---------- */
.code-block {
  position: relative;
  background: #0D1117;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #1F242C;
  box-shadow: var(--shadow-md);
  margin-top: 20px;
}
.code-header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: #0B0E13;
  border-bottom: 1px solid #1F242C;
  color: #8B949E;
  font-size: 0.78rem; gap: 12px;
}
.code-header::before {
  content: ""; display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
  background: #FF5F57;
  box-shadow: 18px 0 0 #FEBC2E, 36px 0 0 #28C840;
  margin-right: 46px; flex-shrink: 0; opacity: 0.9;
}
.code-header .lang {
  font-family: var(--font-mono); font-weight: 500;
  color: #C9D1D9; flex: 1; font-size: 0.76rem;
}
.code-copy {
  padding: 5px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #C9D1D9;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.01em;
  transition: all .15s ease;
}
.code-copy:hover {
  background: rgba(240,185,11,0.15);
  border-color: rgba(240,185,11,0.35);
  color: #F0B90B;
}
.code-body {
  margin: 0; padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #C9D1D9;
  max-height: 560px;
  overflow-y: auto;
}
.code-body::-webkit-scrollbar { width: 10px; height: 10px; }
.code-body::-webkit-scrollbar-track { background: transparent; }
.code-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.10); border-radius: 5px; border: 2px solid #0D1117;
}
.code-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-xs);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
  letter-spacing: -0.015em; color: var(--text);
  transition: color .15s ease;
}
.faq-question:hover { color: var(--accent-ink); }
.faq-icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: transform .3s cubic-bezier(.2,.9,.2,1), background .15s ease, color .15s ease, border-color .15s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: var(--accent-line);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s cubic-bezier(.2,.9,.2,1); }
.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 600px; }

/* ---------- Article layout ---------- */
.article-layout {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: grid; gap: 48px; grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; }
  .article-layout .article-body { max-width: 780px; }
}
.article-body h2 { margin-top: 46px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-top: 14px; font-size: 1rem; line-height: 1.78; }
.article-body ul, .article-body ol {
  margin-top: 16px; display: flex; flex-direction: column; gap: 10px;
}
.article-body ul { list-style: disc; padding-left: 22px; }
.article-body ol { list-style: decimal; padding-left: 22px; }
.article-body ul li, .article-body ol li { color: var(--text-secondary); font-size: 0.97rem; line-height: 1.72; }
.article-body ul li::marker { color: var(--accent-ink); }
.article-body ol li::marker { color: var(--accent-ink); font-weight: 600; }
.article-body a { color: var(--accent-text); font-weight: 600; border-bottom: 1px solid rgba(240,185,11,0.35); }
.article-body a:hover { color: var(--accent-ink-strong); border-bottom-color: var(--accent); }
.article-body strong { color: var(--text); font-weight: 600; }

/* TOC */
.toc {
  position: sticky; top: 88px; align-self: start;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.toc h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.toc ul { display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: block; padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem; color: var(--text-secondary);
  transition: background .12s ease, color .12s ease;
}
.toc a:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 1023.98px) { .toc { display: none; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 72px 40px;
  border-radius: var(--radius-2xl);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #FAFAFB 0%, #F4F4F7 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,11,15,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,15,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, #000 0%, transparent 78%);
  pointer-events: none;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 90% at 50% 0%, rgba(240,185,11,0.16) 0%, transparent 62%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 680px; margin: 16px auto 0; }
.cta-band p {
  margin-top: 14px; max-width: 580px;
  margin-left: auto; margin-right: auto;
  font-size: 1rem; color: var(--text-secondary);
}
.cta-band .actions {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 96px;
  padding: 68px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand img, .footer-brand svg { height: 38px; width: auto; }
.footer-brand p {
  margin-top: 18px; font-size: 0.9rem;
  max-width: 380px; line-height: 1.65; color: var(--text-secondary);
}
.footer-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.footer-col ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color .15s ease;
  display: inline-block;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 52px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: var(--text-muted);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom a { font-weight: 500; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible,
.faq-question:focus-visible, .nav-desktop a:focus-visible,
.mobile-menu a:focus-visible, .toc a:focus-visible {
  outline: 2px solid var(--text); outline-offset: 2px; border-radius: var(--radius-sm);
}
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ============================================================
   RESPONSIVE — header breakpoints
   ============================================================ */
@media (max-width: 1079.98px) {
  .nav-desktop { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions .btn-primary { display: none; }
}
@media (min-width: 1080px) and (max-width: 1199.98px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
  .header-actions .btn-primary { display: none; }
  .nav-desktop > a,
  .nav-desktop > .has-dropdown > a { padding: 8px 10px; font-size: 0.84rem; }
}
@media (min-width: 1200px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
  .header-actions .btn-primary { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .hero.compact { padding: 44px 0 32px; }
  .section { padding: 60px 0; }
  .section.tight { padding: 44px 0; }
  .card { padding: 24px; }
  .feature { padding: 22px; }
  .cta-band { padding: 48px 24px; border-radius: var(--radius-xl); }
  .code-body { padding: 18px; font-size: 0.78rem; }
  .code-header::before { margin-right: 38px; }
  .step { padding: 20px 20px 20px 66px; }
  .step::before { left: 18px; top: 22px; width: 32px; height: 32px; font-size: 0.86rem; }
}
/* ============================================================
   ILLUSTRATION COMPONENTS
   ============================================================ */

/* Illustration wrapper */
.illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.illustration img, .illustration svg {
  width: 100%;
  height: auto;
  max-width: 520px;
  filter: drop-shadow(0 18px 40px rgba(11, 11, 15, 0.08));
}
.illustration.float img,
.illustration.float svg {
  animation: floatY 9s ease-in-out infinite;
}

/* Page hero with illustration on the right */
.hero-split .hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-split .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(240,185,11,0.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero-visual img, .hero-visual svg {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: auto;
  animation: floatY 9s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Section with illustration side-by-side */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse { grid-template-columns: 1fr 1fr; }
  .split.reverse > *:first-child { order: 2; }
}
.split-text h2 { margin-top: 14px; }
.split-text p { margin-top: 14px; font-size: 1rem; line-height: 1.75; }
.split-text ul { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.split-text ul li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65;
}
.split-text ul li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A6206' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 7'/></svg>");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Small inline illustrations in cards */
.card-visual {
  margin: -6px -6px 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-visual img, .card-visual svg {
  max-width: 78%;
  max-height: 78%;
  width: auto;
  height: auto;
}

/* Background ornament for section */
.section-ornament {
  position: relative;
  overflow: hidden;
}
.section-ornament::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background-image: url("assets/img/section-ornament.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.section-ornament > * { position: relative; z-index: 1; }

/* Stat block */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 20px 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.stat:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Page-specific hero compacts */
.hero-page .hero-inner { max-width: var(--max-width); }
.hero-page .hero-visual { max-width: 400px; margin-left: auto; margin-right: auto; }
@media (min-width: 980px) {
  .hero-page .hero-visual { max-width: none; }
}

/* ============================================================
   SAFE vs HONEYPOT COMPARISON SECTION
   ============================================================ */

.compare-section {
  position: relative;
}

.compare-grid {
  gap: 24px;
}

.compare-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2,.9,.2,1);
}
.compare-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.compare-card-safe {
  border-top: 3px solid #15803D;
}
.compare-card-safe:hover {
  border-color: #86EFAC;
  border-top-color: #15803D;
}

.compare-card-danger {
  border-top: 3px solid #B91C1C;
}
.compare-card-danger:hover {
  border-color: #FCA5A5;
  border-top-color: #B91C1C;
}

.compare-visual {
  position: relative;
  padding: 26px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background:
    radial-gradient(ellipse 70% 70% at 50% 40%, rgba(240,185,11,0.06) 0%, transparent 70%),
    var(--bg-2);
  border-bottom: 1px solid var(--border-subtle);
}
.compare-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,11,15,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,15,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 0%, transparent 78%);
  pointer-events: none;
}
.compare-visual img,
.compare-visual svg {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(11,11,15,0.08));
}

.compare-body {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare-body h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.compare-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.compare-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 7'/></svg>");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.compare-card-danger .compare-list li::before {
  background-color: #FEF2F2;
  border-color: #FECACA;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B91C1C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 6 L18 18 M18 6 L6 18'/></svg>");
}
.compare-card-danger .compare-list li {
  color: #7F1D1D;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .compare-body { padding: 24px; }
  .compare-visual { min-height: 240px; padding: 18px 12px; }
}