/* ═══════════════════════════════════════════════════════════════════════════
   Easy Server Cloner — Website
   ─────────────────────────────────────────────────────────────────────────
   1. Tokens          6. Hero
   2. Reset & base    7. Slideshow
   3. Layout          8. Cards, steps, tables
   4. Buttons         9. Accordion & docs
   5. Navigation     10. Footer
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;
  --bg:            #070A16;
  --bg-elevated:   #0B1022;
  --surface:       rgba(255, 255, 255, 0.028);
  --surface-hover: rgba(155, 138, 255, 0.07);
  --border:        rgba(155, 138, 255, 0.14);
  --border-strong: rgba(155, 138, 255, 0.3);

  --brand:      #9B8AFF;
  --brand-deep: #6C58F0;
  --brand-lite: #C2B2FF;

  /* Surfaces that carry white text. Deliberately darker than --brand:
     white on #9B8AFF would only reach 2.8:1, here it is 4.84:1. */
  --on-solid:   linear-gradient(135deg, #6F5BE8 0%, #5238C6 100%);

  --text:   #EAE8FB;
  --muted:  #9EA0C4;
  --faint:  #6E7099;

  --success: #57F287;
  --warning: #FFD76F;
  --danger:  #FF6B6E;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 60px -12px rgba(108, 88, 240, 0.55);
  --shadow-card: 0 18px 50px -24px rgba(0, 0, 0, 0.9);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 2. Reset & base ───────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Soft aurora behind everything — purely decorative, costs no layout. */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 900px;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(50% 45% at 20% 12%, rgba(108, 88, 240, 0.3), transparent 70%),
    radial-gradient(45% 40% at 82% 0%, rgba(155, 138, 255, 0.22), transparent 70%),
    radial-gradient(40% 40% at 55% 30%, rgba(80, 60, 200, 0.14), transparent 70%);
  filter: blur(18px);
  animation: aurora 22s var(--ease) infinite alternate;
}

@keyframes aurora {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to   { transform: translate3d(3%, 3%, 0) scale(1.12); }
}

#pixelfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; color: var(--muted); }

a { color: var(--brand); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--brand-lite); }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(155, 138, 255, 0.12);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.12em 0.42em;
  color: var(--brand-lite);
}

img, svg { max-width: 100%; }
ul, ol { color: var(--muted); padding-left: 1.3em; }
li { margin-bottom: 0.45em; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--brand-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { left: 12px; }

.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;
}

/* ── 3. Layout ─────────────────────────────────────────────────────────── */

.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }

section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.section-head { text-align: center; margin-bottom: 3.2rem; }
.section-head p { max-width: 62ch; margin-inline: auto; font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(155, 138, 255, 0.09);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 1.2rem;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(87, 242, 135, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 242, 135, 0); }
}

.grad-text {
  background: linear-gradient(105deg, var(--brand-lite) 0%, var(--brand) 45%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* Reveal on scroll. The hidden state hangs off `.js`, which an inline script
   in the <head> sets — without JavaScript nothing is ever hidden and the page
   stays fully readable. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ── 4. Buttons ────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--on-solid);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(108, 88, 240, 0.85);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s;
}
.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(108, 88, 240, 1);
}
.btn:active { transform: translateY(0); }

/* Sheen that travels across the button on hover. */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.32) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: rgba(155, 138, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(155, 138, 255, 0.13);
  box-shadow: 0 12px 30px -18px rgba(108, 88, 240, 0.9);
}

.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn .arrow { transition: transform 0.22s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── 5. Navigation ─────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 10, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 10, 22, 0.9);
}
.nav .wrap { display: flex; align-items: center; gap: 1.5rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand:hover { color: var(--text); }
.brand:hover svg { animation: nudge 0.6s var(--ease); }
@keyframes nudge {
  50% { transform: translateX(-3px) rotate(-4deg); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--surface-hover); }
.nav-links a[aria-current="page"] { color: var(--brand-lite); background: rgba(155, 138, 255, 0.1); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  cursor: pointer;
  padding: 0;
  /* Flex rather than grid: in a grid each bar gets its own row whose height
     grows as it rotates — which pulled the X apart. */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 20px 26px;
    background: #0A0E1D;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s, transform 0.24s var(--ease), visibility 0.24s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links li { margin-bottom: 0; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ── 6. Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 0.5em; }
.hero-lead {
  font-size: clamp(1.03rem, 1.6vw, 1.18rem);
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stats div strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-stats div span { font-size: 0.84rem; color: var(--faint); }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  aspect-ratio: 1;
  max-width: 460px;
  margin-inline: auto;
}
.hero-art .glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 88, 240, 0.42), transparent 65%);
  filter: blur(38px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  50% { transform: scale(1.16); opacity: 0.75; }
}
.hero-art .mark {
  position: relative;
  width: min(300px, 72%);
  animation: float 8s ease-in-out infinite;
  filter: drop-shadow(0 24px 50px rgba(60, 40, 180, 0.5));
}
@keyframes float {
  50% { transform: translateY(-16px); }
}

