:root {
  --ink: #07131f;
  --ink-soft: #102337;
  --paper: #f7fbfc;
  --surface: #ffffff;
  --line: #d8e5e8;
  --muted: #5c6f7a;
  --cyan: #5be8f0;
  --cyan-dark: #128d9b;
  --blue: #1537a6;
  --red: #ee2b3b;
  --shadow: 0 20px 60px rgba(7, 19, 31, 0.13);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 251, 252, 0.92);
  border-bottom: 1px solid rgba(216, 229, 232, 0.95);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 900;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand span {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--surface);
  background: var(--ink);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-link,
.button,
.tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.nav-link {
  padding: 0 14px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-dark);
  background: rgba(91, 232, 240, 0.14);
}

.nav-link-cta {
  color: var(--surface);
  background: var(--ink);
}

.nav-link-cta:hover {
  color: var(--ink);
  background: var(--cyan);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 74vh;
  padding: 86px max(20px, calc((100vw - var(--max)) / 2)) 72px;
  color: var(--surface);
  background: var(--ink);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  height: 7px;
  border-top: 1px solid rgba(91, 232, 240, 0.5);
  border-bottom: 1px solid rgba(238, 43, 59, 0.55);
  opacity: 0.8;
}

.hero-mark {
  position: absolute;
  right: max(12px, calc((100vw - var(--max)) / 2));
  bottom: 40px;
  width: min(430px, 44vw);
  opacity: 0.14;
}

.hero-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content,
.page-hero-content,
.section-intro,
.creations-section,
.contact-band,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-section .eyebrow,
.page-hero .eyebrow {
  color: var(--cyan);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 790px;
  font-size: 4.7rem;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.18;
}

p {
  line-height: 1.72;
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
}

.hero-actions,
.game-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  border: 1px solid transparent;
  padding: 0 18px;
  font-size: 0.95rem;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  color: var(--ink);
  background: var(--cyan);
}

.button.primary:hover {
  background: #8df5fa;
}

.button.secondary {
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
  border-color: var(--cyan);
}

.studio-section {
  padding: 86px max(20px, calc((100vw - var(--max)) / 2));
}

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

.section-intro h2 {
  max-width: 760px;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.studio-point {
  min-height: 260px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(7, 19, 31, 0.06);
}

.point-number {
  display: block;
  margin-bottom: 36px;
  color: var(--cyan-dark);
  font-size: 0.85rem;
  font-weight: 900;
}

.studio-point p,
.game-content p,
.contact-band p,
.page-hero p {
  color: var(--muted);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 72px;
  padding: 28px;
  color: var(--surface);
  background: var(--ink);
  border-radius: var(--radius);
}

.contact-band h2 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.contact-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.page-hero {
  padding: 80px max(20px, calc((100vw - var(--max)) / 2)) 62px;
  color: var(--surface);
  background: var(--ink);
  border-bottom: 5px solid var(--cyan);
}

.page-hero h1 {
  margin-bottom: 18px;
  font-size: 3.6rem;
}

.page-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.creations-section {
  padding: 46px 20px 86px;
}

.launcher-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 20px 86px;
}

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

.launcher-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(7, 19, 31, 0.08);
}

.launcher-platform {
  margin-bottom: 34px;
  color: var(--cyan-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.launcher-card p {
  color: var(--muted);
}

.launcher-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: auto 0 22px;
}

.launcher-meta div {
  padding: 13px;
  background: #f3f8f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.launcher-meta dt {
  margin-bottom: 5px;
  color: var(--cyan-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.launcher-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.launcher-card .button {
  width: 100%;
}

.launcher-help {
  max-width: 740px;
  margin: 28px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.tab {
  border: 1px solid var(--line);
  padding: 0 16px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.tab.active {
  border-color: var(--ink);
  color: var(--surface);
  background: var(--ink);
}

.game-panel {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  min-width: 0;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.game-media {
  position: sticky;
  top: 102px;
  width: 100%;
  min-width: 0;
}

.game-content {
  min-width: 0;
}

.game-media img {
  width: 100%;
  aspect-ratio: 1167 / 812;
  display: block;
  object-fit: contain;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(7, 19, 31, 0.12);
}

.game-content h2 {
  margin-bottom: 16px;
  font-size: 2.8rem;
}

.lead {
  font-size: 1.1rem;
}

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

.game-facts div {
  padding: 18px;
  background: #f3f8f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.game-facts dt {
  margin-bottom: 8px;
  color: var(--cyan-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.platform-list span,
.status-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink);
  background: #ecf4f5;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 800;
}

.platform-list span:nth-child(3) {
  border-color: rgba(21, 55, 166, 0.35);
}

.platform-list span:nth-child(4) {
  border-color: rgba(238, 43, 59, 0.35);
}

.project-note {
  display: flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(91, 232, 240, 0.14);
  border: 1px solid rgba(18, 141, 155, 0.18);
  border-radius: var(--radius);
}

.project-note span {
  color: var(--muted);
}

.status-pill {
  color: var(--red);
  background: rgba(238, 43, 59, 0.08);
  border-color: rgba(238, 43, 59, 0.22);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 20px 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .brand {
    overflow: hidden;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-content: stretch;
  }

  .nav-link {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .main-nav.open {
    display: grid;
  }

  .hero-section {
    min-height: auto;
    padding-top: 70px;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .studio-grid,
  .launcher-grid,
  .game-panel,
  .game-facts,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .game-media {
    position: static;
    width: 100%;
    max-width: 440px;
  }

  .contact-band {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 620px) {
  .brand span {
    font-size: 0.78rem;
  }

  .nav-link {
    padding: 0 8px;
    font-size: 0.86rem;
  }

  .hero-section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-mark {
    width: 260px;
    opacity: 0.1;
  }

  h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  .hero-copy,
  .lead {
    font-size: 1rem;
  }

  .studio-section {
    padding: 58px 18px;
  }

  .studio-point,
  .launcher-card,
  .game-panel,
  .contact-band {
    padding: 22px;
  }

  .game-panel {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .creations-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .game-content h2 {
    font-size: 2.15rem;
  }

  .game-media {
    max-width: none;
  }

  .game-content {
    margin-top: 24px;
  }

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

  .site-footer {
    flex-direction: column;
  }
}
