@font-face {
  font-family: Manrope;
  src: url("fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #10121e;
  --panel: #171a2a;
  --ink: #f8f6f2;
  --muted: #b7b8c9;
  --line: #303344;
  --gold: #f4c776;
  --heading-font: Manrope, system-ui, sans-serif;
  --body-font: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-block-start: 1.5rem; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 1rem/1.6 var(--body-font);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); }

.wrap {
  width: min(76rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: .6rem 1rem;
  border-radius: .4rem;
  background: var(--gold);
  color: var(--background);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}

.header-layout {
  min-height: 5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .65rem;
  font: 800 1.27rem/1 var(--heading-font);
  letter-spacing: -.055em;
  text-decoration: none;
}

.brand img {
  border: 1px solid #3b3947;
  border-radius: .63rem;
}

.main-nav, .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem clamp(1.1rem, 2.7vw, 2.35rem);
}

.main-nav a, .footer-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  font-size: .925rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover, .footer-nav a:hover,
.main-nav a[aria-current], .footer-nav a[aria-current] { color: var(--ink); }

.header-cta {
  justify-self: end;
  padding: .55rem .95rem;
  border: 1px solid #80673f;
  border-radius: .55rem;
  color: var(--gold);
  font-size: .925rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--gold);
  color: var(--background);
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% 46%, #282840 0%, transparent 52%),
    linear-gradient(155deg, #141625, #10121e 66%);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr .99fr;
  align-items: center;
  min-height: clamp(33rem, 50vw, 43rem);
  padding-block: 3.35rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: 1rem;
}

.tagline {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.37rem;
  color: var(--gold);
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .025em;
}

.tagline::before {
  width: 1.65rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  font-size: clamp(3.1rem, 5.85vw, 5.55rem);
  font-weight: 800;
  line-height: 1.035;
  letter-spacing: -.064em;
  word-spacing: .06em;
}

.hero h1 span { display: block; color: var(--gold); }

.hero-description {
  max-width: 25rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.45rem;
  margin-top: 2rem;
}

.store-badge {
  display: inline-block;
  flex-shrink: 0;
  border-radius: .6rem;
}

.store-badge img { width: 9.75rem; height: auto; }
.store-badge:hover { filter: brightness(1.12); }

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: #747588;
}

.text-link:hover { text-decoration-color: var(--gold); }

.availability {
  margin-top: .95rem;
  color: var(--muted);
  font-size: .875rem;
}

.availability span { padding-inline: .3em; }

.hero-art {
  isolation: isolate;
  position: relative;
  width: 100%;
  aspect-ratio: 1.08;
}

