@font-face {
  font-family: 'Titillium Web';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/titillium-web-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Titillium Web';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/titillium-web-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Titillium Web';
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/titillium-web-latin-900-normal.woff2') format('woff2');
}

:root {
  --bg: #14161a;
  --bg-2: #1b1e23;
  --panel: #22262c;
  --line: #343941;
  --text: #e9e6df;
  --muted: #a39f96;
  --amber: #f5a524;
  --amber-deep: #c97c0a;
  --steam: #1a9fff;
  --hazard: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #17181b 14px 28px);
  --font: 'Titillium Web', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  --wrap: min(1160px, 100% - 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
:lang(ko) body, html:lang(ko) { word-break: keep-all; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ── Top bar ── */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
  padding: 0 24px;
  background: rgb(20 22 26 / 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.topbar-brand {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  font-size: 17px;
}
.topbar-brand span { color: var(--amber); margin-left: 6px; }
.topbar-nav { display: flex; gap: 22px; margin-left: auto; }
.topbar-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.topbar-nav a:hover { color: var(--text); }
.lang {
  font: 700 14px var(--font);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
}
.lang:hover { border-color: var(--amber); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 100px 0 80px;
}
.hero-bg, .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-bg img { animation: drift 40s ease-in-out infinite alternate; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgb(20 22 26 / 0.25), rgb(20 22 26 / 0.85) 70%),
    linear-gradient(to bottom, rgb(20 22 26 / 0.4), transparent 30%, transparent 70%, var(--bg));
}
.hero::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: var(--hazard);
  z-index: 1;
}
@keyframes drift {
  from { transform: scale(1.08) translateX(-1.5%); }
  to { transform: scale(1.08) translateX(1.5%); }
}
.hero-inner {
  width: var(--wrap);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo { margin: 0; width: min(760px, 100%); filter: drop-shadow(0 12px 30px rgb(0 0 0 / 0.7)); }
.hero-tag {
  margin: 28px 0 6px;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.8);
}
.hero-sub {
  margin: 0;
  max-width: 640px;
  color: #d4d0c8;
  font-size: clamp(16px, 1.6vw, 19px);
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.9);
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.hero-platform { margin: 20px 0 0; color: var(--muted); font-size: 15px; letter-spacing: 0.03em; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 4px;
  font: 700 18px var(--font);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn svg { width: 24px; height: 24px; }
.btn-steam {
  color: #fff;
  background: linear-gradient(180deg, #2aa8ff, #0f7fd6);
  box-shadow: 0 6px 24px rgb(26 159 255 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.btn-steam:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgb(26 159 255 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.25); }
.btn-steam[aria-disabled='true'] { cursor: default; }
.btn-steam[aria-disabled='true']:hover { transform: none; }
.btn-ghost {
  color: var(--text);
  border: 1px solid rgb(255 255 255 / 0.3);
  background: rgb(20 22 26 / 0.5);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn:focus-visible, .lang:focus-visible, .shot a:focus-visible, .topbar a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* ── Stats strip ── */
.stats { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.stats ul {
  width: var(--wrap);
  margin: 0 auto;
  padding: 26px 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.stats li { display: flex; flex-direction: column; align-items: center; }
.stats b { font-size: 40px; font-weight: 900; line-height: 1.1; color: var(--amber); }
.stats span { color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Sections ── */
section.features, section.screens, section.arsenal, section.closing {
  width: var(--wrap);
  margin: 0 auto;
  padding: 96px 0 0;
}
.section-title {
  margin: 0 0 36px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-title::before {
  content: '';
  width: 36px;
  height: 14px;
  background: var(--hazard);
  border-radius: 2px;
  flex: none;
}

/* ── Features ── */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature img { aspect-ratio: 16 / 8; width: 100%; object-fit: cover; border-bottom: 3px solid var(--amber-deep); }
.feature div { padding: 22px 26px 26px; }
.feature h3 { margin: 0 0 8px; font-size: 24px; font-weight: 900; line-height: 1.25; }
.feature p { margin: 0; color: #c9c5bd; }

/* ── Screenshots ── */
.screen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.shot { margin: 0; }
.shot a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s; }
.shot a:hover img { transform: scale(1.03); }
.shot figcaption { margin-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 16px; }
.shot figcaption span {
  font-size: 13px;
  font-weight: 900;
  color: var(--bg);
  background: var(--amber);
  border-radius: 2px;
  padding: 1px 7px;
}

/* ── Arsenal ── */
.chips { list-style: none; margin: 0 0 80px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 3px;
  font-weight: 700;
  font-size: 16px;
}
.regions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  counter-reset: region;
}
.regions li {
  counter-increment: region;
  position: relative;
  padding: 44px 12px 0 0;
  font-weight: 700;
  line-height: 1.3;
}
.regions li::before {
  content: counter(region, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 15px;
  font-weight: 900;
  color: var(--bg);
  background: var(--amber);
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  z-index: 1;
}
.regions li::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.regions li:last-child { color: #ff7a59; }

/* ── Closing ── */
section.closing {
  padding-bottom: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.closing-logo { width: min(420px, 80%); opacity: 0.95; }
.closing p { max-width: 560px; color: var(--muted); margin: 24px 0 28px; }

.footer {
  border-top: 10px solid transparent;
  border-image: var(--hazard) 10;
  background: #0f1013;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  padding: 26px 24px;
}
.footer p { margin: 0; }

/* ── Lightbox ── */
.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 92vh;
}
.lightbox::backdrop { background: rgb(8 9 11 / 0.92); }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 4px; }
.lightbox-close {
  position: fixed;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .topbar-nav { display: none; }
  .lang { margin-left: auto; }
  .stats ul { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .feature-grid, .screen-grid { grid-template-columns: 1fr; }
  .regions { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .btn { width: 100%; justify-content: center; }
  .stats b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img { animation: none; transform: scale(1.04); }
  .btn, .shot img { transition: none; }
}
.hero-bg img { object-position: 50% 50%; }
