/* ─── Fonts ──────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Roboto:Medium";
  src: url("../assets/fonts/Roboto-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
}
@font-face {
  font-family: "Roboto:Regular";
  src: url("../assets/fonts/Roboto-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Roboto:Light";
  src: url("../assets/fonts/Roboto-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
}
@font-face {
  font-family: "Roboto:Bold";
  src: url("../assets/fonts/Roboto-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-family: "Roboto Condensed:Black";
  src: url("../assets/fonts/RobotoCondensed-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
}
@font-face {
  font-family: "Roboto Condensed:Bold";
  src: url("../assets/fonts/RobotoCondensed-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-family: "Roboto Condensed:ExtraBold";
  src: url("../assets/fonts/RobotoCondensed-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
}

/* ─── Reset / base ───────────────────────────────────────────────────── */

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

body {
  background: #2b205d;
  color: #fff;
  overflow-x: hidden;
  font-family: "Roboto:Regular", sans-serif;
  line-height: normal;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

.wdth-100 { font-variation-settings: "wdth" 100; }

/* ─── Scroll-reveal animation ────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 100ms; }
.reveal-d2 { transition-delay: 200ms; }
.reveal-d3 { transition-delay: 300ms; }
.reveal-d4 { transition-delay: 400ms; }

/* ─── Shared: gradient section title ─────────────────────────────────── */

.gradient-title {
  position: relative;
  display: inline-block;
  max-width: 90vw;
  font-family: "Roboto Condensed:Black", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 7vw, 62px);
  line-height: 1.05;
  letter-spacing: -1.24px;
  text-transform: uppercase;
  text-align: center;
}
@media (min-width: 768px) {
  .gradient-title { max-width: none; white-space: nowrap; }
}
.gradient-title--hero {
  font-size: clamp(28px, 8vw, 80px);
  line-height: normal;
  letter-spacing: -1.6px;
  max-width: 90vw;
  white-space: normal;
}
.gradient-title__shadow {
  position: absolute;
  inset: 0;
  color: transparent;
  text-shadow: 0px 0px 48px rgba(204, 163, 255, 0.5), 0px 4px 0px rgba(0, 0, 0, 0.25);
}
.gradient-title__fill {
  position: relative;
  color: transparent;
  background-image: linear-gradient(180deg, #F8D9B8 0%, #FFFFFF 80%);
  background-clip: text;
  -webkit-background-clip: text;
}

/* ─── Shared: orange CTA button ──────────────────────────────────────── */

.btn-orange {
  position: relative;
  display: inline-block;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.btn-orange:hover {
  transform: scale(1.03);
  filter: drop-shadow(0px 0px 28px rgba(255, 174, 0, 0.7));
}
.btn-orange__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 16px;
  background: linear-gradient(0deg, #ff9900 0%, #ff7b00 91.346%, #ff9d00 100%);
}
.btn-orange__border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 16px;
  border: 1px solid #ff5e00;
  box-shadow: 0px 6px 0px 0px rgba(0, 0, 0, 0.12), 0px 0px 32px 0px rgba(255, 174, 0, 0.3);
}
.btn-orange__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
}
.btn-orange__text {
  font-family: "Roboto Condensed:Black", sans-serif;
  font-weight: 900;
  color: #5a0213;
  font-size: clamp(22px, 2.5vw, 32px);
  text-align: center;
  text-shadow: 0px 2px 0px rgba(255, 208, 0, 0.35);
  letter-spacing: -0.64px;
  text-transform: uppercase;
  white-space: nowrap;
  word-break: break-word;
}
.btn-orange__highlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0px 4px 0px 0px #ffb200;
}
.btn-orange--small {
  border-radius: 16px;
  flex-shrink: 0;
  filter: drop-shadow(0px 6px 0px rgba(0, 0, 0, 0.12));
}
.btn-orange--small:hover { filter: drop-shadow(0px 0px 20px rgba(255, 174, 0, 0.7)); }
.btn-orange--small .btn-orange__content { padding: 16px 32px; }
.btn-orange--small .btn-orange__border { box-shadow: none; }

/* ─── Shared: icon buttons / progress bar (video players) ───────────── */

.icon { width: 28px; height: 28px; }
.icon--xl { width: 56px; height: 56px; margin-left: 12px; }
.icon--lg { width: 48px; height: 48px; margin-left: 8px; }
.icon--sm { width: 16px; height: 16px; margin-left: 2px; }

.icon-btn { color: #fff; transition: color 0.15s; display: inline-flex; }
.icon-btn:hover { color: rgba(255, 255, 255, 0.7); }
.icon-btn .icon--pause, .icon-btn .icon--muted { display: none; }
.icon-btn.is-playing .icon--play { display: none; }
.icon-btn.is-playing .icon--pause { display: block; }
.icon-btn.is-muted .icon--unmuted { display: none; }
.icon-btn.is-muted .icon--muted { display: block; }

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
}
.progress-bar__fill {
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 999px;
}

