:root {
  --color-main-01: #191919;
  --color-main-02: #2d4263;
  --color-main-03: #c84b31;
  --color-main-04: #ecdbba;

  --red-dark: #a83c25;
  --text: #191919;
  --muted: #4f5561;
  --surface: #f2f4f8;
  --rule: #dde2ea;
  --on-navy: #ffffff;
  --on-navy-muted: #c9d1de;

  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--wide {
  max-width: 1280px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.5em;
  border: 2px solid var(--color-main-03);
  border-radius: var(--radius);
  background: var(--color-main-03);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button:focus-visible,
.site-nav__link:focus-visible,
.text-link:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--color-main-03);
  outline-offset: 3px;
}

.button__icon {
  width: 1.3em;
  height: 1em;
  flex: none;
}

.button--ghost {
  background: transparent;
  border-color: var(--color-main-02);
  color: var(--color-main-02);
}

.button--ghost:hover {
  background: var(--color-main-02);
  border-color: var(--color-main-02);
  color: #fff;
}

.button--small {
  padding: 0.55em 1em;
  font-size: 0.9rem;
}

.button--large {
  padding: 1em 1.8em;
  font-size: 1.05rem;
}

.text-link {
  display: inline-block;
  margin-top: 1.3rem;
  font-weight: 500;
  color: var(--color-main-03);
  text-decoration: none;
  transition: color 0.2s;
}

.text-link::after {
  content: " \2192";
}

.text-link:hover {
  color: var(--red-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-main-02);
  box-shadow: 0 2px 10px rgba(10, 20, 40, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1280px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
}

.brand__name {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav__link {
  font-size: 0.95rem;
  color: var(--on-navy-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav__link:hover {
  color: #fff;
}

.hero {
  background: #fff;
}

.hero__text {
  max-width: 820px;
  padding-top: clamp(2.75rem, 6vw, 4.25rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--color-main-02);
}

.hero__lede {
  max-width: 620px;
  margin: 1.1rem auto 0;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero__shot {
  background: linear-gradient(to bottom, #fff 0, #fff 62%, var(--color-main-02) 62%);
}

.hero__shot img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(10, 20, 40, 0.3));
}

.spotlight {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4rem);
  margin-bottom: clamp(4rem, 8vw, 6.5rem);
}

.feature:last-child {
  margin-bottom: 0;
}

.feature--flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
}

.feature--flip .feature__media {
  order: 2;
}

.feature__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2.2vw, 1.75rem);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature__media--video {
  padding: 0;
  background: none;
}

.feature__media video {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(20, 30, 50, 0.1), 0 18px 40px rgba(20, 30, 50, 0.22);
}

.feature__title {
  margin-bottom: 0.9rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  color: var(--color-main-02);
}

.feature__text > p {
  color: var(--muted);
}

.feature__list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.feature__list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.97rem;
}

.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 7px;
  height: 7px;
  background: var(--color-main-03);
}

.toolbox {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.section-title {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  text-align: center;
  color: var(--color-main-02);
}

.toolbox__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.08), 0 4px 14px rgba(20, 30, 50, 0.06);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(20, 30, 50, 0.08), 0 12px 28px rgba(20, 30, 50, 0.12);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e6eaf1;
  border-bottom: 1px solid var(--rule);
}

.card__media img,
.card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.card__title {
  padding: 1rem 1.2rem 0.3rem;
  font-size: 1.1rem;
  color: var(--color-main-02);
}

.card__text {
  padding: 0 1.2rem 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.toolbox__more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
  margin-top: clamp(1rem, 2.4vw, 1.75rem);
}

.mini {
  padding: 1.1rem 1.2rem 1.2rem;
  border-top: 3px solid var(--color-main-03);
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.08);
}

.mini__title {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: var(--color-main-02);
}

.mini p {
  font-size: 0.92rem;
  color: var(--muted);
}

.games {
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(2.5rem, 6vw, 3.75rem);
  background: var(--color-main-02);
  color: #fff;
}

.games__inner {
  text-align: center;
}

.games__title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.games__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.game-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
  max-width: 100%;
  overflow: hidden;
  padding-bottom: 0.75rem;
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-main-02);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(5, 10, 25, 0.35);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.game-button:hover {
  background: var(--color-main-02);
  color: #fff;
  transform: translateY(-2px);
}

.game-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.game-button__art {
  width: 100%;
  margin-bottom: 0.65rem;
}

.game-button__name {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.community {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
  background: var(--color-main-02);
  color: #fff;
}

.community__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4.5rem);
  max-width: 1000px;
}

.community__art {
  width: clamp(240px, 34vw, 400px);
  flex: none;
}

.community__title {
  margin-bottom: 0.9rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
}

.community__text p {
  max-width: 500px;
  margin-bottom: 1.7rem;
  font-size: 1.1rem;
  color: var(--on-navy-muted);
}

.site-footer {
  padding: 1.4rem 0;
  background: var(--color-main-03);
  color: #fff;
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer__nav a {
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__nav a:hover {
  color: var(--color-main-04);
}

.attribution {
  padding: 1.25rem 0 1.5rem;
  background: var(--color-main-01);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.8rem;
  line-height: 1.7;
}

.attribution__title {
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.attribution a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.attribution a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .game-button:hover {
    transform: none;
  }
}

@media (max-width: 1000px) {
  .toolbox__more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .feature,
  .feature--flip {
    grid-template-columns: 1fr;
  }

  .feature--flip .feature__media {
    order: 0;
  }

  .toolbox__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community__inner {
    flex-direction: column;
    text-align: center;
  }

  .community__art {
    width: min(320px, 80vw);
  }

  .community__text p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-nav__link--wide {
    display: none;
  }

  .site-nav {
    gap: 1.1rem;
  }

  .hero__shot {
    background: linear-gradient(to bottom, #fff 0, #fff 70%, var(--color-main-02) 70%);
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .toolbox__grid,
  .toolbox__more {
    grid-template-columns: 1fr;
  }

  .hero__actions .button {
    width: 100%;
    justify-content: center;
  }

  .games__list {
    flex-direction: column;
    align-items: center;
  }

  .hero__shot .container {
    padding: 0 10px;
  }
}

@media (max-width: 400px) {
  .brand__name {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .site-nav .button span {
    display: none;
  }
}
