:root {
  --bg: #07131a;
  --bg-deep: #050e14;
  --hero: #0a1d29;
  --studio: #0a1c28;
  --surface: #0e2230;
  --surface-2: #102a38;
  --icon-well: #143445;
  --line: #1c3948;
  --text: #f4f7f6;
  --body: #c5d5de;
  --muted: #93a8b4;
  --faint: #6d8492;
  --accent: #3ddcb5;
  --accent-ink: #062018;
  --gold: #e4c07a;
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: Inter, "Segoe UI", sans-serif;
  --page: 1440px;
  --gutter: 64px;
  --content: calc(var(--page) - (var(--gutter) * 2));
  --header: 76px;
  --logo-width: 190px;
  --measure: 800px;
  --shadow-accent: 0 8px 22px #3ddcb540;
  --shadow-stage: 0 28px 70px #00000073;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-150%);
  padding: 8px 12px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  z-index: 20;
}

.skip-link:focus {
  transform: none;
}

.page-scroll {
  display: contents;
}

.site-header,
.hero,
#game,
.studio,
.contact,
.legal-page,
.site-footer {
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    min(var(--content), calc(100% - (var(--gutter) * 2)))
    minmax(var(--gutter), 1fr);
}

.header-inner,
.section-inner,
.studio-inner,
.contact-inner,
.footer-inner {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-inline: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: transparent;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #07131af2;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: block;
  flex: 0 0 auto;
  width: var(--logo-width);
  height: auto;
  line-height: 0;
}

.logo img {
  width: var(--logo-width);
  height: auto;
  max-width: none;
  aspect-ratio: 670 / 210;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a::after {
  content: attr(data-label);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 600;
  pointer-events: none;
  user-select: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.btn-primary {
  height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent);
}

.btn-primary.btn-lg {
  height: 52px;
  padding: 0 22px;
  font-size: 15px;
}

.btn-secondary {
  height: 52px;
  padding: 0 22px;
  background: transparent;
  color: var(--text);
  border-color: #3a5564;
  font-size: 14px;
}

.btn:focus-visible,
.nav-links a:focus-visible,
.email-link:focus-visible,
.footer-links a:focus-visible,
.menu-toggle:focus-visible,
.to-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hero {
  background:
    radial-gradient(circle at 88% -10%, rgba(14, 76, 82, 0.55), transparent 36%),
    radial-gradient(circle at 8% 70%, rgba(18, 63, 68, 0.45), transparent 32%),
    var(--hero);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(512px, 42vw);
  align-items: center;
  gap: 48px;
  padding-block: 72px 96px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker.center {
  justify-content: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 400;
  font-style: normal;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
  color: var(--gold);
}

.hero-copy > p:not(.kicker),
.lede,
.studio-copy > p:not(.kicker),
.contact-inner > p:not(.kicker) {
  color: var(--body);
}

.hero-copy > p:not(.kicker) {
  max-width: 540px;
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.stage {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-stage);
}

.stage img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

#game .section-inner {
  padding-block: 24px 104px;
}

.game-head {
  width: min(var(--measure), 100%);
  margin-inline: auto;
  text-align: center;
}

.studio-copy,
.contact-inner {
  width: min(var(--measure), 100%);
  margin-inline: auto;
  text-align: center;
}

.game-head .kicker,
.studio-copy .kicker {
  justify-content: center;
}

.section-title,
.studio-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
}

.section-title {
  margin-top: 16px;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.lede {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature {
  min-height: 268px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--icon-well);
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-index {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
}

.feature h3 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  text-align: center;
}

.feature p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
}

.studio {
  background: var(--studio);
}

.studio-inner {
  padding-block: 96px;
}

.studio-title {
  font-size: clamp(2.15rem, 3.8vw, 3.375rem);
  line-height: 1.02;
}

.studio-title span {
  display: block;
  color: var(--gold);
}

.studio-copy > p:not(.kicker) {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.7;
}

.contact-inner {
  padding-block: 104px 112px;
}

.contact .kicker {
  letter-spacing: 0.18em;
  font-size: 13px;
}

.contact h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact p {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.6;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}

.email-link svg {
  width: 18px;
  height: 18px;
}

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: 40px 28px;
}

.footer-top,
.footer-rule,
.copyright {
  width: 100%;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
}

.address {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-links a {
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-rule {
  height: 1px;
  margin-block: 28px;
  background: var(--line);
  border: 0;
}

.copyright {
  color: var(--faint);
  font-size: 13px;
}

.legal-page > .legal {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  padding: 48px 0 104px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-bottom: 28px;
  padding: 0 16px 0 12px;
  border: 1px solid #3a5564;
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.back-home svg {
  width: 18px;
  height: 18px;
}

.back-home:hover,
.back-home:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
}

.legal-meta {
  margin-top: 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.legal h2 {
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
}

.legal h3 {
  margin-top: 24px;
  font-size: 1.05rem;
  font-weight: 600;
}

.legal p,
.legal li {
  color: var(--body);
  font-size: 17px;
  line-height: 1.7;
}

.legal p,
.legal ul {
  margin-top: 16px;
}

.legal ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 8px;
}

.legal a:not(.back-home) {
  color: var(--accent);
}

@media (max-width: 1080px) {
  :root {
    --gutter: 32px;
  }

  .hero-inner,
  .features,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stage {
    max-width: 512px;
    justify-self: center;
    width: 100%;
  }

  .stage img {
    height: auto;
    aspect-ratio: 512 / 600;
  }

  .features {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --header: auto;
  }

  .site-header {
    height: auto;
  }

  .header-inner {
    flex-wrap: nowrap;
    padding-block: 16px;
    gap: 16px;
  }

  .hero-copy,
  .hero-title,
  .hero-copy > p:not(.kicker) {
    text-align: center;
  }

  .hero-copy .kicker {
    justify-content: center;
    width: fit-content;
    margin-inline: auto;
  }

  .hero-copy > p:not(.kicker) {
    margin-inline: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stage {
    justify-self: center;
    margin-inline: auto;
  }

  .feature h3,
  .feature p,
  .studio-copy,
  .studio-copy > p:not(.kicker),
  .contact-inner,
  .contact-inner > p:not(.kicker),
  .contact h2 {
    text-align: center;
  }

  .footer-inner,
  .footer-top,
  .footer-links {
    align-items: center;
  }

  .address,
  .copyright,
  .footer-top {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  :root {
    --logo-width: 156px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #3a5564;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.menu-toggle .icon-close {
  display: none;
}

.site-header.is-open .menu-toggle .icon-menu {
  display: none;
}

.site-header.is-open .menu-toggle .icon-close {
  display: block;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent);
  cursor: pointer;
}

.to-top[hidden] {
  display: none;
}

.to-top svg {
  width: 22px;
  height: 22px;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.menu-backdrop[hidden] {
  display: none;
}

@media (max-width: 860px) {
  html {
    height: 100%;
    overflow: hidden;
  }

  body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 0;
  }

  .site-header {
    position: relative;
    top: auto;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    overflow: visible;
    z-index: 40;
  }

  .page-scroll {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .site-footer {
    position: static;
  }

  .to-top {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .header-inner {
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 12px;
    width: min(280px, calc(100vw - 40px));
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #102a38;
    box-shadow: 0 16px 40px #00000080;
    text-align: center;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    gap: 4px;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 8px;
    text-align: center;
  }

  .nav-links a::after {
    min-height: 0;
    height: 0;
  }

  .nav .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
