/* Zero Watch landing. Palette taken from the game UI: night navy, warm panels, amber action color, cream text. */
:root {
  --bg: #0c1115;
  --bg-2: #10171c;
  --panel: #161e24;
  --panel-warm: #251f19;
  --line: rgba(243, 234, 216, .12);
  --line-2: rgba(243, 234, 216, .22);
  --text: #f3ead8;
  --muted: #bdb4a2;
  --dim: #948c7c;
  --accent: #f6a63c;
  --accent-hi: #ffbd62;
  --accent-ink: #1d1306;
  --sand: #e2ad6e;
  --office: #6fb7a8;
  --arctic: #a8d1ef;
  --base: #a9a660;
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-hi); text-underline-offset: 3px; }
a:hover { color: #ffd396; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* One language at a time: the inactive one is removed from layout and from screen readers. */
html[lang="en"] [lang="ru"], html[lang="ru"] [lang="en"] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 13px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: 700 16px/1 var(--font); letter-spacing: .01em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(12, 17, 21, .35); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: rgba(12, 17, 21, .6); color: var(--text); cursor: pointer;
  transition: border-color .2s, background-color .2s, opacity .2s;
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn:disabled { opacity: .35; cursor: default; border-color: var(--line-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(12, 17, 21, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header__row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { width: 150px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: rgba(243, 234, 216, .06); }
.site-header__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; }
.lang-switch button {
  min-width: 40px; min-height: 32px; border: 0; border-radius: 6px; background: transparent;
  color: var(--muted); font: 700 13px/1 var(--font); letter-spacing: .06em; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 900px); padding-top: var(--header-h);
  display: flex; align-items: center;
}
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 17, 21, .94) 0%, rgba(12, 17, 21, .78) 34%, rgba(12, 17, 21, .15) 62%, rgba(12, 17, 21, 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(12, 17, 21, 0) 26%);
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-block: 56px 72px; }
.hero__title { width: min(560px, 86vw); }
.hero__title img { width: 100%; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .45)); }
.hero__lede { max-width: 33rem; font-size: clamp(18px, 2vw, 20px); color: #ece2cf; }
.stats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stats li {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(12, 17, 21, .55);
  font-size: 15px; color: var(--muted);
}
.stats b { font: 800 20px/1 var(--font); color: var(--text); font-variant-numeric: tabular-nums; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__note { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #74d37a; box-shadow: 0 0 0 0 rgba(116, 211, 122, .6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(116, 211, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(116, 211, 122, 0); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--panel { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 46rem; }
.section__head--row { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__head--row > div { display: flex; flex-direction: column; gap: 14px; }
h2 { font: 800 clamp(32px, 4.6vw, 52px)/1.06 var(--font); letter-spacing: -.02em; }
h3 { font: 700 20px/1.25 var(--font); letter-spacing: -.005em; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 40rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 28px;
  background: linear-gradient(180deg, var(--panel) 0%, rgba(22, 30, 36, .4) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.feature__icon { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 16px; }

/* Carousel */
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 720px); gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.carousel:focus-visible { outline-offset: -2px; }
.carousel__nav { display: flex; gap: 10px; flex: none; }
.shot { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--muted); }
.shot img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  transition: transform .35s ease, border-color .35s;
}
.shot:hover img { border-color: var(--line-2); transform: translateY(-3px); }
.shot__cap { font-size: 15px; font-weight: 600; }
.shot:hover .shot__cap { color: var(--text); }

/* Arenas */
.arenas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.arena {
  --c: var(--sand);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--c);
}
.arena--office { --c: var(--office); }
.arena--arctic { --c: var(--arctic); }
.arena--base { --c: var(--base); }
.arena img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.arena__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.arena__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.arena p { color: var(--muted); font-size: 16px; }
.tag {
  font: 700 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  color: var(--c, var(--accent)); border: 1px solid currentColor; border-radius: 999px; padding: 6px 10px;
}

.modes {
  list-style: none; padding: 0; margin-top: 18px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.modes li { background: var(--bg); padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.modes b { color: var(--text); font-size: 17px; }
.modes__n { font: 700 12px/1 var(--mono); color: var(--accent); letter-spacing: .08em; }

/* Armory */
.armory { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.armory__shot a { display: block; }
.armory__shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.armory__text { display: flex; flex-direction: column; gap: 18px; }
.armory__text h2 { font-size: clamp(28px, 3.4vw, 40px); }
.classes { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.classes__bar { display: flex; gap: 3px; height: 12px; border-radius: 3px; overflow: hidden; }
.classes__bar i:nth-child(1) { flex: 15; } .classes__bar i:nth-child(2) { flex: 9; } .classes__bar i:nth-child(3) { flex: 6; }
.classes__bar i:nth-child(4) { flex: 5; } .classes__bar i:nth-child(5) { flex: 5; }
.c1 { background: #f6a63c; } .c2 { background: #c9852f; } .c3 { background: #e9d3a6; } .c4 { background: #8f8a52; } .c5 { background: #5f6b74; }
.classes__legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.classes__legend li { display: inline-flex; align-items: center; gap: 6px; }
.classes__legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.classes__legend b { color: var(--text); font-variant-numeric: tabular-nums; }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--muted); }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* Concept art: masonry keeps every picture whole */
.masonry { columns: 3 300px; column-gap: 16px; }
.art {
  display: block; break-inside: avoid; margin-bottom: 16px; text-decoration: none; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .3s;
}
.art img { width: 100%; transition: transform .5s ease; }
.art:hover { border-color: var(--line-2); }
.art:hover img { transform: scale(1.025); }
.art__cap { display: block; padding: 12px 16px 14px; font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); position: relative; background: var(--panel); }
.art:hover .art__cap { color: var(--text); }

/* Play */
.play { overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.play__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.play__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 17, 21, .86) 22%, rgba(12, 17, 21, .9) 70%, var(--bg) 100%);
}
.play__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.steps { list-style: none; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.steps li {
  counter-increment: step; position: relative; padding: 22px 24px 22px 84px;
  background: rgba(22, 30, 36, .78); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 24px; top: 20px;
  font: 800 28px/1 var(--mono); color: var(--accent);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; }

.invite {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  background: var(--panel-warm); border: 1px solid rgba(246, 166, 60, .3); border-radius: 18px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
}
.invite__icon { width: 72px; height: 72px; border-radius: 18px; }
.invite h3 { font-size: 24px; }
.invite__mail { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.gp {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; line-height: 1.3;
}
.gp small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.gp__logo { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; flex: none; }
.reqs { list-style: none; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); }
.reqs li { position: relative; padding-left: 22px; }
.reqs li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.faq { margin-top: clamp(48px, 7vw, 80px); }
.faq__title { font-size: 24px; margin-bottom: 18px; }
.faq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.faq details { background: rgba(22, 30, 36, .78); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 700; font-size: 16px; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; color: var(--muted); font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 28px; background: #0a0e11; }
.site-footer__row { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; color: var(--dim); font-size: 14px; }
.site-footer__brand img { width: 140px; opacity: .9; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: flex-start; }
.site-footer__links a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 0; }
.site-footer__links a:hover { color: var(--text); text-decoration: underline; }
.site-footer__fine { margin-top: 24px; font-size: 12.5px; color: var(--dim); }

/* ---------- Image viewer ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 9, 11, .94); color: var(--text);
}
.lightbox::backdrop { background: rgba(6, 9, 11, .7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 72px 32px; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 10px; object-fit: contain; }
.lightbox__cap { font-size: 15px; color: var(--muted); text-align: center; }
.lightbox .icon-btn { position: fixed; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }

/* ---------- Reveal ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .armory, .play__grid { grid-template-columns: minmax(0, 1fr); }
  .invite { position: static; }
}
@media (max-width: 760px) {
  :root { --header-h: 58px; }
  body { font-size: 16px; }
  .brand img { width: 124px; }
  .site-header__row { gap: 12px; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero__art { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3.4; object-position: 72% 30%; }
  .hero__shade {
    top: var(--header-h); bottom: auto; height: 85vw;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(12, 17, 21, .88) 24%, rgba(12, 17, 21, 0) 58%);
  }
  .hero__content { margin-top: -18vw; padding-block: 0 48px; gap: 18px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .features, .arenas, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .carousel__nav { display: none; }
  .steps li { padding: 20px 20px 20px 68px; }
  .steps li::before { left: 18px; font-size: 24px; }
  .invite { padding: 22px; }
  .lightbox__figure { padding: 60px 8px 24px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
}
@media (max-width: 420px) {
  .lang-switch button { min-width: 34px; }
  .site-header__end .btn--sm { padding: 0 12px; }
  .modes { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px var(--gutter); text-align: center; }
.lost > img { width: 200px; margin-bottom: 12px; }
.lost h1 { font: 800 clamp(34px, 6vw, 56px)/1.05 var(--font); letter-spacing: -.02em; }