/* Orbits circling the logo. `inset` on a non-square box would give an ellipse
   — a centred square stays round and leaves `transform` free for the spin. */
.orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(360px, 90%);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: spin 26s linear infinite;
}
.orbit.two {
  width: min(268px, 68%);
  animation-duration: 18s;
  animation-direction: reverse;
  border-style: dashed;
  opacity: 0.5;
}
.orbit i {
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 14px var(--brand);
}
.orbit.two i { background: var(--brand-lite); top: auto; bottom: -3px; width: 6px; height: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 260px; max-width: 300px; }
  .hero-art .mark { width: 190px; }
  .hero-stats { gap: 1.6rem; margin-top: 2.2rem; }
}

/* ── 7. Slideshow ──────────────────────────────────────────────────────── */

.slideshow {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(155, 138, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.slide-tabs {
  display: flex;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
}
.slide-tab {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.slide-tab:hover { background: var(--surface-hover); color: var(--muted); }
.slide-tab[aria-selected="true"] {
  background: rgba(155, 138, 255, 0.14);
  color: var(--text);
}
.slide-tab .num {
  display: grid;
  place-items: center;
  width: 21px; height: 21px;
  flex: none;
  border-radius: 6px;
  background: rgba(155, 138, 255, 0.16);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--brand-lite);
}
.slide-tab[aria-selected="true"] .num {
  background: var(--on-solid);
  color: #fff;
}

.slide-stage {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem);
  min-height: 400px;
}

.slide { display: none; }
.slide.active { display: contents; }

.slide-copy { animation: slideIn 0.5s var(--ease) both; }
.slide-visual { animation: slideIn 0.5s var(--ease) 0.06s both; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(14px); }
}

.slide-copy h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 0.5em; }
.slide-copy p { margin-bottom: 1.1em; }
.slide-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--muted);
  background: rgba(155, 138, 255, 0.07);
  border-left: 2px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 11px 14px;
}
.slide-note.warn { background: rgba(255, 215, 111, 0.07); border-left-color: var(--warning); }
.slide-note.warn strong { color: var(--warning); }
.slide-note strong { color: var(--brand-lite); white-space: nowrap; }

.slide-visual {
  display: grid;
  place-items: center;
  min-height: 300px;
}
.slide-visual svg { width: 100%; height: auto; max-height: 340px; }

.slide-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(1.2rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
}
.slide-arrow {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.slide-arrow:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); border-color: var(--border-strong); }
.slide-arrow:disabled { opacity: 0.32; cursor: not-allowed; }

.slide-dots { display: flex; gap: 7px; margin-inline: auto; }
.slide-dot {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.25s;
}
.slide-dot[aria-current="true"] { width: 26px; background: var(--brand); }

.slide-counter { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }

@media (max-width: 880px) {
  .slide-stage { grid-template-columns: 1fr; min-height: 0; }
  .slide-visual { order: -1; min-height: 200px; }
  .slide-tab .label { display: none; }
  .slide-tab { flex: 1; justify-content: center; padding: 11px; }
}

/* ── 8. Cards, steps, tables ───────────────────────────────────────────── */

.grid { display: grid; gap: 1.15rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.28s var(--ease), border-color 0.28s, background 0.28s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
/* Glow that follows the cursor (position comes from the JS). */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(155, 138, 255, 0.13), transparent 70%);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(155, 138, 255, 0.22), rgba(108, 88, 240, 0.1));
  border: 1px solid var(--border);
  color: var(--brand-lite);
}
.card-icon svg { width: 22px; height: 22px; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(155, 138, 255, 0.13);
  border: 1px solid var(--border);
  color: var(--brand-lite);
}
.tag.opt { background: rgba(255, 215, 111, 0.1); border-color: rgba(255, 215, 111, 0.24); color: var(--warning); }

/* Numbered steps joined by a continuous line */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 0 0 2.6rem 4.2rem;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--on-solid);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 8px 22px -10px rgba(108, 88, 240, 0.9);
}
.step::after {
  content: "";
  position: absolute;
  left: 22px; top: 52px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--border-strong), transparent);
}
.step:last-child { padding-bottom: 0; }
/* Steps carry both classes — otherwise two margins would stack. */
.step.doc-section { margin-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 0.35em; }

