/* ============================================================
   MCCLIENT — styles
   ============================================================ */

:root {
  --bg: #08090b;
  --bg-soft: #0b0d11;
  --surface: #101318;
  --surface-2: #151920;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9edf3;
  --muted: #8b94a4;
  --accent: #6ee787;
  --accent-2: #3ddc84;
  --accent-deep: #04210f;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --pill: 999px;
  --max: 1180px;
  --header-h: 74px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(61, 220, 132, 0.11), transparent 62%),
    radial-gradient(700px 420px at 4% 8%, rgba(88, 120, 255, 0.07), transparent 65%),
    radial-gradient(800px 600px at 50% 110%, rgba(61, 220, 132, 0.05), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

::selection { background: rgba(110, 231, 135, 0.28); color: #fff; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; flex: none; }
.mono { font-family: var(--mono); font-size: 0.78rem; }

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

/* ── header ─────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0 0;
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: border-color 0.25s ease, transform 0.25s ease;
  flex: none;
}

.brand:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #8af29b, #2fcf78 62%, #17a86a);
  color: #05230f;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px -8px rgba(61, 220, 132, 0.9);
  flex: none;
}

.brand-name {
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.14em;
  padding-right: 2px;
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 231, 135, 0.14);
}

.brand-sm { align-self: flex-start; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: center;
  padding: 4px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
  padding: 9px 18px;
  border-radius: var(--pill);
  font-size: 0.885rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav-link.is-active { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(110, 231, 135, 0.8);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  justify-self: end;
  flex: none;
}

/* ── buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(180deg, #86f59a, #3ddc84);
  color: var(--accent-deep);
  box-shadow: 0 10px 26px -12px rgba(61, 220, 132, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #9dfbae, #4eea94);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -14px rgba(61, 220, 132, 1), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--border-strong); }

.btn-lg { padding: 13px 24px; font-size: 0.94rem; }
.btn-block { width: 100%; }

.btn-dl {
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-dl:hover { background: rgba(110, 231, 135, 0.12); border-color: rgba(110, 231, 135, 0.4); color: #b9fbc7; }
.btn-dl .ico { width: 14px; height: 14px; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  place-items: center;
  cursor: pointer;
  flex: none;
}

.mobile-menu {
  width: min(var(--max), calc(100% - 32px));
  margin: 8px auto 0;
  padding: 10px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(12, 14, 18, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -30px #000;
}

.mobile-menu[hidden] { display: none; }

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
}

.mobile-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.mobile-divider { height: 1px; margin: 6px 4px; background: var(--border); }

/* ── hero ───────────────────────────────────────────────────── */

.hero { padding: 76px 0 48px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 26px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  font-weight: 500;
  color: #c9d2df;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(110, 231, 135, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 135, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(110, 231, 135, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 135, 0); }
}

h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.35rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.grad {
  background: linear-gradient(100deg, #b6fbc4 0%, #4eea94 46%, #1fc98b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 46ch;
  margin-top: 22px;
  font-size: 1.04rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.hero-stats li { display: grid; gap: 2px; }
.hero-stats strong { font-size: 1.32rem; letter-spacing: -0.03em; }
.hero-stats span { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.02em; }

/* ── hero mock ──────────────────────────────────────────────── */

.hero-visual { position: relative; display: grid; place-items: center; }

.glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 220, 132, 0.24), transparent 66%);
  filter: blur(28px);
}

.client-mock {
  position: relative;
  width: 100%;
  max-width: 430px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22, 26, 32, 0.96), rgba(11, 13, 17, 0.98));
  box-shadow: 0 40px 90px -40px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.client-mock:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }

