:root {
  color-scheme: dark;
  --bg: #050606;
  --panel: #101112;
  --panel-2: #191b1d;
  --line: rgba(190, 195, 188, 0.16);
  --text: #e4e5df;
  --muted: #a0a49b;
  --subtle: #686d68;
  --steel: #c3c6bd;
  --amber: #a47d4e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 20% 0%, rgba(160, 164, 153, 0.08), transparent 35rem),
    linear-gradient(180deg, #080909 0%, #050606 52%, #0d0e0e 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

.model-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 5, 5, 0.94);
  backdrop-filter: blur(16px);
}

.brand,
.model-header nav,
.buy-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
}

.brand span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(195, 198, 189, 0.32);
  color: var(--steel);
}

.model-header nav {
  gap: clamp(0.8rem, 2vw, 1.6rem);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.model-header nav a:hover {
  color: var(--text);
}

main {
  padding: clamp(2rem, 5vw, 5rem);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(18rem, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 7rem);
}

.product-hero > *,
.preview-strip > *,
.details-grid > *,
.loadout-panel > *,
.hero-copy,
.hero-image {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Rajdhani, Inter, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 42rem;
  font-size: clamp(4.5rem, 10vw, 10rem);
  line-height: 0.82;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

p {
  margin-top: 0;
}

.lead,
.details-grid p,
.preview-strip p,
.loadout-panel p,
.spec-list {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.price-badge {
  display: inline-grid;
  gap: 0.1rem;
  min-width: 6rem;
  margin-top: 1.45rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.price-badge span {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-badge strong {
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
}

.buy-row {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  max-width: 100%;
  min-width: 0;
}

button,
.back-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(195, 198, 189, 0.42);
  background: linear-gradient(180deg, #c3c6bd, #969b91);
  color: #0b0c0d;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 1rem;
  text-transform: uppercase;
}

.asset-buy-button {
  display: inline-flex !important;
  box-sizing: border-box !important;
  width: 8.6rem !important;
  min-width: 0 !important;
  max-width: 8.6rem !important;
  height: 3rem !important;
  min-height: 3rem !important;
  max-height: 3rem !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(195, 198, 189, 0.42) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #c3c6bd, #969b91) !important;
  box-shadow: none !important;
  color: #0b0c0d !important;
  cursor: pointer !important;
  font: inherit !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  overflow: hidden !important;
  padding: 0 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.buy-row iframe,
.buy-row [class*="payhip"],
.buy-row [style*="width"] {
  max-width: 8.6rem !important;
}

.asset-buy-button:hover {
  background: linear-gradient(180deg, #e4e5df, #adb2a8) !important;
}

.hero-image,
.preview-strip figure,
.preview-strip article,
.details-grid article,
.loadout-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008)),
    var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.hero-image {
  margin: 0;
}

.preview-strip figure {
  margin: 0;
}

.model-stage {
  position: relative;
  width: 100%;
  min-height: 28rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(195, 198, 189, 0.16), transparent 24rem),
    linear-gradient(180deg, #353637 0%, #191a1b 100%);
}

.model-stage canvas,
.model-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.model-stage canvas {
  z-index: 2;
  cursor: grab;
}

.model-stage canvas:active {
  cursor: grabbing;
}

.model-stage img {
  object-fit: cover;
  opacity: 0.38;
}

.model-progress {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.model-progress span {
  border: 1px solid var(--line);
  background: rgba(5, 6, 6, 0.74);
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.45rem 0.6rem;
  text-transform: uppercase;
}

.model-progress.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.hero-image figcaption {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-strip {
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.preview-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #202223;
}

.preview-strip figcaption {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.details-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  margin-top: 1rem;
}

.details-grid article,
.preview-strip article,
.loadout-panel {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.spec-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  position: relative;
  padding-left: 1.1rem;
}

.spec-list li::before {
  position: absolute;
  left: 0;
  color: var(--amber);
  content: "/";
}

.loadout-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
}

code {
  color: var(--steel);
}

@media (max-width: 820px) {
  .model-header,
  .loadout-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-header nav {
    flex-wrap: wrap;
  }

  .product-hero,
  .preview-strip,
  .details-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 7rem);
  }
}

@media (max-width: 520px) {
  main {
    padding: 1.25rem 0.85rem 2rem;
  }

  .model-header {
    gap: 0.75rem;
    padding-inline: 0.85rem;
  }

  .model-header nav {
    gap: 0.65rem 0.9rem;
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.7rem);
  }

  h2 {
    font-size: clamp(1.75rem, 11vw, 2.6rem);
  }

  .lead {
    font-size: 1rem;
  }

  .model-stage {
    min-height: 18rem;
  }

  .asset-buy-button {
    flex: 1 1 8.6rem !important;
  }
}
