:root {
  --page-bg: #070b12;
  --page-surface: #101722;
  --page-surface-strong: #151e2b;
  --page-text: #f6f8fb;
  --page-muted: #aab4c3;
  --page-accent: #54d9f3;
  --page-accent-strong: #2ab7dc;
  --page-border: rgba(255, 255, 255, 0.11);
  --page-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Outfit", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--page-text);
  background: var(--page-bg);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--page-accent) 12%, transparent), transparent 28rem),
    radial-gradient(circle at 88% 35%, color-mix(in srgb, var(--page-accent-strong) 9%, transparent), transparent 30rem);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

header {
  min-height: 72px;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--page-border);
  background: color-mix(in srgb, var(--page-bg) 92%, transparent);
}

header .logo {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--page-text);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

header .logo-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.logo-divider {
  color: var(--page-muted);
}

.subtitle-game {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.05em;
}

header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex: 0 0 auto;
}

header nav a {
  color: var(--page-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

header nav a:hover,
header nav a:focus-visible {
  color: var(--page-text);
}

main {
  overflow: hidden;
}

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

.game-hero,
.feature-section,
.story-section,
.quick-section,
.game-facts,
.showcase,
.closing-cta {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.game-facts {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  border: 1px solid var(--page-border);
  border-radius: 28px;
  background: var(--page-surface);
}

.game-facts h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.facts-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--page-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.game-facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.game-facts dl div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--page-border);
  border-radius: 14px;
  background: var(--page-surface-strong);
}

.game-facts dt {
  color: var(--page-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
  line-height: 1.35;
}

.game-hero {
  min-height: 650px;
  padding: clamp(4rem, 9vw, 8rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}

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

.hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.hero-copy .subtitle {
  margin: 1.4rem 0 0;
  color: var(--page-accent);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.3;
}

.hero-copy .description {
  max-width: 650px;
  margin: 1rem 0 2rem;
  color: var(--page-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.app-badge,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--page-border);
  border-radius: 14px;
  color: var(--page-bg);
  background: var(--page-text);
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-badge:hover,
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--page-accent) 18%, transparent);
}

.app-badge img {
  width: 23px;
  height: 27px;
  object-fit: contain;
}

.app-badge span {
  display: grid;
  line-height: 1.05;
  text-align: left;
}

.app-badge small {
  font-size: 0.64rem;
  font-weight: 600;
}

.app-badge strong {
  font-size: 1.08rem;
}

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

.hero-art::before {
  content: "";
  position: absolute;
  width: min(100%, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--page-accent) 13%, transparent);
  filter: blur(45px);
}

.game-phone {
  position: relative;
  aspect-ratio: 1406 / 2822;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.48));
}

.game-phone-screen {
  position: absolute;
  top: 3.5%;
  left: 7.1%;
  width: 85.8%;
  height: 93.3%;
  overflow: hidden;
  border-radius: 28px;
}

.game-phone-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.game-phone-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.hero-device-stack {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  height: 560px;
}

.hero-device {
  position: absolute;
  width: min(58%, 280px);
}

.hero-device-back {
  z-index: 1;
  top: 0;
  left: 4%;
  transform: rotate(-8deg) scale(0.92);
  opacity: 0.88;
}

.hero-device-front {
  z-index: 2;
  right: 3%;
  bottom: 0;
  transform: rotate(4deg);
}

.reflectrum-banner-hero {
  display: block;
  min-height: 0;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.reflectrum-hero-banner {
  width: 100%;
  display: block;
  border: 1px solid var(--page-border);
  border-radius: clamp(14px, 2.2vw, 26px);
  box-shadow: var(--page-shadow);
}

.reflectrum-hero-details {
  padding: clamp(1.25rem, 2.6vw, 2rem) clamp(0.15rem, 1vw, 0.75rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.reflectrum-hero-details p {
  max-width: 52rem;
  margin: 0;
  color: var(--page-muted);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
  line-height: 1.65;
}

.feature-section,
.story-section,
.quick-section,
.showcase {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  max-width: none;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.story-copy h2,
.showcase h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-heading p,
.story-copy p {
  color: var(--page-muted);
  font-size: 1.05rem;
}

.feature-grid,
.quick-grid {
  display: grid;
  gap: 1rem;
}

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

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

.feature-card,
.quick-card {
  border: 1px solid var(--page-border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--page-surface) 90%, transparent);
}

.feature-card {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.quick-card {
  padding: 1.4rem;
}

.feature-card h3,
.quick-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  line-height: 1.2;
}

.feature-card h3 {
  font-size: 1.35rem;
}

.quick-card h3 {
  font-size: 1.05rem;
}

.feature-card p,
.quick-card p {
  margin: 0;
  color: var(--page-muted);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.story-section.reverse .story-visual {
  order: 2;
}

.story-visual {
  position: relative;
  min-height: 490px;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--page-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--page-accent) 16%, transparent), transparent 55%),
    var(--page-surface);
}

.story-phone {
  width: min(64%, 270px);
}

.story-visual > img {
  width: auto;
  max-height: 560px;
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);
}

