.motos-page {
  --stage-bg: var(--bg-card);
  --stage-fg: var(--white);
  --stage-muted: var(--text-muted);
  --stage-line: var(--border);
  --stage-accent: var(--red);
}

.motos-page .header {
  border-bottom: 1px solid var(--border);
}

.motos-hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 2.5rem;
  overflow: hidden;
}

.motos-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 10, 23, 0.12), transparent 68%);
  pointer-events: none;
}

.motos-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.motos-hero .section-title {
  margin-bottom: 0.75rem;
}

.motos-hero-lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.motos-hero-lead strong {
  color: var(--white);
  font-weight: 600;
}

.motos-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.motos-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.motos-badge--hot {
  border-color: rgba(226, 10, 23, 0.45);
  color: var(--red);
}

.motos-viewer-section {
  padding: 2rem 0 5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 35%, var(--bg) 100%);
}

.viewer-shell {
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--stage-bg) 45%, var(--bg) 100%);
  color: var(--stage-fg);
  border: 1px solid var(--stage-line);
  border-radius: 2px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.viewer-head {
  text-align: center;
  padding: 2.5rem 1.5rem 0;
}

.viewer-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--stage-fg);
  line-height: 1.1;
}

.viewer-title strong {
  font-weight: 800;
}

.viewer-sub {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--stage-muted);
}

.model-toggle {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding: 0.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.model-toggle-btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--stage-accent);
  cursor: pointer;
  transition: background 0.25s var(--ease-out), color 0.25s, box-shadow 0.25s;
}

.model-toggle-btn[aria-selected="true"] {
  background: var(--stage-accent);
  color: var(--white);
  box-shadow: 0 6px 20px var(--red-glow);
}

.model-toggle-btn:focus-visible {
  outline: 2px solid var(--stage-accent);
  outline-offset: 2px;
}

.viewer-stage-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 0;
  align-items: end;
  padding: 1rem 1.5rem 2rem;
}

.viewer-stage {
  position: relative;
  min-height: min(52vh, 480px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.viewer-stage.is-dragging {
  cursor: grabbing;
}

.viewer-stage.is-loading-frames .viewer-canvas {
  opacity: 0.35;
  transition: opacity 0.25s;
}

.viewer-stage:not(.is-loading-frames) .viewer-canvas {
  opacity: 1;
  transition: opacity 0.35s var(--ease-out);
}

.viewer-stage-ring {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: min(72%, 420px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid var(--stage-line);
  border-radius: 50%;
  pointer-events: none;
}

.viewer-canvas {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  height: auto;
  max-height: min(48vh, 420px);
  object-fit: contain;
  pointer-events: none;
}

.viewer-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  z-index: 3;
}

.viewer-360-pill {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  box-shadow: 0 4px 16px var(--red-glow);
}

.viewer-hint {
  font-size: 0.8rem;
  color: var(--stage-muted);
  letter-spacing: 0.04em;
}

.viewer-colors {
  padding: 1rem 1.25rem 2rem;
  border-left: 1px solid var(--stage-line);
}

.viewer-colors-label {
  font-size: 0.85rem;
  color: var(--stage-muted);
  margin-bottom: 0.85rem;
}

.color-swatches {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
  background-repeat: no-repeat;
}

.color-swatch[aria-pressed="true"] {
  border-color: var(--white);
  transform: scale(1.08);
}

.color-swatch:focus-visible {
  outline: 2px solid var(--stage-accent);
  outline-offset: 3px;
}

.color-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--stage-fg);
  min-height: 2.6em;
}

.viewer-model-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stage-accent);
}

.motos-details {
  padding: 4rem 0 5rem;
}

.motos-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.motos-product-intro h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.motos-product-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.motos-product-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.motos-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.motos-highlights li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.motos-highlights li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  flex-shrink: 0;
  background: var(--red);
  transform: rotate(45deg);
}

.motos-specs-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.75rem;
}

.motos-specs-panel h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table th,
.specs-table td {
  padding: 0.7rem 0;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.specs-table th {
  font-weight: 500;
  color: var(--text-muted);
  width: 42%;
  padding-right: 1rem;
}

.specs-table td {
  color: var(--white);
  font-weight: 500;
}

.motos-included {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.motos-included h5 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.motos-included ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.motos-included li {
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.motos-compare {
  padding: 0 0 5rem;
}

.motos-compare-card {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}

.motos-compare-head {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.motos-compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--bg-card);
}

.compare-table thead th:first-child {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.compare-table tbody th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
}

.compare-table tbody td {
  color: var(--white);
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: none;
}

.motos-cta {
  padding: 0 0 6rem;
}

.motos-cta-inner {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(226, 10, 23, 0.08) 100%);
  border: 1px solid var(--border);
}

.motos-cta-inner .section-title {
  margin-bottom: 0.5rem;
}

.motos-cta-inner .section-text {
  margin-bottom: 0;
}

.motos-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.motos-cta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 14rem;
}

.nav-link-active {
  color: var(--white) !important;
}

.nav-link-active::after {
  width: 100% !important;
}

@media (max-width: 900px) {
  .viewer-stage-wrap {
    grid-template-columns: 1fr;
  }

  .viewer-colors {
    border-left: none;
    border-top: 1px solid var(--border);
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
  }

  .color-swatches {
    justify-content: center;
  }

  .motos-details-grid {
    grid-template-columns: 1fr;
  }

  .motos-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .motos-cta-actions {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .viewer-head {
    padding-top: 1.75rem;
  }

  .viewer-stage {
    min-height: 42vh;
  }

  .motos-cta-inner {
    padding: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viewer-stage {
    cursor: default;
  }
}
