/* PackForge site — same palette and type as the desktop studio. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/nunito-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/nunito-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/nunito-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/nunito-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  --bg: #070a0d;
  --bg-soft: #0a0e13;
  --panel: #0e141a;
  --panel-raised: #131b23;
  --panel-hover: #17212b;
  --border: #22303b;
  --border-soft: #18232c;
  --text: #edf5f0;
  --muted: #8c9da8;
  --faint: #647481;
  --accent: #5ce39b;
  --accent-deep: #2dbb78;
  --cyan: #64d8ff;
  --violet: #9c7cff;
  --warning: #f4c95d;
  --ink: #06110c;
  --radius: 18px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(760px 520px at 8% -4%, rgba(92, 227, 155, 0.10), transparent 70%),
    radial-gradient(720px 540px at 96% 14%, rgba(156, 124, 255, 0.09), transparent 72%),
    radial-gradient(680px 460px at 50% 104%, rgba(100, 216, 255, 0.04), transparent 70%),
    linear-gradient(180deg, #080c10 0%, var(--bg) 55%, #06090c 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.021) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.021) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 45%, transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 45%, transparent 82%);
}

::selection { background: rgba(92, 227, 155, 0.3); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1180px, calc(100% - 56px)); margin: 0 auto; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  transition: top 0.18s ease;
}
.skip-link:focus-visible { top: 12px; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(7, 10, 13, 0.82);
  border-color: rgba(34, 48, 59, 0.75);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img {
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.45);
}
.brand-type { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-size: 14.5px; font-weight: 800; letter-spacing: 0.09em; line-height: 1.1; }
.brand-sub { font-family: var(--mono); font-size: 7.5px; font-weight: 500; letter-spacing: 0.17em; color: var(--faint); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--text); }
.header-inner > .btn { flex: 0 0 auto; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, #6fecad, var(--accent));
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px rgba(92, 227, 155, 0.22);
}
.btn-primary:hover { background: linear-gradient(180deg, #86f3bb, #63e8a4); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 12px 30px rgba(92, 227, 155, 0.3); }
.btn-secondary {
  background: linear-gradient(180deg, rgba(23, 33, 43, 0.95), rgba(15, 22, 29, 0.95));
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 22px rgba(0, 0, 0, 0.28);
}
.btn-secondary:hover { border-color: #33475a; background: linear-gradient(180deg, rgba(27, 39, 50, 1), rgba(17, 25, 33, 1)); }
.btn-compact { font-size: 12px; padding: 10px 16px; border-radius: 9px; }
.btn-xl { min-width: 246px; padding: 15px 20px; justify-content: flex-start; border-radius: 13px; }
.btn-icon { width: 23px; height: 23px; flex: 0 0 auto; }
.btn-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.btn-copy strong { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.btn-copy small { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.62; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Hero -------------------------------------------------------------------- */
.hero { padding-top: 152px; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 7px 13px;
  border: 1px solid rgba(92, 227, 155, 0.22);
  border-radius: 999px;
  background: rgba(92, 227, 155, 0.06);
  color: #a9c7b8;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(92, 227, 155, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(92, 227, 155, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(92, 227, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 227, 155, 0); }
}
.hero h1 {
  margin: 0 auto;
  max-width: 1000px;
  font-size: clamp(46px, 7.2vw, 86px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.038em;
}
.grad {
  background: linear-gradient(100deg, #8df7c1 0%, #5ce39b 32%, #64d8ff 68%, #a98cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 690px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.66;
}
.cta-row { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-meta {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
}
.hero-meta a { color: #9db2a6; border-bottom: 1px solid rgba(157, 178, 166, 0.25); padding-bottom: 1px; }
.hero-meta a:hover { color: var(--accent); border-color: rgba(92, 227, 155, 0.45); }

.shot {
  position: relative;
  margin: 58px 0 0;
  padding: 0;
  border: 1px solid rgba(34, 48, 59, 0.9);
  border-radius: 16px;
  background: #0a0f14;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.shot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92, 227, 155, 0.5), rgba(156, 124, 255, 0.4), transparent);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(34, 48, 59, 0.7);
  background: linear-gradient(180deg, #0f151b, #0b1116);
}
.shot-dots { display: inline-flex; gap: 5px; }
.shot-dots i { width: 7px; height: 7px; border-radius: 50%; background: #2a3742; display: block; }
.shot-dots i:first-child { background: #3a4c59; }
.shot-title { font-family: var(--mono); font-size: 9.5px; color: var(--faint); letter-spacing: 0.04em; }
.shot-tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8.5px;
  color: #7d9388;
  border: 1px solid rgba(92, 227, 155, 0.2);
  background: rgba(92, 227, 155, 0.06);
  border-radius: 999px;
  padding: 3px 8px;
}
.shot img { display: block; width: 100%; height: auto; }
.feature-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 16px 4px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.feature-strip span { display: inline-flex; align-items: center; gap: 8px; }
.feature-strip svg { width: 14px; height: 14px; color: var(--accent); }

/* Sections ---------------------------------------------------------------- */
.section { margin-top: 136px; scroll-margin-top: 96px; }
.section-head { max-width: 760px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow span { color: var(--faint); }
.eyebrow::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(92, 227, 155, 0.5), transparent);
}
.section h2 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.032em;
}
.section-lede {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Desktop ----------------------------------------------------------------- */
.desktop-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
  margin-top: 44px;
  align-items: start;
}
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(560px 280px at 0% 0%, rgba(92, 227, 155, 0.035), transparent 70%),
    linear-gradient(180deg, rgba(19, 27, 35, 0.78), rgba(10, 14, 19, 0.92));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 24px 60px rgba(0, 0, 0, 0.25);
}
.features { padding: 10px 28px; }
.feature {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}
.feature:last-child { border-bottom: 0; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(92, 227, 155, 0.2);
  border-radius: 10px;
  background: rgba(92, 227, 155, 0.07);
  color: var(--accent);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 12.8px; line-height: 1.62; }

.download-stack { display: flex; flex-direction: column; gap: 12px; }
.download-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(19, 27, 35, 0.92), rgba(11, 16, 21, 0.95));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.download-card:hover {
  border-color: rgba(92, 227, 155, 0.4);
  background: linear-gradient(180deg, rgba(23, 33, 43, 0.98), rgba(13, 19, 25, 1));
  transform: translateY(-1px);
}
.download-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: #0a0f14;
  color: #cfe0d6;
}
.download-icon svg { width: 21px; height: 21px; }
.download-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.download-kicker {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.download-copy strong { font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; }
.download-copy small { font-family: var(--mono); font-size: 9px; color: var(--faint); }
.download-go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.18s ease;
}
.download-go svg { width: 15px; height: 15px; }
.download-card:hover .download-go { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.notice {
  margin-top: 2px;
  padding: 13px 15px;
  border: 1px solid rgba(244, 201, 93, 0.24);
  border-radius: 12px;
  background: rgba(244, 201, 93, 0.055);
  color: #cbbd99;
  font-size: 11px;
  line-height: 1.6;
}
.notice strong { color: var(--warning); font-weight: 800; }
.checksums {
  margin-top: 2px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(8, 12, 16, 0.5);
  padding: 13px 15px;
}
.checksums summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  list-style: none;
}
.checksums summary::-webkit-details-marker { display: none; }
.checksums summary::before { content: "+ "; color: var(--accent); }
.checksums[open] summary::before { content: "− "; }
.checksums[open] summary { margin-bottom: 12px; }
.checksum-row { margin: 9px 0; }
.checksum-row span {
  display: block;
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.checksum-row code {
  display: block;
  font-size: 9px;
  line-height: 1.5;
  color: var(--faint);
  overflow-wrap: anywhere;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #9db2a6;
  transition: color 0.16s ease;
}
.text-link svg { width: 12px; height: 12px; }
.text-link:hover { color: var(--accent); }

/* Mod --------------------------------------------------------------------- */
.mod-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  max-width: none;
}
.mod-head > div:first-child { max-width: 700px; }
.mod-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  padding: 13px 18px 13px 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(12, 17, 22, 0.7);
}
.mod-mark img { width: 54px; height: 54px; border-radius: 13px; box-shadow: 0 0 24px rgba(92, 227, 155, 0.18); }
.mod-mark span { display: flex; flex-direction: column; gap: 3px; }
.mod-mark strong { font-size: 12.5px; font-weight: 800; }
.mod-mark small { font-family: var(--mono); font-size: 8.5px; line-height: 1.5; color: var(--faint); }

