/* Syndicate Wars landing: game palette (night navy, district gold, raid pink, CorpSec cyan), Russo One + Golos Text. */
@font-face {
  font-family: 'Golos Text';
  src: url('/l/fonts/golos-text-variable.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Russo One';
  src: url('/l/fonts/russo-one.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b101a;
  --bg-2: #101724;
  --panel: #151c2a;
  --line: #2a3242;
  --text: #edf0f7;
  --muted: #8f99ad;
  --gold: #edc38f;
  --pink: #ff2e7a;
  --cyan: #3fd4e8;
  --yakuza: #ff4f8f;
  --triads: #f0b35a;
  --bratva: #7fb0ff;
  --corpsec: #3fd4e8;
  --display: 'Russo One', 'Golos Text', system-ui, sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: 16px;
  --cut: 12px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
[id] { scroll-margin-top: 84px; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- language switching: EN by default, RU via JS or #ru without JS ---------- */
html:not([data-lang]):not(:has(#ru:target)) [data-l="ru"],
html[data-lang="en"] [data-l="ru"],
html[data-lang="ru"] [data-l="en"],
html:not([data-lang]):has(#ru:target) [data-l="en"] { display: none !important; }
.anchor { position: absolute; top: 0; left: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  padding: 10px 14px; background: var(--gold); color: #1a1420; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }

/* HUD eyebrow: mirrors the game's "SYNDICATE / ARENA" section labels */
.hud-label {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font: 600 11px/1.3 var(--mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.hud-label::before {
  content: ''; width: 18px; height: 2px; flex-shrink: 0;
  background: currentColor; box-shadow: 0 0 8px currentColor;
}

h2 {
  font-family: var(--display);
  font-size: clamp(28px, 7.4vw, 46px);
  line-height: 1.08;
  letter-spacing: .005em;
  text-wrap: balance;
  margin-bottom: 16px;
}
section p { color: #c4cad7; max-width: 60ch; }

/* ---------- buttons: slanted plates like the game's brand mark and Attack button ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  font: 400 17px/1 var(--display); letter-spacing: .03em;
  text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, filter .18s ease;
}
.btn::before, .btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn-play { color: #fff; }
.btn-play::before {
  background: linear-gradient(100deg, #ff4f8f, var(--pink) 45%, #d81e66);
  box-shadow: 0 0 0 1px #ff8ab5 inset;
}
.btn-play::after {
  inset: auto 10% -14px; height: 20px; z-index: -2;
  background: var(--pink); filter: blur(18px); opacity: .55; clip-path: none;
}
.btn-ghost { color: var(--gold); }
.btn-ghost::before { background: var(--gold); }
.btn-ghost::after { inset: 1px 1.5px; background: var(--bg-2); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; --cut: 9px; }
.btn-sm::after { display: none; }
.tg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: #0b101acc;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid #ffffff10;
}
.top-row { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: auto; }
.brand-name { display: none; font: 400 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang a {
  display: grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 8px;
  font: 600 12px/1 var(--mono); letter-spacing: .08em; text-decoration: none; color: var(--muted);
}
html:not([data-lang]):not(:has(#ru:target)) .lang a[data-set-lang="en"],
html[data-lang="en"] .lang a[data-set-lang="en"],
html[data-lang="ru"] .lang a[data-set-lang="ru"],
html:not([data-lang]):has(#ru:target) .lang a[data-set-lang="ru"] { background: #edc38f1f; color: var(--gold); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 44px 0 64px; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, #0b101a 0%, #0b101a55 30%, #0b101acc 72%, #0b101a 100%),
    radial-gradient(ellipse 70% 50% at 70% 40%, #ff2e7a22, transparent 70%),
    url('/l/img/city.webp') center 62% / cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, #ffffff06 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.logo { margin: 0 0 22px -1.5%; }
.logo img { width: min(100%, 440px); filter: drop-shadow(0 10px 30px #000a); }
.lead {
  font: 400 clamp(21px, 5.6vw, 30px)/1.2 var(--display);
  color: var(--gold);
  text-wrap: balance;
  margin-bottom: 14px;
  max-width: 22ch;
}
.hero-text { max-width: 52ch; margin-bottom: 28px; color: #c9cfdb; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* phone frames around real game screenshots */
.phone {
  position: relative;
  width: min(72vw, 300px);
  margin: 0 auto;
  padding: 7px;
  border-radius: 30px;
  background: linear-gradient(160deg, #2b3446, #0c111b 40%, #1a2130);
  box-shadow: 0 0 0 1px #ffffff14, 0 30px 70px #000c, 0 0 90px -20px var(--glow, var(--gold));
}
.phone img { width: 100%; border-radius: 24px; background: var(--panel); aspect-ratio: 480 / 853; object-fit: cover; }
.phone::after {
  content: ''; position: absolute; top: 15px; left: 50%; width: 22%; height: 5px;
  transform: translateX(-50%); border-radius: 4px; background: #0008;
}
.phone-hero { transform: rotate(2.5deg); }

/* ---------- factions: the signature counter-cycle ---------- */
.factions {
  padding: 72px 0;
  background:
    linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg));
  border-top: 1px solid #ffffff08;
}
.factions-grid { display: grid; gap: 36px; align-items: center; }
.faction-list { margin-top: 0 !important; }
.faction-list { list-style: none; margin: 24px 0 18px; display: grid; gap: 2px; }
.faction-list li {
  display: grid; gap: 2px;
  padding: 12px 14px 12px 16px;
  border-left: 3px solid var(--c);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, transparent), transparent 85%);
  font-size: 15px; color: #c4cad7;
}
.faction-list b { font: 400 17px/1.3 var(--display); color: var(--c); letter-spacing: .02em; }
.fine { font-size: 14px; color: var(--muted); }

.cycle { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; }
.cycle-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: #ffffff0d; stroke-width: 1; }
.arc {
  fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 6 7;
  animation: flow 1.6s linear infinite;
  filter: drop-shadow(0 0 4px #edc38f88);
}
.spokes line { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 3 4; opacity: .8; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -26; } }
.node {
  position: absolute; left: var(--x); top: var(--y);
  width: 24%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.node img {
  width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--c);
  box-shadow: 0 0 0 4px var(--bg-2), 0 0 26px -4px var(--c);
  background: var(--panel);
}
.node span {
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%);
  white-space: nowrap;
  font: 400 clamp(11px, 3.2vw, 15px)/1 var(--display); letter-spacing: .04em; color: var(--c);
  text-shadow: 0 2px 6px #000;
}
.node-core img { box-shadow: 0 0 0 4px var(--bg-2), 0 0 0 7px #3fd4e833, 0 0 34px -2px var(--c); }

/* ---------- feature rows ---------- */
.feature { padding: 56px 0; }
.feature-grid { display: grid; gap: 40px; align-items: center; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li {
  padding: 7px 12px; border: 1px solid #edc38f40; border-radius: 6px;
  background: #edc38f0d; color: var(--gold); font-size: 14px;
}

.spec { margin-top: 24px; display: grid; border-top: 1px solid var(--line); max-width: 460px; }
.spec > div {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.spec dt { font: 600 11px/1.7 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spec dd { font-size: 15px; color: var(--text); }
.mono { font-family: var(--mono); font-size: 14px !important; }

.ladder { list-style: none; counter-reset: rank; margin-top: 24px; display: grid; gap: 6px; max-width: 420px; }
.ladder li {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: 8px; background: #ffffff06; border: 1px solid #ffffff0d;
  font: 400 16px/1.2 var(--display); letter-spacing: .02em;
}
.ladder li::before {
  content: ''; width: 9px; height: 9px; flex-shrink: 0; transform: rotate(45deg);
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
}
.ladder li:first-child { color: var(--gold); border-color: #edc38f40; background: #edc38f12; }
.ladder li:nth-child(n+2)::before { background: #8f99ad; box-shadow: none; }

/* ---------- squad ---------- */
.squad {
  padding: 72px 0;
  background: var(--bg-2);
  border-top: 1px solid #ffffff08; border-bottom: 1px solid #ffffff08;
}
.squad-head { max-width: 640px; margin-bottom: 36px; }
.lines { display: grid; gap: 28px; }
.line-label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font: 600 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
}
.line-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #3fd4e855, transparent); }
.line-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.class-card {
  overflow: hidden; border-radius: 12px;
  background: var(--panel); border: 1px solid #ffffff12;
  transition: border-color .2s, transform .2s;
}
.class-card:hover { border-color: #edc38f55; transform: translateY(-3px); }
.class-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.class-card h3 { padding: 12px 12px 4px; font: 400 16px/1.2 var(--display); color: var(--gold); letter-spacing: .02em; }
.class-card p { padding: 0 12px 14px; font-size: 13px; line-height: 1.45; color: #aeb6c6; }

/* ---------- final ---------- */
.final {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 88px 0 96px; text-align: center;
}
.final::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, #0b101acc 45%, #0b101a99 100%),
    url('/l/img/city.webp') center 88% / cover no-repeat;
}
.final-inner { display: grid; justify-items: center; gap: 0; }
.final h2 { max-width: 18ch; margin-bottom: 14px; }
.final p { margin-bottom: 30px; color: #c9cfdb; }
.cta-center { justify-content: center; }

/* ---------- footer ---------- */
.foot { padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); background: #080c14; border-top: 1px solid #ffffff0d; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; gap: 22px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 36px; }
.foot-brand b { display: block; font: 400 15px/1.3 var(--display); color: var(--text); letter-spacing: .02em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { padding: 6px 0; color: #b4bccb; text-underline-offset: 3px; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--gold); }
.foot-note { font-size: 13px; color: #7d879a; max-width: none; }
.copy { display: block; margin-top: 6px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-phone { from { opacity: 0; transform: translateY(28px) rotate(2.5deg); } to { opacity: 1; transform: rotate(2.5deg); } }
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .22s; }
.hero-copy > :nth-child(5) { animation-delay: .28s; }
.hero-copy > :nth-child(6) { animation-delay: .34s; }
.phone-hero { animation: rise-phone .9s .2s cubic-bezier(.2, .7, .2, 1) both; }

html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- breakpoints ---------- */
@media (max-width: 359px) {
  :root { --gutter: 14px; }
  .btn { padding: 0 22px; font-size: 16px; }
  .btn-sm { padding: 0 14px; font-size: 13px; }
  .lang a { min-width: 34px; }
  .spec > div { grid-template-columns: 82px minmax(0, 1fr); }
}
@media (min-width: 420px) {
  :root { --gutter: 20px; }
  .brand-name { display: inline; }
}
@media (min-width: 720px) {
  .hero { padding: 72px 0 96px; }
  .line-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lines { grid-template-columns: 2fr 2fr; gap: 24px; }
  .feature-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
  .feature-flip .feature-copy { order: 2; }
  .phone { width: 300px; }
  .factions-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: 'head cycle' 'body cycle';
    gap: 0 56px; align-items: start;
  }
  .factions-head { grid-area: head; align-self: end; margin-bottom: 24px; }
  .factions-body { grid-area: body; }
  .cycle { grid-area: cycle; align-self: center; }
  .feature, .factions, .squad { padding: 104px 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .foot-note { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .hero { min-height: calc(100svh - 60px); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; }
  .hero-bg {
    background:
      linear-gradient(90deg, #0b101a 0%, #0b101ae6 34%, #0b101a66 70%, #0b101a99 100%),
      linear-gradient(180deg, #0b101a00 60%, #0b101a 100%),
      radial-gradient(ellipse 50% 60% at 78% 45%, #ff2e7a26, transparent 70%),
      url('/l/img/city.webp') center 55% / cover no-repeat;
  }
  .logo img { width: 500px; }
  .phone-hero { width: 330px; }
  .class-card p { font-size: 14px; }
}
