/* ==========================================================================
   Nexus Games G.K. — site stylesheet
   Structure: tokens → base → layout → components → pages → utilities
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #06080f;
  --bg-2: #0a0e1a;
  --surface: #0f1424;
  --surface-2: #151b2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #eef1f8;
  --text-2: #a7b0c4;
  --text-3: #7a849c;

  --cyan: #45d4ff;
  --violet: #7b61ff;
  --pink: #ff5fa2;
  --mint: #7cf3c8;
  --amber: #ffc86b;

  --grad: linear-gradient(115deg, var(--cyan) 0%, var(--violet) 55%, var(--pink) 100%);
  --grad-btn: linear-gradient(115deg, #1f6feb 0%, #6e4bff 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1200px;
  --gutter: clamp(16px, 5vw, 40px);
  --header-h: 72px;
  --section-y: clamp(80px, 11vw, 140px);

  --font-sans: "Inter", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Noto Sans JP", system-ui, -apple-system,
    "Hiragino Sans", sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html[lang="ja"] body {
  line-height: 1.9;
  letter-spacing: 0.02em;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(123, 97, 255, 0.45);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

html[lang="ja"] .display {
  letter-spacing: 0.01em;
  line-height: 1.35;
  font-feature-settings: "palt";
  word-break: auto-phrase;
}

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.eyebrow__num {
  color: var(--text-3);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section--tight-top {
  padding-top: 0;
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 40px;
}

.section-head--split > :not(.section-head__action) {
  grid-column: 1;
}

.section-head__action {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
}

.section-lead {
  color: var(--text-2);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  max-width: 680px;
}

@media (max-width: 720px) {
  .section-head--split {
    grid-template-columns: 1fr;
  }

  .section-head__action {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 6px;
  }
}

/* ---------- Icons ---------- */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon--sm {
  width: 18px;
  height: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(110, 75, 255, 0.75);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(110, 75, 255, 0.9);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.btn--sm {
  min-height: 40px;
  padding: 0.55em 1.15em;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 56px;
  padding: 0.9em 2em;
  font-size: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.link-arrow .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

/* Blur lives on a pseudo-element so the mobile menu (position: fixed) is not
   trapped inside the header's containing block. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 8, 15, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  opacity: 0;
  transition: opacity 0.3s;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
}

.site-header.is-scrolled::before,
.site-header.is-open::before {
  opacity: 1;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand__sub {
  margin-left: 0.4em;
  color: var(--text-2);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav__list {
  display: flex;
  gap: 2px;
}

.site-nav__list a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav__list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav__list a[aria-current="page"] {
  color: var(--text);
}

.site-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateX(-50%);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  transition: color 0.2s, background-color 0.2s;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) {
  top: 17px;
}

.nav-toggle span:nth-child(2) {
  top: 25px;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 16px var(--gutter) 40px;
    background: rgba(6, 8, 15, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__list a {
    padding: 18px 2px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.2rem;
    color: var(--text);
  }

  .site-nav__list a:hover {
    background: transparent;
  }

  .site-nav__list a[aria-current="page"]::after {
    left: auto;
    right: 4px;
    top: 50%;
    bottom: auto;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
  }

  .lang-switch {
    align-self: flex-start;
  }

  .lang-switch a {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .site-nav__cta {
    min-height: 52px;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 56px) 0 112px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(123, 97, 255, 0.22), transparent 70%),
    radial-gradient(45% 45% at 95% 85%, rgba(255, 95, 162, 0.12), transparent 70%),
    radial-gradient(50% 50% at 10% 10%, rgba(69, 212, 255, 0.12), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 72% 48%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 85% at 72% 48%, #000 25%, transparent 80%);
}

.hero__content {
  max-width: 880px;
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(2.6rem, 7.2vw, 5.75rem);
}

html[lang="ja"] .hero__title {
  font-size: clamp(1.9rem, 6.4vw, 4.75rem);
  line-height: 1.28;
}

.hero__title .line {
  display: block;
}

.hero__lead {
  max-width: 640px;
  margin-top: 28px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  transform: translateX(-50%);
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scroll-cue 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scroll-cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (max-height: 640px), (max-width: 480px) {
  .hero__scroll {
    display: none;
  }
}

/* ---------- Platforms strip ---------- */
.platforms {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}

.platforms__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 48px;
  padding-block: 26px;
}

.platforms__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
}

.platforms__label {
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platforms__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
}