.story-visual .story-item-overlay {
  position: absolute;
  z-index: 3;
  right: 6%;
  bottom: 8%;
  width: clamp(92px, 13vw, 150px);
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.42));
  transform: rotate(8deg);
}

.story-copy .eyebrow {
  margin-bottom: 0.8rem;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.showcase {
  padding-bottom: 3rem;
}

.showcase h2 {
  margin-bottom: 2.5rem;
}

.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1.15rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.25rem 0 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--page-border) transparent;
}

.screenshot-strip img {
  width: 100%;
  border: 1px solid var(--page-border);
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.closing-cta {
  margin-top: 3rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--page-border);
  border-radius: 26px;
  background: var(--page-surface-strong);
}

.closing-cta > img {
  width: clamp(76px, 9vw, 112px);
  aspect-ratio: 1;
  border-radius: 23%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
}

.closing-cta p {
  margin: 0 0 0.3rem;
}

.closing-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.cta-button {
  color: var(--page-bg);
  background: var(--page-accent);
  white-space: nowrap;
}

footer {
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--page-border);
  color: var(--page-muted);
  text-align: center;
}

footer p {
  margin: 0.3rem 0;
  font-size: 0.85rem;
}

footer a {
  color: var(--page-text);
}

.weft-page {
  --page-bg: #f0ead9;
  --page-surface: #e6ddc8;
  --page-surface-strong: #dce8f2;
  --page-text: #18202a;
  --page-muted: #5f6872;
  --page-accent: #1879ce;
  --page-accent-strong: #5da6df;
  --page-border: rgba(42, 58, 70, 0.16);
  --page-shadow: 0 24px 65px rgba(79, 67, 42, 0.18);
}

.weft-page header {
  background: rgba(240, 234, 217, 0.92);
}

.weft-page .logo-mark {
  filter: invert(1);
}

.weft-page .app-badge {
  color: #fff;
  background: #000;
  border-color: #000;
}

.weft-page .app-badge img {
  filter: invert(1);
}

.zero-page {
  --page-bg: #0c100d;
  --page-surface: #161c17;
  --page-surface-strong: #202720;
  --page-text: #f2efdf;
  --page-muted: #b9b9ad;
  --page-accent: #94b9d6;
  --page-accent-strong: #6d9fc3;
  --page-border: rgba(230, 228, 209, 0.13);
}

.reflectrum-page {
  --page-bg: #030914;
  --page-surface: #0b1726;
  --page-surface-strong: #13233a;
  --page-text: #f6fbff;
  --page-muted: #9fb1c5;
  --page-accent: #4bd9f4;
  --page-accent-strong: #8c55f4;
  --page-border: rgba(93, 205, 243, 0.17);
}

.market-page {
  --page-bg: #0d1514;
  --page-surface: #15221f;
  --page-surface-strong: #17302b;
  --page-text: #fff8dc;
  --page-muted: #b7c5bb;
  --page-accent: #ffd052;
  --page-accent-strong: #59c88b;
  --page-border: rgba(255, 220, 111, 0.16);
}

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

  .hero-copy .description {
    margin-inline: auto;
  }

  .hero-art {
    min-height: 540px;
  }

  .reflectrum-banner-hero {
    text-align: left;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .story-section,
  .story-section.reverse {
    grid-template-columns: 1fr;
  }

  .story-section.reverse .story-visual {
    order: initial;
  }

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

@media (max-width: 680px) {
  .game-facts dl {
    grid-template-columns: 1fr;
  }
  header {
    min-height: auto;
    padding-block: 1rem;
    align-items: flex-start;
  }

  header .logo {
    gap: 0.45rem;
    flex-wrap: wrap;
  }

  header .logo-mark {
    width: 25px;
    height: 25px;
  }

  .brand-name {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .subtitle-game {
    width: calc(100% - 30px);
    margin-left: 30px;
    font-size: 0.78rem;
  }

  .logo-divider {
    display: none;
  }

  header nav {
    gap: 0.8rem;
  }

  header nav a {
    font-size: 0.75rem;
  }

  .game-hero,
  .feature-section,
  .story-section,
  .quick-section,
  .showcase,
  .closing-cta {
    width: min(100% - 2rem, 1180px);
  }

  .game-hero {
    padding: 4rem 0 3rem;
    gap: 2.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
    white-space: normal;
  }

  .hero-art,
  .reflectrum-hero-art {
    min-height: 440px;
  }

  .reflectrum-banner-hero {
    padding: 1rem 0 4rem;
  }

  .reflectrum-hero-details {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-device-stack {
    width: min(100%, 360px);
    height: 440px;
  }

  .hero-device {
    width: min(57%, 210px);
  }

  .game-phone-screen {
    border-radius: 20px;
  }

  .story-visual {
    min-height: 390px;
    padding: 1.25rem;
  }

  .story-phone {
    width: min(72%, 220px);
  }

  .story-visual .story-item-overlay {
    right: 2%;
    bottom: 7%;
    width: 96px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-strip {
    grid-auto-columns: minmax(245px, 78vw);
  }

  .closing-cta {
    grid-template-columns: auto 1fr;
  }

  .closing-cta .cta-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

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

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