:root {
  --ink: #171714;
  --muted: #6c6a61;
  --paper: #f4f7f5;
  --surface: #ffffff;
  --line: #d8e0dc;
  --moss: #26463d;
  --clay: #b75d3a;
  --sky: #c9dce2;
  --shadow: 0 24px 70px rgba(30, 45, 41, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(38, 70, 61, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--paper);
  font-family:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(244, 247, 245, 0.86);
  border-bottom: 1px solid rgba(216, 224, 220, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  padding: 7px 11px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(38, 70, 61, 0.09);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  min-height: calc(100vh - 68px);
  padding: clamp(52px, 8vw, 104px) clamp(18px, 5vw, 72px) clamp(34px, 6vw, 80px);
}

.hero-copy {
  max-width: 760px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  max-width: 11em;
  font-size: clamp(43px, 7.5vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p:last-child,
.page-hero p:last-child {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.studio-board {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 14px;
  align-items: end;
  min-height: 520px;
}

.phone-frame {
  grid-row: span 3;
  min-height: 470px;
  padding: 26px 18px 22px;
  border: 10px solid var(--ink);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.phone-top {
  width: 72px;
  height: 8px;
  margin: 0 auto 34px;
  border-radius: 999px;
  background: var(--ink);
}

.game-board {
  align-items: stretch;
}

.game-board .phone-frame {
  background: var(--ink);
}

.game-board .phone-top {
  background: rgba(255, 255, 255, 0.78);
}

.game-screen {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 46%),
    linear-gradient(180deg, #9fd0dc 0 58%, #315d50 58% 100%);
}

.sun,
.cloud,
.hero-token,
.coin,
.platform {
  position: absolute;
  display: block;
}

.sun {
  top: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #f4c85b;
  box-shadow: 0 0 0 14px rgba(244, 200, 91, 0.22);
}

.cloud {
  width: 72px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.cloud::before,
.cloud::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  left: 14px;
  top: -14px;
  width: 32px;
  height: 32px;
}

.cloud::after {
  right: 12px;
  top: -9px;
  width: 26px;
  height: 26px;
}

.cloud-a {
  left: 22px;
  top: 56px;
}

.cloud-b {
  right: 42px;
  top: 118px;
  transform: scale(0.72);
}

.platform {
  height: 18px;
  border-radius: 999px;
  background: #f3ede1;
  box-shadow: 0 10px 0 #b75d3a;
}

.platform-a {
  left: 30px;
  right: 78px;
  bottom: 98px;
}

.platform-b {
  right: 26px;
  bottom: 182px;
  width: 118px;
}

.hero-token {
  left: 74px;
  bottom: 128px;
  width: 54px;
  height: 54px;
  border: 5px solid var(--ink);
  border-radius: 18px 18px 24px 24px;
  background: var(--clay);
  box-shadow: 0 12px 0 rgba(23, 23, 20, 0.18);
}

.hero-token::before,
.hero-token::after {
  position: absolute;
  content: "";
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface);
}

.hero-token::before {
  left: 13px;
}

.hero-token::after {
  right: 13px;
}

.coin {
  width: 28px;
  height: 28px;
  border: 4px solid #f6df8f;
  border-radius: 50%;
  background: #f4c85b;
}

.coin-a {
  right: 62px;
  bottom: 224px;
}

.coin-b {
  right: 112px;
  bottom: 148px;
}

.game-tile {
  position: relative;
  overflow: hidden;
  min-height: 152px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.game-tile.dark {
  color: var(--surface);
  background: var(--moss);
  border-color: var(--moss);
}

.game-tile span {
  display: block;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
}

.game-tile.dark span {
  color: var(--sky);
}

.game-tile strong {
  display: block;
  margin-top: 14px;
  font-size: 27px;
  line-height: 1.1;
}

.game-tile i {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: block;
  width: 64px;
  height: 42px;
  border-radius: 14px;
  background: var(--sky);
}

.game-tile.level i {
  background:
    linear-gradient(90deg, var(--clay) 0 18px, transparent 18px),
    linear-gradient(90deg, transparent 22px, var(--moss) 22px 44px, transparent 44px),
    var(--sky);
}

.game-tile.boss i {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--clay);
}

.game-tile.reward i {
  width: 58px;
  height: 58px;
  border: 7px solid #f6df8f;
  border-radius: 50%;
  background: #f4c85b;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 6vw, 76px);
  border-top: 1px solid var(--line);
}

.split h2 {
  margin: 0;
  max-width: 8em;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
}

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

.direction-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.direction-art {
  position: relative;
  min-height: 250px;
  border-bottom: 1px solid var(--line);
}

.direction-card.game .direction-art {
  background:
    linear-gradient(135deg, rgba(183, 93, 58, 0.18), transparent 58%),
    radial-gradient(circle at 78% 26%, rgba(201, 220, 226, 0.96) 0 56px, transparent 58px),
    var(--ink);
}

.direction-card.tool .direction-art {
  background:
    linear-gradient(135deg, rgba(38, 70, 61, 0.12), transparent 54%),
    linear-gradient(180deg, #ffffff, #edf4f1);
}

.pixel {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--clay);
  box-shadow: 12px 12px 0 rgba(255, 255, 255, 0.12);
}

.pixel.one {
  left: 34px;
  top: 38px;
}

.pixel.two {
  right: 46px;
  bottom: 44px;
  background: var(--sky);
}

.pixel.three {
  left: 42%;
  top: 46%;
  width: 42px;
  height: 42px;
  background: var(--surface);
}

.orbit {
  position: absolute;
  inset: 46px 58px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.tool-window {
  position: absolute;
  inset: 36px 34px 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(38, 70, 61, 0.13);
}

.tool-line,
.tool-dot {
  position: absolute;
  z-index: 1;
  left: 66px;
  height: 14px;
  border-radius: 999px;
  background: var(--moss);
}

.tool-line.wide {
  top: 86px;
  width: 48%;
  height: 28px;
}

.tool-line:not(.wide) {
  top: 136px;
  width: 34%;
  background: var(--line);
}

.tool-dot {
  right: 66px;
  left: auto;
  bottom: 88px;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--clay);
}

.direction-copy {
  padding: clamp(22px, 4vw, 30px);
}

.direction-copy span {
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
}

.direction-copy h3 {
  margin: 12px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
}

.direction-copy p {
  margin: 0;
  color: var(--muted);
}

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

.direction-copy li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--moss);
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.product-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--surface);
  background: var(--ink);
}

.product-strip p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 253, 247, 0.76);
}

