/* Fonts loaded via <link> in HTML head — do NOT use @import here,
   it blocks the entire stylesheet when external requests stall (Googlebot issue). */

/* =========================================================
   GamersZone — premium dark theme
   Midnight base, violet to cyan gradient accent,
   glass cards, Space Grotesk display + Inter body.
   ========================================================= */

:root {
  /* surfaces */
  --bg: #0b0b13;
  --bg-2: #0e0e18;          /* alt sections */
  --bg-soft: #14141f;       /* raised surfaces, table heads */
  --card: rgba(255, 255, 255, .04);
  --card-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);

  /* text */
  --ink: #f5f5fb;           /* headings */
  --text: #e6e6f0;          /* body */
  --text-2: #c4c4d6;
  --muted: #9a9ab2;         /* secondary, readable on dark */

  /* accent — violet to cyan */
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124, 92, 255, .16);
  --accent-soft-2: rgba(124, 92, 255, .10);
  --grad: linear-gradient(120deg, #a78bfa 0%, #7c5cff 45%, #22d3ee 100%);
  --grad-btn: linear-gradient(135deg, #7c5cff 0%, #5b6bff 55%, #22d3ee 130%);

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 16px 40px rgba(0, 0, 0, .45);
  --glow: 0 18px 50px rgba(124, 92, 255, .28);
  --maxw: 1140px;

  --serif: "Space Grotesk", "Inter", sans-serif; /* display */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.72;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: #67e3f5; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.18; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.accent { color: var(--accent); }
.muted { color: var(--muted); }
.center { text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .82rem 1.6rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 26px rgba(124, 92, 255, .32); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 38px rgba(124, 92, 255, .45); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.btn-block { width: 100%; justify-content: center; }
.btn-soft { background: var(--accent-soft); color: #cbbcff; border-color: var(--border); }
.btn-soft:hover { background: rgba(124, 92, 255, .26); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 19, .72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1.2rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 1.24rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 14px rgba(124, 92, 255, .4); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: .15rem; margin-left: .8rem; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: .96rem; padding: .5rem .85rem; border-radius: 999px; }
.nav-links a:hover { background: var(--card-2); color: #fff; }
.nav-links a.active { color: #fff; background: var(--accent-soft); }
.nav-search { margin-left: auto; display: flex; align-items: center; }
.nav-search input {
  border: 1px solid var(--border-strong); border-radius: 999px; padding: .58rem 1rem;
  font-family: var(--sans); font-size: .92rem; width: 220px; background: rgba(255, 255, 255, .05); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search input:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 3px var(--accent-soft); }
.nav-toggle { display: none; background: rgba(255, 255, 255, .04); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: .45rem .65rem; cursor: pointer; color: var(--ink); font-size: 1.05rem; }

@media (max-width: 920px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: .5rem 22px 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem .4rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-search input { width: 150px; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) { .nav-search input { width: 132px; } }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 3; padding: 96px 0 64px;
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(124, 92, 255, .22), transparent 60%),
    radial-gradient(900px 520px at 88% 8%, rgba(34, 211, 238, .14), transparent 55%),
    radial-gradient(700px 480px at 6% 30%, rgba(167, 139, 250, .12), transparent 55%),
    var(--bg);
}
.hero .container { position: relative; z-index: 2; }
.cat-hero { padding: 60px 0 48px; }
.cat-hero h1 { max-width: 24ch; }
.cat-hero .sub { margin-bottom: 0; max-width: 70ch; }
.hero h1 { max-width: 17ch; margin-inline: auto; text-align: center; }
.hero .sub { max-width: 56ch; margin: 1.2rem auto 2rem; text-align: center; color: var(--text-2); font-size: 1.18rem; line-height: 1.65; }
.hero-search {
  max-width: 600px; margin: 0 auto 1.4rem; display: flex; gap: .4rem; align-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border-strong); border-radius: 999px;
  padding: .4rem .4rem .4rem 1.4rem; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .15s ease, box-shadow .15s ease; backdrop-filter: blur(8px);
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--glow); }
.hero-search input { flex: 1; border: 0; background: transparent; font-family: var(--sans); font-size: 1.05rem; color: var(--text); padding: .58rem 0; }
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: var(--muted); }
.hero-search .btn { padding: .72rem 1.5rem; flex-shrink: 0; }
.hero-cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.stats-counter { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.stat { text-align: center; padding: 0 2.1rem; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-size: 2.15rem; font-weight: 700; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { font-size: .86rem; color: var(--muted); margin-top: .25rem; }
@media (max-width: 560px) { .stat { padding: .6rem 1.3rem; } }

/* ---------- hero animation layer ---------- */
.hero-anim { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; transition: transform .25s ease-out; }
.hero-anim .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb-1 { width: 360px; height: 360px; top: -60px; left: -40px; background: radial-gradient(circle, rgba(124,92,255,.7), transparent 70%); animation: drift 16s ease-in-out infinite; }
.orb-2 { width: 320px; height: 320px; bottom: -80px; right: -30px; background: radial-gradient(circle, rgba(34,211,238,.6), transparent 70%); animation: drift 20s ease-in-out infinite reverse; }
.floaty {
  position: absolute; width: 66px; height: 66px; display: grid; place-items: center;
  font-size: 2rem; border-radius: 18px; background: var(--card-2); border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px); box-shadow: 0 12px 34px rgba(0, 0, 0, .4);
  animation: floatY 7s ease-in-out infinite; will-change: transform;
}
.floaty.f1 { top: 16%; left: 7%; animation-duration: 7.5s; }
.floaty.f2 { top: 24%; right: 9%; animation-duration: 8.5s; animation-delay: -1.2s; }
.floaty.f3 { top: 60%; left: 12%; animation-duration: 9s; animation-delay: -2.4s; }
.floaty.f4 { top: 66%; right: 13%; animation-duration: 7.8s; animation-delay: -.8s; }
.floaty.f5 { top: 40%; left: 3%; animation-duration: 10s; animation-delay: -3s; }
.floaty.f6 { top: 8%; right: 24%; animation-duration: 8.2s; animation-delay: -1.8s; }
@media (max-width: 760px) { .floaty.f5, .floaty.f6 { display: none; } .floaty { width: 54px; height: 54px; font-size: 1.6rem; } }
@media (max-width: 520px) { .floaty.f3, .floaty.f4 { display: none; } }

@keyframes floatY { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-20px) rotate(4deg); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } }

/* ---------- sections ---------- */
.section { padding: 74px 0; position: relative; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-head .rule { width: 56px; height: 3px; background: var(--grad); border-radius: 3px; margin: .9rem auto 0; }
.section-head p { color: var(--muted); max-width: 58ch; margin: .8rem auto 0; font-size: 1.05rem; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .grid-5, .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

.cat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 18px; text-align: center; color: var(--ink); position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  backdrop-filter: blur(6px);
}
a.cat-card:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: rgba(124, 92, 255, .5); background: var(--card-2); color: var(--ink); }
.cat-card .ico { width: 58px; height: 58px; margin: 0 auto .9rem; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.7rem; line-height: 1; transition: transform .2s ease; }
a.cat-card:hover .ico { transform: scale(1.12) rotate(-6deg); }
.cat-card .title { font-family: var(--sans); font-weight: 600; font-size: 1.04rem; }
.cat-card .count { color: var(--muted); font-size: .84rem; margin-top: .35rem; }
.cat-card.soon { opacity: .5; background: transparent; }
.cat-card.soon .ico { background: var(--bg-soft); }
.cat-card.soon .count { color: #b6a6ff; font-weight: 500; }

.tool-card {
  display: flex; flex-direction: column; gap: .45rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; color: var(--text); backdrop-filter: blur(6px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
a.tool-card:hover { transform: translateY(-5px); box-shadow: var(--glow); border-color: rgba(124, 92, 255, .5); background: var(--card-2); color: var(--text); }
.tool-card .tool-cat { font-family: var(--sans); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tool-card .tool-name { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.2rem; }
.tool-card p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.55; }
.tool-card.soon { opacity: .55; cursor: default; background: transparent; }
.tool-card.soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.badge-soon { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #b6a6ff; background: var(--accent-soft); border-radius: 999px; padding: .22rem .7rem; align-self: flex-start; }

/* ---------- feature list ---------- */
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; backdrop-filter: blur(6px); transition: border-color .2s ease, transform .2s ease; }
.feature:hover { border-color: rgba(124, 92, 255, .4); transform: translateY(-3px); }
.feature .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); display: grid; place-items: center; color: #cbbcff; margin-bottom: 1rem; font-size: 1.25rem; }
.feature h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding: 24px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: var(--border-strong); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-2); }
.crumbs li:last-child { color: var(--text); font-weight: 500; }

/* ---------- article layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 52px; padding: 30px 0 76px; align-items: start; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .sidebar { order: 3; } }

.article { min-width: 0; max-width: 720px; }
.article p, .article ul, .article ol { font-size: 1.08rem; line-height: 1.8; color: var(--text); }
.article .lead { font-size: 1.26rem; line-height: 1.62; color: var(--ink); font-family: var(--sans); margin-bottom: 1.4rem; }
.article h2 { margin-top: 2.8rem; scroll-margin-top: 94px; }
.article h3 { margin-top: 1.9rem; scroll-margin-top: 94px; }
.article ul, .article ol { padding-left: 1.35rem; }
.article li { margin-bottom: .55rem; }
.article li::marker { color: var(--accent); }
.article table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .98rem; }
.article th, .article td { border: 1px solid var(--border); padding: .75rem .9rem; text-align: left; }
.article th { background: var(--bg-soft); color: var(--ink); font-family: var(--sans); font-weight: 600; }
.article blockquote {
  margin: 1.6rem 0; padding: 1.1rem 1.4rem; background: var(--accent-soft-2);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #d7ccff; font-family: var(--serif); font-size: 1.12rem;
}
.article blockquote p { margin: 0; }

/* sidebar / TOC */
.sidebar { position: sticky; top: 94px; display: flex; flex-direction: column; gap: 24px; }
.toc { border-left: 1px solid var(--border); padding: 4px 0 4px 20px; }
.toc h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--muted); margin: 0 0 .9rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: .42rem 0; color: var(--muted); font-size: .92rem; font-weight: 500; }
.toc a:hover { color: var(--accent-2); }
.toc a.active { color: #fff; font-weight: 600; }

/* ---------- calculator widget ---------- */
.calc {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 32px; margin: 28px 0 8px; backdrop-filter: blur(10px);
}
.calc h2 { margin-top: 0; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field input, .field select {
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: .78rem .95rem;
  font-family: var(--sans); font-size: 1.02rem; background: rgba(255, 255, 255, .05); color: var(--text); width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder { color: var(--muted); }
.field select option { background: #14141f; color: var(--text); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.invalid { border-color: #ff6b6b; background: rgba(255, 107, 107, .08); }
.field .err { color: #ff8a8a; font-size: .82rem; min-height: 1em; }

.calc-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 22px; }

.result {
  margin-top: 24px; border-radius: var(--radius); border: 1px solid rgba(124, 92, 255, .35);
  background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(34,211,238,.08)); padding: 24px 26px;
}
.result .result-label { font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #b6a6ff; font-weight: 700; }
.result .result-value { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1.1; margin: .25rem 0 .35rem; }
.result .result-note { color: var(--text-2); font-size: .96rem; margin: 0; }
.result.is-empty { background: var(--bg-soft); border-color: var(--border); }
.result.is-empty .result-value { color: var(--muted); font-size: 1.4rem; }
.result-extra { margin-top: .9rem; display: grid; gap: .35rem; font-size: .94rem; color: var(--text-2); }
.result-extra div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: .42rem; }

.range-row { display: flex; align-items: center; gap: .8rem; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); }
.range-row output { min-width: 3ch; font-weight: 700; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); background: transparent; padding: 0; }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 21px 2px; font-family: var(--serif); font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.16rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.5rem; font-weight: 400; transition: transform .2s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 2px 21px; color: var(--text-2); font-size: 1.05rem; line-height: 1.74; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- author / meta ---------- */
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; font-size: .9rem; color: var(--muted); margin: .6rem 0 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.byline .dot { color: var(--border-strong); }
.byline strong { color: var(--text); font-weight: 600; }
.method {
  background: var(--accent-soft-2); border: 1px solid rgba(124, 92, 255, .25); border-radius: var(--radius);
  padding: 22px 24px; margin: 2.4rem 0; font-size: 1rem; line-height: 1.72; color: var(--text-2);
}
.method h3 { margin-top: 0; font-size: 1.08rem; color: #cbbcff; }

/* ---------- related ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0; }
.chip { font-family: var(--sans); background: rgba(255, 255, 255, .05); border: 1px solid var(--border-strong); border-radius: 999px; padding: .42rem 1rem; font-size: .9rem; color: var(--text); font-weight: 500; transition: all .15s ease; }
button.chip { cursor: pointer; }
a.chip:hover, button.chip:hover { background: var(--accent-soft); border-color: var(--accent); color: #fff; }

/* ---------- share ---------- */
.share { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: 1.6rem 0; }
.share span { font-family: var(--sans); font-size: .88rem; color: var(--muted); font-weight: 500; }
.share a, .share button { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .05); border: 1px solid var(--border-strong); color: var(--text); cursor: pointer; font-size: .95rem; font-family: var(--sans); transition: all .15s ease; }
.share a:hover, .share button:hover { background: var(--accent-soft); border-color: var(--accent); color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: #08080f; color: var(--muted); padding: 64px 0 32px; border-top: 1px solid var(--border); }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--accent-2); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { color: var(--ink); }
.foot-brand p { color: var(--muted); font-size: .95rem; max-width: 34ch; margin-top: .9rem; }
.foot-col h4 { font-family: var(--sans); color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; font-weight: 600; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .6rem; font-size: .95rem; }
.foot-bottom { border-top: 1px solid var(--border); margin-top: 42px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .85rem; color: var(--muted); }

/* ---------- misc ---------- */
.notice { background: var(--accent-soft-2); border: 1px solid rgba(124, 92, 255, .25); color: #d7ccff; border-radius: var(--radius); padding: 14px 18px; font-size: .95rem; margin: 1.2rem 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #1a1a2a; border: 1px solid var(--border-strong); color: #fff; padding: .75rem 1.3rem; border-radius: 999px; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 80; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 100; }
.skip-link:focus { left: 0; }

.prose-cta { background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(34,211,238,.10)); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 44px 32px; text-align: center; margin: 52px 0; box-shadow: var(--shadow); }
.prose-cta h2 { color: #fff; }
.prose-cta p { color: var(--text-2); max-width: 50ch; margin: 0 auto 1.4rem; }

/* ---------- benchmark tables ---------- */
.benchmark-table { margin: 1.2rem 0 1.6rem; overflow-x: auto; }
.benchmark-table table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; font-size: .96rem; }
.benchmark-table thead th { background: var(--bg-soft); color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; padding: .75rem 1rem; text-align: left; border-bottom: 2px solid var(--border-strong); }
.benchmark-table tbody td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.benchmark-table tbody tr:last-child td { border-bottom: 0; }
.benchmark-table tbody tr { background: var(--card); transition: background .15s ease; }
.benchmark-table tbody tr:hover { background: var(--card-2); }

/* ---------- scroll reveal ---------- */
.reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }

/* ---------- founder ---------- */
.foot-founder { color: var(--muted); font-size: .9rem; margin-top: .7rem; }
.foot-founder a { color: var(--text-2); }
.foot-founder a:hover { color: var(--accent-2); }
.founder { display: flex; gap: 26px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; margin: 1.4rem 0 1.8rem; backdrop-filter: blur(6px); }
.founder img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); flex-shrink: 0; }
.founder .founder-name { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.3rem; }
.founder .founder-role { color: var(--accent-2); font-size: .92rem; font-weight: 600; margin-bottom: .5rem; }
.founder .founder-links { margin-top: .7rem; }
.founder .founder-links a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
@media (max-width: 560px) { .founder { flex-direction: column; text-align: center; } }

