:root {
  --bg: #080a0f;
  --surface: #0f1219;
  --surface-2: #151923;
  --text: #f6f7fb;
  --muted: #959dad;
  --line: rgba(255,255,255,.10);
  --accent: #7c5cff;
  --accent-2: #31d6c6;
  --max: 1240px;
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -10%, rgba(124,92,255,.14), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

::selection { background: rgba(124,92,255,.38); }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

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

.site-header {
  width: min(calc(100% - 40px), var(--max));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .07em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.brand-name { font-size: .84rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #c6cbd5;
  font-size: .92rem;
}

.site-nav > a:not(.nav-cta) {
  transition: color .2s ease;
}
.site-nav > a:not(.nav-cta):hover { color: #fff; }

.nav-cta {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,.035);
}

.menu-button {
  display: none;
  border: 0;
  background: none;
  padding: 8px 0 8px 8px;
  color: #fff;
}
.menu-button > span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  width: min(calc(100% - 40px), var(--max));
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: 80px 0 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #afb6c4;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 750;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #43e19f;
  box-shadow: 0 0 14px rgba(67,225,159,.65);
}

.hero h1, .section h2 {
  margin: 0;
  letter-spacing: -.055em;
  line-height: .96;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(4.25rem, 7.6vw, 7.4rem);
  font-weight: 790;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.45);
}

.hero-description {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.7;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: .92rem;
  font-weight: 720;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }

.button-primary {
  background: #fff;
  color: #0a0c11;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255,255,255,.035);
}

.hero-visual {
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
}

.studio-card {
  width: min(100%, 470px);
  aspect-ratio: .86;
  position: relative;
  z-index: 3;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.02)),
    #11151d;
  box-shadow:
    0 38px 100px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.13);
  transform: rotate(4deg);
}

.studio-card::before {
  content: "";
  position: absolute;
  width: 75%;
  aspect-ratio: 1;
  left: -15%;
  bottom: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49,214,198,.38), transparent 68%);
}

.studio-card::after {
  content: "";
  position: absolute;
  width: 84%;
  aspect-ratio: 1;
  right: -24%;
  top: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.45), transparent 67%);
}

.studio-card-top,
.studio-card-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.72);
  font-size: .67rem;
  letter-spacing: .16em;
}

.studio-z {
  position: relative;
  z-index: 2;
  align-self: center;
  font-size: clamp(10rem, 20vw, 14rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.13em;
  padding-right: .13em;
  text-shadow: 0 20px 60px rgba(0,0,0,.32);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .7;
}
.orb-a {
  width: 160px;
  height: 160px;
  right: -20px;
  top: 48px;
  background: rgba(124,92,255,.24);
}
.orb-b {
  width: 120px;
  height: 120px;
  left: 12px;
  bottom: 42px;
  background: rgba(49,214,198,.16);
}

.scroll-hint {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  color: #777f8f;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .66rem;
}
.scroll-line {
  width: 48px;
  height: 1px;
  background: #555c68;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 132px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  flex-direction: column;
  margin-bottom: 48px;
}

.section h2 {
  max-width: 840px;
  font-size: clamp(2.9rem, 5vw, 5.4rem);
  font-weight: 780;
}

.section-heading > p:last-child {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.game-card {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 12%, var(--game-glow, rgba(124,92,255,.28)), transparent 35%),
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.012)),
    var(--surface);
  transition: transform .25s ease, border-color .25s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.2);
}

.game-number {
  position: absolute;
  right: 28px;
  top: 24px;
  color: rgba(255,255,255,.16);
  font-size: 4.8rem;
  font-weight: 850;
  letter-spacing: -.08em;
}

.game-status {
  width: max-content;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.08);
  color: #d9dde5;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.game-card h3 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  letter-spacing: -.045em;
}

.game-card p {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.game-link {
  margin-top: 24px;
  width: max-content;
  font-size: .84rem;
  font-weight: 800;
}
.game-link::after {
  content: " ↗";
}

.about-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
}

.about-details > p {
  margin: 0 0 20px;
  color: #c2c7d1;
  font-size: clamp(1.05rem, 1.6vw, 1.26rem);
  line-height: 1.72;
}

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

.principles article {
  display: grid;
  grid-template-columns: 56px 180px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.principles span {
  color: #656d7b;
  font-size: .76rem;
}

.principles h3 {
  margin: 0;
  font-size: .95rem;
}

.principles p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: .9rem;
}

.contact-section { padding-bottom: 80px; }

.contact-card {
  min-height: 350px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 25%, rgba(124,92,255,.24), transparent 28rem),
    radial-gradient(circle at 10% 90%, rgba(49,214,198,.12), transparent 25rem),
    #10141c;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.contact-card h2 { max-width: 760px; }
.contact-card p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

footer {
  width: min(calc(100% - 40px), var(--max));
  min-height: 120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #737b8a;
  font-size: .78rem;
}

.footer-brand { color: #fff; }
.footer-links {
  justify-self: end;
  display: flex;
  gap: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .game-card { transition: none; }
}

@media (max-width: 900px) {
  .menu-button { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(12,15,21,.96);
    backdrop-filter: blur(18px);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-cta { text-align: center; }

  .hero { padding-top: 44px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { min-height: 440px; }
  .studio-card { max-width: 390px; }

  .about-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
  }

  footer {
    grid-template-columns: 1fr 1fr;
    padding: 32px 0;
  }
  footer > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 650px) {
  .site-header,
  .hero,
  .section,
  footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero { min-height: auto; padding-bottom: 80px; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 5.6rem); }
  .hero-visual { min-height: 380px; }
  .studio-card { width: 86%; border-radius: 28px; }
  .studio-z { font-size: 10rem; }
  .scroll-hint { display: none; }

  .section { padding: 94px 0; }
  .games-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 360px; padding: 24px; }

  .principles article {
    grid-template-columns: 40px 1fr;
  }
  .principles article p {
    grid-column: 2;
  }

  .contact-card { min-height: 420px; padding: 28px; }

  footer { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
  footer > p { grid-column: auto; grid-row: auto; }

  .brand-name { display: none; }
}
