/* WezixDLC — дизайн у стилі wezixdlc.rf.gd */
:root {
  --bg-main: #0b0c10;
  --bg-surface: #12141a;
  --bg-card: #171921;
  --accent: #8a8a8a;
  --accent-hover: #a7a7a7;
  --accent-dim: rgba(202, 202, 202, 0.1);
  --accent-border: rgba(196, 196, 196, 0.3);
  --text-main: #f1f3f9;
  --text-muted: #83899f;
  --text-dim: #4c5264;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --nav-bg: rgba(11, 12, 16, 0.88);
  --grid-line: rgba(255, 255, 255, 0.012);
  --scrollbar: #232733;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --hero-fade: rgba(11, 12, 16, 0.45);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-main: #f4f5f8;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --accent: #444444;
  --accent-hover: #222222;
  --accent-dim: rgba(185, 185, 185, 0.12);
  --accent-border: rgba(124, 124, 124, 0.25);
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);
  --nav-bg: rgba(244, 245, 248, 0.88);
  --grid-line: rgba(0, 0, 0, 0.03);
  --scrollbar: #d1d5db;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --hero-fade: rgba(244, 245, 248, 0.7);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background-color: var(--bg-main);
  background-image: linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 40px;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 72px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 99px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 99px; font-weight: 700; font-size: 13px;
}
.skip-link:focus-visible { top: 12px; }

:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }

/* ---------- Заставка ---------- */
.intro {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-main);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}
.intro-brand {
  font-size: clamp(28px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em;
}
.intro-brand span {
  display: inline-block; opacity: 0;
  transform: translateY(0.4em) scale(0.9); filter: blur(8px);
  animation: introLetter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes introLetter { to { opacity: 1; transform: none; filter: blur(0); } }
.intro.is-hidden { opacity: 0; transform: translateY(-20px); filter: blur(10px); pointer-events: none; }

/* ---------- Навігація ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 6%;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.3px; white-space: nowrap;
}
.logo img { width: 28px; height: auto; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: 99px;
  background: var(--bg-surface); border: 1px solid var(--border);
}
.nav-links a {
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 99px; border: 1px solid transparent;
  transition: var(--ease); white-space: nowrap;
}
.nav-links a:hover { color: var(--text-main); background: rgba(125, 125, 125, 0.08); }
.nav-links a.active { color: var(--text-main); background: var(--bg-card); border-color: var(--border); }
.nav-links a.nav-buy { background: var(--accent); color: #fff; margin-left: 4px; }
.nav-links a.nav-buy:hover { background: var(--accent-hover); }

.nav-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 99px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-main);
  transition: var(--ease);
}
.icon-btn:hover { border-color: var(--border-hover); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-btn .sun { display: none; }
[data-theme="light"] .theme-btn .sun { display: block; }
[data-theme="light"] .theme-btn .moon { display: none; }
.menu-btn { display: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 99px; border: 1px solid transparent;
  background: var(--accent); color: #fff;
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 16px; height: 16px; }
.btn-outline { background: var(--bg-surface); color: var(--text-main); border-color: var(--border); }
.btn-outline:hover { background: rgba(125, 125, 125, 0.08); border-color: var(--border-hover); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100vh - 72px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 80px 20px 60px; margin-top: -72px; padding-top: 152px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--hero-fade) 0%, var(--bg-main) 100%),
    url('https://wezixdlc.pages.dev/assets/screen-menu.jpg') center / cover no-repeat;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px; margin-bottom: 22px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #2ec43b; box-shadow: 0 0 10px #2ec43b; }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px); font-weight: 800; line-height: 1.12;
  letter-spacing: -1.5px; margin-bottom: 20px;
}
.hero p {
  max-width: 600px; margin: 0 auto 36px;
  color: var(--text-muted); font-size: 16px; line-height: 1.6; font-weight: 500;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.stats {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 48px;
}
.stat {
  min-width: 150px; padding: 16px 22px; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
}
.stat b { display: block; font-family: var(--mono); font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.stat span { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ---------- Секції ---------- */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; flex: 1; }

.section-title {
  text-align: center; font-size: 22px; font-weight: 800;
  letter-spacing: -0.5px; margin: 72px 0 10px; text-transform: uppercase;
}
.section-title span { color: var(--accent); }
.section-sub {
  text-align: center; color: var(--text-muted); font-size: 14px; font-weight: 500;
  max-width: 560px; margin: 0 auto 28px; line-height: 1.6;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 26px; border-radius: 16px; transition: var(--ease);
}
.card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--text-main);
}
.card-icon svg { width: 20px; height: 20px; }
.card-meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); margin-bottom: 6px; }
.card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; }
.card p { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); font-weight: 500; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 99px;
  background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-muted);
}

