:root {
  color-scheme: dark;
  --bg: #070a10;
  --surface: #0d121c;
  --surface-2: #121925;
  --line: rgba(155, 180, 213, 0.14);
  --text: #f5f7fa;
  --muted: #99a5b5;
  --violet: #a675ff;
  --violet-2: #7544f1;
  --cyan: #4fe0d0;
  --gold: #f1b865;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(117, 68, 241, 0.08), transparent 34%),
    radial-gradient(circle at 90% 68%, rgba(79, 224, 208, 0.05), transparent 30%),
    var(--bg);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  top: 35vh;
  left: -190px;
  background: var(--violet);
}

.ambient-two {
  right: -220px;
  bottom: 10vh;
  background: var(--cyan);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 10, 16, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max));
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(166, 117, 255, 0.3);
  border-radius: 11px;
  box-shadow: 0 0 22px rgba(117, 68, 241, 0.18);
}

.brand span {
  display: grid;
  line-height: 1;
}

.brand strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.desktop-nav a,
.site-footer a {
  color: #bbc4d0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 150ms ease;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 16, 25, 0.78);
}

.language-switch button {
  min-width: 35px;
  padding: 7px 8px;
  border: 0;
  border-radius: 999px;
  color: #7f8b9a;
  background: transparent;
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  box-shadow: 0 5px 18px rgba(117, 68, 241, 0.28);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 760px;
  height: min(900px, 100svh);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-art,
.hero-overlay,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  object-fit: cover;
  object-position: center;
  transform: scale(1.035);
  transition: transform 300ms ease-out;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.98) 0%, rgba(5, 8, 13, 0.76) 38%, rgba(5, 8, 13, 0.2) 68%, rgba(5, 8, 13, 0.54) 100%),
    linear-gradient(180deg, rgba(5, 8, 13, 0.3), rgba(5, 8, 13, 0.12) 62%, var(--bg));
}

.hero-grid {
  opacity: 0.18;
  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: 72px 72px;
  mask-image: linear-gradient(to right, black, transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max));
  margin: 48px auto 0;
}

.eyebrow,
.game-kicker {
  margin: 0 0 18px;
  color: #b69bff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 830px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  color: transparent;
  background: linear-gradient(105deg, #fff 4%, #c5b1ff 44%, #6de9dc 92%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
}

.hero-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: #b1bbc8;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.72;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #9c6dff, #6f43eb);
  box-shadow: 0 16px 34px rgba(117, 68, 241, 0.3), inset 0 1px rgba(255, 255, 255, 0.2);
}

.button-quiet {
  border: 1px solid rgba(204, 215, 230, 0.2);
  background: rgba(11, 16, 25, 0.54);
  backdrop-filter: blur(12px);
}

.button-quiet:hover {
  border-color: rgba(204, 215, 230, 0.4);
}

.studio-pulse {
  position: absolute;
  z-index: 3;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 92px;
  width: 310px;
  padding: 20px;
  border: 1px solid rgba(190, 210, 230, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 24, 36, 0.88), rgba(7, 10, 16, 0.82));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.pulse-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca9b9;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.pulse-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0 15px;
}

.pulse-stats div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.pulse-stats strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.6rem;
}

.pulse-stats span,
.studio-pulse p {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.studio-pulse p {
  margin: 0;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 42px;
  left: 50%;
  width: 22px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 4px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  animation: scroll-cue 1.7s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(11px); opacity: 1; }
}

.signal-bar {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #090d14;
}

.signal-bar > div {
  min-width: max-content;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: #778395;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.signal-bar i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
  padding: 120px 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 54px;
}

.section h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.2rem, 4.7vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.section-intro > p:last-child,
.studio-statement > p:last-child,
.legal-panel > div > p:last-child,
.contact-card > p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.featured-game {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.25fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 17% 50%, rgba(177, 33, 24, 0.17), transparent 39%),
    linear-gradient(145deg, #121722, #090d14 72%);
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.26);
}

.featured-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 70px;
  border-right: 1px solid var(--line);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
}

.icon-stage {
  width: min(100%, 310px);
  aspect-ratio: 1;
  padding: 9px;
  border: 1px solid rgba(241, 184, 101, 0.26);
  border-radius: 28px;
  background: rgba(4, 5, 8, 0.78);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46), 0 0 60px rgba(167, 35, 25, 0.15);
  transform: rotate(-2deg);
}

.icon-stage img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 21px;
}

.release-chip {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 9px 12px;
  border: 1px solid rgba(241, 184, 101, 0.32);
  border-radius: 999px;
  color: #f6c57e;
  background: rgba(18, 10, 8, 0.68);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 88px);
}

.featured-copy h3,
.game-card h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.featured-copy > p:not(.game-kicker) {
  margin: 26px 0 0;
  color: #a8b2c0;
  font-size: 1rem;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #aeb8c5;
  font-size: 0.64rem;
  font-weight: 700;
}

.game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.game-links a,
.game-card-copy a {
  color: #c8b8ff;
  font-size: 0.73rem;
  font-weight: 800;
  text-decoration: none;
}

.game-links a::after,
.game-card-copy a::after {
  content: " ↗";
}

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

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--surface-2), #0a0e15);
}

.game-card-art {
  position: relative;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
}

.game-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 13, 20, 0.9), transparent 62%);
}

.game-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

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