/* ─── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 40px;
  height: 80px;
}
.nexters-logo { position: relative; }
.nexters-logo--header {
  width: 86px;
  height: 25px;
}
.nexters-logo--header .nexters-logo__word-wrap {
  position: absolute;
  left: 0; right: 0; top: 12.49%; bottom: 25%;
}
.nexters-logo--header .nexters-logo__mark-wrap {
  position: absolute;
  top: 0.01%; bottom: 0; left: 24.06%; right: 45.86%;
}
.nexters-logo__word,
.nexters-logo__mark {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 50svh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .hero { min-height: 100vh; } }

.hero__bg-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero__bg {
  position: absolute;
  top: -10%; left: 0;
  width: 100%; height: 120%;
  object-fit: cover;
  pointer-events: none;
  will-change: transform;
}
.hero__gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, #1a133d, transparent);
  pointer-events: none;
}
@media (min-width: 768px) { .hero__gradient { height: 400px; } }

.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 40px;
  gap: 20px;
  flex: 1;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero__content { padding: 140px 24px 80px; gap: 30px; }
}

.hero__logo {
  width: clamp(260px, 36vw, 420px);
  filter: drop-shadow(0px 0px 80px #f681f8);
  pointer-events: none;
}

.hero__headline { display: flex; flex-direction: column; align-items: center; line-height: normal; }
.hero__eyebrow {
  font-family: "Roboto:Medium", sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 36px);
  color: #fff;
  letter-spacing: -0.72px;
  width: 100%;
  text-align: center;
}

/* ─── Company info ───────────────────────────────────────────────────── */

.company { position: relative; background: #1a133d; padding: 40px 24px; }
@media (min-width: 768px) { .company { padding: 80px 24px; } }

.company__inner { max-width: 1120px; margin: 0 auto; }

.company__panel {
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  border-radius: 24px;
}
@media (min-width: 768px) { .company__panel { gap: 40px; padding: 40px; } }

.company__text {
  font-family: "Roboto:Regular", sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  text-align: center;
  color: #fff;
  width: 100%;
  word-break: break-word;
}

.divider { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.24); }

.company__stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
  color: #fff;
  width: 100%;
  word-break: break-word;
}
@media (min-width: 768px) {
  .company__stats { flex-direction: row; gap: 48px; align-items: center; }
}

.stat-block {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  min-width: 0;
}
.stat-block__title {
  font-family: "Roboto Condensed:Black", sans-serif;
  font-weight: 900;
  line-height: 1;
  font-size: clamp(27px, 4vw, 47px);
  text-shadow: 0px 4px 0px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  width: 100%;
}
.stat-block__body {
  font-family: "Roboto:Regular", sans-serif;
  font-size: 18px;
  width: 100%;
}

/* ─── Hero Wars stats ─────────────────────────────────────────────────── */

.stats {
  position: relative;
  padding: 48px 24px 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a133d 0%, #1a133d 55%, rgba(43, 32, 93, 0) 100%);
}
@media (min-width: 768px) { .stats { padding: 80px 24px 160px; } }

.stats__deco {
  position: absolute;
  left: -4%; right: -4%; top: 40px;
  height: 333px;
  pointer-events: none;
}
.stats__deco svg { display: block; width: 100%; height: 100%; }