.mod-panel {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  margin-top: 42px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(520px 320px at 100% 100%, rgba(156, 124, 255, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(16, 23, 30, 0.94), rgba(9, 13, 18, 0.98));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 30px 80px rgba(0, 0, 0, 0.3);
}
.mod-controls { padding: 32px; }
.field-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(7, 10, 13, 0.7);
}
.tabs button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 8px 13px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.tabs button:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tabs button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.field-hint { margin: 9px 0 0; font-family: var(--mono); font-size: 9px; color: var(--faint); }

.loader-list { margin-top: 26px; border-top: 1px solid var(--border-soft); }
.loader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}
.loader-info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.loader-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.loader-badge.fabric { color: var(--cyan); border-color: rgba(100, 216, 255, 0.26); background: rgba(100, 216, 255, 0.06); }
.loader-badge.neoforge { color: var(--violet); border-color: rgba(156, 124, 255, 0.28); background: rgba(156, 124, 255, 0.07); }
.loader-info code {
  margin-top: 8px;
  font-size: 9.5px;
  color: #b3c5bc;
  overflow-wrap: anywhere;
}
.loader-info small { margin-top: 3px; font-size: 10.5px; color: var(--faint); }
.btn-download { padding: 10px 13px; border-radius: 9px; flex: 0 0 auto; }
.btn-download > svg { width: 15px; height: 15px; }
.btn-download > span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 11.5px; font-weight: 800; }
.btn-download small { font-family: var(--mono); font-size: 8.5px; font-weight: 500; color: var(--faint); }
.btn-download:hover small { color: #9db2a6; }

.mod-notes { margin-top: 18px; }
.mod-notes p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0;
  font-size: 11px;
  color: var(--muted);
}
.mod-notes svg { width: 12px; height: 12px; color: var(--accent); flex: 0 0 auto; }

