:root {
  color-scheme: dark;
  --bg: #06080a;
  --panel: #0d1114;
  --line: rgba(255,255,255,.13);
  --muted: #89949b;
  --ink: #f4f6f4;
  --acid: #d9ff3f;
  --orange: #ff5a30;
  --unit: clamp(18px, 3vw, 52px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Arial Narrow", "Bahnschrift Condensed", "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
.noise {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}
.scanline {
  position: fixed; z-index: 19; left: 0; right: 0; height: 1px; top: 12%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(217,255,63,.5), transparent);
  box-shadow: 0 0 20px rgba(217,255,63,.25);
  animation: scan 9s linear infinite;
}
@keyframes scan { to { transform: translateY(82vh); } }

.topbar {
  position: absolute; z-index: 10; inset: 0 0 auto; height: 78px; padding: 0 var(--unit);
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 900; letter-spacing: .12em; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--acid); color: var(--acid);
  font: 900 19px/1 Arial, sans-serif; transform: skew(-7deg);
}
.system-status { font: 700 10px/1 monospace; letter-spacing: .14em; color: #a9b1b5; }
.system-status span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }

.hero { position: relative; min-height: 850px; height: 100svh; max-height: 1080px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-image {
  position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,8,10,.97) 0%, rgba(6,8,10,.86) 43%, rgba(6,8,10,.2) 78%), linear-gradient(0deg, rgba(6,8,10,.9), transparent 50%), url("assets/hellgate-gameplay.png") 68% 50% / cover no-repeat;
  filter: saturate(.75) contrast(1.15);
  transform: scale(1.03);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.hero-content { position: relative; z-index: 2; width: min(730px, 62vw); padding: clamp(150px, 20vh, 220px) 0 80px var(--unit); }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 24px; color: #c4cbce; font: 700 11px/1.2 monospace; letter-spacing: .18em; }