.platforms__list li {
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Intro split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.split__title {
  margin-top: 20px;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

.split__body {
  display: grid;
  gap: 24px;
  color: var(--text-2);
  font-size: 1.05rem;
  padding-top: 8px;
}

.split__body .link-arrow {
  justify-self: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cards (services etc.) ---------- */
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}

/* 4-up variant (8 services → 4×2 on desktop, 2×4 on tablet, 1 column on phones) */
.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--4 .card {
  padding: clamp(24px, 2.4vw, 30px);
}

.card-grid--4 .card__title {
  font-size: 1.1rem;
}

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

@media (max-width: 599px) {
  .card-grid--4 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.35s var(--ease), border-color 0.35s, background-color 0.35s;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 97, 255, 0.45);
}

.card:hover::after {
  opacity: 1;
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(69, 212, 255, 0.22);
  border-radius: 14px;
  background: rgba(69, 212, 255, 0.08);
  color: var(--cyan);
}

.card__icon .icon {
  width: 26px;
  height: 26px;
}

.card__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.card__phase {
  padding: 3px 9px;
  border: 1px solid rgba(69, 212, 255, 0.25);
  border-radius: 999px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

.card__num {
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.card__title {
  margin-top: 24px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
}

.card__sub {
  margin-top: 2px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card__text {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.tags li {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* ---------- Strengths ---------- */
.strengths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}

.strength {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  padding-block: 36px;
  border-top: 1px solid var(--line-strong);
}

.strength__num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.strength__title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
}

.strength__text {
  color: var(--text-2);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .strengths {
    grid-template-columns: 1fr;
  }

  .strength {
    padding-block: 28px;
  }
}

/* ---------- Process steps ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  opacity: 0.5;
}

.step {
  position: relative;
}

.step__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-2);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.step__node::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(69, 212, 255, 0.25);
}

.step__title {
  margin-top: 24px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
}

.step__sub {
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step__text {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps::before {
    top: 24px;
    bottom: 24px;
    left: 23px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink));
  }

  .step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 24px;
    padding-bottom: 32px;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step__node {
    grid-row: span 3;
  }

  .step__title {
    margin-top: 8px;
  }
}

/* ---------- Game cards ---------- */
.game-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
}

.game-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.game-card:hover .game-card__media img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.badge--released {
  border: 1px solid rgba(124, 243, 200, 0.4);
  background: rgba(6, 8, 15, 0.72);
  color: var(--mint);
}

.badge--upcoming {
  border: 1px solid rgba(255, 200, 107, 0.45);
  background: rgba(6, 8, 15, 0.72);
  color: var(--amber);
}

.game-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
}

.game-card__genre {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.game-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.game-card__desc {
  color: var(--text-2);
  font-size: 0.92rem;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.game-card__support {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.game-card__support .platform-list {
  margin-top: 0;
  padding-top: 0;
}

.game-card__label {
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.platform-list li {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8rem;
}

.game-card__meta dt {
  display: inline;
}

.game-card__meta dt::after {
  content: ":";
  margin-inline: 0.15em 0.4em;
}

.game-card__meta dd {
  display: inline;
  color: var(--text-2);
}

.game-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* Filters */
.filters {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.js .filters {
  display: flex;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-group__label {
  margin-right: 4px;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.chip {
  min-height: 36px;
  padding: 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text);
}

.chip[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.filters__count {
  margin-left: auto;
  color: var(--text-3);
  font-size: 0.85rem;
}

.empty-state {
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--text-2);
  text-align: center;
}

@media (max-width: 720px) {
  .filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters__count {
    margin-left: 0;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  border: 1px solid var(--line-strong);
  border-radius: clamp(24px, 3vw, 36px);
  background: linear-gradient(135deg, #0e1633 0%, #17113a 60%, #2a1033 100%);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 80% at 15% 0%, rgba(69, 212, 255, 0.25), transparent 70%),
    radial-gradient(50% 80% at 85% 100%, rgba(255, 95, 162, 0.22), transparent 70%);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}

.cta-band__title {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.cta-band__text {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--text-2);
}

.cta-band .btn {
  margin-top: 36px;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 112px)) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 70% at 85% 20%, rgba(123, 97, 255, 0.2), transparent 70%),
    radial-gradient(35% 60% at 100% 100%, rgba(255, 95, 162, 0.1), transparent 70%),
    radial-gradient(35% 60% at 0% 0%, rgba(69, 212, 255, 0.1), transparent 70%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 80% 30%, #000 15%, transparent 70%);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  color: var(--text-3);
  font-size: 0.8rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.6;
}

.breadcrumb a:hover {
  color: var(--text);
}

.page-hero__title {
  margin-top: 18px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.page-hero__lead {
  max-width: 660px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

/* ---------- About: mission / vision / values ---------- */
.mvv {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mvv__item {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.mvv__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 32px;
  right: 32px;
  height: 1px;
  background: var(--grad);
}

.mvv__label {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.mvv__text {
  margin-top: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.65;
}

.values {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.values li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.values .icon {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--cyan);
  stroke-width: 2;
}

.values strong {
  display: block;
  font-size: 1rem;
  line-height: 1.6;
}

.values span {
  display: block;
  color: var(--text-2);
  font-size: 0.88rem;
}

@media (max-width: 960px) {
  .mvv {
    grid-template-columns: 1fr;
  }
}

/* ---------- About: business list ---------- */
.biz-list {
  border-top: 1px solid var(--line-strong);
}

.biz-list li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 16px 32px;
  align-items: baseline;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.biz-list__num {
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.biz-list__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}

.biz-list__text {
  color: var(--text-2);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .biz-list li {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .biz-list__text {
    grid-column: 2;
  }
}

/* ---------- About: company profile ---------- */
.profile {
  border-top: 1px solid var(--line-strong);
}

.profile__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.profile dt {
  color: var(--text-3);
  font-weight: 500;
}

.profile dd {
  color: var(--text);
  overflow-wrap: anywhere;
}

.profile dd a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(69, 212, 255, 0.4);
}

.profile dd ul {
  display: grid;
  gap: 4px;
}

.profile dd li {
  display: grid;
  grid-template-columns: auto 1fr;
}

.profile dd li::before {
  content: "—";
  margin-right: 0.6em;
  color: var(--text-3);
}

@media (max-width: 640px) {
  .profile__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-block: 18px;
  }

  .profile dt {
    font-size: 0.85rem;
  }
}

.profile dd a.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.9rem;
}

.map-link .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.inquiry-list {
  display: grid;
  gap: 14px;
}

.inquiry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.inquiry .card__icon {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.inquiry .card__icon .icon {
  width: 22px;
  height: 22px;
}

.inquiry__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.inquiry__text {
  color: var(--text-2);
  font-size: 0.9rem;
}

.form-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px -40px rgba(123, 97, 255, 0.55);
}

.form-panel__title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
}

.form-panel__text {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.form-panel .btn {
  width: 100%;
  margin-top: 28px;
}

.form-panel__note {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 0.8rem;
  text-align: center;
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.checklist .checklist__title {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.checklist .icon {
  width: 18px;
  height: 18px;
  margin-top: 0.3em;
  color: var(--mint);
  stroke-width: 2.2;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-panel {
    position: static;
    order: -1;
  }
}

/* FAQ */
.faq {
  max-width: 880px;
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  width: 20px;
  height: 20px;
  color: var(--text-2);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--cyan);
}

.faq__answer {
  padding: 0 44px 28px 0;
  color: var(--text-2);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(64px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 56px;
}

.site-footer__desc {
  max-width: 380px;
  margin-top: 20px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.site-footer__company {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.8;
}

.site-footer__heading {
  margin-bottom: 16px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__links {
  display: grid;
  gap: 10px;
}

.site-footer__links a {
  color: var(--text-2);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8rem;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  transition: color 0.2s;
}

.to-top .icon {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}

.to-top:hover {
  color: var(--text);
}

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

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Language suggestion bar ---------- */
.lang-suggest {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 12px 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(15, 20, 36, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-size: 0.9rem;
  transform: translate(-50%, 150%);
  transition: transform 0.5s var(--ease);
}

.lang-suggest.is-shown {
  transform: translate(-50%, 0);
}

.lang-suggest__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}

.lang-suggest__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* ---------- 404 ---------- */
.notfound {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  text-align: center;
  overflow: hidden;
}

.notfound::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 50% 40%, rgba(123, 97, 255, 0.22), transparent 70%);
}

.notfound__code {
  font-size: clamp(6rem, 22vw, 12rem);
  line-height: 1;
}

.notfound__title {
  margin-top: 16px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
}

.notfound__text {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--text-2);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

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

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

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

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