/* Rankora — design system: warm-gray gallery canvas, one marigold accent, zero elevation */

:root {
  --pebble: #e5e7eb;
  --ink: #000000;
  --ash: #bbbab7;
  --stone: #8d8c8a;
  --marigold: #ecca53;
  --band: #dcdee2;

  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-logo: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --text-body: 15px;
  --tracking-body: -0.3px;

  --sp-6: 6px;
  --sp-9: 9px;
  --sp-11: 11px;
  --sp-14: 14px;
  --sp-22: 22px;
  --sp-30: 30px;
  --sp-48: 48px;
  --sp-60: 60px;

  --page: 1200px;
  --radius-pill: 30px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--pebble);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--marigold);
  color: var(--ink);
  padding: var(--sp-11) var(--sp-22);
  z-index: 60;
}
.skip:focus { left: var(--sp-22); top: var(--sp-11); }

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

/* ——— logo ——— */

.logo { text-decoration: none; }
.logo__text {
  font-family: var(--font-logo);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo__accent { color: var(--marigold); }
.logo__text--footer { font-size: 30px; }

/* ——— header: three zones, centered wordmark ——— */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pebble);
}
.header__inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: var(--sp-22);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-22);
}
.header__zone { display: flex; gap: var(--sp-22); align-items: center; }
.header__zone--right { justify-content: flex-end; }
.header__link {
  text-decoration: none;
  font-size: var(--text-body);
  white-space: nowrap;
  padding-block: var(--sp-6);
  border-bottom: 1px solid transparent;
}
.header__link:hover { border-bottom-color: var(--ink); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--ash);
  border-radius: var(--radius-pill);
  color: var(--ink);
  padding: var(--sp-9) var(--sp-11);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--sp-6);
  padding: 0 var(--sp-22) var(--sp-22);
  border-bottom: 1px solid var(--ash);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__link {
  text-decoration: none;
  padding: var(--sp-11) 0;
  border-bottom: 1px solid var(--ash);
}
.mobile-nav__link:last-child { border-bottom: none; }

/* ——— hero: centered display type, no hero photo ——— */

.hero { padding-block: var(--sp-60) var(--sp-48); text-align: center; }
.hero__eyebrow {
  color: var(--stone);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: var(--sp-22);
}
.hero__title {
  font-size: clamp(38px, 8.4vw, 95px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 15ch;
  margin-inline: auto;
}
.hero__lead {
  max-width: 62ch;
  margin: var(--sp-30) auto 0;
  color: var(--stone);
}
.hero__actions {
  display: flex;
  gap: var(--sp-14);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-30);
}

.showcase {
  margin-top: var(--sp-60);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-22);
}
.showcase__icon {
  width: 96px;
  height: 96px;
  border-radius: 0;
}

/* ——— buttons ——— */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: var(--sp-11) var(--sp-22);
  font-family: inherit;
  font-size: var(--text-body);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: none;
  color: var(--ink);
}
.btn--accent { background: var(--marigold); border-color: var(--marigold); }
.btn--accent:hover { filter: brightness(0.95); }
.btn--ghost { border-color: var(--ash); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: var(--sp-9) var(--sp-14); }

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

/* ——— sections ——— */

.section { padding-block: var(--sp-60); scroll-margin-top: 86px; }
.section--band { background: var(--band); }
.section__head { margin-bottom: var(--sp-30); }
.section__title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.section__note { color: var(--stone); margin-top: var(--sp-9); }
.prose { color: var(--stone); margin-bottom: var(--sp-14); max-width: 62ch; }

/* ——— filter pills ——— */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-9);
  margin-bottom: var(--sp-30);
}
.pill {
  border: 1px solid var(--ash);
  background: var(--pebble);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: var(--sp-11) var(--sp-14) var(--sp-9);
  font-family: inherit;
  font-size: var(--text-body);
  line-height: 1;
  cursor: pointer;
}
.pill:hover { border-color: var(--ink); }
.pill--active {
  background: var(--marigold);
  border-color: var(--marigold);
}

/* ——— games grid: borderless gallery tiles ——— */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-48) var(--sp-22);
}
.grid__empty { color: var(--stone); }

.card { display: flex; flex-direction: column; }
.card__shot {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-11);
  margin-top: var(--sp-22);
}
.card__icon { width: 48px; height: 48px; }
.card__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1px;
}
.card__dev { color: var(--stone); font-size: 13px; }
.card__text { color: var(--stone); margin-top: var(--sp-11); flex: 1; }
.card__btn {
  align-self: flex-start;
  margin-top: var(--sp-14);
  border: 1px solid var(--ash);
  border-radius: var(--radius-pill);
  padding: var(--sp-9) var(--sp-14);
  text-decoration: none;
  line-height: 1.2;
}
.card__btn:hover { border-color: var(--ink); }

/* ——— stars ——— */

.rating { display: flex; align-items: center; gap: var(--sp-6); margin-top: var(--sp-11); }
.rating__value { font-size: 13px; color: var(--stone); }
.stars { position: relative; display: inline-flex; line-height: 0; }
.stars__base, .stars__fill { display: inline-flex; gap: 2px; }
.stars__base svg { fill: var(--ash); }
.stars__fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: nowrap;
}
.stars__fill svg { fill: var(--marigold); flex: none; }

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-48);
  align-items: center;
}
.split__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.split__caption { color: var(--stone); font-size: 13px; margin-top: var(--sp-9); }