/* ---------- HTML sitemap ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 40px; margin-top: 2.4rem; }
@media (max-width: 860px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sitemap-grid { grid-template-columns: 1fr; } }
.sitemap-group h2 { font-size: 1.2rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); margin-bottom: .9rem; }
.sitemap-list { list-style: none; margin: 0; padding: 0; }
.sitemap-list li { margin-bottom: .5rem; font-size: .96rem; }
.sitemap-list a { color: var(--text-2); }
.sitemap-list a:hover { color: var(--accent-2); }
.sitemap-list a strong { color: var(--ink); }

/* ---------- search autocomplete ---------- */
.gz-ac-wrap { position: relative; z-index: 60; }
.gz-ac {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
  background: #14141f; border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow); padding: 6px; max-height: 64vh; overflow-y: auto;
}
.gz-ac--right { left: auto; right: 0; width: 320px; }
.gz-ac[hidden] { display: none; }
.gz-ac-item { display: flex; align-items: center; gap: .6rem; padding: .66rem .7rem; border-radius: 11px; cursor: pointer; color: var(--text); text-decoration: none; }
.gz-ac-item:hover, .gz-ac-item.active { background: var(--accent-soft); text-decoration: none; }
.gz-ac-item .nm { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: .96rem; line-height: 1.25; }
.gz-ac-item .meta { margin-left: auto; display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.gz-ac-item .ct { font-family: var(--sans); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.gz-ac-item .soon { font-family: var(--sans); font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #cbbcff; background: var(--accent-soft); border-radius: 999px; padding: .14rem .5rem; }
.gz-ac-empty { padding: .85rem .7rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 560px) { .gz-ac--right { width: 280px; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  /* Reveal is visible by default now */
  .hero-anim { display: none; }
}
