:root {
  color-scheme: dark;
  --ink: #06070b;
  --night: #0b1018;
  --steel: #111a25;
  --slate: #182533;
  --mist: #eef4ee;
  --soft: #b8c5cf;
  --muted: #8493a1;
  --gold: #f7c65a;
  --ember: #e45b3d;
  --cyan: #66e5ef;
  --mint: #7af7c9;
  --violet: #8d6cf0;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --shadow: rgba(0, 0, 0, 0.46);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--mist);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(6, 7, 11, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: calc(100% - 36px);
  max-width: var(--max);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  font-weight: 900;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(102, 229, 239, 0.3);
  flex: 0 0 auto;
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--soft);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--mist);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.18) 0%, rgba(6, 7, 11, 0.58) 48%, #06070b 100%),
    linear-gradient(90deg, rgba(6, 7, 11, 0.92) 0%, rgba(6, 7, 11, 0.38) 48%, rgba(6, 7, 11, 0.88) 100%),
    url("./lockrift-games-header.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--ink));
  z-index: -1;
}

.hero-inner,
.section-inner,
.footer-inner {
  width: calc(100% - 36px);
  max-width: var(--max);
  margin: 0 auto;
}

.hero-inner {
  padding: 118px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  align-items: end;
  gap: 42px;
}

.hero-inner > *,
.showcase > *,
.game-card {
  min-width: 0;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 5.7rem;
  text-shadow: 0 18px 46px var(--shadow);
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.lead {
  max-width: 650px;
  margin-top: 22px;
  color: #dfe8ed;
  font-size: 1.23rem;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(247, 198, 90, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe18a, #f1ad3c);
  color: #0e1118;
  font-weight: 950;
  box-shadow: 0 18px 40px rgba(247, 198, 90, 0.18);
}

.button.secondary {
  color: var(--mist);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

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

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 13, 20, 0.75);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-panel-body {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.metric {
  padding: 18px 14px;
  background: rgba(11, 16, 24, 0.94);
}

.metric strong {
  display: block;
  color: var(--gold);
  font-size: 1.25rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: 92px 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    #0a0f17;
}

.section.split {
  background:
    linear-gradient(90deg, rgba(102, 229, 239, 0.08), transparent 38%),
    #090d14;
}

.section-title {
  max-width: 800px;
  margin-bottom: 38px;
}

.section-title p {
  margin-top: 16px;
  color: var(--soft);
  font-size: 1.08rem;
}

.studio-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.studio-tile,
.feature-tile,
.support-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.studio-tile {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile-index {
  color: var(--cyan);
  font-weight: 950;
}

.studio-tile p,
.feature-tile p,
.support-tile p {
  color: var(--soft);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.48fr);
  gap: 34px;
  align-items: center;
}

.showcase-media {
  position: relative;
  min-height: 560px;
}

.screenshot-stack {
  position: relative;
  min-height: 560px;
}

.screen {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0c121b;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen.primary {
  left: 0;
  top: 30px;
  width: 72%;
  aspect-ratio: 16 / 10;
}

.screen.secondary {
  right: 0;
  top: 0;
  width: 42%;
  aspect-ratio: 9 / 14;
}

.screen.tertiary {
  right: 8%;
  bottom: 0;
  width: 55%;
  aspect-ratio: 16 / 9;
}

.game-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 37, 51, 0.96), rgba(10, 15, 23, 0.96));
  overflow: hidden;
}

.game-card-top {
  padding: 26px;
}

.game-card-top img {
  width: 118px;
  height: 118px;
  border-radius: 26px;
  box-shadow: 0 0 26px rgba(102, 229, 239, 0.22);
  margin-bottom: 20px;
}

.game-card p {
  margin-top: 14px;
  color: var(--soft);
}

.meta-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.meta-list strong {
  color: var(--mist);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-tile {
  min-height: 230px;
  padding: 24px;
}

.feature-tile strong {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 1.12rem;
}

.feature-tile.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 22px;
  align-items: center;
}

.feature-tile img,
.poster img,
.gallery-item img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.gallery-item img {
  height: 220px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.gallery-caption {
  padding: 16px;
}

.gallery-caption strong {
  display: block;
}

.gallery-caption span {
  color: var(--muted);
  font-size: 0.94rem;
}

.content {
  max-width: 920px;
  padding: 74px 0;
}

.content h1 {
  font-size: 4rem;
}

.content h2 {
  margin-top: 42px;
  font-size: 1.85rem;
}

.content p,
.content li {
  color: #d5dee5;
}

.content p {
  margin-top: 14px;
}

.content ul {
  padding-left: 22px;
}

.policy-box {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.support-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 22px;
  margin-top: 34px;
}

.support-tile {
  padding: 24px;
}

.email-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: #11151e;
  font-weight: 950;
}

.footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #05070b;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--soft);
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-inner,
  .showcase,
  .feature-tile.wide,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .studio-strip,
  .feature-grid,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-media,
  .screenshot-stack {
    min-height: 470px;
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 14px;
    font-size: 0.78rem;
  }

  .nav-links a {
    justify-content: flex-start;
    min-height: 30px;
    padding: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 86px 0 58px;
  }

  h1 {
    max-width: 100%;
    font-size: 2.55rem;
    overflow-wrap: break-word;
  }

  h2,
  .content h1 {
    font-size: 2rem;
    overflow-wrap: break-word;
  }

  .lead {
    max-width: 100%;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .actions {
    width: 100%;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    width: 100%;
  }

  .studio-strip,
  .feature-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .showcase-media,
  .screenshot-stack {
    min-height: auto;
  }

  .screen {
    position: relative;
    inset: auto;
    width: 100% !important;
    margin-bottom: 14px;
  }

  .screen.secondary,
  .screen.tertiary {
    aspect-ratio: 16 / 9;
  }

  .gallery-item img {
    height: auto;
  }

  .meta-list li {
    flex-direction: column;
    gap: 4px;
  }
}