.list { list-style: none; margin: var(--sp-22) 0; display: grid; gap: var(--sp-14); }
.list__item { display: grid; grid-template-columns: 28px 1fr; gap: var(--sp-11); color: var(--stone); }
.list__num { color: var(--ink); }

/* ——— trio ——— */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-48) var(--sp-22); }
.trio__icon { color: var(--ink); margin-bottom: var(--sp-14); }
.trio__title { font-size: 24px; font-weight: 500; letter-spacing: -1px; margin-bottom: var(--sp-9); }
.trio__text { color: var(--stone); }

/* ——— stats ——— */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-22); }
.stats__cell { border-top: 1px solid var(--ash); padding-top: var(--sp-14); }
.stats__label { color: var(--stone); font-size: 13px; }
.stats__value {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: var(--sp-6);
}

/* ——— reviews ——— */

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-22); }
.reviews__card { border-top: 1px solid var(--ash); padding-top: var(--sp-22); }
.reviews__quote { margin: var(--sp-14) 0 var(--sp-22); }
.reviews__author { display: flex; align-items: center; gap: var(--sp-11); }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ash);
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  flex: none;
}
.reviews__name { display: block; }
.reviews__role { display: block; color: var(--stone); font-size: 13px; }

/* ——— subscribe ——— */

.subscribe { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-48); align-items: start; }
.form { display: grid; gap: var(--sp-14); }
.form__row { display: grid; gap: var(--sp-6); }
.form__label { font-size: 13px; }
.form__opt { color: var(--stone); }
.form__input {
  border: 1px solid var(--ash);
  border-radius: var(--radius-pill);
  background: var(--pebble);
  padding: var(--sp-11) var(--sp-22);
  font-family: inherit;
  font-size: var(--text-body);
  color: var(--ink);
  width: 100%;
}
.form__input:focus { border-color: var(--ink); }
.form__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-11);
  color: var(--stone);
  font-size: 13px;
  align-items: start;
}
.form__consent input { margin-top: 3px; accent-color: var(--marigold); }
.form__submit { justify-self: start; }
.form__error { color: var(--ink); border-left: 2px solid var(--marigold); padding-left: var(--sp-11); }
.form__success { border-left: 2px solid var(--marigold); padding-left: var(--sp-11); }

/* ——— faq ——— */

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

/* ——— footer ——— */

.footer { padding-block: var(--sp-60); border-top: 1px solid var(--ash); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-30);
}
.footer__tag { color: var(--stone); margin-top: var(--sp-11); max-width: 30ch; }
.footer__col { display: flex; flex-direction: column; gap: var(--sp-9); }
.footer__title { font-size: 13px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--stone); font-weight: 400; margin-bottom: var(--sp-6); }
.footer__link { text-decoration: none; color: var(--stone); }
.footer__link:hover { color: var(--ink); }
.footer__bottom { color: var(--stone); font-size: 13px; margin-top: var(--sp-48); border-top: 1px solid var(--ash); padding-top: var(--sp-22); }

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

.totop {
  position: fixed;
  right: var(--sp-22);
  bottom: var(--sp-22);
  z-index: 40;
  background: var(--marigold);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
}
.totop[hidden] { display: none; }

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--pebble);
  border-top: 1px solid var(--ash);
  padding: var(--sp-14) var(--sp-22);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-22);
  flex-wrap: wrap;
}
.cookie[hidden] { display: none; }
.cookie__text { color: var(--stone); max-width: 70ch; }
.cookie__actions { display: flex; gap: var(--sp-9); }

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

.legal { padding-block: var(--sp-48) var(--sp-60); }
.legal__title { font-size: clamp(30px, 5vw, 66px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.legal__updated { color: var(--stone); margin-top: var(--sp-11); }
.legal__back { margin-top: var(--sp-22); }
.legal h2 { font-size: 24px; font-weight: 500; letter-spacing: -1px; margin-top: var(--sp-48); margin-bottom: var(--sp-11); }
.legal h3 { font-size: 18px; font-weight: 500; margin-top: var(--sp-22); margin-bottom: var(--sp-6); }
.legal p, .legal li { color: var(--stone); max-width: 72ch; }
.legal p { margin-bottom: var(--sp-11); }
.legal ul { margin: 0 0 var(--sp-14) var(--sp-22); }
.legal li { margin-bottom: var(--sp-6); }

/* ——— 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; }
}

@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, .split--reverse, .subscribe { grid-template-columns: 1fr; gap: var(--sp-30); }
  .split--reverse .split__figure { order: 2; }
  .reviews { grid-template-columns: 1fr; gap: var(--sp-30); }
}

@media (max-width: 620px) {
  .grid, .trio { grid-template-columns: 1fr; }
  .showcase__icon { width: 72px; height: 72px; }
  .hero { padding-block: var(--sp-48) var(--sp-30); }
  .cookie { justify-content: flex-start; }
}

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