/* =========================================================================
   Fox Client — landing page
   Dark + gold theme, static, no framework. Accent colour is a single CSS
   variable so the whole site re-themes from one line.
   ========================================================================= */

:root {
  --bg:          #0a0a0c;
  --bg-2:        #101014;
  --card:        #15151b;
  --card-2:      #1b1b22;
  --stroke:      rgba(255, 255, 255, 0.08);
  --stroke-hot:  rgba(245, 197, 24, 0.45);
  --text:        #f3f4f6;
  --text-dim:    #9ba1ac;
  --text-faint:  #646c78;

  /* Fox GUI "Fox" preset accent (#FFC93C), matching the in-game default. */
  --gold:        #FFC93C;
  --gold-hot:    #ffd867;
  --gold-deep:   #d9a200;
  --gold-soft:   rgba(255, 201, 60, 0.14);

  --radius:      14px;
  --radius-sm:   9px;
  --maxw:        1180px;
  --gutter:      20px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* Full-width site backdrop: the cave artwork, spanning the page width without
   distortion (100% wide, height follows the aspect), tiled down the whole page.
   Absolute (not fixed) over the full body height, so it SCROLLS WITH the page
   rather than staying pinned to the viewport. Its dark middle keeps content
   readable; its lit edges fill the sides that used to be flat black. */
body { position: relative; }
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Mirror-tiled artwork: a vertically mirrored copy of the image, tiled. Each
     repeat meets its neighbour bottom-to-bottom / top-to-top, so matching tones
     touch and there is no visible seam — all at the image's real aspect ratio,
     never stretched. */
  background-image: url("assets/site-bg-mirror.png");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;
  opacity: 0.9;
}
/* A light veil over the artwork so text stays readable, without hiding it. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,12,0.22), rgba(10,10,12,0.4));
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.accent { color: var(--gold); }

/* ---- Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-hot), var(--gold-deep));
  color: #1a1400;
  box-shadow: 0 6px 22px rgba(245, 197, 24, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245, 197, 24, 0.4); }

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--stroke);
}
.btn-ghost:hover { border-color: var(--stroke-hot); background: var(--card-2); }

.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---- Header ---------------------------------------------------------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid var(--stroke);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 2px 8px rgba(245,197,24,0.35)); }
.brand span b { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }

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

.burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }
.burger svg { width: 26px; height: 26px; }

/* ---- Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: 80px 0 70px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/mc-hero.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10,10,12,0.78) 45%, rgba(10,10,12,0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,12,0.2) 40%, rgba(10,10,12,0.35) 100%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 50px;
  align-items: center;
  min-height: 440px;
}
.hero-copy { text-align: left; }
.hero-copy .eyebrow { margin-bottom: 20px; }

.hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 .g {
  background: linear-gradient(180deg, var(--gold-hot), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 0 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-sub-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  transition: color .15s ease;
}
.hero-sub-link:hover { color: var(--gold); }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--text-faint); }

/* ---- Hero: client UI mockup ----------------------------------------- */

.hero-mock { perspective: 1600px; }
.client-win {
  display: flex;
  background: linear-gradient(180deg, #16161c, #0e0e12);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,197,24,0.06);
  transform: rotateY(-7deg) rotateX(2deg);
  transition: transform .4s ease;
}
.client-win:hover { transform: rotateY(-3deg) rotateX(1deg); }

.cw-rail {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 12px;
  background: rgba(0,0,0,0.3);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.cw-rail-ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: var(--text-faint);
  background: rgba(255,255,255,0.03);
}
.cw-rail-ico svg { width: 18px; height: 18px; }
.cw-rail-ico.active { color: var(--gold); background: var(--gold-soft); }

.cw-body { flex: 1; padding: 16px 18px; min-width: 0; }
.cw-tabs {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cw-tab { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-faint); }
.cw-tab.active { color: var(--text); }
.cw-search {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-faint);
  background: rgba(255,255,255,0.04);
  border-radius: 8px; padding: 6px 12px;
}
.cw-search svg { width: 13px; height: 13px; }

