:root {
  --gold: #f7b83e;
  --white: #ffffff;
  --ink: #07101b;
  --muted: #cfd7e3;
  --button-bg: rgba(20, 25, 32, 0.82);
  --button-border: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background: var(--ink);
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(4, 10, 18, 0.9) 0%, rgba(4, 10, 18, 0.72) 34%, rgba(4, 10, 18, 0.32) 62%, rgba(4, 10, 18, 0.7) 100%),
    linear-gradient(0deg, rgba(4, 10, 18, 0.96) 0%, rgba(4, 10, 18, 0.16) 48%, rgba(4, 10, 18, 0.42) 100%),
    url("assets/mithos-ruins-bg.png");
  background-position: center;
  background-size: cover;
}

.site-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  width: min(82vw, 1530px);
  margin: 0 auto;
  padding: 26px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 176px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(36px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.nav-links a,
.play-link {
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.play-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 174px;
  min-height: 58px;
  padding: 0 26px;
  border: 1px solid rgba(247, 184, 62, 0.88);
  border-radius: 999px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.play-link:hover,
.play-link:focus-visible {
  background: rgba(247, 184, 62, 0.1);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  width: min(82vw, 1530px);
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: 72px 0 74px;
}

.hero-copy {
  max-width: 660px;
  transform: translateY(-44px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 34px;
  color: var(--gold);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 2px;
  height: 25px;
  background: var(--gold);
}

h1 {
  margin: 0;
  font-size: clamp(72px, 7vw, 126px);
  line-height: 0.98;
  font-weight: 900;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h1 span:last-child {
  color: var(--gold);
}

.intro {
  max-width: 660px;
  margin: 44px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 1.45vw, 25px);
  line-height: 1.62;
  font-weight: 500;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 52px;
}

.store-button {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  width: 218px;
  min-height: 82px;
  padding: 14px 22px;
  border: 1px solid var(--button-border);
  border-radius: 10px;
  background: var(--button-bg);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.store-button:hover,
.store-button:focus-visible {
  border-color: rgba(247, 184, 62, 0.58);
}

.store-button small,
.store-button strong {
  display: block;
}

.store-button small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 800;
}

.store-button strong {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.08;
}

.store-icon {
  position: relative;
  width: 34px;
  height: 34px;
}

.play-store::before {
  content: "";
  position: absolute;
  inset: 1px 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: linear-gradient(135deg, #ffd95a, #f4a92e 58%, #49c7ff 59%, #49c7ff);
}

.app-store::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 21px;
  height: 24px;
  border-radius: 45% 45% 48% 48%;
  background: var(--gold);
}

.app-store::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  width: 11px;
  height: 14px;
  border-radius: 100% 0 100% 0;
  background: var(--gold);
  transform: rotate(28deg);
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: min(100%, 665px);
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.48));
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 150px 1fr;
    row-gap: 18px;
    width: min(88vw, 760px);
  }

  .brand {
    width: 138px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    font-size: 13px;
    letter-spacing: 3px;
  }

  .play-link {
    min-width: 136px;
    min-height: 48px;
    padding: 0 18px;
    font-size: 13px;
    letter-spacing: 3px;
  }

  .hero {
    grid-template-columns: 1fr;
    width: min(88vw, 760px);
    min-height: auto;
    padding: 76px 0 56px;
  }

  .hero-logo {
    grid-row: 1;
    justify-content: flex-start;
    padding: 0 0 34px;
  }

  .hero-logo img {
    width: min(86vw, 510px);
  }

  .hero-copy {
    max-width: 100%;
    transform: none;
  }

  .eyebrow {
    margin-bottom: 26px;
    font-size: 14px;
    letter-spacing: 5px;
  }

  .intro {
    margin-top: 28px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    background-position: center top;
  }

  .site-header {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .brand {
    width: 126px;
  }

  .play-link {
    justify-self: start;
    grid-row: 3;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(58px, 19vw, 76px);
  }

  .intro {
    font-size: 18px;
  }

  .store-buttons {
    margin-top: 36px;
  }

  .store-button {
    width: min(100%, 230px);
  }
}
