@font-face { font-family: Anton; src: url("fonts/Anton-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: Lilita; src: url("fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --navy: #070b14;
  --panel: #0e1420;
  --line: rgba(255, 255, 255, 0.08);
  --cream: #f4ead5;
  --muted: #a9b1bf;
  --green: #7ddb1f;
  --red: #e0452c;
}

* { box-sizing: border-box; }
html { background: var(--navy); scroll-behavior: smooth; }
body { margin: 0; color: var(--cream); font: 18px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
em { font-style: normal; color: var(--green); }
a { color: var(--green); }
ul, ol { list-style: none; margin: 0; padding: 0; }
h2, h3 { font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.05; }
h2 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin: 0 0 0.35em; }
h3 { font-size: 1.6rem; margin: 0 0 0.25em; }

/* Phone frame shared by the trailer and the screenshots. */
.phone { border-radius: 30px; border: 7px solid #121a28; background: #000; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 30px 70px rgba(0,0,0,0.65), 0 0 90px rgba(125,219,31,0.16); }
.phone img, .phone video { display: block; width: 100%; height: auto; }

/* Store badges: official artwork, same height side by side. */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { display: block; line-height: 0; border-radius: 10px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.badge img { height: 54px; width: auto; }
.badge:hover, .badge:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--green), 0 10px 30px rgba(125,219,31,0.35); outline: none; }

/* Hero: key art full bleed, copy on the left, the trailer playing in a phone on the right. */
.hero { position: relative; min-height: min(100vh, 900px); display: grid; align-items: center; overflow: hidden; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 50% 40%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateY(-1.5%); } }
.hero-shade { position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 55%, rgba(7,11,20,0.55), transparent 60%),
              linear-gradient(180deg, rgba(7,11,20,0.35) 0%, rgba(7,11,20,0.15) 40%, rgba(7,11,20,0.8) 80%, var(--navy) 100%); }
.hero-inner { position: relative; width: 100%; max-width: 1160px; margin: 0 auto; padding: 96px 24px 88px;
  display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; }
