@font-face {
  font-family: "Cera Pro";
  font-style: normal;
  font-weight: 400;
  src: url("CeraPRO-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Cera Pro";
  font-style: normal;
  font-weight: 700;
  src: url("CeraPRO-Bold.ttf") format("truetype");
  font-display: swap;
}

:root {
  --green: #20c936;
  --green-dark: #109926;
  --navy: #172a43;
  --navy-soft: #37506d;
  --aqua: #e0f8f4;
  --cream: #f8faf7;
  --white: #ffffff;
  --line: #dfe9e5;
  --shadow: 0 18px 48px rgba(23, 42, 67, 0.12);
  --shadow-soft: 0 8px 24px rgba(23, 42, 67, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --content-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "Cera Pro", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #1684ff;
  outline-offset: 4px;
}

.skip-link {
  left: 16px;
  position: fixed;
  top: -80px;
  z-index: 1000;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(223, 233, 229, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 124px;
  height: auto;
}

.nav-shell,
.site-nav,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-shell {
  flex: 1;
  justify-content: flex-end;
  gap: 34px;
}

.site-nav {
  gap: 32px;
}

.nav-links {
  gap: 30px;
}

.nav-links a {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green-dark);
}

.nav-actions {
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 4px;
  box-shadow: 0 3px 12px rgba(23, 42, 67, 0.06);
}

.language-switch a,
.language-switch span {
  min-width: 44px;
  border-radius: 999px;
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
}

.language-switch [aria-current="page"] {
  background: var(--navy);
  color: var(--white);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  color: #082d11;
  box-shadow: 0 10px 24px rgba(32, 201, 54, 0.26);
}

.button-primary:hover {
  background: #29dc40;
}

.button-secondary {
  border-color: rgba(23, 42, 67, 0.18);
  background: var(--white);
  color: var(--navy);
}

.button-small {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 14px;
}

.play-mark {
  width: 0;
  height: 0;
  border-bottom: 7px solid transparent;
  border-left: 12px solid currentColor;
  border-top: 7px solid transparent;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 20px;
  height: 2px;
  display: block;
  position: relative;
  border-radius: 2px;
  background: currentColor;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  top: -6px;
}

.menu-toggle-lines::after {
  top: 6px;
}

.hero {
  padding: 48px 0 72px;
}

.hero-card {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(223, 233, 229, 0.8);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6vw, 82px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(48px, 6.5vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: var(--green);
}

.hero-lead {
  max-width: 540px;
  margin: 28px 0 0;
  color: var(--navy-soft);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  position: relative;
  padding-right: 28px;
}

.hero-proof li:not(:last-child)::after {
  width: 1px;
  height: 34px;
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  background: var(--line);
  transform: translateY(-50%);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  font-size: 20px;
}

.hero-proof span {
  color: var(--navy-soft);
  font-size: 13px;
}

.hero-visual {
  min-height: 520px;
  position: relative;
  background: var(--aqua);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), transparent 24%);
  pointer-events: none;
}

.hero-visual picture,
.hero-visual img {
  width: 100%;
  height: 100%;
}

.hero-visual img {
  object-fit: cover;
  object-position: 55% center;
}

.section {
  padding: 86px 0;
}

.section-white {
  background: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading h2,
.page-hero h1,
.content-heading h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 590px;
  margin: 0;
  color: var(--navy-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.game-card:focus-within {
  box-shadow: 0 0 0 3px #1684ff, var(--shadow);
}

.game-card-featured {
  grid-column: span 2;
}

.game-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.game-card-link .game-body {
  flex: 1;
}

.game-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dff5f2;
}

.game-media picture,
.game-media img {
  width: 100%;
  height: 100%;
}

.game-media img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

.game-card:hover .game-media img {
  transform: scale(1.035);
}

.game-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 22px;
}

.game-body h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.game-body p {
  margin: 5px 0 0;
  color: var(--navy-soft);
  font-size: 14px;
}

.game-open {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--navy);
  font-size: 20px;
  text-decoration: none;
}

.studio-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #dff8f2, #f8fff7);
  padding: clamp(42px, 6vw, 74px);
}

.studio-card h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.studio-card p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--navy-soft);
  font-size: 19px;
}

.studio-card .button {
  margin-top: 28px;
}

.studio-values {
  display: grid;
  gap: 14px;
}

.studio-value {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  padding: 18px 20px;
  box-shadow: 0 8px 26px rgba(23, 42, 67, 0.06);
}

.studio-value strong,
.studio-value span {
  display: block;
}

.studio-value strong {
  font-size: 19px;
}

.studio-value span {
  margin-top: 3px;
  color: var(--navy-soft);
  font-size: 14px;
}

.support-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.support-card,
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.support-card h3,
.feature-card h3 {
  margin: 0;
  font-size: 22px;
}

.support-card p,
.feature-card p {
  margin: 10px 0 18px;
  color: var(--navy-soft);
}

.support-card a:not(.button),
.feature-card a:not(.button) {
  color: var(--green-dark);
  font-weight: 700;
}

.page-hero {
  padding: 88px 0 64px;
  background: linear-gradient(135deg, var(--aqua), #f8fff7);
}

.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--navy-soft);
  font-size: 21px;
}

.content-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.content-heading {
  position: sticky;
  top: 122px;
}

.content-copy p {
  margin: 0 0 22px;
  color: var(--navy-soft);
  font-size: 18px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.fact {
  border-radius: var(--radius-md);
  background: var(--aqua);
  padding: 20px;
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  font-size: 27px;
}

.fact span {
  color: var(--navy-soft);
  font-size: 14px;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, 0.75fr);
  gap: 52px;
}

.footer-brand img {
  width: 124px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 420px;
  margin: 20px 0 0;
  color: #c8d6e4;
}

.footer-column h2 {
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin-top: 10px;
  color: #c8d6e4;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 24px;
  color: #9eb2c6;
  font-size: 13px;
}

.footer-bottom .language-switch {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom .language-switch a,
.footer-bottom .language-switch span {
  color: #d7e1eb;
}

.footer-bottom .language-switch [aria-current="page"] {
  background: var(--white);
  color: var(--navy);
}

@media (max-width: 1040px) {
  .header-play {
    display: none;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
    order: -1;
  }

  .hero-visual::after {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.7), transparent 32%);
  }

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

  .studio-card,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-heading {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-shell {
    position: fixed;
    inset: 71px 0 auto 0;
    max-height: calc(100vh - 71px);
    display: none;
    overflow-y: auto;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding: 24px 20px 30px;
    box-shadow: 0 22px 40px rgba(23, 42, 67, 0.15);
  }

  .nav-shell.is-open,
  .site-nav,
  .nav-links,
  .nav-actions {
    display: flex;
  }

  .nav-shell.is-open {
    flex-direction: column;
  }

  .site-nav,
  .nav-links,
  .nav-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    border-bottom: 1px solid var(--line);
    padding: 15px 4px;
    font-size: 17px;
  }

  .nav-actions {
    gap: 14px;
  }

  .nav-actions .language-switch {
    align-self: flex-start;
  }

  .nav-actions .button {
    width: 100%;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy {
    padding: 40px 28px 48px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 66px);
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .support-grid,
  .feature-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .brand img {
    width: 108px;
  }

  .hero-card,
  .studio-card {
    border-radius: 24px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    gap: 18px;
  }

  .hero-proof li {
    padding-right: 18px;
  }

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

  .game-card-featured {
    grid-column: auto;
  }

  .studio-card {
    gap: 38px;
    padding: 38px 24px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