.eyebrow span { color: var(--acid); }
h1 { margin: 0; font-size: clamp(82px, 12.2vw, 176px); line-height: .73; letter-spacing: -.075em; font-weight: 950; transform: scaleX(.82); transform-origin: left; text-shadow: 0 0 45px rgba(0,0,0,.7); }
h1 span { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.sector { margin: 24px 0 23px; color: var(--orange); font: 900 clamp(21px, 3vw, 38px)/1 "Arial Narrow", sans-serif; letter-spacing: .48em; }
.lead { max-width: 580px; margin: 0; color: #c5cbce; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.48; }

.download-panel { margin-top: 46px; max-width: 720px; background: rgba(5,7,8,.72); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 70px rgba(0,0,0,.4); backdrop-filter: blur(16px); }
.panel-head { min-height: 38px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font: 700 9px/1 monospace; letter-spacing: .16em; color: #879198; }
.detected { color: var(--acid); }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; }
.download-card {
  position: relative; min-height: 116px; padding: 22px; display: grid; grid-template-columns: 46px 1fr 24px; align-items: center; gap: 14px;
  text-decoration: none; border-right: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: color .2s, background .2s, transform .2s;
}
.download-card:last-child { border-right: 0; }
.download-card::before { content: ""; position: absolute; z-index: -1; inset: 100% 0 0; background: var(--acid); transition: inset .25s ease; }
.download-card:hover, .download-card:focus-visible, .download-card.recommended { color: #071006; }
.download-card:hover::before, .download-card:focus-visible::before, .download-card.recommended::before { inset: 0; }
.download-card.recommended::after { content: "РЕКОМЕНДУЕТСЯ"; position: absolute; top: 8px; right: 11px; font: 800 7px/1 monospace; letter-spacing: .15em; }
.download-card:active { transform: scale(.985); }
.platform-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid currentColor; }
.platform-icon svg { width: 25px; height: 25px; fill: currentColor; }
.download-copy { display: flex; flex-direction: column; min-width: 0; }
.download-copy small { font: 700 8px/1 monospace; letter-spacing: .16em; opacity: .72; }
.download-copy strong { margin-top: 5px; font-size: 24px; line-height: 1; letter-spacing: .04em; }
.download-copy em { margin-top: 7px; font: 400 9px/1 monospace; letter-spacing: .06em; opacity: .62; }
.arrow { font-size: 23px; }
.hero-side { position: absolute; right: 28px; top: 130px; bottom: 45px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; color: rgba(255,255,255,.5); font: 700 8px/1 monospace; letter-spacing: .16em; writing-mode: vertical-rl; }
.hero-side i { width: 1px; flex: 1; background: linear-gradient(transparent, var(--line), transparent); }

.intel { position: relative; padding: clamp(92px, 12vw, 175px) var(--unit); display: grid; grid-template-columns: minmax(340px, .75fr) 1.25fr; gap: clamp(45px, 8vw, 130px); border-bottom: 1px solid var(--line); overflow: hidden; }
.section-number { position: absolute; top: 45px; right: 3vw; color: rgba(255,255,255,.025); font: 900 min(33vw, 460px)/.7 Arial, sans-serif; letter-spacing: -.1em; pointer-events: none; }
.intel-copy { align-self: center; position: relative; z-index: 1; }
h2 { margin: 0 0 28px; font-size: clamp(42px, 5.6vw, 82px); line-height: .92; letter-spacing: -.045em; font-weight: 950; }
h2 span { color: var(--orange); }
.intel-copy > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.specs { margin: 42px 0 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font: 600 9px/1 monospace; letter-spacing: .12em; }
.specs dd { margin: 0; font: 800 11px/1 monospace; letter-spacing: .08em; }
.game-frame { position: relative; z-index: 1; margin: 0; align-self: center; background: #000; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 35px 90px rgba(0,0,0,.5); }
.game-frame::before, .game-frame::after { content: ""; position: absolute; z-index: 2; width: 35px; height: 35px; border-color: var(--acid); pointer-events: none; }
.game-frame::before { top: -8px; left: -8px; border-top: 2px solid var(--acid); border-left: 2px solid var(--acid); }
.game-frame::after { right: -8px; bottom: 29px; border-right: 2px solid var(--acid); border-bottom: 2px solid var(--acid); }
.game-frame img { display: block; width: 100%; height: auto; filter: saturate(.85) contrast(1.07); }
.game-frame figcaption { height: 30px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 700 8px/1 monospace; letter-spacing: .1em; }
.game-frame figcaption span:first-child { color: var(--acid); }

.arsenal { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 var(--unit); border-bottom: 1px solid var(--line); }
.arsenal article { min-height: 260px; padding: 45px 28px; border-right: 1px solid var(--line); }
.arsenal article:first-child { border-left: 1px solid var(--line); }
.arsenal article > span { color: var(--acid); font: 700 9px/1 monospace; }
.arsenal h3 { margin: 65px 0 12px; font-size: 21px; letter-spacing: .04em; }
.arsenal p { margin: 0; max-width: 220px; color: var(--muted); font-size: 14px; line-height: 1.5; }

footer { min-height: 160px; padding: 38px var(--unit); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
footer p { color: var(--muted); font: 600 9px/1.6 monospace; letter-spacing: .12em; text-align: center; }
footer p strong { color: var(--ink); }
footer > a { color: var(--muted); font: 700 9px/1 monospace; letter-spacing: .12em; text-decoration: none; }
footer > a:hover { color: var(--acid); }

@media (max-width: 900px) {
  .hero { min-height: 920px; height: auto; }
  .hero-image { background-position: 62% center; }
  .hero-content { width: calc(100% - var(--unit)); padding-right: var(--unit); }
  .intel { grid-template-columns: 1fr; }
  .arsenal { grid-template-columns: 1fr 1fr; }
  .arsenal article:nth-child(2) { border-right: 0; }
  .arsenal article { min-height: 215px; }
}

@media (max-width: 620px) {
  .topbar { height: 64px; }
  .system-status { display: none; }
  .hero { min-height: 890px; }
  .hero-image { background: linear-gradient(0deg, #06080a 12%, rgba(6,8,10,.75) 62%, rgba(6,8,10,.35)), url("assets/hellgate-gameplay.png") 59% top / auto 54% no-repeat; }
  .hero-content { width: 100%; padding-top: 114px; padding-right: var(--unit); }
  h1 { font-size: clamp(68px, 24vw, 108px); line-height: .8; }
  .sector { margin-top: 16px; font-size: 19px; letter-spacing: .31em; }
  .lead { max-width: 390px; font-size: 16px; }
  .download-panel { margin-top: 35px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .download-card:last-child { border-bottom: 0; }
  .hero-side { display: none; }
  .intel { padding-top: 90px; }
  h2 { font-size: 41px; }
  .arsenal { grid-template-columns: 1fr; }
  .arsenal article, .arsenal article:first-child { min-height: 180px; border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .arsenal h3 { margin-top: 38px; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scanline { display: none; }
  .download-card, .download-card::before { transition: none; }
}
