:root {
  --bg: #f5f5f7;
  --text: #111;
  --surface: rgba(255, 255, 255, 0.4);
  --border: rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
  --radius-pill: 999px;
  --blue: #2558ed;
  /* Apple system blue */
  --blue-hover: #3281fc;
  --blue-active: #0e6fd9;
  --nav-offset: 80px;
  --hero-pad: 50px;
  --hero-top-pad: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1c;
    --text: #fafafa;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  }
}

.price {
  display: flex;
  gap: 8px;
  /* space between prices */
  align-items: baseline;
  /* align nicely on the text baseline */
}

.old-price {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.6);
  /* gray for old price */
  font-size: 16px;
}

.new-price {
  color: white;
  /* highlight color for new price */
  font-weight: bold;
  font-size: 20px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.text-stack {
  position: relative;
  display: inline-block;
}

/* Back layer: gradient + blur */
.text.glow {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(-45deg,
      #FF3B30, #FF9500, #FFCC00, #34C759, #00C7BE, #007AFF, #5856D6);
  -webkit-background-clip: text;
  color: transparent;
  filter: blur(7px);
  z-index: 0;
  mix-blend-mode: lighten;
}

/* Front layer: white text */
.text.front {
  position: relative;
  color: white;
  z-index: 1;
}

/* Shared text styling */
.text {
  font-size: 48px;
  font-weight: bold;
}

/* Capsule nav */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1240px, calc(100% - 40px));
  border-radius: 80px;
  background: var(--surface);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: inherit;
  text-decoration: none;
}

/* Brand turns white while nav overlays the hero */
.nav--on-hero .brand {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius-pill);
  line-height: 1;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
  transition: background-color 120ms ease, filter 120ms ease, color 120ms ease;
}

.btn-download {
  background: var(--blue);
  color: #fff;
}

.btn-download:hover {
  background: var(--blue-hover);
  text-decoration: none;
}

.btn-download:active {
  background: var(--blue-active);
}

/* White button variant for dark backgrounds */
.btn--white {
  background: #ffffff;
  color: #111;
  border: 1px solid var(--border);
}

.btn--white:hover {
  background: #f2f2f2;
}

.btn--white:active {
  background: #e8e8e8;
}

/* Page placeholder spacing so the header has room */
.page {
  min-height: 60vh;
  padding: 0 24px 16px;
}

/* Mobile: let the header sit flush if needed */
@media (max-width: 500px) {
  .nav {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    border: none;
  }

  .nav__inner {
    padding: 12px;
  }
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 80px auto 100px auto;
  padding: 20px;
  text-align: center;
}

.hero__icon {
  width: 400px;
  height: 400px;
  margin: 10px auto 24px auto;
  position: relative;
}

.hero__icon-img {
  width: 100%;
  height: 100%;
}

.hero__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 10px;
}

.hero__tagline {
  font-size: clamp(32px, 7vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 auto 28px auto;
  padding: 0 12px;
  color: #000;
}

.hero__art {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 39, 124, 0.25), rgba(157, 74, 254, 0.25), rgba(18, 226, 255, 0.25));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12), inset 0 0 0 1px var(--border);
  overflow: hidden;
}

@media (max-width: 600px) {
  .hero {
    margin: 40px auto 60px auto;
    padding: 12px;
  }

  .hero__icon {
    width: 120px;
    height: 120px;
  }
}

/* Ensure hero title and tagline align in gradient hero */
.showcase--hero .hero__title {
  margin-left: 0;
  color: #fff;
  text-align: center;
}

.showcase--hero .hero__tagline {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  padding: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

/* Spacing for hero CTA below tagline */
.hero-cta {
  margin-top: 14px;
}

/* Section intro */
.section {
  max-width: 1240px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

/* Reduce the gap before the footer by tightening the last block's margin */
.page>*:last-child {
  margin-bottom: 16px !important;
}

.eyebrow {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--blue);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(56px, 10.4vw, 70px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 14px 0;
  color: #111;
}

.section__lede {
  font-size: clamp(16px, 2.2vw, 22px);
  color: #000;
  font-weight: 600;
  max-width: 820px;
}

@media (prefers-color-scheme: dark) {
  .section__lede {
    color: rgba(255, 255, 255, 0.78);
  }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .section__title {
    color: #fff;
  }

  .feature-card__media {
    background: rgba(255, 255, 255, 0.06);
  }

  .footer__copy {
    color: rgba(255, 255, 255, 0.8);
  }

  /* Slight white border on all feature cards with images */
  .features .feature-card__media {
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* Features section alignment */
.features {
  text-align: left;
}

.features .section__intro {
  max-width: 820px;
}

.features .section__lede {
  margin: 0;
}

/* Horizontal cards carousel */
.cards-wrap {
  margin-top: 28px;
  /* Full-bleed to viewport edges */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  /* Shared left padding for alignment inside the scroller */
  --cards-left-pad: max(20px, calc((100vw - 1240px) / 2 + 20px));
  --cards-right-pad: max(20px, calc((100vw - 1240px) / 2 + 20px));
}

.cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 44%);
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  /* allow shadows to bleed vertically */
  padding: 8px var(--cards-right-pad) 12px var(--cards-left-pad);
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--cards-left-pad);
  scroll-padding-right: var(--cards-right-pad);
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbars */
  -ms-overflow-style: none;
  /* IE/Edge */
  scrollbar-width: none;
  /* Firefox */
}

.cards::-webkit-scrollbar {
  display: none;
  height: 0;
}

.feature-card {
  background: transparent;
  border: none;
  scroll-snap-align: start;
  display: block;
}

.feature-card__media {
  background: clear;
  border-radius: 26px;
  /* shadow removed per request */
  box-shadow: none;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  /* default for importing section */
  background-size: fit;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 1);
}

