/* Rankora — basement.studio DNA: absolute void, Geist mono-voice, 0px radius, one ember accent on active nav only */

:root {
  --void: #000000;
  --chalk: #ffffff;
  --fog: #e5e7eb;      /* interactive borders */
  --ash: #c4c4c4;      /* body copy */
  --graphite: #757575; /* muted labels */
  --carbon: #454545;   /* structural tile borders */
  --cinder: #1a1a1a;   /* input surface */
  --ember: #ff4d00;    /* active nav ONLY */

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --s4: 4px;
  --s8: 8px;
  --s12: 12px;
  --s16: 16px;
  --s24: 24px;
  --s48: 48px;
  --s64: 64px;
  --s96: 96px;
  --s128: 128px;

  --page: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--chalk);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--ember); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--void); color: var(--chalk); border: 1px solid var(--fog); padding: var(--s12) var(--s16); z-index: 60; }
.skip:focus { left: var(--s16); top: var(--s12); }

.container { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--s24); }
.container--narrow { max-width: 760px; }

/* ——— logo (wordmark) ——— */

.logo { text-decoration: none; }
.logo__text { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; text-transform: lowercase; }
.logo__accent { color: var(--chalk); }
.logo__text--footer { font-size: 20px; }

/* ——— header: void bar, centered nav, bordered contact box ——— */

.header { position: sticky; top: 0; z-index: 50; background: var(--void); border-bottom: 1px solid var(--carbon); }
.header__inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: var(--s16) var(--s24);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s24);
}
.header__zone { display: flex; gap: var(--s24); align-items: center; }
.header__zone--right { justify-content: flex-end; }
.header__link { text-decoration: none; font-size: 13px; font-weight: 500; color: var(--chalk); white-space: nowrap; }
.header__link:hover { color: var(--ember); }

.burger { display: none; background: none; border: 1px solid var(--fog); color: var(--chalk); padding: var(--s8) var(--s12); cursor: pointer; }

.mobile-nav { display: none; flex-direction: column; padding: 0 var(--s24) var(--s16); border-bottom: 1px solid var(--carbon); }
.mobile-nav__link { text-decoration: none; color: var(--chalk); padding: var(--s12) 0; border-bottom: 1px solid var(--carbon); font-size: 13px; font-weight: 500; }
.mobile-nav__link:last-child { border-bottom: none; }

/* ——— hero: massive compressed type over pure black ——— */

.hero { padding-block: var(--s96) var(--s64); }
.hero__eyebrow { color: var(--graphite); font-size: 13px; letter-spacing: 0; text-transform: none; margin-bottom: var(--s24); }
.hero__title {
  font-size: clamp(48px, 9vw, 87px);
  font-weight: 600;
  line-height: 0.89;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.hero__lead {
  max-width: 350px;
  margin-top: var(--s24);
  color: var(--ash);
  font-size: 15px;
  line-height: 1.5;
}
.hero__actions { display: flex; gap: var(--s12); flex-wrap: wrap; margin-top: var(--s24); }

.showcase { margin-top: var(--s64); display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--carbon); border-right: none; border-bottom: none; max-width: 640px; }
.showcase__icon { width: 100%; aspect-ratio: 1; object-fit: cover; border-right: 1px solid var(--carbon); border-bottom: 1px solid var(--carbon); }

/* ——— buttons (0px radius, void fill, fog border — no ember) ——— */

.btn {
  display: inline-block;
  border: 1px solid var(--fog);
  border-radius: 0;
  padding: var(--s12) var(--s16);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: var(--void);
  color: var(--chalk);
}
.btn--accent { background: var(--chalk); color: var(--void); border-color: var(--chalk); }
.btn--accent:hover { background: var(--ash); border-color: var(--ash); }
.btn--ghost { background: var(--void); }
.btn--ghost:hover { border-color: var(--chalk); }
.btn--sm { padding: var(--s8) var(--s12); }

.link { color: var(--chalk); text-decoration: none; border-bottom: 1px solid var(--carbon); padding-bottom: 1px; }
.link:hover { border-bottom-color: var(--ember); }

/* ——— sections ——— */