.hero h1 { margin: 6px 0 0; line-height: 0; }
.logo { width: min(500px, 80vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.7)); }
.tagline { font-family: Lilita, system-ui, sans-serif; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; margin: 0.4em 0 1.1em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 0.9rem; font-weight: 600;
  background: rgba(7,11,20,0.6); border: 1px solid rgba(125,219,31,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero-phone { transform: rotate(3deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(3deg) translateY(-10px); } }
.lang { position: absolute; top: 18px; right: 20px; z-index: 2; display: flex; gap: 2px; padding: 4px; border-radius: 99px;
  background: rgba(7,11,20,0.6); border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lang a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 0.85rem; padding: 5px 11px; border-radius: 99px; }
.lang a:hover, .lang a:focus-visible { color: var(--green); }
.lang a[aria-current] { background: var(--green); color: #0b1400; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: var(--cream); opacity: 0.6;
  text-decoration: none; font-size: 1.6rem; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

main { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* Numbers strip right under the hero. */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0; margin-top: -8px;
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.stats div { background: var(--panel); padding: 22px 16px; text-align: center; }
.stats strong { display: block; font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 2.8rem; line-height: 1; color: var(--green); }
.stats small { font-size: 1.1rem; margin-left: 3px; color: var(--cream); }
.stats span { color: var(--muted); font-size: 0.95rem; }

.intro { text-align: center; max-width: 780px; margin: 0 auto; }
.intro p, .lead, .places p { color: var(--muted); font-size: 1.1rem; }

/* How a night goes: four screens side by side, a swipeable row on phones. */
.night { padding-top: 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: none; }
.card .phone { margin-bottom: 18px; transition: transform 0.25s ease; }
.card:hover .phone { transform: translateY(-6px); }
.step { font-family: Anton, Impact, sans-serif; color: var(--green); font-size: 1rem; letter-spacing: 0.1em; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Arsenal: weapons in unlock order with a damage bar. */
.arsenal { text-align: center; }
.guns { max-width: 760px; margin: 32px auto 0; display: grid; gap: 10px; text-align: left; }
.guns li { display: grid; grid-template-columns: 200px 1fr 90px; align-items: center; gap: 16px;
  padding: 12px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.guns b { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 1.3rem; letter-spacing: 0.03em; text-transform: uppercase; }
.guns span { order: 3; text-align: right; color: #ffcf3f; font-weight: 700; }
.guns span::before { content: "● "; font-size: 0.8em; }
.guns li:first-child span { color: var(--green); }
.guns li:first-child span::before { content: ""; }
.guns i { height: 10px; border-radius: 99px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
.guns i::after { content: ""; position: absolute; inset: 0; width: var(--p); border-radius: inherit;
  background: linear-gradient(90deg, #3f8f0c, var(--green)); box-shadow: 0 0 12px rgba(125,219,31,0.6);
  transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.8,.2,1) 0.2s; }
.arsenal.in .guns i::after, html:not(.js) .guns i::after { transform: scaleX(1); }
.guns li:last-child { border-color: rgba(125,219,31,0.5); }
.note { color: var(--muted); font-size: 0.85rem; opacity: 0.8; margin-top: 14px; }

.places { text-align: center; max-width: 820px; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 22px; }
.chips li { padding: 8px 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.18); background: var(--panel); font-weight: 600; }

/* Final call to action over the second key art. */
.final { position: relative; overflow: hidden; padding: 140px 24px; text-align: center; }
.final-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.final-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy) 0%, rgba(7,11,20,0.45) 30%, rgba(7,11,20,0.55) 70%, var(--navy) 100%); }
.final-content { position: relative; max-width: 720px; margin: 0 auto; }
.final h2 { text-shadow: 0 4px 24px rgba(0,0,0,0.8); }
.final p { font-family: Lilita, system-ui, sans-serif; font-size: 1.4rem; margin: 0 0 1.2em; text-shadow: 0 2px 12px rgba(0,0,0,0.9); }
.final .stores { justify-content: center; }
.final .langs { font-family: inherit; font-size: 0.95rem; color: var(--muted); margin: 1.2em 0 0; }
.final .langs a { color: var(--cream); }

footer { text-align: center; color: var(--muted); padding: 40px 20px 56px; border-top: 1px solid var(--line); font-size: 0.95rem; }
footer img { border-radius: 14px; }
footer p { margin: 0.4em 0; }
.copy { opacity: 0.7; font-size: 0.85rem; }

/* Mobile sticky download bar (shown by the script only on phones). */
.sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px; border-radius: 18px; text-decoration: none; color: var(--cream);
  background: rgba(14,20,32,0.92); border: 1px solid rgba(125,219,31,0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6); transform: translateY(140%); transition: transform 0.3s ease; }
.sticky.on { transform: none; }
.sticky img { border-radius: 10px; }
.sticky-text { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.sticky small { color: var(--muted); font-size: 0.8rem; }
.get { background: var(--green); color: #0b1400; font-weight: 800; padding: 10px 18px; border-radius: 12px; }

/* Reveal on scroll (only when the script is running). */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal:nth-child(2) { transition-delay: 0.1s; }
.js .card.reveal:nth-child(3) { transition-delay: 0.2s; }
.js .card.reveal:nth-child(4) { transition-delay: 0.3s; }

@media (max-width: 959px) {
  .hero-inner { grid-template-columns: 1fr 240px; gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 759px) {
  body { font-size: 17px; }
  .hero { min-height: auto; }
  .hero-art img { object-position: 50% 25%; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 64px 20px 48px; gap: 36px; justify-items: center; }
  .hero .stores { justify-content: center; }
  .hero-phone { width: min(250px, 66vw); transform: none; animation: none; }
  .scroll-hint { display: none; }
  .badge img { height: 48px; }
  section { padding: 56px 0; }
  .stats { margin-top: 0; }
  .stats strong { font-size: 2.3rem; }
  .night { margin: 0 -20px; }
  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding: 0 20px 12px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 72%; scroll-snap-align: center; }
  .js .card.reveal { transition-delay: 0s; }
  .guns li { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 14px; }
  .guns i { grid-column: 1 / -1; order: 4; }
  .final { padding: 100px 20px 120px; }
  footer { padding-bottom: 100px; }
}

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