/* Code blocks with a copy button */
.code {
  position: relative;
  margin: 1.1rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(3, 5, 14, 0.72);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(155, 138, 255, 0.045);
  font-size: 0.76rem;
  color: var(--faint);
  font-family: var(--mono);
}
.code-head .dots { display: flex; gap: 5px; margin-right: 4px; }
.code-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.code-head .dots i:nth-child(1) { background: rgba(255, 107, 110, 0.6); }
.code-head .dots i:nth-child(2) { background: rgba(255, 215, 111, 0.6); }
.code-head .dots i:nth-child(3) { background: rgba(87, 242, 135, 0.6); }
.code pre {
  margin: 0;
  padding: 15px 17px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.855rem;
  line-height: 1.75;
  color: #D6D3F5;
}
.code pre .c { color: var(--faint); }        /* comment */
.code pre .p { color: var(--brand); }        /* prompt / command */
.code pre .s { color: var(--success); }      /* success */
.code pre .v { color: var(--warning); }      /* value */
.copy {
  position: absolute;
  top: 6px; right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(11, 16, 34, 0.94);
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}
.code:hover .copy, .copy:focus-visible { opacity: 1; }
.copy:hover { color: var(--text); border-color: var(--border-strong); }
.copy.done { color: var(--success); border-color: rgba(87, 242, 135, 0.4); opacity: 1; }

/* Tables */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 540px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 600;
  background: rgba(155, 138, 255, 0.04);
}
td { color: var(--muted); vertical-align: top; }
td:first-child { color: var(--text); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(155, 138, 255, 0.045); }

/* Yes/no lists */
.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid rgba(155, 138, 255, 0.07);
}
.check-list li:last-child { border-bottom: 0; }
.check-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.check-list.yes svg { color: var(--success); }
.check-list.no svg { color: var(--danger); }

/* Banner */
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(155, 138, 255, 0.06);
  margin: 1.6rem 0;
}
.callout .ic { flex: none; font-size: 1.15rem; line-height: 1.5; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: rgba(255, 215, 111, 0.07); border-color: rgba(255, 215, 111, 0.26); }
.callout.danger { background: rgba(255, 107, 110, 0.07); border-color: rgba(255, 107, 110, 0.28); }
.callout.ok { background: rgba(87, 242, 135, 0.06); border-color: rgba(87, 242, 135, 0.24); }
.callout strong { color: var(--text); }

/* Closing call to action */
.cta-band {
  position: relative;
  text-align: center;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.4rem, 4vw, 3rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 130% at 50% 0%, rgba(108, 88, 240, 0.24), transparent 70%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-band .btn-row { justify-content: center; }

/* ── 9. Docs & accordion ───────────────────────────────────────────────── */

.page-head {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.page-head p { max-width: 60ch; margin-inline: auto; font-size: 1.05rem; }

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  align-self: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.15rem 1.3rem;
}
.toc h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 0.9em;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 2px solid transparent;
}
.toc a:hover { color: var(--text); background: var(--surface-hover); }
.toc a.active { color: var(--brand-lite); border-left-color: var(--brand); background: rgba(155, 138, 255, 0.08); }

.docs-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 2.6rem; align-items: start; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}

.doc-section { scroll-margin-top: calc(var(--nav-h) + 24px); margin-bottom: 3.4rem; }
.doc-section > h2 { display: flex; align-items: center; gap: 12px; }
.doc-section > h2 .card-icon { margin: 0; width: 38px; height: 38px; border-radius: 10px; }
.doc-section > h2 .card-icon svg { width: 18px; height: 18px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 1.05rem 1.3rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-q .chev {
  margin-left: auto;
  flex: none;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
}
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a .inner { padding: 0 1.3rem 1.25rem; }
.faq-a p:last-child, .faq-a ul:last-child { margin-bottom: 0; }

.legal h2 { margin-top: 2.6rem; font-size: 1.4rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 0.96rem; }
.legal .meta { font-size: 0.85rem; color: var(--faint); }

/* ── 10. Footer ────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(155, 138, 255, 0.035));
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-about p { font-size: 0.9rem; max-width: 34ch; margin: 1rem 0 1.2rem; }
.footer-col h4 {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 1.1em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55em; }
.footer-col a { font-size: 0.9rem; color: var(--muted); }
.footer-col a:hover { color: var(--brand-lite); }

.footer-social { display: flex; gap: 9px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.footer-social a:hover { color: var(--brand-lite); border-color: var(--border-strong); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--faint);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-bottom a { color: var(--faint); }
.footer-bottom a:hover { color: var(--muted); }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-about { grid-column: 1 / -1; }
}

/* ── Reduce motion ─────────────────────────────────────────────────────── */

@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;
  }
  .js .reveal { opacity: 1; transform: none; }
  #pixelfield { display: none; }
}