.stats__inner {
  position: relative;
  z-index: 10;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

.stats__body-wrap { width: 100%; display: flex; justify-content: center; }
.stats__body {
  font-family: "Roboto:Regular", sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  text-align: center;
  color: #fff;
  max-width: 900px;
  word-break: break-word;
}

.stats__numbers {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
}
@media (min-width: 768px) { .stats__numbers { flex-direction: row; gap: 0; } }

.number-stat {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  color: #fff;
  min-width: 0;
  word-break: break-word;
}
.number-stat__value {
  font-family: "Roboto Condensed:Black", sans-serif;
  font-weight: 900;
  line-height: 1;
  font-size: clamp(27px, 4vw, 47px);
  text-shadow: 0px 4px 0px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  width: 100%;
}
.number-stat__label {
  font-family: "Roboto:Regular", sans-serif;
  font-size: 18px;
  width: 100%;
}

.stat-divider { display: none; }
@media (min-width: 768px) {
  .stat-divider { display: flex; align-items: center; align-self: stretch; padding: 0 24px; }
  .stat-divider::before {
    content: "";
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
  }
}

/* ─── Fixed background wrapper (video / creatives / jobs / cta / footer) ─ */

.fixed-bg-wrap {
  background-image: url("../assets/img/fixed-bg.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ─── Full-screen video section ──────────────────────────────────────── */

.video-section { position: relative; width: 100%; padding-bottom: 60px; }
@media (min-width: 768px) { .video-section { padding-bottom: 160px; } }

.video-player { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-player__el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.video-player__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-player__play-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.2s;
  color: #fff;
}
.video-player__play-btn:hover .video-player__play-circle { background: rgba(0, 0, 0, 0.6); transform: scale(1.1); }
.video-player__play-circle--sm { width: 100px; height: 100px; }
.video-player.is-playing .video-player__play-btn,
.creatives__main.is-playing .video-player__play-btn { display: none; }

.video-player__controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 64px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.video-player__controls--sm { padding: 48px 20px 16px; }
.video-player__buttons { display: flex; align-items: center; gap: 16px; }

/* ─── Creatives ───────────────────────────────────────────────────────── */

.creatives { position: relative; padding: 48px 24px; }
@media (min-width: 768px) { .creatives { padding: 80px 24px; } }

.creatives__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.creatives__title { align-self: center; }
.creatives__main-wrap { width: 100%; }

.creatives__main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0px 4px 0px 0px rgba(0, 0, 0, 0.12);
  background: #000;
}
.creatives__main-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.creatives__thumbs { width: 100%; display: flex; gap: 16px; }
.creatives__thumb {
  position: relative;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  opacity: 0.6;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.creatives__thumb:hover { opacity: 0.9; }
.creatives__thumb.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px #ff9d00, 0px 0px 20px rgba(255, 157, 0, 0.4);
}
.creatives__thumb video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.creatives__thumb-play {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #fff;
}
.creatives__thumb-play-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.2s;
}
.creatives__thumb.is-active .creatives__thumb-play-circle { background: rgba(255, 157, 0, 0.8); }

/* ─── Jobs ────────────────────────────────────────────────────────────── */

.jobs { position: relative; padding: 48px 24px; }
@media (min-width: 768px) { .jobs { padding: 80px 24px; } }

.jobs__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
@media (min-width: 768px) { .jobs__inner { gap: 40px; } }

.job-card-wrap { width: 100%; }

.job-card {
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  width: 100%;
}
@media (min-width: 768px) { .job-card { gap: 20px; padding: 40px; } }

.job-card__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
@media (min-width: 640px) { .job-card__header { flex-direction: row; align-items: center; } }

.job-card__meta {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  color: #fff;
  word-break: break-word;
}
.job-card__project { font-family: "Roboto Condensed:Bold", sans-serif; font-weight: 700; font-size: 24px; width: 100%; }
.job-card__title { font-family: "Roboto Condensed:ExtraBold", sans-serif; font-weight: 800; font-size: clamp(32px, 4vw, 52px); width: 100%; }

.job-card__desc {
  font-family: "Roboto:Light", sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: #fff;
  width: 100%;
  white-space: pre-line;
  word-break: break-word;
}

.job-card__location {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.job-card__location p {
  font-family: "Roboto:Bold", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.location-icon { display: inline-flex; width: 24px; height: 24px; flex-shrink: 0; }
.location-icon svg { width: 100%; height: 100%; }

/* ─── CTA + bottom art wrapper ───────────────────────────────────────── */

.bottom-wrap { position: relative; }
.bottom-wrap__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
}

.cta { position: relative; padding: 48px 0 40px; }
@media (min-width: 768px) { .cta { padding: 80px 0 60px; } }

.cta__inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  gap: 40px;
}
@media (min-width: 768px) { .cta__inner { padding: 60px 24px; gap: 80px; } }

/* ─── Footer ──────────────────────────────────────────────────────────── */

.site-footer { position: relative; padding: 0 24px 60px; }
.footer__inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }

.footer__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }

.nexters-logo--footer { width: 136px; height: 40px; }
.nexters-logo--footer .nexters-logo__word-wrap {
  position: absolute;
  left: 0; right: 0; top: 12.49%; bottom: 25%;
}
.nexters-logo__mark-wrap--footer {
  position: absolute;
  top: 0.01%; bottom: 0; left: 24.06%; right: 45.86%;
}

.footer__socials { display: flex; gap: 24px; align-items: center; }
.social-icon {
  display: inline-flex;
  width: 36px; height: 36px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.social-icon:hover { opacity: 1; }
.social-icon svg { width: 100%; height: 100%; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: center;
  font-family: "Roboto:Light", sans-serif;
  font-weight: 300;
  font-size: 18px;
  text-align: center;
  color: #fff;
}
.footer__legal a:hover { text-decoration: underline; }

/* ─── Cookie banner ───────────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 48px);
  max-width: 560px;
}
.cookie-banner.is-hidden { display: none; }

.cookie-banner__box {
  position: relative;
  background: rgba(20, 13, 50, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.5);
}
.cookie-banner__box p {
  font-family: "Roboto:Regular", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  padding-right: 24px;
}
.cookie-banner__box a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.cookie-banner__box a:hover { color: rgba(255, 255, 255, 0.8); }

.cookie-banner__close {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s, background 0.15s;
}
.cookie-banner__close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.cookie-banner__close svg { width: 16px; height: 16px; }
