:root {
  --ink: #111515;
  --muted: #5b6664;
  --paper: #f5f2ea;
  --panel: #fffaf1;
  --line: rgba(17, 21, 21, 0.14);
  --green: #0f7c6e;
  --coral: #f04f8b;
  --gold: #ffd166;
  --cyan: #70f4ff;
  --night: #111515;
  --display: "Bricolage Grotesque", "Manrope", Arial, sans-serif;
  --body: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fff;
  background: linear-gradient(rgba(17, 21, 21, 0.82), rgba(17, 21, 21, 0.28));
}

.brand,
.nav-links,
.hero-actions,
.release-strip,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  width: 224px;
  height: 51px;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a:hover,
.header-action:hover {
  color: #fff;
}

.header-action {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: #fff;
  background: #060718;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
  visibility: hidden;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  will-change: transform;
}

.hero-slide.is-active .hero-media img {
  animation: heroDrift 6400ms ease-out both;
}

.hero-slide:nth-of-type(2).is-active .hero-media img {
  animation-name: heroDriftReverse;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 7, 24, 0.88) 0%, rgba(6, 7, 24, 0.68) 38%, rgba(6, 7, 24, 0.18) 74%),
    linear-gradient(180deg, rgba(6, 7, 24, 0.08), rgba(6, 7, 24, 0.78));
}

.code-overlay {
  background:
    linear-gradient(90deg, rgba(4, 5, 18, 0.9) 0%, rgba(4, 5, 18, 0.66) 38%, rgba(4, 5, 18, 0.12) 74%),
    linear-gradient(180deg, rgba(4, 5, 18, 0.1), rgba(4, 5, 18, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(660px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 76px);
  padding: 150px 0 clamp(52px, 8vw, 82px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 12px;
  font-size: 5.8rem;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 18px;
  color: #fff;
  font-family: var(--display);
  font-size: 1.72rem;
  font-weight: 800;
  line-height: 1.18;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.hero-switcher {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: clamp(24px, 4vw, 42px);
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 6, 22, 0.54);
  backdrop-filter: blur(14px);
}

.hero-switcher button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hero-switcher button.is-active {
  color: #08091b;
  background: #fff;
}

.button,
.contact-form button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  border: 0;
  font-weight: 800;
  font-family: var(--display);
  cursor: pointer;
}

.button.primary,
.contact-form button {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #7158ff);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.release-strip {
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: #08091b;
  color: #fff;
  overflow-x: auto;
  white-space: nowrap;
}

.release-strip strong {
  color: #fff;
  font-family: var(--display);
  font-size: 1.02rem;
}

.release-strip span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.release-strip span:first-child {
  color: var(--gold);
}

.section,
.contact,
.feature-game,
.social-play,
.gameplay-showcase {
  padding: clamp(68px, 10vw, 126px) clamp(20px, 5vw, 64px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.games-intro {
  padding-bottom: clamp(38px, 6vw, 74px);
}

.section-heading h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 4.5rem);
  line-height: 1.02;
}

.section-copy,
.contact-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.75;
}

.contact-copy {
  margin-top: 24px;
  color: var(--green);
  font-weight: 800;
}

.gameplay-showcase {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(245, 242, 234, 0)),
    var(--paper);
}

.gameplay-showcase .section-heading {
  max-width: 820px;
  margin-bottom: clamp(30px, 5vw, 56px);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gameplay-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(240px, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  min-height: 560px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(240, 79, 139, 0.34), transparent 34%),
    radial-gradient(circle at 78% 70%, rgba(112, 244, 255, 0.22), transparent 38%),
    #070817;
  box-shadow: 0 28px 80px rgba(17, 21, 21, 0.18);
}

.gameplay-card--code {
  background:
    radial-gradient(circle at 22% 18%, rgba(112, 244, 255, 0.25), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(240, 79, 139, 0.28), transparent 36%),
    #070817;
}

.preview-photo {
  width: min(100%, 330px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: #08091b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.preview-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-photo--phone {
  aspect-ratio: 4 / 5;
}

.preview-photo--board {
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 26px;
}

.gameplay-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  line-height: 1.02;
}

