:root {
  --ink: #121917;
  --muted: rgba(18, 25, 23, .68);
  --green: #0d7551;
  --green-2: #30b47d;
  --lime: #cced85;
  --cyan: #89ffff;
  --cream: #f8fcee;
  --dark: #121917;
  --line: rgba(18, 25, 23, .12);
  --paper: #ffffff;
  --shadow: 0 18px 46px rgba(18, 25, 23, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans JP", "Noto Sans KR", Arial, sans-serif;
  line-height: 1.6;
}

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

button,
input,
textarea,
select { font: inherit; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px);
  transition: box-shadow .2s ease;
}

.nav {
  min-height: 64px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(13, 117, 81, .26);
}

.nav-group,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a,
.language-select {
  min-height: 40px;
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  font-size: 18px;
  font-weight: 400;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
}

.nav-links a:hover,
.language-select:hover { background: rgba(18, 25, 23, .05); }

.language-select {
  max-width: 150px;
  padding: 8px 40px 8px 24px;
  border: 0;
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.language-select:focus {
  outline: 2px solid rgba(13, 117, 81, .25);
  outline-offset: 2px;
}

.hero {
  min-height: 720px;
  padding: 96px 50px 78px;
  display: grid;
  align-items: center;
  background: linear-gradient(180deg, var(--cyan) 0%, #b6ffff 48%, #dbffff 73%, var(--cream) 100%);
  overflow: hidden;
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 26px;
}

.hero-art {
  min-height: 560px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, .92), rgba(255,255,255,.08) 35%, transparent 60%),
    url("hero-soulgames.png") center / cover no-repeat;
  filter: saturate(1.06);
  transform: rotate(-3deg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
}

h1,
.section-title {
  margin: 0;
  color: var(--ink);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 900;
}

h1 { font-size: clamp(48px, 7.2vw, 92px); }

.lead {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
}

.button,
.submit-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 28px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.button:hover,
.submit-button:hover { transform: translateY(-2px); background: #095d40; }

section { padding: 88px 24px; }

.section-inner {
  width: min(1152px, 100%);
  margin: 0 auto;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  text-align: center;
}

.section-title {
  max-width: 960px;
  font-size: clamp(38px, 6vw, 72px);
  text-transform: uppercase;
}

.section-note {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.stats {
  background: linear-gradient(180deg, var(--cream) 0%, var(--lime) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
}

.stat {
  min-height: 140px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 24px 18px;
  text-align: center;
}

.stat + .stat { border-left: 1px solid var(--green); }

.stat strong {
  color: var(--green);
  font-size: clamp(44px, 6vw, 66px);
  line-height: 1;
  font-weight: 900;
}

.stat span {
  color: var(--ink);
  font-size: 15px;
}

.games {
  background: #fff;
}

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

.game {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #f7fbf7;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game:nth-child(2n) { background: #effbfd; }
.game:nth-child(3n) { background: #f7f1ff; }

.game-poster {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: rgba(18, 25, 23, .08);
}

.game-icon {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 24%, rgba(137,255,255,.42), transparent 32%),
    linear-gradient(135deg, var(--green), #17312a);
  font-size: 44px;
  font-weight: 900;
}

.game h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.game p {
  margin: 12px 0 0;
  color: var(--muted);
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(13, 117, 81, .1);
  font-size: 12px;
  font-weight: 800;
}

.about {
  background: var(--cream);
}

.about-panel {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: stretch;
  gap: 28px;
}

.about-visual {
  min-height: 420px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(13,117,81,.85), rgba(137,255,255,.4)),
    url("hero-soulgames.png") center / cover no-repeat;
}

.about-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.publishing {
  color: #fff;
  background: var(--dark);
}

.publishing .section-title,
.publishing .section-note { color: #fff; }

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

.publish-card {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.publish-card strong {
  font-size: 24px;
  line-height: 1.2;
}

.publish-card span {
  color: rgba(255,255,255,.64);
}

.contact {
  background: #fff;
}

.contact-form {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-item label {
  font-size: 16px;
  font-weight: 800;
}

.form-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--ink);
  background: #fff;
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

.form-input:focus {
  outline: 3px solid rgba(13, 117, 81, .14);
  border-color: var(--green);
}

.form-status {
  min-height: 24px;
  color: var(--green);
  font-weight: 800;
  text-align: center;
}

.form-status.error { color: #c0392b; }

.footer {
  padding: 52px 24px;
  color: rgba(255,255,255,.62);
  background: var(--green);
}

.footer-inner {
  width: min(1152px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer a { color: rgba(255,255,255,.82); }

@media (max-width: 980px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .brand { font-size: 22px; }
  .hero {
    min-height: auto;
    padding: 82px 24px 58px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 420px;
    order: -1;
  }
  .stats-grid,
  .games-grid,
  .publish-cards,
  .about-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .language-select {
    max-width: 118px;
    padding-left: 12px;
    padding-right: 28px;
    font-size: 15px;
    background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  }
  .hero-art { min-height: 320px; }
  .hero-copy { align-items: center; text-align: center; }
  .stats-grid,
  .games-grid,
  .publish-cards,
  .about-panel {
    grid-template-columns: 1fr;
  }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--green);
  }
  .about-visual { min-height: 280px; }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
