:root {
  color-scheme: dark;
  --bg: #03070d;
  --panel: rgba(9, 17, 29, 0.82);
  --panel-strong: #09111d;
  --line: rgba(118, 177, 255, 0.18);
  --text: #f4f8ff;
  --muted: #98a8bc;
  --blue: #088cff;
  --blue-bright: #23b8ff;
  --silver: #dce8f3;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(0, 116, 255, 0.14), transparent 42%),
    linear-gradient(180deg, #02050a 0%, var(--bg) 48%, #050a12 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(36, 122, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 122, 230, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

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

.ambient-left {
  top: 18vh;
  left: -360px;
  background: #007cff;
}

.ambient-right {
  right: -390px;
  bottom: 2vh;
  background: #18a8ff;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(127, 184, 255, 0.1);
  background: rgba(3, 7, 13, 0.72);
  backdrop-filter: blur(18px);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
}

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

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.brand > span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  letter-spacing: 0.1em;
  line-height: 1;
}

.brand strong,
.brand em {
  font-size: 16px;
  font-style: normal;
}

.brand strong {
  color: var(--silver);
}

.brand em {
  color: var(--blue-bright);
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.25em;
}

.nav-link {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--silver);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(35, 184, 255, 0.58);
  background: rgba(8, 140, 255, 0.1);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
  align-items: center;
  gap: 52px;
  min-height: 680px;
  padding-block: 82px 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(54px, 7vw, 92px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 span {
  background: linear-gradient(105deg, #f8fbff 4%, #9ec8ef 38%, #078cff 86%);
  background-clip: text;
  color: transparent;
}

.intro {
  max-width: 630px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 21px;
  border: 1px solid rgba(35, 184, 255, 0.4);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(11, 115, 220, 0.2), rgba(3, 24, 45, 0.5));
  color: #eaf6ff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.hero-action span {
  color: var(--blue-bright);
  font-size: 18px;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-mark::before {
  position: absolute;
  z-index: -1;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 137, 255, 0.28), transparent 67%);
  content: "";
  filter: blur(26px);
}

.hero-mark img {
  width: min(440px, 86vw);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.orbit {
  position: absolute;
  z-index: -1;
  width: 108%;
  aspect-ratio: 1;
  border: 1px solid rgba(49, 163, 255, 0.18);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  position: absolute;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 20px var(--blue);
  content: "";
}

.orbit::before {
  top: 13%;
  right: 12%;
  width: 7px;
  height: 7px;
}

.orbit::after {
  bottom: 11%;
  left: 16%;
  width: 4px;
  height: 4px;
}

.games {
  padding-block: 68px 112px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 38px;
}

.section-heading h2,
.studio-note h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

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

.game-card {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(17, 29, 48, 0.94), rgba(4, 9, 17, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  isolation: isolate;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.game-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(0, 5, 12, 0.92) 0%, transparent 47%);
  content: "";
  pointer-events: none;
}

.game-card > img {
  position: absolute;
  inset: 6% 8% 18%;
  z-index: 1;
  width: 84%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.4));
  transition: transform 260ms ease;
}

.card-glow {
  position: absolute;
  top: 8%;
  left: 18%;
  z-index: 0;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(29, 126, 255, 0.2);
  filter: blur(52px);
}

.flow-pipe .card-glow {
  background: rgba(47, 225, 237, 0.18);
}

.ashborne .card-glow {
  background: rgba(239, 94, 48, 0.18);
}

.card-caption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.card-caption > span:first-child {
  display: grid;
}

.card-caption strong {
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.025em;
}

.card-caption small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(129, 193, 255, 0.28);
  border-radius: 50%;
  color: var(--blue-bright);
  font-size: 22px;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: rgba(63, 174, 255, 0.58);
  box-shadow: 0 28px 74px rgba(0, 76, 166, 0.2);
  outline: none;
  transform: translateY(-7px);
}

.game-card:hover > img,
.game-card:focus-visible > img {
  transform: scale(1.035);
}

.studio-note {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
  margin-bottom: 110px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(7, 44, 82, 0.42), rgba(6, 12, 21, 0.9)),
    var(--panel);
  box-shadow: var(--shadow);
}

.studio-note > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

footer {
  border-top: 1px solid rgba(127, 184, 255, 0.11);
  background: rgba(2, 5, 10, 0.72);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-block: 30px;
  color: #718096;
  font-size: 13px;
}

.footer-content p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 72px;
    text-align: center;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
  }

  .hero-mark {
    order: -1;
  }

  .hero-mark img {
    width: min(350px, 78vw);
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-note {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  nav {
    min-height: 74px;
  }

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

  .brand small,
  .nav-link {
    display: none;
  }

  .hero {
    gap: 34px;
    padding-block: 54px 70px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .games {
    padding-block: 48px 82px;
  }

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

  .game-card {
    max-width: 430px;
    width: 100%;
    margin-inline: auto;
    border-radius: 24px;
  }

  .studio-note {
    margin-bottom: 76px;
    padding: 28px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