.orbit {
  position: absolute;
  z-index: -1;
  width: 94%;
  aspect-ratio: 1;
  top: 50%;
  left: 53%;
  border: 1px solid rgba(191, 176, 239, .16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-inner {
  width: 73%;
  background: radial-gradient(circle at 60% 63%, #8469cf35, #4d46621a 63%, transparent);
  border-color: #bcaaff29;
}

.orbit::after {
  position: absolute;
  top: 16%;
  right: 12%;
  width: .37rem;
  height: .37rem;
  border-radius: 50%;
  background: #cbb9f5;
  box-shadow: 0 0 16px #aa91fd;
  content: "";
}

.orbit-inner::after {
  top: 80%;
  right: auto;
  left: 9%;
  background: var(--gold);
  box-shadow: 0 0 16px #f4c77696;
}

.hero-screen {
  position: absolute;
  height: auto;
  border: 1px solid #635b78;
  border-radius: clamp(.8rem, 2vw, 1.7rem);
  background: #201d2c;
  box-shadow: 0 1.65rem 3rem #0506109c, 0 0 0 4px #171725;
}

.hero-screen-front {
  width: 44%;
  top: 2%;
  left: 17%;
  transform: rotate(-9deg);
}

.hero-screen-back {
  width: 41.5%;
  top: 12%;
  right: 7%;
  border-color: #504862;
  transform: rotate(12deg);
}

.section { padding-block: clamp(3.75rem, 8vw, 7rem); }

.section h2, .download-panel h2 {
  font-size: clamp(2.35rem, 4.6vw, 4.05rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.055em;
  word-spacing: .035em;
  text-wrap: balance;
}

.features { background: #141625; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2.25rem, 4.4vw, 3.75rem);
  border-block: 1px solid var(--line);
}

.feature { padding: 1.85rem clamp(1.25rem, 3vw, 3rem) 2rem; }
.feature:first-child { padding-inline-start: 0; }
.feature:last-child { padding-inline-end: 0; }
.feature + .feature { border-inline-start: 1px solid var(--line); }

.feature-icon {
  display: inline-grid;
  width: 2.7rem;
  height: 2.7rem;
  padding: .62rem;
  border: 1px solid currentColor;
  border-radius: .65rem;
  place-content: center;
}

.rank-icon {
  gap: .21rem;
  justify-items: start;
  color: var(--gold);
  background: #f4c7760b;
}

.rank-icon i {
  width: 1.12rem;
  height: .12rem;
  border-radius: 2px;
  background: currentColor;
}

.rank-icon i:nth-child(2) { width: .86rem; }
.rank-icon i:nth-child(3) { width: .62rem; }

.plan-icon {
  color: #c4b3ff;
  background: #c4b3ff0b;
}

.plan-icon i {
  display: grid;
  width: 1.05rem;
  height: 1rem;
  border: 1.5px solid;
  border-radius: .19rem;
  place-items: center;
}

.plan-icon i::after {
  width: .48rem;
  height: .29rem;
  border-width: 0 0 1.5px 1.5px;
  border-style: solid;
  transform: rotate(-45deg) translate(.03rem, -.04rem);
  content: "";
}

.reflect-icon {
  grid-auto-flow: column;
  align-items: end;
  gap: .17rem;
  color: #a6decb;
  background: #a6decb0b;
}

.reflect-icon i {
  width: .2rem;
  height: .84rem;
  border-radius: 2px;
  background: currentColor;
}

.reflect-icon i:first-child { height: .43rem; }
.reflect-icon i:nth-child(2) { height: .65rem; }

.feature h3 {
  margin-top: .9rem;
  font-size: 1.36rem;
  letter-spacing: -.04em;
}

.feature p {
  max-width: 21rem;
  margin-top: .42rem;
  color: var(--muted);
}

.gallery { border-top: 1px solid var(--line); }

.gallery-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.3rem;
  margin-bottom: 1.65rem;
}

.gallery-controls, .shot-dialog-controls {
  display: flex;
  gap: .5rem;
}

.gallery-controls button, .shot-dialog button {
  min-height: 2.75rem;
  padding: .5rem .9rem;
  border: 1px solid #51536a;
  border-radius: .5rem;
  background: #1a1d2d;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.gallery-controls button:hover:not([aria-disabled="true"]), .shot-dialog button:hover:not([aria-disabled="true"]) {
  border-color: var(--gold);
  color: var(--gold);
}

button[aria-disabled="true"] {
  opacity: .44;
  cursor: default;
}

.gallery-track {
  --gallery-gap: clamp(.75rem, 1.5vw, 1.15rem);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * var(--gallery-gap)) / 4.2);
  gap: var(--gallery-gap);
  margin: 0;
  padding: .3rem .05rem .9rem;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-color: #626078 #191b2b;
  scrollbar-width: thin;
}

.gallery-track li {
  min-width: 0;
  scroll-snap-align: start;
}

.screenshot-link {
  display: block;
  overflow: hidden;
  border: 1px solid #383a51;
  border-radius: 1rem;
  background: #151a2b;
}

.screenshot-link img { width: 100%; height: auto; }
.screenshot-link:hover { border-color: var(--gold); }
.screenshot-link:focus-visible { outline-offset: -3px; }

.download { padding-bottom: clamp(3.75rem, 8vw, 7rem); }

.download-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 3rem;
  overflow: hidden;
  min-height: 13rem;
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: 1.2rem;
  background: linear-gradient(115deg, #ffe4b2 0%, #f4c776 58%, #dcac62);
  color: #211929;
}

.download-panel::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -6rem;
  width: 29rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 1.85rem, #4b2c5324 1.9rem 1.96rem);
  transform: translateY(-50%);
  mask-image: linear-gradient(90deg, transparent, #000);
  content: "";
}

.download-panel h2 { text-wrap: initial; }
.download-panel p { margin-top: .6rem; font-size: 1.125rem; }
.download-panel :focus-visible { outline-color: var(--background); }

.site-footer {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
}

.footer-meta {
  margin-top: .8rem;
  color: var(--muted);
  font-size: .83rem;
}

html:has(.shot-dialog[open]) { overflow: hidden; }

.shot-dialog {
  width: fit-content;
  max-width: calc(100% - 1rem);
  max-height: calc(100% - 1rem);
  padding: .75rem;
  border: 1px solid #444860;
  border-radius: 1rem;
  background: var(--panel);
  color: var(--ink);
}

.shot-dialog::backdrop { background: #070811dc; }

.shot-dialog-header, .shot-dialog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.shot-dialog-header h2 {
  font-size: 1rem;
  line-height: 1.3;
}

.shot-dialog img {
  width: auto;
  height: min(39rem, calc(100dvh - 8.5rem));
  max-width: 100%;
  margin: .5rem auto;
  border-radius: .45rem;
  object-fit: contain;
}

.shot-dialog-controls span { color: var(--muted); font-size: .9rem; }

.policy {
  padding-block: clamp(3.25rem, 8vw, 6rem);
}

.policy-heading {
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.policy-heading h1 {
  font-size: clamp(2.85rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.055em;
  word-spacing: .035em;
}

.policy-heading p {
  max-width: 47rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.policy a { color: var(--gold); }

.policy-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 44rem);
  gap: 2rem clamp(1.75rem, 5vw, 5rem);
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

.policy-nav {
  position: sticky;
  top: 1rem;
  align-self: start;
  display: grid;
  padding: .6rem 1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--panel);
}

.policy-nav a {
  padding-block: .55rem;
  font-size: .925rem;
  font-weight: 600;
}

.policy-nav a + a { border-top: 1px solid var(--line); }

.policy-body section + section { margin-top: 2rem; }

.policy-body h2 {
  font-size: clamp(1.42rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.047em;
}

.policy-body p, .policy-body li { color: var(--muted); overflow-wrap: anywhere; }
.policy-body p, .policy-body ul { margin-top: .65rem; }
.policy-body ul { padding-inline-start: 1.25rem; }
.policy-body li + li { margin-top: .35rem; }
.policy-body strong { color: var(--ink); }

@media (max-width: 58rem) {
  .hero-layout { min-height: 32rem; }
  .hero-art { width: 107%; }
  .gallery-track { grid-auto-columns: calc((100% - 3 * var(--gallery-gap)) / 3.15); }
}

@media (max-width: 47rem) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding-top: 3.2rem;
    padding-bottom: 2.4rem;
  }

  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(2.6rem, 9.5vw, 4.2rem); }
  .hero-art { width: min(100%, 28rem); margin-inline: auto; }
  .hero-description { margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.25rem; }
  .tagline { margin-bottom: .9rem; }
  .desktop-break { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { padding: 1.5rem 0; }
  .feature + .feature { border-inline-start: 0; border-top: 1px solid var(--line); }
  .feature p { max-width: 33rem; }
  .gallery-track { grid-auto-columns: calc((100% - 2 * var(--gallery-gap)) / 2.2); }
  .policy-layout { grid-template-columns: minmax(0, 1fr); }
  .policy-nav { position: static; }
}

@media (max-width: 35rem) {
  .header-layout {
    grid-template-columns: 1fr auto;
    gap: .25rem 1.25rem;
    padding-block: .75rem .35rem;
  }

  .main-nav {
    grid-area: 2 / 1 / auto / -1;
    column-gap: 1.35rem;
  }

  .download-panel { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, button { transition: color .17s, background-color .17s, border-color .17s; }
}