.gameplay-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gameplay-copy li {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.feature-content p,
.feature-content li {
  color: var(--muted);
  line-height: 1.65;
}

.feature-game {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 15% 10%, rgba(240, 79, 139, 0.24), transparent 30%),
    radial-gradient(circle at 85% 55%, rgba(112, 244, 255, 0.14), transparent 34%),
    #070817;
}

.feature-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 800ms ease, transform 800ms ease;
  will-change: transform;
}

.feature-game:hover .feature-media img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.035);
}

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.18) 48%, transparent 68%);
  opacity: 0;
  transform: translateX(-65%);
  transition: opacity 600ms ease, transform 1100ms ease;
}

.feature-game:hover .feature-media::after {
  opacity: 1;
  transform: translateX(65%);
}

.media-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: #fff;
  background: rgba(7, 8, 23, 0.72);
  backdrop-filter: blur(12px);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-content h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4.1vw, 4.2rem);
  line-height: 1.02;
}

.feature-content p,
.feature-content li {
  color: rgba(255, 255, 255, 0.74);
}

.feature-content ul {
  display: grid;
  gap: 13px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-content li {
  padding-left: 20px;
  border-left: 3px solid var(--coral);
}

.game-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}

.game-specs div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.game-specs dt {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-specs dd {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.25;
}

.social-play {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #fffaf1;
}

.social-photo {
  min-height: clamp(360px, 44vw, 560px);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(17, 21, 21, 0.16);
}

.social-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-copy {
  max-width: 560px;
}

.social-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.2vw, 4.6rem);
  line-height: 1.02;
}

.social-copy p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.72;
}

.play-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.play-tags span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-family: var(--display);
  font-weight: 800;
}

.trust-links {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.trust-links span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  line-height: 1.35;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr minmax(320px, 520px);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
  background: #faf7ef;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.7);
  background: var(--night);
}

.site-footer span:first-child {
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
}

@keyframes heroDrift {
  from {
    transform: scale(1.035) translate3d(-16px, 10px, 0);
  }

  to {
    transform: scale(1.095) translate3d(16px, -8px, 0);
  }
}

@keyframes heroDriftReverse {
  from {
    transform: scale(1.055) translate3d(18px, 8px, 0);
  }

  to {
    transform: scale(1.12) translate3d(-18px, -8px, 0);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
  }

  .nav-links,
  .header-action {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-media img {
    object-position: 70% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6, 7, 24, 0.9) 0%, rgba(6, 7, 24, 0.66) 48%, rgba(6, 7, 24, 0.88) 100%),
      rgba(6, 7, 24, 0.2);
  }

  .code-overlay {
    background:
      linear-gradient(180deg, rgba(4, 5, 18, 0.9) 0%, rgba(4, 5, 18, 0.62) 45%, rgba(4, 5, 18, 0.88) 100%),
      rgba(4, 5, 18, 0.2);
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 96px;
  }

  .hero-switcher {
    left: 20px;
    right: 20px;
    justify-content: stretch;
  }

  .hero-switcher button {
    flex: 1;
  }

  h1 {
    font-size: 4.2rem;
  }

  .release-strip,
  .intro,
  .contact,
  .feature-game,
  .social-play {
    grid-template-columns: 1fr;
  }

  .screen-grid {
    grid-template-columns: 1fr;
  }

  .gameplay-card {
    grid-template-columns: minmax(210px, 0.76fr) minmax(240px, 1fr);
  }

  .release-strip {
    justify-content: flex-start;
  }

}

@media (max-width: 520px) {
  .hero {
    min-height: 760px;
  }

  h1 {
    font-size: 3.15rem;
  }

  .hero-subtitle {
    font-size: 1.32rem;
  }

  .button {
    width: 100%;
  }

  .section,
  .contact,
  .feature-game,
  .social-play,
  .gameplay-showcase {
    padding-left: 18px;
    padding-right: 18px;
  }

  .gameplay-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .hero-media img,
  .feature-game:hover .feature-media img {
    transform: none;
  }

}
