/* ============================================================
   AFKCore — site.css
   Design tokens follow the MinecraftAFK-inspired system:
   near-black canvas, neon #00DC82 accent, Poppins, 4px scale,
   depth via borders + surface contrast (no drop shadows).
   ============================================================ */

:root {
  --bg: #0e0f10;
  --surface: #131415;
  --surface-2: #1a1b1d;
  --surface-3: #27272a;
  --border: #27282b;
  --border-2: #3f3f46;
  --text: #ffffff;
  --text-2: #f4f4f5;
  --muted: #ababac;
  --muted-2: #7f8084;
  --accent: #00dc82;
  --accent-hover: #24e796;
  --accent-fg: #0b0b0c;
  --accent-soft: rgba(0, 220, 130, 0.12);
  --danger: #f43f5e;

  --r-xs: 2px;
  --r-sm: 6px;
  --r-md: 16px;
  --r-full: 9999px;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;

  --container: 1216px;
  --nav-h: 60px;
  --shadow-md: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-fg); }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 800px; margin: 0 auto 64px; }
.section-head .lead { margin-top: 20px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-foot { text-align: center; margin-top: 40px; }

/* ---------- Typography ---------- */
.eyebrow { color: var(--accent); font-weight: 500; font-size: 18px; letter-spacing: 0.02em; }
.display-xl { font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -1.8px; }
.display-lg { font-size: 60px; font-weight: 700; line-height: 1; letter-spacing: -1.8px; }
.display-md { font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -1.2px; }
.h-md { font-size: 36px; font-weight: 700; line-height: 1.11; letter-spacing: -0.9px; }
.h-sm { font-size: 24px; font-weight: 600; line-height: 1.33; }
.lead { color: var(--muted); font-size: 20px; line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.footnote { color: var(--muted-2); font-size: 13px; text-align: center; margin-top: 32px; }

.ic {
  display: inline-block; vertical-align: middle; width: 1em; height: 1em; flex: none;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ic.fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 12px 32px; border-radius: var(--r-sm);
  font-size: 16px; font-weight: 500; line-height: 1.5; white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: var(--surface-3); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border-2); }
.btn-outline:hover { background: #313136; }
.btn-ghost { background: var(--surface-3); color: var(--text-2); }
.btn-ghost:hover { background: #313136; }
.btn-sm { height: 36px; padding: 8px 12px; font-size: 14px; }
.btn-xs { height: 28px; padding: 6px 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-split { justify-content: space-between; }
.btn-split .ic { color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.icon-btn {
  width: 28px; height: 28px; border-radius: var(--r-sm); display: inline-grid; place-items: center;
  color: var(--muted); transition: background 0.15s, color 0.15s;
}
.icon-btn .ic { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

.badge {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  font-size: 11px; font-weight: 600; line-height: 1.4;
  background: var(--accent-soft); color: var(--accent);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; height: var(--nav-h);
  background: rgba(14, 15, 16, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.brand .logo { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 22px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { color: var(--muted); font-size: 16px; display: inline-flex; align-items: flex-start; gap: 1px; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-links a .ic { width: 11px; height: 11px; margin-top: 3px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 36px; height: 36px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.nav-toggle .ic { width: 20px; height: 20px; }
.nav-toggle:hover { background: var(--surface-3); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 140px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin: 18px 0 28px; max-width: 660px; }
.hero .lead { max-width: 540px; margin-bottom: 36px; font-size: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.discord-card {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-sm);
  padding: 12px 16px; max-width: 404px; transition: border-color 0.15s;
}
.discord-card:hover { border-color: var(--border-2); }
.discord-icon { width: 40px; height: 40px; border-radius: 6px; background: var(--surface-3); display: grid; place-items: center; flex: none; }
.discord-icon .logo { width: 26px; height: 26px; }
.discord-meta { flex: 1; min-width: 0; }
.discord-meta strong { display: block; font-size: 16px; font-weight: 600; }
.discord-meta small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.discord-stats { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.discord-stats span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); display: inline-block; flex: none; }
.dot-on { background: var(--accent); }

.trust { display: flex; align-items: center; gap: 18px; margin-top: 56px; }
.avatars { display: flex; }
.avatars canvas { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px; image-rendering: pixelated; background: #222; }
.avatars canvas:first-child { margin-left: 0; }
.stars { display: flex; align-items: center; gap: 2px; color: var(--accent); margin-bottom: 4px; }
.stars .ic { width: 14px; height: 14px; }
.stars span { color: var(--muted); font-size: 12px; margin-left: 8px; }
.trust p strong { font-weight: 600; }

.hero-watermark {
  position: absolute; left: -12px; bottom: -70px; z-index: 0;
  font-size: 260px; font-weight: 800; letter-spacing: -12px; line-height: 1;
  color: rgba(255, 255, 255, 0.025); pointer-events: none; user-select: none; white-space: nowrap;
}

/* POV grid (hero visual) */
.hero-visual { perspective: 1400px; }
.pov-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  transform: rotateY(-14deg) rotateX(6deg); transform-style: preserve-3d;
}
.pov {
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow-md); position: relative;
  animation: pov-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--d, 0) * 60ms);
}
@keyframes pov-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pov-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: var(--surface-3); font-size: 10px; font-weight: 600; }
.pov-bar canvas { width: 14px; height: 14px; border-radius: 2px; image-rendering: pixelated; flex: none; }
.pov-bar canvas.flip { transform: rotate(180deg); }
.pov-bar .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pov-bar .ic { width: 10px; height: 10px; color: var(--muted); }
.pov-bar .ic.acc { color: var(--accent); }
.pov-view { position: relative; aspect-ratio: 16 / 10; background: #000; }
.pov-view canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.hotbar {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  display: flex; gap: 1px; padding: 1px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.35);
}
.hotbar span { width: 9px; height: 9px; background: rgba(139, 139, 139, 0.55); position: relative; }
.hotbar span.sel { outline: 1px solid #fff; z-index: 1; }
.hotbar span i { position: absolute; inset: 2px; background: var(--c); }
.inv {
  position: absolute; inset: 10% 8%; background: #c6c6c6; border: 2px solid; border-color: #fff #555 #555 #fff;
  padding: 3px; display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px; align-content: start;
}
.inv span { aspect-ratio: 1; background: #8b8b8b; box-shadow: inset 1px 1px 0 #373737, inset -1px -1px 0 #fff; position: relative; }
.inv span i { position: absolute; inset: 20%; background: var(--c); }

/* ---------- Demo browser frame ---------- */
.browser { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.browser-bar { display: flex; align-items: center; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--border); position: relative; }
.traffic { display: flex; gap: 6px; }
.traffic span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.traffic span:nth-child(2) { background: #febc2e; }
.traffic span:nth-child(3) { background: #28c840; }
.urlbar {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface-2); border-radius: 6px; padding: 6px 14px; width: 400px; max-width: 60%;
  font-size: 16px; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.urlbar b { color: var(--text); font-weight: 600; }
.urlbar .ic { width: 14px; height: 14px; }
.browser-bar .icon-btn { margin-left: auto; }
.browser.full { position: fixed; inset: 16px; z-index: 40; display: flex; flex-direction: column; }
.browser.full .dash { flex: 1; min-height: 0; overflow: auto; }
body.locked { overflow: hidden; }

.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 560px; }
.dash-side { border-right: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.dash-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; padding: 6px 0 16px; }
.dash-brand .logo { width: 22px; height: 22px; }
.dash-nav { display: flex; flex-direction: column; gap: 8px; }
.dash-nav button, .dash-profile {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 6px;
  background: var(--surface-2); font-size: 14px; font-weight: 500; text-align: left; width: 100%;
  transition: background 0.15s;
}
.dash-nav button:hover, .dash-profile:hover { background: var(--surface-3); }
.dash-nav button .ic { width: 16px; height: 16px; }
.dash-nav button.active { background: var(--accent); color: var(--accent-fg); }
.dash-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 16px 0 6px; }
.dash-label .ic { width: 14px; height: 14px; color: var(--text); }
.srv { width: 20px; height: 20px; border-radius: 50%; font-size: 9px; font-weight: 700; display: inline-grid; place-items: center; color: #fff; flex: none; }
.dash-profile .cnt { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.dash-profile .cnt .ic { width: 12px; height: 12px; color: var(--muted); }
.dash-user {
  margin-top: auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 6px;
  background: var(--surface-2); font-size: 14px; font-weight: 500;
}
.dash-user canvas { width: 18px; height: 18px; border-radius: 3px; image-rendering: pixelated; }
.dash-user .tier { margin-left: auto; font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.dash-user .tier .ic { width: 12px; height: 12px; }
.dash-main { display: flex; flex-direction: column; min-width: 0; }
.dash-head { padding: 20px 24px; border-bottom: 1px solid var(--border); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dash-body { padding: 24px; }
.panel { border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: var(--surface); }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.input {
  height: 36px; border: 1px solid var(--border-2); border-radius: 6px; background: transparent; color: var(--text);
  padding: 0 12px; font: inherit; font-size: 14px; width: 290px; max-width: 100%;
}
.input::placeholder { color: var(--muted-2); }
.input:focus { outline: none; border-color: var(--accent); }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { font-weight: 600; text-align: left; padding: 14px 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl th .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; color: var(--muted); }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--border); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.tbl td .ic { width: 16px; height: 16px; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td canvas { width: 20px; height: 20px; border-radius: 3px; image-rendering: pixelated; }
.chk { width: 14px; height: 14px; border: 1px solid var(--border-2); border-radius: 3px; display: inline-block; vertical-align: middle; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 9999px; font-size: 12px; font-weight: 500; background: var(--surface-3); color: var(--text); }
.pill.on { background: var(--accent-soft); color: var(--accent); }
.pill.off { color: var(--muted); }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tabs button { padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.empty { color: var(--muted); font-size: 14px; padding: 32px; text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; z-index: 50;
  background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 6px; padding: 12px 16px;
  font-size: 14px; pointer-events: none; transition: opacity 0.2s, transform 0.2s; max-width: calc(100% - 48px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--accent); }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: var(--surface);
  display: flex; flex-direction: column; gap: 16px; transition: border-color 0.15s;
}
.feature:hover { border-color: var(--border-2); }
.feature .fi { width: 48px; height: 48px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.feature .fi .ic { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento .feature { min-height: 300px; justify-content: flex-end; gap: 24px; }
.bento .feature .fi {
  width: 128px; height: 128px; border-radius: 28px; margin: auto;
  background: radial-gradient(circle at 50% 40%, rgba(0, 220, 130, 0.22), rgba(0, 220, 130, 0.04) 70%);
  box-shadow: inset 0 0 0 1px rgba(0, 220, 130, 0.15);
}
.bento .feature .fi .ic { width: 56px; height: 56px; stroke-width: 1.5; }
.bento .wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; }
.bento .wide .ft { order: 0; max-width: 420px; }
.bento .wide .fi { order: 1; margin: 0 40px 0 0; }

/* ---------- Pricing ---------- */
.pricing-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; margin-bottom: 8px; }
.block-tags { display: flex; gap: 14px; padding-left: 48px; }
.block-tag { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.block-tag canvas { width: 44px; height: 44px; image-rendering: pixelated; border-radius: 2px; }
.billing { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); justify-self: center; }
.billing button { height: 36px; padding: 0 18px; border-radius: 6px; font-weight: 500; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s, color 0.15s; }
.billing button.active { background: var(--surface-3); color: var(--text); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.plan { border: 1px solid var(--border); border-radius: 16px; padding: 36px 32px; background: var(--surface); display: flex; flex-direction: column; }
.plan-name { display: flex; align-items: center; justify-content: space-between; font-size: 24px; font-weight: 500; margin-bottom: 20px; }
.plan-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #fff; color: #0b0b0c; padding: 4px 8px; border-radius: 6px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.price .amt { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -1.2px; }
.price .per { font-size: 14px; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: 18px; margin-bottom: 32px; min-height: 68px; }
.counter { display: flex; align-items: center; border: 1px solid var(--border-2); border-radius: 6px; height: 36px; margin-top: 8px; }
.counter button { width: 36px; height: 100%; display: grid; place-items: center; color: var(--accent); }
.counter button .ic { width: 16px; height: 16px; }
.counter button:disabled { color: var(--muted-2); cursor: not-allowed; }
.counter output { flex: 1; text-align: center; font-size: 14px; font-weight: 500; color: var(--text); }
.plan hr { margin: 32px 0; }
.plan ul { display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.plan li .ic { width: 16px; height: 16px; color: var(--accent); }
.pricing-notes { display: flex; justify-content: center; gap: 24px; margin: 64px 0 48px; color: var(--muted); flex-wrap: wrap; }
.pricing-notes span { display: inline-flex; align-items: center; gap: 8px; }
.pricing-notes .ic { width: 16px; height: 16px; }
.pay-logos { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.pay { width: 80px; height: 48px; border-radius: 6px; background: #fff; display: grid; place-items: center; color: #111; font-weight: 800; font-size: 14px; letter-spacing: -0.3px; }
.pay.blue { background: #016fd0; color: #fff; }
.pay.green { background: #00d66f; color: #fff; }
.pay .mc { display: flex; }
.pay .mc i { width: 24px; height: 24px; border-radius: 50%; background: #eb001b; }
.pay .mc i + i { background: #f79e1b; margin-left: -9px; opacity: 0.9; }

/* ---------- Steps / How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { border: 1px solid var(--border); border-radius: 16px; padding: 48px; background: var(--surface); display: flex; flex-direction: column; }
.step-num { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.step-num b { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.step-num .ic { width: 24px; height: 24px; color: var(--accent); }
.step h3 { font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.step p { color: var(--muted); font-size: 15px; flex: 1; margin-bottom: 24px; }

.prose h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin: 0 0 20px; }
.prose p { font-size: 18px; line-height: 1.6; color: var(--text); margin-bottom: 16px; }
.prose a { color: var(--accent); }

.clients { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.client { border: 1px solid var(--border); border-radius: 16px; padding: 48px; background: var(--surface); display: flex; flex-direction: column; }
.client h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.client h3 .ic { width: 24px; height: 24px; color: var(--accent); }
.client > p { color: var(--muted); margin-bottom: 24px; }
.client ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.client li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.client li .ic { width: 16px; height: 16px; color: var(--accent); }
.client li.no .ic { color: var(--danger); }
.client li.no { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 0 24px; transition: border-color 0.15s; }
.faq details:hover, .faq details[open] { border-color: var(--border-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 18px; height: 18px; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; font-size: 15px; line-height: 1.6; }
.faq details p a { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta {
  border: 1px solid var(--border-2); border-radius: 16px; padding: 80px 48px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(rgb(42, 42, 46), rgb(58, 58, 64) 60%, rgb(35, 35, 38));
}
.cta::after { content: ''; position: absolute; inset: 0; background: radial-gradient(rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45)); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 16px; }
.cta .lead { max-width: 560px; margin: 0 auto 32px; color: #d4d4d8; }
.cta .hero-actions { justify-content: center; margin: 0; }

/* ---------- Page header (pricing/features/how-it-works) ---------- */
.page-head { text-align: center; padding: 140px 0 64px; }
.page-head .lead { max-width: 780px; margin: 24px auto 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 48px; margin-top: 32px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.copy { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
.copy em { font-style: italic; text-transform: uppercase; font-size: 13px; max-width: 420px; line-height: 1.4; }
.status { display: flex; align-items: center; gap: 24px; }
.status .sys { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.socials { display: flex; gap: 14px; }
.socials a { width: 20px; height: 20px; color: var(--text); transition: color 0.15s; }
.socials a:hover { color: var(--accent); }
.socials .ic { width: 20px; height: 20px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 32px; }
.footer-cols h4 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.footer-cols li { margin-bottom: 12px; }
.footer-cols li a { color: var(--muted); font-size: 15px; display: inline-flex; align-items: flex-start; gap: 2px; transition: color 0.15s; }
.footer-cols li a:hover { color: var(--accent); }
.footer-cols li a .ic { width: 10px; height: 10px; margin-top: 3px; }
.footer-cols .discord-card { max-width: none; border-radius: 16px; padding: 16px; flex-wrap: wrap; }
.footer-cols .discord-card .discord-icon { width: 48px; height: 48px; }
.footer-cols .discord-card .btn { width: 100%; }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 290px minmax(0, 1fr) 190px; gap: 48px; padding: 40px 0 96px; }
.docs-side { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; padding-right: 8px; }
.docs-side > a, .docs-group > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 0; font-weight: 600; font-size: 15px; color: var(--text); text-align: left; }
.docs-side > a .ic, .docs-group > button .ic { width: 18px; height: 18px; }
.docs-side > a.active { color: var(--accent); }
.docs-group > button .chev { margin-left: auto; color: var(--muted); width: 16px; height: 16px; transition: transform 0.2s; }
.docs-group.closed > button .chev { transform: rotate(180deg); }
.docs-group.closed ul { display: none; }
.docs-group ul { margin-left: 9px; border-left: 1px solid var(--border); padding: 2px 0; }
.docs-group ul a { display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s; }
.docs-group ul a .ic { width: 16px; height: 16px; }
.docs-group ul a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-group ul a:hover { color: var(--text); }
.docs-group ul a.active { color: var(--accent); border-left-color: var(--accent); }
.docs-main { min-width: 0; max-width: 760px; }
.doc-eyebrow { color: var(--accent); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.doc-title { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-bottom: 12px; }
.doc-title h1 { font-size: 48px; font-weight: 700; letter-spacing: -1.2px; line-height: 1.1; }
.copy-btn { display: inline-flex; height: 36px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--border-2); overflow: visible; flex: none; position: relative; margin-top: 6px; }
.copy-btn button { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 14px; font-weight: 500; transition: background 0.15s; border-radius: 6px 0 0 6px; }
.copy-btn button:hover { background: var(--surface-3); }
.copy-btn button .ic { width: 16px; height: 16px; }
.copy-btn button + button { padding: 0 8px; box-shadow: inset 1px 0 0 var(--border-2); border-radius: 0 6px 6px 0; }
.copy-menu { position: absolute; right: 0; top: 40px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 6px; padding: 4px; min-width: 180px; box-shadow: var(--shadow-md); z-index: 5; }
.copy-menu button { display: flex; width: 100%; padding: 8px 10px; border-radius: 4px; font-size: 13px; box-shadow: none; }
.copy-menu button:hover { background: var(--surface-3); }
.doc-desc { color: var(--muted); font-size: 18px; margin-bottom: 16px; }
.doc-by { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.doc-by .logo { width: 20px; height: 20px; }
.doc-by b { color: var(--text); font-weight: 600; }
.doc-body h2 { font-size: 28px; font-weight: 700; margin: 48px 0 20px; letter-spacing: -0.5px; scroll-margin-top: 90px; }
.doc-body h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.doc-body p { font-size: 18px; line-height: 1.6; margin-bottom: 20px; }
.doc-body a { color: var(--accent); }
.doc-body ol, .doc-body ul.bullets { padding-left: 28px; margin-bottom: 20px; font-size: 18px; line-height: 1.6; }
.doc-body ol { list-style: decimal; }
.doc-body ul.bullets { list-style: disc; }
.doc-body li { margin-bottom: 12px; padding-left: 4px; }
.doc-body li::marker { color: var(--muted); }
.doc-body ol ol, .doc-body ol ul { margin-top: 12px; margin-bottom: 0; }
.doc-body code { font-family: var(--mono); font-size: 15px; background: var(--surface-3); padding: 2px 6px; border-radius: 4px; }
.doc-body pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 16px; overflow-x: auto; margin-bottom: 20px; }
.doc-body pre code { background: none; padding: 0; font-size: 14px; }
.doc-body strong { font-weight: 600; }
.doc-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin: 24px 0; }
.doc-card { border: 1px solid var(--border); border-radius: 6px; padding: 24px; display: block; position: relative; color: var(--text) !important; transition: border-color 0.15s; }
.doc-card:hover { border-color: var(--border-2); }
.doc-card .ic { width: 24px; height: 24px; color: var(--accent); margin-bottom: 12px; }
.doc-card b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.doc-card span { color: var(--muted); font-size: 16px; }
.doc-card .ext { position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; color: var(--muted); margin: 0; }
.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; padding: 16px 20px; background: var(--surface); margin-bottom: 20px; font-size: 16px; }
.callout p { font-size: 16px; margin: 0; }
.callout p + p { margin-top: 8px; }
.doc-foot { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doc-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.doc-foot a:hover { color: var(--accent); }
.doc-foot a .ic { width: 14px; height: 14px; }
.docs-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: 14px; }
.docs-toc b { display: block; font-weight: 600; margin-bottom: 12px; }
.docs-toc a { display: block; color: var(--muted); padding: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s; }
.docs-toc a:hover { color: var(--text); }
.docs-toc a.active { color: var(--accent); }

/* ---------- Auth / simple pages ---------- */
.auth { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 64px 24px; }
.auth-card { width: 100%; max-width: 420px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 40px; }
.auth-card h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.auth-card > p { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.auth-card .btn { width: 100%; }
.auth-card .btn + .btn { margin-top: 12px; }
/* Sign in / Create account switcher */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 28px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.auth-tab { appearance: none; border: 0; cursor: pointer; border-radius: 6px; padding: 9px 12px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); background: transparent;
  transition: color .12s ease, background-color .12s ease; }
.auth-tab:hover { color: var(--text); }
.auth-tab.is-on { background: var(--surface); color: var(--text); }
.auth-tab[hidden] { display: none; }

/* Inline message above the form: first-run explainer, OAuth errors */
.notice { border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px;
  font-size: 13.5px; line-height: 1.5; margin-bottom: 20px; color: var(--muted); background: var(--surface-2); }
.notice-info { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--text); }
.notice-bad { border-color: #7f1d1d; background: rgba(127, 29, 29, .15); color: #fca5a5; }

.hint { font-size: 12.5px; color: var(--muted-2); }
.muted-2 { color: var(--muted-2); font-weight: 400; }

.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12px; margin: 24px 0; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 500; }
.field .input { width: 100%; height: 44px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 24px; }
.auth-foot a { color: var(--accent); }
.mono { font-family: var(--mono); font-size: 13px; }
.field .error { color: var(--danger); font-size: 12px; }
.input.invalid { border-color: var(--danger); }

.legal { max-width: 760px; margin: 0 auto; padding: 120px 24px 96px; }
.legal h1 { margin-bottom: 12px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 24px; font-weight: 600; margin: 40px 0 12px; }
.legal p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.legal p a { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .docs { grid-template-columns: 240px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; }
  .pov-grid { transform: none; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-community { grid-column: span 3; }
  .pricing-top { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .block-tags { padding-left: 0; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0; transform: none;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 24px 16px;
  }
  .nav.open .nav-links a { padding: 10px 0; font-size: 18px; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .display-xl { font-size: 48px; letter-spacing: -1.2px; }
  .display-lg { font-size: 42px; letter-spacing: -1.2px; }
  .display-md { font-size: 36px; }
  .hero { padding: 80px 0 72px; }
  .hero .lead { font-size: 18px; }
  .hero-watermark { font-size: 140px; letter-spacing: -6px; bottom: -40px; }
  .section { padding: 64px 0; }
  .page-head { padding: 80px 0 48px; }
  .features, .bento, .plans, .steps, .clients, .doc-cards { grid-template-columns: minmax(0, 1fr); }
  .bento .wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .bento .wide .fi { order: 0; margin: auto; }
  .bento .wide .ft { order: 1; max-width: none; }
  .dash { grid-template-columns: 1fr; min-height: 0; }
  .dash-side { border-right: 0; border-bottom: 1px solid var(--border); }
  .dash-user { margin-top: 8px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-community { grid-column: span 2; }
  .footer-top { justify-content: center; text-align: center; }
  .copy { flex-direction: column; gap: 8px; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .docs-side { position: static; max-height: none; border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
  .doc-title h1 { font-size: 36px; }
  .cta { padding: 56px 24px; }
}
@media (max-width: 600px) {
  .plan, .step, .client, .auth-card { padding: 28px; }
  .dash-body { padding: 12px; }
  .panel { padding: 12px; }
  .input { width: 100%; }
  .toolbar .spacer { display: none; }
  .trust { flex-direction: column; align-items: flex-start; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .discord-card { flex-wrap: wrap; }
  .discord-card .btn { width: 100%; }
  .footer-community { grid-column: auto; }
  .urlbar { font-size: 13px; }
  .block-tags { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pov { animation: none; }
}