.section { padding-block: var(--s128); scroll-margin-top: 72px; }
.section--band { background: var(--void); border-top: 1px solid var(--carbon); }
.section__head { margin-bottom: var(--s48); }
.section__title { font-size: clamp(30px, 4.4vw, 38px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.section__note { color: var(--graphite); margin-top: var(--s12); font-size: 13px; }
.prose { color: var(--ash); margin-bottom: var(--s16); max-width: 62ch; font-size: 15px; }

/* ——— filter pills → sharp bordered tabs ——— */

.filters { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: var(--s48); border: 1px solid var(--carbon); width: fit-content; }
.pill {
  border: none;
  border-right: 1px solid var(--carbon);
  background: var(--void);
  color: var(--ash);
  border-radius: 0;
  padding: var(--s12) var(--s16);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.pill:last-child { border-right: none; }
.pill:hover { color: var(--chalk); }
.pill--active { background: var(--chalk); color: var(--void); }

/* ——— games grid: bordered inventory tiles, 0px radius ——— */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--carbon); border-right: none; border-bottom: none; }
.grid__empty { color: var(--graphite); padding: var(--s24); }

.card { display: flex; flex-direction: column; border-right: 1px solid var(--carbon); border-bottom: 1px solid var(--carbon); padding: var(--s16); }
.card__shot { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.card__meta { display: flex; align-items: center; gap: var(--s12); margin-top: var(--s16); }
.card__icon { width: 44px; height: 44px; border-radius: 0; border: 1px solid var(--carbon); }
.card__title { font-size: 20px; font-weight: 600; line-height: 1.07; letter-spacing: -0.02em; }
.card__dev { color: var(--graphite); font-size: 12px; }
.card__text { color: var(--ash); margin-top: var(--s12); flex: 1; font-size: 14px; }
.card__btn {
  align-self: flex-start;
  margin-top: var(--s16);
  border: 1px solid var(--fog);
  border-radius: 0;
  padding: var(--s8) var(--s12);
  text-decoration: none;
  line-height: 1.2;
  font-size: 13px;
  font-weight: 500;
}
.card__btn:hover { border-color: var(--chalk); }

/* ——— stars (white fill, no accent colour) ——— */

.rating { display: flex; align-items: center; gap: var(--s8); margin-top: var(--s12); }
.rating__value { font-size: 12px; color: var(--graphite); }
.stars { position: relative; display: inline-flex; line-height: 0; }
.stars__base, .stars__fill { display: inline-flex; gap: 2px; }
.stars__base svg { fill: var(--carbon); }
.stars__fill { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; }
.stars__fill svg { fill: var(--chalk); flex: none; }

/* ——— split sections ——— */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s64); align-items: center; }
.split__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--carbon); }
.split__caption { color: var(--graphite); font-size: 12px; margin-top: var(--s12); }

.list { list-style: none; margin: var(--s24) 0; display: grid; gap: var(--s16); }
.list__item { display: grid; grid-template-columns: 28px 1fr; gap: var(--s12); color: var(--ash); font-size: 14px; }
.list__num { color: var(--chalk); }

/* ——— trio ——— */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--carbon); border-right: none; border-bottom: none; }
.trio__item { border-right: 1px solid var(--carbon); border-bottom: 1px solid var(--carbon); padding: var(--s24); }
.trio__icon { color: var(--chalk); margin-bottom: var(--s16); }
.trio__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--s8); }
.trio__text { color: var(--ash); font-size: 14px; }

/* ——— stats ——— */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--carbon); border-right: none; border-bottom: none; }
.stats__cell { border-right: 1px solid var(--carbon); border-bottom: 1px solid var(--carbon); padding: var(--s24); }
.stats__label { color: var(--graphite); font-size: 12px; }
.stats__value { font-size: clamp(38px, 5vw, 76px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; margin-top: var(--s12); }

/* ——— reviews ——— */

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--carbon); border-right: none; border-bottom: none; }
.reviews__card { border-right: 1px solid var(--carbon); border-bottom: 1px solid var(--carbon); padding: var(--s24); }
.reviews__quote { margin: var(--s16) 0 var(--s24); font-size: 15px; }
.reviews__author { display: flex; align-items: center; gap: var(--s12); }
.avatar { width: 38px; height: 38px; border-radius: 0; border: 1px solid var(--carbon); display: grid; place-items: center; font-size: 12px; flex: none; color: var(--ash); }
.reviews__name { display: block; }
.reviews__role { display: block; color: var(--graphite); font-size: 12px; }

/* ——— subscribe ——— */

