:root {
  --blue: #1256fb;
  --blue-deep: #0b40d6;
  --blue-soft: #e9f0ff;
  --ink: #0d1520;
  --ink-2: #1a2430;
  --ink-soft: #3a4552;
  --muted: #6b7582;
  --line: #e4e8ee;
  --bg: #f4f6fa;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

p {
  margin: 0;
}

.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid rgba(18, 86, 251, 0.4);
  outline-offset: 3px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--bg);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 54px;
  padding: 0 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-sm {
  height: 44px;
  padding: 0 1.2rem;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-deep);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--bg);
}

.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f6ff 0%, #ffffff 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  margin-top: 0;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero-title span {
  color: var(--blue);
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 3rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.hero-stats dt,
.about-stats dt {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.hero-stats dd,
.about-stats dd {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.mosaic-tile {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.section {
  padding: 6rem 0;
}

.section-tight {
  padding-top: 2rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
}

.section-note {
  max-width: 26rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow.light {
  color: #8db0ff;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.game {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  user-select: none;
  pointer-events: none;
}

.game:hover {
  border-color: rgba(18, 86, 251, 0.35);
}

.game-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}

.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-genre {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 21, 32, 0.78);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.game-info {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.1rem 1.15rem 1.3rem;
}

.game-icon {
  width: 56px;
  height: 56px;
  margin-top: -2.4rem;
  border: 3px solid var(--white);
  border-radius: 16px;
  object-fit: cover;
  background: var(--bg);
  position: relative;
}

.game-meta h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.game-meta p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.5;
}

.process {
  background: var(--ink);
  color: var(--white);
}

.process .section-note {
  color: rgba(255, 255, 255, 0.62);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.6rem;
  right: -0.95rem;
  width: 0.65rem;
  height: 0.65rem;
  border-top: 2px solid #8db0ff;
  border-right: 2px solid #8db0ff;
  transform: rotate(45deg);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue);
  font-family: var(--font-display);
  font-weight: 800;
}

.step h3 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.step p {
  color: rgba(255, 255, 255, 0.68);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

a.blog-card:hover {
  border-color: rgba(18, 86, 251, 0.35);
}

.blog-thumb {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 8;
  padding: 1.5rem;
  background: linear-gradient(135deg, #0b40d6 0%, #1256fb 55%, #5b8cff 100%);
  color: var(--white);
}

.blog-thumb span {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.blog-thumb-empty {
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(-45deg, #f1f3f7 0 14px, #e8ebf1 14px 28px);
  color: var(--muted);
}

.blog-thumb-empty span {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.blog-card-empty {
  opacity: 0.75;
}

.blog-body {
  padding: 1.3rem 1.4rem 1.5rem;
}

.blog-body h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.tag.muted {
  color: var(--muted);
}

.blog-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.page-hero {
  padding: 4.5rem 0 3rem;
  background: linear-gradient(180deg, #f3f6ff 0%, #ffffff 100%);
}

.page-hero h1 {
  margin-top: 0;
  max-width: 16ch;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.page-hero p {
  margin-top: 1.2rem;
  max-width: 38rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 2.5rem;
}

.about-stats div {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.value {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.value-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--blue);
}

.value h3 {
  margin: 0.8rem 0 0.45rem;
  font-size: 1.3rem;
  font-weight: 800;
}

.value p {
  color: var(--muted);
}

.article {
  width: min(740px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.15s ease;
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.back-link:hover {
  color: var(--blue);
}

.article h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
}

.article .meta {
  margin-bottom: 2.2rem;
  font-weight: 600;
  color: var(--muted);
}

.article p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.article h2 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.site-footer {
  padding: 4rem 0 2rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer .logo span {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-tag {
  margin-top: 1rem;
  max-width: 22rem;
}

.footer-grid h4 {
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-grid a:not(.logo) {
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
}

.footer-grid a:not(.logo):hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-mosaic {
    max-width: 520px;
    padding: 2rem 0 0;
  }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .games-grid,
  .steps,
  .blog-grid,
  .values,
  .about-stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-stats {
    gap: 1.75rem;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