.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #2c333d; }
.dots i:first-child { background: #ff5f57; opacity: 0.8; }
.dots i:nth-child(2) { background: #febc2e; opacity: 0.8; }
.dots i:nth-child(3) { background: #28c840; opacity: 0.8; }

.mock-title {
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.mock-tag {
  padding: 3px 9px;
  border-radius: var(--pill);
  background: rgba(110, 231, 135, 0.12);
  border: 1px solid rgba(110, 231, 135, 0.3);
  color: #a6f7b8;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 14px 0;
}

.mock-tabs span {
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

.mock-tabs .on { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.mock-list { padding: 12px 14px 6px; display: grid; gap: 2px; }

.mock-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
  color: #c6cedb;
  transition: background 0.2s ease;
}

.mock-list li:hover { background: rgba(255, 255, 255, 0.03); }

.dot { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.dot.c1 { background: #ff6b81; box-shadow: 0 0 8px rgba(255, 107, 129, 0.7); }
.dot.c2 { background: #6ee787; box-shadow: 0 0 8px rgba(110, 231, 135, 0.7); }
.dot.c3 { background: #7aa2ff; box-shadow: 0 0 8px rgba(122, 162, 255, 0.7); }
.dot.c4 { background: #ffc46b; box-shadow: 0 0 8px rgba(255, 196, 107, 0.7); }

.switch {
  width: 30px;
  height: 17px;
  margin-left: auto;
  padding: 2px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  transition: background 0.2s ease;
}

.switch i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #5b6472;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

.switch.on { background: rgba(61, 220, 132, 0.28); }
.switch.on i { transform: translateX(13px); background: #6ee787; box-shadow: 0 0 8px rgba(110, 231, 135, 0.8); }

.mock-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.7rem;
  color: var(--muted);
}

.mock-foot span { display: inline-flex; align-items: center; gap: 6px; }
.mock-foot .ico { width: 12px; height: 12px; color: var(--accent); }

.float-chip {
  position: absolute;
  right: 10px;
  top: -16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(110, 231, 135, 0.3);
  border-radius: var(--pill);
  background: rgba(14, 24, 18, 0.92);
  backdrop-filter: blur(12px);
  font-size: 0.76rem;
  font-weight: 600;
  color: #b9fbc7;
  box-shadow: 0 18px 40px -18px #000;
  animation: float 5s ease-in-out infinite;
}

.float-chip .ico { width: 15px; height: 15px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── sections ───────────────────────────────────────────────── */

.section { padding: 78px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.017) 12%, rgba(255, 255, 255, 0.017) 88%, transparent); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}

.section-head p { max-width: 42ch; color: var(--muted); font-size: 0.95rem; }

.kicker {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; }

/* ── filters ────────────────────────────────────────────────── */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover { color: var(--text); border-color: var(--border-strong); }

.chip.is-active {
  background: rgba(110, 231, 135, 0.13);
  border-color: rgba(110, 231, 135, 0.36);
  color: #b9fbc7;
}

/* ── cards ──────────────────────────────────────────────────── */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 26px 50px -34px #000, 0 0 0 1px rgba(110, 231, 135, 0.06);
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mod-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mod-card.is-hidden { display: none; }

.mod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }

.mod-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.mod-icon .ico { width: 19px; height: 19px; }

.cat-combat { background: linear-gradient(150deg, rgba(255, 107, 129, 0.26), rgba(255, 61, 113, 0.06)); color: #ff8fa1; }
.cat-movement { background: linear-gradient(150deg, rgba(110, 231, 135, 0.24), rgba(61, 220, 132, 0.05)); color: #8df0a0; }
.cat-visuals { background: linear-gradient(150deg, rgba(122, 162, 255, 0.26), rgba(91, 108, 255, 0.06)); color: #a4bbff; }
.cat-world { background: linear-gradient(150deg, rgba(255, 196, 107, 0.24), rgba(255, 157, 61, 0.05)); color: #ffd08f; }

.mod-state {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mod-card h3 { font-size: 1.06rem; letter-spacing: -0.02em; }

.mod-card p { font-size: 0.855rem; color: var(--muted); line-height: 1.5; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

.tags span {
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  color: #a4aebd;
}

.mod-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.meta { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }

/* ── rows ───────────────────────────────────────────────────── */

.row-list { display: grid; gap: 10px; }

.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.row:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); transform: translateX(3px); }

.row-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--accent);
  flex: none;
}

.row-body { flex: 1; min-width: 0; }
.row-body h3 { font-size: 0.98rem; margin-bottom: 2px; }
.row-body p { font-size: 0.82rem; color: var(--muted); }

.row-tag {
  padding: 4px 11px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

.row-ver { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); min-width: 62px; text-align: right; }

/* ── packs ──────────────────────────────────────────────────── */

.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.pack-card { overflow: hidden; }

.pack-art {
  position: relative;
  height: 168px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: #0b0e12;
}

.pack-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(130px 100px at var(--gx, 68%) 26%, var(--glow, transparent), transparent 72%),
    linear-gradient(
      180deg,
      var(--sky, #1a2136) 0 42%,
      var(--grass, #3a4fd0) 42% 51%,
      var(--dirt, #0d1120) 51% 100%
    );
}

.pack-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.26) 0 2px, transparent 2px 16px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.26) 0 2px, transparent 2px 16px);
}

.art-void {
  --sky: #1b2440;
  --grass: #4d63e6;
  --dirt: #0a0d18;
  --glow: rgba(160, 120, 255, 0.38);
  --gx: 72%;
}

.art-mint {
  --sky: #11301f;
  --grass: #46d98a;
  --dirt: #08120c;
  --glow: rgba(110, 231, 135, 0.34);
  --gx: 30%;
}

.art-clean {
  --sky: #2b2a27;
  --grass: #f2c266;
  --dirt: #131313;
  --glow: rgba(255, 214, 140, 0.32);
  --gx: 52%;
}

.pack-res {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: rgba(5, 7, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #dfe6ef;
  backdrop-filter: blur(8px);
}

.pack-body { padding: 18px 20px 20px; }
.pack-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pack-body p { font-size: 0.84rem; color: var(--muted); }

.pack-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ── features ───────────────────────────────────────────────── */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.feature { padding: 26px 24px; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 13px;
  border: 1px solid rgba(110, 231, 135, 0.24);
  background: rgba(110, 231, 135, 0.09);
  color: var(--accent);
}

.feature h3 { font-size: 1rem; margin-bottom: 8px; }
.feature p { font-size: 0.86rem; color: var(--muted); }

/* ── cta ────────────────────────────────────────────────────── */

.cta-section { padding: 20px 0 78px; }

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 42px;
  border: 1px solid rgba(110, 231, 135, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(600px 240px at 88% 0%, rgba(61, 220, 132, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}

.cta h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 6px; }
.cta p { color: var(--muted); font-size: 0.94rem; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── footer ─────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border); padding: 54px 0 26px; background: rgba(0, 0, 0, 0.24); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p { margin-top: 16px; max-width: 28ch; font-size: 0.85rem; color: var(--muted); }

.footer-col { display: grid; align-content: start; gap: 9px; }
.footer-col h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: #c4cdda; margin-bottom: 4px; }
.footer-col a { font-size: 0.86rem; color: var(--muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: #6d7686;
}

/* ── modal ──────────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, 0.72);
  backdrop-filter: blur(8px);
  animation: fade 0.2s ease;
}

.modal-card {
  position: relative;
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background: linear-gradient(180deg, #14171d, #0b0d11);
  box-shadow: 0 50px 100px -40px #000;
  animation: pop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.modal-head { text-align: center; margin-bottom: 22px; }
.modal-head .brand-mark { margin: 0 auto 16px; width: 42px; height: 42px; border-radius: 13px; }
.modal-head h2 { font-size: 1.4rem; margin-bottom: 6px; }
.modal-head p { font-size: 0.85rem; color: var(--muted); }

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.025);
}

.seg {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: var(--pill);
  background: transparent;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.seg.is-active { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.auth-form { display: grid; gap: 14px; }

.field { display: grid; gap: 7px; }
.field > span { font-size: 0.78rem; font-weight: 500; color: #b9c2d0; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea { resize: vertical; min-height: 62px; }

.field select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #8b94a4 50%),
    linear-gradient(135deg, #8b94a4 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.field select option { background: #14171d; color: var(--text); }

.field input::placeholder,
.field textarea::placeholder { color: #606a79; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: rgba(110, 231, 135, 0.55); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 3px rgba(110, 231, 135, 0.12); }
.field input.is-error { border-color: rgba(255, 107, 129, 0.7); }

.form-error {
  margin: -4px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 129, 0.3);
  border-radius: 10px;
  background: rgba(255, 107, 129, 0.1);
  color: #ffb3bf;
  font-size: 0.8rem;
}

.form-hint { text-align: center; font-size: 0.8rem; color: var(--muted); }
.link { padding: 0; border: none; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.link:hover { text-decoration: underline; }

.demo-note { margin-top: 18px; text-align: center; font-size: 0.68rem; color: #5f6877; }

.modal-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.68rem;
  color: #5f6877;
}

.modal-secure .ico { width: 12px; height: 12px; color: #4e8f63; }

/* ── empty states ───────────────────────────────────────────── */

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 52px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 2px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.empty h3 { font-size: 1.02rem; }
.empty p { max-width: 48ch; font-size: 0.86rem; color: var(--muted); }
.empty .btn { margin-top: 8px; }

/* ── admin panel ────────────────────────────────────────────── */

.modal-wide { width: min(920px, 100%); }

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-right: 34px;
}

.admin-head .kicker { margin-bottom: 6px; }
.admin-head h2 { font-size: 1.35rem; margin-bottom: 4px; }
.admin-head p { font-size: 0.84rem; color: var(--muted); }

.admin-badge {
  flex: none;
  padding: 4px 10px;
  border: 1px solid rgba(110, 231, 135, 0.35);
  border-radius: var(--pill);
  background: rgba(110, 231, 135, 0.1);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b9fbc7;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: start;
}

.admin-form { display: grid; gap: 12px; }
.admin-form .field > span em { font-style: normal; color: #5f6877; font-size: 0.7rem; }

.admin-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.admin-row3 .field input { padding: 10px 11px; font-size: 0.84rem; }
.admin-row3 .field > span { font-size: 0.72rem; }

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 0;
  font-size: 0.82rem;
  color: #b9c2d0;
  cursor: pointer;
  user-select: none;
}

.check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.admin-form-actions { display: flex; gap: 8px; margin-top: 4px; }
.admin-form-actions .btn { flex: 1; }

.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-list-head h3 { font-size: 0.95rem; }

.count {
  padding: 2px 9px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 7px;
  max-height: min(54vh, 480px);
  overflow-y: auto;
  padding-right: 4px;
}

.admin-list::-webkit-scrollbar { width: 6px; }
.admin-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-item-body { min-width: 0; }
.admin-item strong { display: block; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-item span { font-size: 0.71rem; color: var(--muted); }
.admin-item-actions { display: flex; gap: 4px; flex: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn .ico { width: 14px; height: 14px; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.icon-btn.danger:hover { color: #ffb3bf; border-color: rgba(255, 107, 129, 0.4); background: rgba(255, 107, 129, 0.1); }

.admin-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.mobile-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.mobile-user strong { display: block; font-size: 0.86rem; }
.mobile-user span:not(.avatar) { font-size: 0.72rem; color: var(--muted); word-break: break-all; }

/* ── user menu ──────────────────────────────────────────────── */

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.user-chip:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-strong); }

.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #8af29b, #2fcf78);
  color: #05230f;
  font-size: 0.78rem;
  font-weight: 800;
  flex: none;
}

.user-pop {
  position: fixed;
  top: 84px;
  right: max(16px, calc((100vw - var(--max)) / 2 + 24px));
  z-index: 100;
  width: 240px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgba(16, 19, 24, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px #000;
  animation: pop 0.2s ease;
}

.user-pop[hidden] { display: none; }

.user-pop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.user-pop-head .avatar { width: 34px; height: 34px; }
.user-pop-head strong { display: block; font-size: 0.85rem; }
.user-pop-head span:not(.avatar) { font-size: 0.72rem; color: var(--muted); word-break: break-all; }

.user-pop-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 11px;
  background: none;
  font-size: 0.84rem;
  color: #cfd8e5;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.user-pop-item:hover { background: rgba(255, 255, 255, 0.06); }

.user-pop-item.danger { color: #ffb3bf; }
.user-pop-item.danger:hover { background: rgba(255, 107, 129, 0.1); }

/* ── toast ──────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  transform: translate(-50%, 24px);
  max-width: min(460px, calc(100vw - 32px));
  padding: 12px 20px;
  border: 1px solid rgba(110, 231, 135, 0.3);
  border-radius: var(--pill);
  background: rgba(12, 22, 16, 0.96);
  backdrop-filter: blur(12px);
  color: #c8fbd4;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 20px 50px -20px #000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ── reveal ─────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ── responsive ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-grid { gap: 36px; }
  .mod-grid, .pack-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { display: none; }
}

@media (max-width: 880px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: 2; }
  .lead { max-width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section { padding: 60px 0; }
  .row-tag, .row-ver { display: none; }
  .cta { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .admin-layout { grid-template-columns: 1fr; gap: 20px; }
  .admin-list { max-height: 36vh; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .header-inner { display: flex; }
  .menu-toggle { display: grid; }
}

@media (max-width: 440px) {
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .header-inner { width: calc(100% - 20px); padding: 7px 7px 7px 7px; border-radius: 20px; }
  .mobile-menu { width: calc(100% - 20px); }
  .brand-name { font-size: 0.82rem; letter-spacing: 0.1em; }
  .brand-dot { display: none; }
  .header-actions .btn-primary { padding: 9px 14px; font-size: 0.8rem; }
  .mod-grid, .pack-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid .footer-col:last-child { display: grid; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .modal-card { padding: 24px 20px; }
  .row { flex-wrap: wrap; }
  .row .btn-dl { width: 100%; }
  .admin-row3 { grid-template-columns: 1fr 1fr; }
  .admin-head h2 { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