.mod-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  border-left: 1px solid rgba(34, 48, 59, 0.65);
  overflow: hidden;
  isolation: isolate;
}
.mod-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 227, 155, 0.2), rgba(156, 124, 255, 0.1) 45%, transparent 68%);
  filter: blur(18px);
  z-index: -1;
}
.mod-art > img {
  width: 218px;
  height: 218px;
  border-radius: 48px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 42px rgba(92, 227, 155, 0.25));
}
.texture-tile {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 78px;
  height: 78px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(10, 15, 19, 0.82);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.texture-tile i {
  background: #2a4b3a;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.texture-tile i:nth-child(2n) { background: #38624b; }
.texture-tile i:nth-child(3n) { background: #1f3a2d; }
.texture-tile i:nth-child(5n) { background: #4b3a78; }
.texture-tile i:nth-child(7n) { background: #3c6a86; }
.texture-tile i:nth-child(4n) { opacity: 0.55; }
.tile-a { left: 8%; top: 15%; transform: rotate(-9deg); animation: float 9s ease-in-out infinite; }
.tile-b { right: 6%; bottom: 13%; transform: rotate(8deg); animation: float 11s ease-in-out infinite reverse; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.art-chip {
  position: absolute;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 15, 19, 0.88);
  font-family: var(--mono);
  font-size: 8.5px;
  color: #a9bbb0;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.chip-one { left: 6%; bottom: 24%; }
.chip-two { right: 5%; top: 21%; }

/* Install ----------------------------------------------------------------- */
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 42px; }
.install-card { padding: 26px 28px; }
.install-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.install-num {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(92, 227, 155, 0.3);
  border-radius: 50%;
  background: rgba(92, 227, 155, 0.07);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.install-card h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.015em; }
.steps { list-style: none; counter-reset: step; margin: 16px 0 0; padding: 0; }
.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 16px 34px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.steps li:last-child { padding-bottom: 4px; }
.steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--accent);
}
.steps strong { color: var(--text); font-weight: 800; }
.steps em { color: #c2d3c9; font-style: normal; font-weight: 700; }
.steps code, .fineprint code {
  padding: 1px 5px;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: rgba(7, 10, 13, 0.7);
  color: #b8cbc0;
  font-size: 10.5px;
}
.fineprint {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  color: var(--faint);
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  margin-top: 140px;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(8, 12, 16, 0.4), rgba(5, 8, 10, 0.9));
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  padding: 46px 0 34px;
}
.footer-brand { max-width: 310px; }
.footer-brand p { margin: 14px 0 0; font-size: 12px; line-height: 1.65; color: var(--faint); }
.footer-links { display: flex; gap: 72px; }
.footer-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-links a {
  display: block;
  margin: 8px 0;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.16s ease;
}
.footer-links a:hover { color: var(--accent); }
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding: 18px 0 26px;
  border-top: 1px solid var(--border-soft);
}
.footer-legal p { margin: 0; font-family: var(--mono); font-size: 8.5px; line-height: 1.6; color: #4f5f6a; }
.footer-year { color: #6b7d88 !important; }

/* Reveal ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Licences page ----------------------------------------------------------- */
.legal-main { padding-top: 142px; max-width: 960px; }
.legal-main h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.legal-back { margin-left: auto; }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 42px; }
.legal-block { padding: 26px; }
.legal-block h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; letter-spacing: -0.015em; }
.legal-block p { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(92, 227, 155, 0.35); text-underline-offset: 3px; }
.legal-block a:hover { text-decoration-color: var(--accent); }
.legal-block code {
  padding: 1px 5px;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: rgba(7, 10, 13, 0.7);
  font-size: 10.5px;
  color: #b8cbc0;
}
.legal-home { margin-top: 30px; }
.legal-footer { margin-top: 90px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1040px) {
  .hero h1 { font-size: clamp(44px, 7.6vw, 74px); }
  .mod-art > img { width: 184px; height: 184px; border-radius: 40px; }
  .texture-tile { width: 66px; height: 66px; }
  .art-chip { font-size: 8px; }
}
@media (max-width: 900px) {
  .desktop-grid { grid-template-columns: 1fr; }
  .download-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .download-stack .notice, .download-stack .checksums { grid-column: 1 / -1; }
  .mod-head { flex-direction: column; align-items: flex-start; gap: 26px; }
  .mod-panel { grid-template-columns: 1fr; }
  .mod-art { min-height: 260px; border-left: 0; border-top: 1px solid rgba(34, 48, 59, 0.65); }
  .mod-art > img { width: 132px; height: 132px; border-radius: 29px; }
  .texture-tile { width: 58px; height: 58px; opacity: 0.8; }
  .tile-a { left: 12%; top: 18%; }
  .tile-b { right: 10%; bottom: 18%; }
  .chip-one { left: 26%; bottom: 14%; }
  .chip-two { right: 24%; top: 16%; }
  .install-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .wrap { width: calc(100% - 40px); }
  .nav { display: none; }
  .header-inner { height: 66px; }
  .header-inner > .btn { margin-left: auto; }
  .hero { padding-top: 120px; }
  .legal-main { padding-top: 116px; }
  .hero h1 br { display: none; }
  .lede { font-size: 15px; }
  .cta-row { flex-direction: column; align-items: stretch; max-width: 420px; margin-left: auto; margin-right: auto; }
  .btn-xl { width: 100%; min-width: 0; }
  .hero-meta { max-width: 340px; margin-left: auto; margin-right: auto; line-height: 1.9; }
  .shot { margin-top: 40px; border-radius: 13px; }
  .shot-bar { height: 34px; }
  .feature-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: 9px; }
  .section { margin-top: 96px; }
  .section h2 { font-size: clamp(32px, 8.4vw, 44px); }
  .section h2 br { display: none; }
  .download-stack { grid-template-columns: 1fr; }
  .features { padding: 6px 20px; }
  .mod-controls { padding: 24px 22px; }
  .install-card { padding: 22px; }
  .footer-inner { flex-direction: column; gap: 34px; padding-top: 38px; }
  .footer-links { gap: 56px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .brand-sub { display: none; }
  .brand-name { font-size: 13px; }
  .hero-badge { font-size: 8.5px; }
  .hero h1 { font-size: clamp(38px, 11.6vw, 52px); letter-spacing: -0.042em; }
  .lede { font-size: 14px; }
  .btn-xl { padding: 14px 16px; }
  .btn-copy strong { font-size: 13.5px; }
  .feature-strip { grid-template-columns: 1fr; gap: 9px; }
  .loader-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-download { justify-content: center; }
  .btn-download > span { flex-direction: row; align-items: baseline; gap: 8px; }
  .mod-art { min-height: 230px; }
  .texture-tile { display: none; }
  .chip-one { left: 6%; bottom: 12%; }
  .chip-two { right: 5%; top: 14%; }
  .footer-links { flex-direction: column; gap: 24px; }
  .install-card { padding: 20px; }
  .steps li { padding-left: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Credits ----------------------------------------------------------------- */
.credits-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  margin-top: 42px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(560px 340px at 92% 0%, rgba(156, 124, 255, 0.1), transparent 68%),
    linear-gradient(180deg, rgba(16, 23, 30, 0.94), rgba(9, 13, 18, 0.98));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 30px 80px rgba(0, 0, 0, 0.3);
}
.credits-art {
  position: relative;
  margin: 0;
  min-height: 400px;
  overflow: hidden;
  background: #0a0d11;
}
.credits-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credits-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 58%, rgba(9, 13, 18, 0.9)),
              linear-gradient(0deg, rgba(7, 10, 13, 0.72), transparent 46%);
  pointer-events: none;
}
.credits-art figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.credits-art figcaption span { color: var(--accent); font-weight: 700; }
.credits-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 34px 34px 30px;
}
.credits-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(92, 227, 155, 0.28);
  border-radius: 999px;
  background: rgba(92, 227, 155, 0.07);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.credits-copy h3 {
  margin: 0;
  font-size: clamp(25px, 2.7vw, 33px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.credits-lede { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 46ch; }
.credits-steps { margin: 2px 0 2px; }
.credits-cta { margin-top: 4px; }
.credits-copy .fineprint { margin: 0; max-width: 50ch; }

@media (max-width: 900px) {
  .credits-panel { grid-template-columns: 1fr; }
  .credits-art { min-height: 240px; max-height: 300px; }
  .credits-art::after { background: linear-gradient(0deg, rgba(9, 13, 18, 0.95), transparent 62%); }
  .credits-copy { padding: 26px 24px 28px; }
}
