:root {
  --bg: #0d0902;
  --bg-soft: #171006;
  --panel: rgba(21, 15, 7, 0.74);
  --panel-strong: rgba(18, 13, 6, 0.9);
  --line: rgba(255, 216, 120, 0.14);
  --line-strong: rgba(255, 221, 148, 0.28);
  --text: #f7f1df;
  --muted: rgba(247, 241, 223, 0.7);
  --accent: #ffd76b;
  --accent-line: rgba(255, 215, 107, 0.42);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 201, 79, 0.18), transparent 28%),
    radial-gradient(circle at 80% 74%, rgba(201, 140, 28, 0.18), transparent 26%),
    linear-gradient(180deg, #1a1205 0%, #080603 100%);
  color: var(--text);
  font-family: Bahnschrift, "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

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

button {
  color: inherit;
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 28px;
  isolation: isolate;
}

.hero__backdrop,
.hero__glow,
.hero__grid {
  position: absolute;
  inset: 0;
}

.hero__backdrop {
  z-index: -2;
  overflow: hidden;
}

.hero__glow {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 211, 104, 0.18), transparent 24%),
    radial-gradient(circle at 78% 68%, rgba(255, 163, 54, 0.14), transparent 20%);
  filter: blur(24px);
}

.hero__grid {
  display: none;
}

.topbar,
.stage {
  width: min(1380px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 4px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.08em;
}

.brand__mark {
  width: 48px;
  height: 48px;
  display: block;
}

.brand__name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.button:hover,
.thumb:hover {
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.06);
}

.stage {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: calc(100svh - 108px);
}

.copy {
  position: relative;
  padding: 30px 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.26em;
}

.copy h1 {
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.summary {
  max-width: 32rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 4px;
}

.button--primary {
  background: linear-gradient(180deg, rgba(236, 241, 247, 0.18), rgba(236, 241, 247, 0.08));
  border-color: rgba(236, 241, 247, 0.34);
}

.button--store {
  justify-content: flex-start;
  min-width: 218px;
}

.store-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1;
}

.store-copy__eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-copy__name {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.microsoft-mark {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  grid-template-rows: repeat(2, 10px);
  gap: 2px;
  flex: 0 0 auto;
}

.microsoft-mark span:nth-child(1) {
  background: #f25022;
}

.microsoft-mark span:nth-child(2) {
  background: #7fba00;
}

.microsoft-mark span:nth-child(3) {
  background: #00a4ef;
}

.microsoft-mark span:nth-child(4) {
  background: #ffb900;
}

.carousel {
  position: relative;
}

.carousel__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 18, 8, 0.96), rgba(14, 10, 5, 0.98));
  overflow: hidden;
  box-shadow: var(--shadow);
  border-radius: 4px;
}

.carousel__image,
.carousel__shade {
  position: absolute;
  inset: 0;
}

.carousel__image {
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  inset: -2px;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 800ms ease;
}

.carousel__image.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel__shade {
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.03), rgba(5, 7, 10, 0.16));
  z-index: 1;
  pointer-events: none;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
}

.carousel__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 82px;
}

.carousel__label,
.carousel__count {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.carousel__label {
  color: var(--muted);
}

.carousel__thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}

.thumb {
  min-width: 0;
  height: 12px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.thumb.is-active {
  background: rgba(242, 245, 247, 0.92);
  border-color: rgba(242, 245, 247, 0.78);
}

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .hero {
    padding: 22px;
  }

  .stage {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: auto;
    padding-bottom: 24px;
  }

  .copy {
    padding: 8px 0 0;
  }

  .summary {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 16px;
  }

  .topbar {
    padding-bottom: 18px;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand__name {
    font-size: 0.92rem;
  }

  .copy h1 {
    font-size: clamp(2.5rem, 15vw, 3.6rem);
  }

  .eyebrow,
  .carousel__label,
  .carousel__count {
    letter-spacing: 0.18em;
  }

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

  .carousel__thumbs {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