.text-link {
  color: var(--sky);
  font-weight: 800;
}

.page {
  min-height: calc(100vh - 140px);
}

.page-hero {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  padding-bottom: clamp(28px, 5vw, 54px);
}

.page-hero h1 {
  max-width: 12em;
}

.company-layout,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.about-story {
  display: grid;
  gap: 22px;
  max-width: 850px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
}

.about-story p {
  margin: 0;
}

.about-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.about-points article {
  min-height: 210px;
  padding: 24px;
  background: var(--surface);
}

.about-points span {
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
}

.about-points h2 {
  margin: 26px 0 10px;
  font-size: 26px;
}

.about-points p {
  margin: 0;
  color: var(--muted);
}

.info-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

.info-table div {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.info-table dt {
  color: var(--muted);
}

.info-table dd {
  margin: 0;
  font-size: 19px;
}

.info-table a,
.legal-content a,
.contact-card a {
  color: var(--clay);
  font-weight: 800;
}

.contact-card {
  position: sticky;
  top: 96px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.jobs-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(28px, 6vw, 74px);
}

.jobs-intro {
  position: sticky;
  top: 96px;
  align-self: start;
}

.jobs-intro h2 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.08;
}

.jobs-intro p {
  margin: 18px 0 0;
  color: var(--muted);
}

.jobs-intro a {
  color: var(--clay);
  font-weight: 800;
}

.job-list {
  display: grid;
  gap: 22px;
}

.job-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.job-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.job-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.job-card header strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--surface);
  background: var(--moss);
  font-size: 16px;
}

.job-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.job-meta div {
  padding: 16px;
  background: var(--paper);
}

.job-meta dt {
  color: var(--muted);
  font-size: 13px;
}

.job-meta dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.job-detail {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.job-detail h3 {
  margin: 18px 0 0;
  font-size: 20px;
}

.job-detail ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.legal-content {
  max-width: 860px;
}

.legal-content h2 {
  margin: 34px 0 8px;
  font-size: 23px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

@media (max-width: 900px) {
  .product-hero,
  .split,
  .company-layout,
  .about-layout,
  .about-points,
  .jobs-section {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: auto;
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: none;
  }

  .studio-board {
    min-height: auto;
  }

  .contact-card {
    position: static;
  }

  .jobs-intro {
    position: static;
  }

  .direction-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-radius: 8px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .studio-board {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    min-height: 410px;
  }

  .info-table div,
  .job-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .job-card header {
    flex-direction: column;
  }

  .direction-art {
    min-height: 210px;
  }

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