.subscribe { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s64); align-items: start; }
.form { display: grid; gap: var(--s16); }
.form__row { display: grid; gap: var(--s8); }
.form__label { font-size: 12px; color: var(--ash); }
.form__opt { color: var(--graphite); }
.form__input {
  border: 1px solid var(--cinder);
  border-radius: 0;
  background: var(--cinder);
  padding: var(--s12) var(--s16);
  font-family: inherit;
  font-size: 15px;
  color: var(--chalk);
  width: 100%;
}
.form__input::placeholder { color: var(--graphite); }
.form__input:focus { border-color: var(--fog); }
.form__consent { display: grid; grid-template-columns: auto 1fr; gap: var(--s12); color: var(--ash); font-size: 12px; align-items: start; }
.form__consent input { margin-top: 3px; accent-color: var(--ember); }
.form__submit { justify-self: start; }
.form__error { color: var(--chalk); border-left: 1px solid var(--ember); padding-left: var(--s12); font-size: 14px; }
.form__success { border-left: 1px solid var(--fog); padding-left: var(--s12); font-size: 14px; color: var(--ash); }

/* ——— faq ——— */

.faq { display: grid; border-top: 1px solid var(--carbon); }
.faq__item { border-bottom: 1px solid var(--carbon); }
.faq__q { font-size: 15px; font-weight: 400; }
.faq__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s16);
  background: none;
  border: none;
  color: var(--chalk);
  font-family: inherit;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-align: left;
  padding: var(--s24) 0;
  cursor: pointer;
}
.faq__chevron { transition: transform .2s ease; flex: none; color: var(--graphite); }
.faq__item--open .faq__chevron { transform: rotate(180deg); }
.faq__a { padding-bottom: var(--s24); color: var(--ash); max-width: 68ch; font-size: 14px; }

/* ——— footer ——— */

.footer { padding-block: var(--s64); border-top: 1px solid var(--carbon); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s24); }
.footer__tag { color: var(--ash); margin-top: var(--s12); max-width: 30ch; font-size: 13px; }
.footer__col { display: flex; flex-direction: column; gap: var(--s8); }
.footer__title { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--graphite); font-weight: 400; margin-bottom: var(--s4); }
.footer__link { text-decoration: none; color: var(--ash); font-size: 13px; }
.footer__link:hover { color: var(--chalk); }
.footer__bottom { color: var(--graphite); font-size: 12px; margin-top: var(--s48); border-top: 1px solid var(--carbon); padding-top: var(--s24); }

/* ——— to top + cookie ——— */

.totop {
  position: fixed;
  right: var(--s24);
  bottom: var(--s24);
  z-index: 40;
  background: var(--chalk);
  border: none;
  border-radius: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--void);
  cursor: pointer;
}
.totop[hidden] { display: none; }

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--void);
  border-top: 1px solid var(--carbon);
  padding: var(--s16) var(--s24);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s24);
  flex-wrap: wrap;
}
.cookie[hidden] { display: none; }
.cookie__text { color: var(--ash); max-width: 70ch; font-size: 13px; }
.cookie__actions { display: flex; gap: var(--s8); }

/* ——— legal pages ——— */

.legal { padding-block: var(--s64) var(--s96); }
.legal__title { font-size: clamp(38px, 6vw, 76px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; }
.legal__updated { color: var(--graphite); margin-top: var(--s12); font-size: 13px; }
.legal__back { margin-top: var(--s24); }
.legal h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-top: var(--s48); margin-bottom: var(--s12); }
.legal h3 { font-size: 18px; font-weight: 500; margin-top: var(--s24); margin-bottom: var(--s8); }
.legal p, .legal li { color: var(--ash); max-width: 72ch; font-size: 14px; }
.legal p { margin-bottom: var(--s12); }
.legal ul { margin: 0 0 var(--s16) var(--s24); }
.legal li { margin-bottom: var(--s8); }
.legal strong { color: var(--chalk); font-weight: 500; }

/* ——— responsive ——— */

@media (max-width: 1024px) {
  .grid, .trio { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding-block: var(--s96); }
}

@media (max-width: 860px) {
  .header__zone { display: none; }
  .header__inner { grid-template-columns: 1fr auto; }
  .burger { display: inline-flex; justify-self: end; }
  .mobile-nav:not([hidden]) { display: flex; }
  .split, .subscribe { grid-template-columns: 1fr; gap: var(--s24); }
  .reviews { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid, .trio, .stats { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-block: var(--s64) var(--s48); }
  .cookie { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq__chevron { transition: none; }
}