.cw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cw-mod {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 11px;
  border-radius: 9px;
  background: rgba(255,255,255,0.025);
  border: 1px solid transparent;
}
.cw-mod.on { background: var(--gold-soft); border-color: var(--stroke-hot); }
.cw-mi {
  flex: 0 0 26px; width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
}
.cw-mod.on .cw-mi { color: var(--gold); background: rgba(245,197,24,0.18); }
.cw-mi svg { width: 15px; height: 15px; }
.cw-mod b { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 1px; }
.cw-mod.on b { color: var(--gold); }
.cw-mod span { display: block; font-size: 10.5px; line-height: 1.35; color: var(--text-faint); }
.cw-foot {
  display: flex; align-items: center; gap: 7px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px; color: var(--text-faint);
}
.cw-online { width: 7px; height: 7px; border-radius: 50%; background: #3ba55d; }

/* interactive preview additions */
.cw-crumb { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--text); }
.cw-back {
  font-size: 11px; font-weight: 600; color: var(--gold);
  cursor: pointer; padding: 3px 8px; border-radius: 6px;
  background: var(--gold-soft);
}
.cw-back:hover { background: rgba(245,197,24,0.22); }

.cw-view { min-height: 232px; }
.cw-list { display: flex; flex-direction: column; gap: 6px; }
.cw-list .cw-mod { cursor: pointer; width: 100%; }
.cw-list .cw-mod:hover { background: rgba(255,255,255,0.06); border-color: var(--stroke-hot); }
.cw-mod-txt { min-width: 0; flex: 1; }
.cw-chev { width: 14px; height: 14px; color: var(--text-faint); flex: 0 0 14px; align-self: center; }

.cw-set-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; margin-bottom: 10px;
  background: var(--gold-soft); border: 1px solid var(--stroke-hot);
  border-radius: 9px;
}
.cw-set-head .cw-mod-txt b { color: var(--gold); }
.cw-set-list { display: flex; flex-direction: column; gap: 4px; }
.cw-set {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 8px;
  background: rgba(255,255,255,0.025);
  font-size: 12px; color: var(--text-dim);
}
.cw-set > span:first-child { flex: 1; }
.cw-val, .cw-text { font-size: 11px; color: var(--text); font-weight: 600; }

.cw-switch {
  width: 30px; height: 17px; border-radius: 100px;
  background: rgba(255,255,255,0.12); position: relative; flex: 0 0 30px;
  transition: background .15s ease;
}
.cw-switch i {
  position: absolute; top: 2px; left: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #cfd3da; transition: left .15s ease;
}
.cw-switch.on { background: var(--gold); }
.cw-switch.on i { left: 15px; background: #1a1400; }

.cw-slider {
  position: relative; width: 72px; height: 4px; flex: 0 0 72px;
  background: rgba(255,255,255,0.12); border-radius: 100px;
}
.cw-slider-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--gold); border-radius: 100px; }
.cw-slider-knob {
  position: absolute; top: 50%; width: 11px; height: 11px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.cw-color { width: 20px; height: 14px; border-radius: 4px; flex: 0 0 20px; border: 1px solid rgba(255,255,255,0.3); }

.cw-readonly { margin-top: 10px; font-size: 10.5px; color: var(--text-faint); text-align: center; }
.cw-hint { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--text-faint); }

/* ---- Stats ----------------------------------------------------------- */

/* Single inline stat line under the hero (NoRisk-style). */
.stat-line {
  margin-top: 52px;
  text-align: center;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-dim);
  font-weight: 500;
}
.stat-line .num {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.15em;
  letter-spacing: -0.01em;
}

/* ---- Section scaffolding -------------------------------------------- */

section.block { padding: 84px 0; }
.block-head { text-align: center; max-width: 660px; margin: 0 auto 50px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--stroke-hot);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.block-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.block-head p { color: var(--text-dim); font-size: 17px; }

/* ---- Feature grid ---------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .18s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--stroke-hot); }
.feature .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 16px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 15px; }

/* ---- Module browser (real catalogue) -------------------------------- */

.mod-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.mod-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.mod-tab {
  background: var(--card);
  border: 1px solid var(--stroke);
  color: var(--text-dim);
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.mod-tab:hover { color: var(--text); border-color: var(--stroke-hot); }
.mod-tab.active {
  background: linear-gradient(180deg, var(--gold-hot), var(--gold-deep));
  color: #1a1400;
  border-color: transparent;
}
.mod-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 100px;
  padding: 9px 16px;
  min-width: 240px;
}
.mod-search svg { width: 16px; height: 16px; color: var(--text-faint); flex: 0 0 16px; }
.mod-search input {
  background: none; border: 0; outline: none;
  color: var(--text); font-size: 14px; font-family: var(--font);
  width: 100%;
}
.mod-search input::placeholder { color: var(--text-faint); }