.game-card-art span {
  position: absolute;
  z-index: 2;
  bottom: 17px;
  left: 19px;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.game-card-copy {
  padding: 28px;
}

.game-card-copy > p:first-child {
  margin: 0 0 10px;
  color: #8e75dc;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.game-card h3 {
  font-size: 2rem;
}

.game-card-copy > p:not(:first-child) {
  min-height: 74px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.studio-section {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 80px;
  align-items: start;
}

.studio-statement {
  position: sticky;
  top: 120px;
}

.principles {
  border-top: 1px solid var(--line);
}

.principle {
  position: relative;
  display: grid;
  grid-template-columns: 55px 190px 1fr;
  gap: 22px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.principle > span {
  color: #7559c7;
  font-size: 0.65rem;
  font-weight: 800;
}

.principle h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.legal-section {
  padding-top: 50px;
}

.legal-panel {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 70px;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(79, 224, 208, 0.15);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 20%, rgba(79, 224, 208, 0.09), transparent 38%),
    linear-gradient(145deg, #101722, #090d14);
}

.legal-links {
  display: grid;
}

.legal-links a {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  gap: 10px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.legal-links a:first-child {
  border-top: 1px solid var(--line);
}

.legal-links span {
  color: #627082;
  font-size: 0.61rem;
  font-weight: 800;
}

.legal-links strong {
  font-size: 0.84rem;
}

.legal-links i {
  color: var(--cyan);
  font-style: normal;
  transition: transform 150ms ease;
}

.legal-links a:hover i {
  transform: translate(3px, -3px);
}

.contact-section {
  padding-top: 40px;
}

.contact-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(rgba(7, 10, 16, 0.85), rgba(7, 10, 16, 0.96)),
    url("assets/studio-hero.webp") center / cover;
}

.contact-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(166, 117, 255, 0.36);
  border-radius: 18px;
  color: #d4c5ff;
  background: rgba(117, 68, 241, 0.14);
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 0 42px rgba(117, 68, 241, 0.18);
}

.contact-card h2 {
  max-width: 780px;
}

.contact-card > p {
  max-width: 610px;
}

.contact-card .button {
  margin-top: 34px;
}

.site-footer {
  width: min(calc(100% - 40px), var(--max));
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.footer-brand {
  justify-self: start;
}

.site-footer p {
  color: #6f7a89;
  font-size: 0.68rem;
}

.site-footer > div {
  display: flex;
  justify-self: end;
  gap: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(10, 15, 23, 0.72);
  }

  .menu-toggle span {
    width: 17px;
    height: 1px;
    display: block;
    background: #fff;
  }

  .mobile-nav {
    display: grid;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    background: rgba(7, 10, 16, 0.96);
    backdrop-filter: blur(18px);
    transition: max-height 200ms ease, border-color 200ms ease;
  }

  .site-header.menu-open .mobile-nav {
    max-height: 260px;
    border-color: var(--line);
  }

  .mobile-nav a {
    width: min(calc(100% - 40px), var(--max));
    margin: auto;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: #c6ced9;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
  }

  .hero {
    min-height: 800px;
    height: 100svh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 8, 13, 0.97), rgba(5, 8, 13, 0.48)),
      linear-gradient(180deg, rgba(5, 8, 13, 0.32), rgba(5, 8, 13, 0.2) 54%, var(--bg));
  }

  .studio-pulse {
    right: 20px;
    bottom: 60px;
    width: min(310px, calc(100% - 40px));
  }

  .scroll-cue {
    display: none;
  }

  .featured-game,
  .studio-section,
  .legal-panel {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    min-height: 450px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .studio-statement {
    position: static;
  }

  .principle {
    grid-template-columns: 45px 150px 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    width: calc(100% - 28px);
    height: 68px;
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-top: -80px;
  }

  .hero h1 {
    font-size: clamp(3.05rem, 14vw, 4.5rem);
  }

  .hero-copy {
    max-width: 94%;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .studio-pulse {
    bottom: 34px;
    padding: 15px;
  }

  .pulse-stats {
    margin: 12px 0;
  }

  .studio-pulse p {
    display: none;
  }

  .signal-bar > div {
    justify-content: flex-start;
    padding-left: 20px;
    animation: ticker 19s linear infinite;
  }

  @keyframes ticker {
    to { transform: translateX(-48%); }
  }

  .section {
    width: calc(100% - 28px);
    padding: 84px 0;
  }

  .section-intro {
    margin-bottom: 36px;
  }

  .section h2 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .featured-game {
    min-height: 0;
    border-radius: 21px;
  }

  .featured-visual {
    min-height: 360px;
    padding: 56px 40px 42px;
  }

  .icon-stage {
    max-width: 240px;
  }

  .featured-copy {
    padding: 34px 24px 38px;
  }

  .featured-copy h3 {
    font-size: 2.75rem;
  }

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

  .game-card-copy > p:not(:first-child) {
    min-height: 0;
  }

  .studio-section {
    gap: 50px;
  }

  .principle {
    grid-template-columns: 36px 1fr;
    gap: 8px 12px;
  }

  .principle p {
    grid-column: 2;
  }

  .legal-panel {
    gap: 44px;
    padding: 34px 24px;
    border-radius: 21px;
  }

  .contact-card {
    min-height: 470px;
    border-radius: 21px;
  }

  .site-footer {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 36px 0;
    text-align: center;
  }

  .footer-brand,
  .site-footer > div {
    justify-self: center;
  }
}

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

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

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