/* ---------- Скриншоти та косметика ---------- */
.showcase { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }

.shot {
  background: var(--bg-surface); border: 1px solid var(--border);
  padding: 8px; border-radius: 16px; cursor: zoom-in; transition: var(--ease);
}
.shot:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.shot figcaption {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 6px 4px; font-size: 12px; color: var(--text-muted); font-weight: 600;
}

.cosmetics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cosmetic {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  transition: var(--ease);
}
.cosmetic:hover { border-color: var(--border-hover); transform: scale(1.03); }
.cosmetic img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.cosmetic b { display: block; font-size: 13px; font-weight: 700; }
.cosmetic span { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }

/* ---------- Тарифи ---------- */
.price-card { display: flex; flex-direction: column; gap: 10px; position: relative; }
.price-card.featured { border-color: var(--accent-border); box-shadow: 0 0 0 1px var(--accent-border), var(--shadow); }
.price-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
}
.price-sub { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.cost { font-family: var(--mono); font-size: 34px; font-weight: 800; letter-spacing: -1px; margin: 4px 0; }
.cost small { font-size: 18px; color: var(--text-muted); }
.price-card p { flex: 1; }
.price-card .btn { margin-top: 8px; }

.note {
  margin-top: 16px; padding: 16px 20px; border-radius: 16px;
  background: var(--bg-surface); border: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--text-muted); font-weight: 500;
}
.note b { color: var(--text-main); }

/* ---------- Оновлення ---------- */
.release {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: start;
}
.release .ver { font-family: var(--mono); font-weight: 800; font-size: 18px; }
.release .mc, .release .date { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ---------- Текстові сторінки ---------- */
.doc { max-width: 820px; margin: 0 auto; padding-top: 48px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -1px; margin: 16px 0 6px; }
.doc .doc-meta { color: var(--text-muted); font-weight: 500; margin-bottom: 28px; }
.doc .card { margin-bottom: 14px; }
.doc .card h2 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.doc .card p { font-size: 14px; line-height: 1.65; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-weight: 600; font-size: 13.5px; }
.back:hover { color: var(--text-main); }

/* ---------- Повноекранний перегляд ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 5000; display: none;
  align-items: center; justify-content: center; cursor: zoom-out;
  background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(5px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 92vh; border-radius: 10px; animation: zoomIn 0.2s ease; cursor: default; }
.lightbox button {
  position: absolute; top: 18px; right: 26px; background: none; border: 0;
  color: #fff; font-size: 42px; line-height: 1; cursor: pointer;
}
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } }

/* ---------- Футер ---------- */
.footer {
  margin-top: 80px; padding: 24px 6%;
  background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}
.footer-inner .brand { color: var(--text-main); font-weight: 800; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text-main); }

/* ---------- Анімація появи ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Мобільна версія ---------- */
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: fixed; top: 72px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; padding: 8px; border-radius: 18px;
    display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; text-align: center; }
  .nav-links a.nav-buy { margin: 4px 0 0; }
  .showcase { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 480px) {
  .cosmetics-grid { grid-template-columns: 1fr; }
  .stat { min-width: 0; flex: 1 1 40%; }
  .hero-buttons .btn { width: 100%; }
}
.doc-center { text-align: center; padding-top: 120px; }