.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  /* Show about 5 rows, then scroll the rest inside the grid. One card row is
     ~96px tall + 12px gap; --mod-rows rows plus a peek of the next so it reads
     as scrollable. */
  --mod-row-h: 108px;
  --mod-rows: 5;
  max-height: calc(var(--mod-row-h) * var(--mod-rows));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 10px 2px 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
  scroll-behavior: smooth;
}
.mod-grid::-webkit-scrollbar { width: 9px; }
.mod-grid::-webkit-scrollbar-track { background: transparent; }
.mod-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-hot), var(--gold-deep));
  border-radius: 100px;
  border: 2px solid var(--bg);
}
.mod-grid::-webkit-scrollbar-thumb:hover { background: var(--gold); }
/* Fade hint at the bottom so it's obvious more modules are below the fold. */
.mod-scroll-wrap { position: relative; }
.mod-scroll-wrap::after {
  content: "";
  position: absolute; left: 0; right: 10px; bottom: 0;
  height: 44px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 1;
  transition: opacity .2s ease;
}
.mod-scroll-wrap.at-end::after { opacity: 0; }
.mod-card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: transform .14s ease, border-color .18s ease;
}
.mod-card:hover { transform: translateY(-3px); border-color: var(--stroke-hot); }
.mod-card .mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.mod-card h4 { font-size: 15px; font-weight: 700; }
.mod-card .mc-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 100px;
  text-transform: uppercase;
}
.mc-tag.Combat  { color: #ff6b6b; background: rgba(255,107,107,0.14); }
.mc-tag.ESP     { color: #4f8eff; background: rgba(79,142,255,0.14); }
.mc-tag.Render  { color: var(--gold); background: var(--gold-soft); }
.mc-tag.Utility { color: #22c55e; background: rgba(34,197,94,0.14); }
.mc-tag.Misc    { color: #a855f7; background: rgba(168,85,247,0.14); }
.mod-card p { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.mod-empty { text-align: center; color: var(--text-faint); padding: 40px 0; grid-column: 1 / -1; }
.mod-count { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 22px; }

/* Cards are clickable: open the detail modal. */
.mod-card { cursor: pointer; }
.mod-card .mc-more {
  margin-top: 10px;
  font-size: 12px; font-weight: 600; color: var(--gold);
  opacity: 0; transition: opacity .15s ease;
}
.mod-card:hover .mc-more { opacity: 1; }

/* ---- Module detail modal -------------------------------------------- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(4px);
  animation: overlayIn .18s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: 86vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--stroke-hot);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.65);
  animation: modalIn .22s cubic-bezier(.2,.8,.2,1);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--stroke);
  border-radius: 8px; color: var(--text-dim); cursor: pointer;
  transition: all .14s ease;
}
.modal-close:hover { color: var(--text); border-color: var(--stroke-hot); }
.modal-close svg { width: 16px; height: 16px; }

.modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-right: 40px; }
.modal-ico {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--gold-soft); color: var(--gold);
}
.modal-ico svg { width: 24px; height: 24px; }
.modal-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }

.modal-body p {
  color: var(--text-dim);
  font-size: 15px; line-height: 1.6;
  margin-bottom: 14px;
}
.modal-body p:first-child {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}
.modal-body p:last-child { margin-bottom: 0; }
.modal-body p.modal-bullet {
  padding-left: 20px;
  text-indent: -20px;
  margin-bottom: 8px;
  color: var(--text-dim);
}
.modal-body p.modal-bullet .mb-dot { color: var(--gold); font-weight: 700; }
.modal-body code {
  background: rgba(255,255,255,0.06); border-radius: 5px;
  padding: 1px 6px; font-size: 13.5px; color: var(--gold);
}

/* ---- Showcase cards (highlighted strengths) ------------------------- */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.sc-card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .2s ease;
}
.sc-card:hover { transform: translateY(-5px); border-color: var(--stroke-hot); }

.sc-visual {
  position: relative;
  height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* Replace with a screenshot later: set background-image on the slot. */
  background-size: cover;
  background-position: center;
}
.sc-video { background: #0c0c0e; }
.sc-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.sc-v1 { background: radial-gradient(ellipse at 30% 20%, rgba(245,197,24,0.22), transparent 60%), linear-gradient(160deg, #1d1a10, #0c0c0e); }
.sc-v2 { background: radial-gradient(ellipse at 70% 20%, rgba(34,197,94,0.18), transparent 60%), linear-gradient(160deg, #0f1712, #0c0c0e); }
.sc-v3 { background: radial-gradient(ellipse at 50% 20%, rgba(168,85,247,0.2), transparent 60%), linear-gradient(160deg, #15101d, #0c0c0e); }
.sc-v4 { background: radial-gradient(ellipse at 40% 20%, rgba(55,197,255,0.18), transparent 60%), linear-gradient(160deg, #0d161c, #0c0c0e); }
.sc-v4 .sc-ico { color: #37C5FF; }
.sc-tag-static { cursor: default; }
.sc-tag-static:hover { color: var(--text-dim); background: var(--card-2); border-color: var(--stroke); }
.sc-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,12,0.75));
}
.sc-ico {
  width: 64px; height: 64px;
  color: rgba(255,255,255,0.85);
  position: relative; z-index: 1;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
}
.sc-v1 .sc-ico { color: var(--gold); }
.sc-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 12.5px; font-weight: 600; color: #fff;
}
.sc-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 8px #3ba55d; }

.sc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.sc-body h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.sc-body > p { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.sc-body code {
  background: rgba(255,255,255,0.06); border-radius: 5px;
  padding: 1px 6px; font-size: 13px; color: var(--gold);
}
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sc-tag {
  background: var(--card-2);
  border: 1px solid var(--stroke);
  color: var(--text-dim);
  font-size: 13px; font-weight: 600;
  padding: 7px 13px; border-radius: 100px;
  cursor: pointer;
  font-family: var(--font);
  transition: all .14s ease;
}
.sc-tag:hover { color: #1a1400; background: var(--gold); border-color: transparent; }
.sc-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text); font-weight: 600; font-size: 14px;
  padding-top: 14px; border-top: 1px solid var(--stroke);
}
.sc-link svg { width: 15px; height: 15px; transition: transform .15s ease; }
.sc-link:hover { color: var(--gold); }
.sc-link:hover svg { transform: translate(2px, -2px); }

/* ---- Streamers section ---------------------------------------------- */

.streamer-banner {
  position: relative;
  border: 1px solid var(--stroke-hot);
  border-radius: 22px;
  padding: 48px 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255,201,60,0.12), transparent 60%),
    linear-gradient(180deg, var(--card), var(--bg-2));
}
.sb-glow {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("assets/hero-banner.png");
  background-size: cover; background-position: center;
  opacity: 0.06;
}
.streamer-banner > * { position: relative; z-index: 1; }
.streamer-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.streamer-head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 14px; }
.streamer-head h2 .g {
  background: linear-gradient(180deg, var(--gold-hot), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.streamer-head p { color: var(--text-dim); font-size: 16px; }
.rec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff3b3b; display: inline-block; margin-right: 7px;
  box-shadow: 0 0 8px #ff3b3b;
  animation: recPulse 1.4s ease-in-out infinite;
}
@keyframes recPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.streamer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.st-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .16s ease, border-color .2s ease;
}
.st-card:hover { transform: translateY(-4px); border-color: var(--stroke-hot); }
.st-card-wide { grid-column: 1 / -1; }
.st-card b { color: var(--text); font-weight: 700; }
.st-ico {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 11px; background: var(--gold-soft); color: var(--gold);
  margin-bottom: 14px;
}
.st-ico svg { width: 23px; height: 23px; }
.st-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.st-card > p { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.st-card code { background: rgba(255,255,255,0.06); border-radius: 5px; padding: 1px 6px; font-size: 13px; color: var(--gold); }
.st-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Brief gold flash when a module is jumped to from a showcase tag. */
@keyframes modFlash {
  0%, 100% { box-shadow: 0 0 0 0 transparent; border-color: var(--stroke); }
  30% { box-shadow: 0 0 0 2px var(--gold); border-color: var(--gold); }
}
.mod-card.flash { animation: modFlash 1.3s ease; }

/* ---- Launcher showcase ---------------------------------------------- */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}
.showcase .copy h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.showcase .copy p { color: var(--text-dim); font-size: 16px; margin-bottom: 22px; }
.showcase ul { list-style: none; display: grid; gap: 14px; }
.showcase li { display: flex; gap: 12px; align-items: flex-start; }
.showcase li .tick {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid; place-items: center;
}
.showcase li .tick svg { width: 14px; height: 14px; }
.showcase li b { color: var(--text); font-weight: 600; }
.showcase li span { color: var(--text-dim); }

.versions {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 10px;
}
.versions .ver-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 14px;
  border-bottom: 1px solid var(--stroke);
}
.versions .ver-head img { width: 26px; height: 26px; }
.versions .ver-head .t { font-weight: 700; }
.versions .ver-head .pill {
  margin-left: auto;
  font-size: 12px; color: var(--gold);
  background: var(--gold-soft); border: 1px solid var(--stroke-hot);
  border-radius: 100px; padding: 3px 10px;
}
.ver-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  transition: background .15s ease;
}
.ver-row:hover { background: var(--card-2); }
.ver-row .vname { font-weight: 600; }
.ver-row .vloader { color: var(--text-faint); font-size: 13px; }
.ver-row .vtime { color: var(--text-faint); font-size: 13px; }

/* ---- GUI replica (the real in-game interface) ----------------------- */

.swatch {
  width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, border-color .15s ease;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: #fff; }

.gui-wrap { max-width: 920px; margin: 0 auto; }
.gui-swatches {
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}
.gui-swatch-label { font-size: 13px; font-weight: 600; color: var(--text-faint); margin-right: 4px; }

.gui {
  background: #0c0d12;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  font-size: 13px;
}

/* Title bar */
.gui-title {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  background: #121318;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.gui-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--gold); }
.gui-brand img { width: 18px; height: 18px; }
.gui-search {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-faint); font-size: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px; padding: 4px 10px;
}
.gui-search svg { width: 12px; height: 12px; }
.gui-tbtns { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.gui-tbtn {
  font-size: 11.5px; color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 4px 9px;
}
.gui-x { color: var(--text-faint); padding: 0 4px; cursor: default; }

/* Category tabs */
.gui-tabs {
  display: flex; align-items: stretch;
  background: #0f1015;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 6px;
}
.gui-tab {
  padding: 11px 16px;
  font-size: 12.5px; font-weight: 600; color: var(--text-faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .14s ease;
}
.gui-tab:hover { color: var(--text-dim); }
.gui-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Body */
.gui-main { display: grid; grid-template-columns: 240px 1fr; min-height: 340px; }
.gui-list {
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 8px;
  max-height: 340px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
}
.gui-list::-webkit-scrollbar { width: 7px; }
.gui-list::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 100px; }
.gui-li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 7px;
  cursor: pointer;
  transition: background .12s ease;
}
.gui-li:hover { background: rgba(255,255,255,0.04); }
.gui-li.active { background: var(--gold-soft); }
.gui-li .gui-li-name { flex: 1; font-size: 12.5px; color: var(--text-dim); }
.gui-li.active .gui-li-name { color: var(--gold); font-weight: 600; }
.gui-star { color: var(--text-faint); font-size: 13px; }
.gui-star.on { color: var(--gold); }
.gui-mini-switch {
  width: 26px; height: 15px; border-radius: 100px;
  background: rgba(255,255,255,0.14); position: relative; flex: 0 0 26px;
}
.gui-mini-switch i { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #cfd3da; transition: left .14s ease; }
.gui-mini-switch.on { background: var(--gold); }
.gui-mini-switch.on i { left: 13px; background: #1a1400; }

/* Settings panel */
.gui-panel { padding: 16px 18px; max-height: 340px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
.gui-panel::-webkit-scrollbar { width: 7px; }
.gui-panel::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 100px; }
.gui-p-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.gui-p-head b { font-size: 14px; color: var(--gold); }
.gui-p-head span { font-size: 12px; color: var(--text-faint); }
.gui-p-doc {
  margin-left: auto; font-size: 11px; color: var(--gold);
  border: 1px solid var(--stroke-hot); border-radius: 6px;
  padding: 3px 9px; background: var(--gold-soft);
}
.gui-disabled {
  text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  border-radius: 7px; padding: 10px; margin-bottom: 8px;
}
.gui-modebar { display: flex; gap: 6px; margin-bottom: 14px; }
.gui-mode {
  flex: 1; text-align: center; font-size: 12px; font-weight: 700;
  padding: 9px; border-radius: 7px;
  background: rgba(255,255,255,0.04); color: var(--text-faint);
  border: 1px solid transparent;
}
.gui-mode.active { background: var(--gold-soft); color: var(--gold); border-color: var(--stroke-hot); }
.gui-key { font-size: 11px; color: var(--text-faint); background: rgba(255,255,255,0.05); border-radius: 6px; padding: 9px 11px; }

.gui-set { padding: 9px 2px; border-top: 1px solid rgba(255,255,255,0.05); }
.gui-set:first-of-type { border-top: 0; }
.gui-set-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gui-set-name { font-size: 12.5px; color: var(--text-dim); }
.gui-set-val { font-size: 12px; color: var(--text); font-weight: 600; }
.gui-track { position: relative; height: 5px; margin-top: 8px; background: rgba(255,255,255,0.12); border-radius: 100px; }
.gui-track-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--gold); border-radius: 100px; }
.gui-track-knob { position: absolute; top: 50%; width: 12px; height: 12px; transform: translate(-50%,-50%); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.gui-set-switch { width: 30px; height: 17px; border-radius: 100px; background: rgba(255,255,255,0.14); position: relative; flex: 0 0 30px; }
.gui-set-switch i { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #cfd3da; transition: left .14s ease; }
.gui-set-switch.on { background: var(--gold); }
.gui-set-switch.on i { left: 15px; background: #1a1400; }

/* Footer */
.gui-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  background: #121318;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 11.5px; color: var(--text-faint);
}
.gui-foot b { color: var(--text-dim); }
.gui-foot-dc { color: var(--gold); }
.gui-readonly-note { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 14px; }

/* Tab module counter */
.gui-tab em { font-style: normal; font-size: 10.5px; color: var(--text-faint); opacity: 0.8; }
.gui-tab.active em { color: var(--gold); }

/* Mode setting chips */
.gui-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gui-chip {
  font-size: 11px; font-weight: 600; color: var(--text-faint);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px; padding: 4px 10px;
}
.gui-chip.on { color: var(--gold); background: var(--gold-soft); border-color: var(--stroke-hot); }

/* Keybind pill */
.gui-key-pill {
  font-size: 10.5px; font-weight: 700; color: var(--text-dim);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 3px 9px;
}

.gui-nosettings { font-size: 12.5px; color: var(--text-faint); text-align: center; padding: 20px 0; }

/* ---- FAQ ------------------------------------------------------------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  user-select: none;
}
.faq-q .plus {
  flex: 0 0 22px;
  font-size: 22px; color: var(--gold); line-height: 1;
  transition: transform .2s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0 20px;
  color: var(--text-dim);
  font-size: 15px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 20px 18px; }

/* ---- CTA banner ------------------------------------------------------ */

.cta-banner {
  position: relative;
  text-align: center;
  border-radius: 22px;
  padding: 64px 30px;
  overflow: hidden;
  border: 1px solid var(--stroke-hot);
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("assets/hero-banner.png");
  background-size: cover; background-position: center;
  opacity: 0.35;
}
.cta-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,12,0.4), rgba(10,10,12,0.9));
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; }
.cta-banner p { color: var(--text-dim); font-size: 17px; margin-bottom: 26px; }
.cta-banner .hero-cta { margin-top: 0; justify-content: center; }

/* ---- Discord strip --------------------------------------------------- */

.discord {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  background: linear-gradient(90deg, #5865F2 0%, #4752c4 100%);
  border-radius: 18px;
  padding: 34px 40px;
}
.discord .d-text h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.discord .d-text p { opacity: 0.85; font-size: 15px; }
.discord .btn-ghost { background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.3); color: #fff; }
.discord .btn-ghost:hover { background: rgba(0,0,0,0.4); }

/* ---- Footer ---------------------------------------------------------- */

footer.site {
  position: relative;
  border-top: 1px solid var(--stroke);
  background: rgba(10,10,12,0.4);
  padding: 72px 0 34px;
  margin-top: 90px;
  overflow: hidden;
}
footer.site .wrap { position: relative; z-index: 1; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--text-dim); font-size: 14px; max-width: 320px; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 9px; transition: color .15s ease; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid var(--stroke);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-faint); font-size: 13px;
}

/* ---- Responsive ------------------------------------------------------ */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--stroke);
    padding: 18px var(--gutter); gap: 16px;
  }
  .hero-layout { grid-template-columns: 1fr; gap: 40px; text-align: center; min-height: 0; }
  .hero-copy { text-align: center; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .client-win { transform: none; }
  .features { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .streamer-grid { grid-template-columns: 1fr; }
  .streamer-banner { padding: 32px 22px; }
  .hero-mock { perspective: none; }
  .gui-main { grid-template-columns: 1fr; }
  .gui-list { max-height: 160px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .gui-tabs { overflow-x: auto; }
  .gui-swatches { flex-wrap: wrap; }
  /* Single column on phones: keep more rows visible so the scroll area isn't tiny. */
  .mod-grid { --mod-rows: 6; --mod-row-h: 112px; }
  .customizer { grid-template-columns: 1fr; padding: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .discord { padding: 26px; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
}