.feature-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Importing section images should fit without cropping */
.features:not(.features--tall) .feature-card__img {
  object-fit: contain;
}

/* Platform color themes */
.feature-card__media.platform-ps {
  background-color: #003087;
}

.feature-card__media.platform-xbox {
  background-color: #52b043;
}

.feature-card__media.platform-nintendo {
  background-color: #e60012;
}

.feature-card__media.platform-epic {
  background-color: #121212;
}

.feature-card__media.platform-retro {
  background-color: #121212;
}

.feature-card__media.platform-gog {
  background-color: #8636FF;
}

.feature-card__media.platform-steam {
  background-color: #000000;
}

.feature-card__body {
  margin-top: 12px;
}

.feature-card__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.feature-card__text {
  font-size: 15px;
  line-height: 1.5;
  color: #000;
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  .feature-card__text {
    color: rgba(255, 255, 255, 0.78);
  }
}

/* Make the first card a bit wider on large screens for rhythm */
@media (min-width: 900px) {
  .cards {
    grid-auto-columns: minmax(320px, 36%);
  }
}

/* Second features section: wider cards and tall media (height = width * 2) */
.features.features--tall .cards {
  grid-auto-columns: minmax(340px, 56%);
}

.features.features--tall .feature-card__media {
  aspect-ratio: 1 / 1.25;
  /* reduced ~90px at ~595px width */
}

@media (min-width: 900px) {
  .features.features--tall .cards {
    grid-auto-columns: minmax(380px, 52%);
  }
}

/* Large showcase image section */
.showcase {
  margin: 0 0 60px 0;
}

/* Full-bleed hero showcase with gradient and no frame */
.showcase--hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  background: linear-gradient(130deg, #BF30BF, #1332DA);
  /* Pull up under the fixed nav and add compensating padding */
  margin-top: 0;
  padding: 0;
  /* Let hero size naturally with content */
  box-sizing: border-box;
}

.hero-stack {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 100pt;
  gap: 20px;
}

.hero-stack__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  flex: 0 0 auto;
  min-height: 0;
  padding-bottom: 50pt;
}

.hero-stack__img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--hero-top-pad);
  /* natural height; no viewport cap */
  object-fit: contain;
}

.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
  padding: 0 0 20px;
}

.hero-footer__left {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 14px;
}

/* Tweak icon size and spacing for bottom-left grouping */
.showcase--hero .hero__icon {
  width: 250px;
  height: 250px;
  margin: 0 0 24px 0;
}

.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Remove default h1 margins to save vertical space */
.showcase--hero .hero__title {
  margin: 0;
}

.hero-footer__cta {
  align-self: flex-end;
}

@media (max-width: 900px) {
  .showcase--hero {
    padding: 0;
  }

  .hero-stack {
    gap: 16px;
    height: auto;
  }

  /* Tighter padding on small screens */
  :root {
    --hero-pad: 20px;
    --hero-top-pad: 12px;
  }

  .hero-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-footer__cta {
    align-self: stretch;
    text-align: center;
  }
}

/* Rest features grid */
.rest {
  text-align: left;
}

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

.rest-item__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.rest-item__text {
  font-size: 15px;
  line-height: 1.5;
  color: gray;
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  .rest-item__text {
    color: gray;
  }
}

@media (max-width: 900px) {
  .rest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rest-grid {
    grid-template-columns: 1fr;
  }
}

/* Gamery+ bottom gradient section */
.plus {
  margin: 60px 0 60px 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  background: linear-gradient(165deg, #8A00A6, #021A99);
  position: relative;
  overflow: hidden;
}

.plus__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 20px;
  position: relative;
  min-height: auto;
  /* let the section size naturally */
}

.plus__content {
  max-width: 680px;
}

.plus__title {
  color: #fff;
  margin: 0 0 12px 0;
  font-size: clamp(40px, 7vw, 64px);
}

.plus__lede {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 600;
}

.plus .eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

.plus__media {
  position: absolute;
  top: 50%;
  right: 0;
  width: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  transform: translateY(-50%);
}

.plus__img {
  width: auto;
  height: 100%;
  object-fit: contain;
  max-height: 300px;
}

@media (max-width: 900px) {
  .plus__inner {
    padding: 56px 16px;
    min-height: auto;
  }

  .plus__media {
    position: static;
    width: auto;
    height: auto;
    margin-top: 16px;
    justify-content: center;
    transform: none;
  }

  .plus__img {
    width: min(360px, 90vw);
    height: auto;
  }
}

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

.footer {
  /* Removed top divider line */
  border-top: none;
  padding: 28px 20px 60px;
}

.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer__logo {
  font-weight: 700;
}

.footer__copy {
  font-size: 13px;
  opacity: 0.8;
}

.footer__nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.footer__link {
  transition: color 120ms ease;
}

.footer__link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: inherit;
  transition: color 120ms ease, filter 120ms ease;
}

.footer__icon {
  width: 22px;
  height: 22px;
  display: block;
}

.footer__social-link:hover {
  color: var(--blue);
}

.footer__divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

@media (max-width: 640px) {
  .footer__social {
    justify-content: center;
  }
}