@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --navy: #172d5a;
  --navy-dark: #0d1e3f;
  --blue: #2798dc;
  --blue-light: #70c8ff;
  --ink: #172238;
  --muted: #667085;
  --line: #d7e4ec;
  --paper: #ffffff;
  --wash: #f3f7fa;
  --orange: #f26922;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(23, 45, 90, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.catalog-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.catalog-header__inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.catalog-brand img {
  width: 120px;
  height: 46px;
  object-fit: contain;
}

.catalog-nav {
  display: flex;
  gap: 24px;
}

.catalog-nav a {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.catalog-nav a:hover,
.catalog-nav a:focus-visible {
  color: var(--blue);
}

.catalog-hero {
  padding: 84px 0 62px;
  background:
    radial-gradient(circle at 80% 0, rgba(39, 152, 220, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-light);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.catalog-hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.catalog-hero__copy {
  max-width: 710px;
  margin: 22px 0 0;
  color: #d9e3f2;
  font-size: 1.08rem;
}

.catalog-section {
  padding: 76px 0;
}

.catalog-section--tint {
  background: var(--wash);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-auto-columns: calc((100% - 36px) / 3);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: inline mandatory;
  overscroll-behavior-inline: contain;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
  scroll-snap-align: start;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 152, 220, 0.42);
}

.product-card__image {
  display: grid;
  height: 235px;
  place-items: center;
  overflow: hidden;
  background: var(--wash);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__image--contain img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.product-card__image--poster img {
  object-fit: contain;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.product-tag {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card h2 {
  color: var(--navy);
  font-size: 1.4rem;
}

.product-card__body > p:not(.product-tag) {
  color: var(--muted);
}

.product-card__link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 700;
}

.future-card {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 28px;
  border: 1px dashed #a8c4d6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.future-card h3 {
  color: var(--navy);
}

.future-card p {
  max-width: 500px;
  margin: 8px 0 0;
  color: var(--muted);
}

.product-hero {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
}

.product-hero__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.product-hero__media {
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.product-hero__media img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
}

.product-hero__media--contain img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.product-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.product-summary {
  margin: 20px 0 0;
  color: #d9e3f2;
  font-size: 1.06rem;
}

.product-hero__note {
  max-width: 620px;
  margin: 22px 0 0;
  padding: 13px 16px;
  border-left: 4px solid var(--blue-light);
  background: rgba(255, 255, 255, 0.08);
  color: #d9e3f2;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  border-color: var(--blue);
  background: var(--blue);
}

.button--disabled {
  cursor: default;
  opacity: 0.86;
}

.detail-grid,
.version-grid,
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail-card,
.version-card,
.placeholder-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.detail-card h3,
.version-card h3,
.placeholder-card h3 {
  color: var(--navy);
}

.detail-card p,
.version-card p,
.placeholder-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-feature-grid,
.hardware-grid {
  display: grid;
  gap: 16px;
}

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

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

.product-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 45, 90, 0.05);
}

.product-panel--accent {
  border-color: rgba(39, 152, 220, 0.42);
  background: linear-gradient(145deg, #fff, #edf8fd);
}

.product-panel__label {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-panel h3 {
  color: var(--navy);
  font-size: 1.25rem;
}

.product-panel > p:not(.product-panel__label) {
  margin: 10px 0 0;
  color: var(--muted);
}

.product-panel__detail {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
}

.spec-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 9px;
  border-top: 1px solid rgba(39, 152, 220, 0.2);
  color: var(--muted);
  font-size: 0.9rem;
}

.spec-list strong {
  color: var(--navy);
}

.music-mode {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 28px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid #c9dfea;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.music-mode__heading h3 {
  color: var(--navy);
  font-size: 1.55rem;
}

.music-mode__heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.music-mode__steps {
  display: grid;
  gap: 12px;
}

.music-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.music-step span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.music-step p {
  margin: 2px 0 0;
  color: var(--muted);
}

.music-step strong {
  color: var(--navy);
}

.product-limits {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  gap: 42px;
}

.product-limits h2 {
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.product-limits > div > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-disclosure {
  padding: 22px;
  border: 1px solid #e4c4c4;
  border-radius: var(--radius);
  background: #fff8f8;
  color: #622;
}

.product-disclosure p {
  margin: 8px 0 0;
  font-size: 0.94rem;
}

.product-disclosure a {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.version-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 700;
}

.detail-media {
  max-width: 900px;
  overflow: hidden;
  margin: 32px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-media img {
  width: 100%;
  height: auto;
}

.detail-media figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  background: var(--wash);
}

.gallery-card--contain img {
  object-fit: contain;
  padding: 28px;
}

.gallery-card figcaption {
  padding: 22px;
}

.gallery-card h2 {
  color: var(--navy);
  font-size: 1.25rem;
}

.gallery-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.product-gallery .gallery-card {
  display: flex;
  flex-direction: column;
}

.gallery-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--wash);
  cursor: zoom-in;
}

.gallery-image-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.product-gallery .gallery-card img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.product-gallery .gallery-card figcaption {
  flex: 1;
}

.image-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(8, 23, 50, 0.92);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox__image {
  width: auto;
  max-width: min(1200px, 94vw);
  height: auto;
  max-height: 90vh;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.image-lightbox__close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(8, 23, 50, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  border-color: #fff;
  background: var(--blue);
}

.is-lightbox-open {
  overflow: hidden;
}

.image-lightbox:not([hidden]) .image-lightbox__image {
  animation: lightbox-in 160ms ease-out;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.catalog-footer {
  padding: 26px 0;
  background: #081732;
  color: #aebcd1;
  font-size: 0.84rem;
}

.catalog-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 860px) {
  .catalog-header__inner {
    flex-wrap: wrap;
    gap: 0;
    padding-block: 10px;
  }

  .catalog-nav {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 0 2px;
    scrollbar-width: none;
  }

  .catalog-nav::-webkit-scrollbar {
    display: none;
  }

  .catalog-nav a {
    flex: 0 0 auto;
  }

  .detail-grid,
  .version-grid,
  .placeholder-grid {
    grid-template-columns: 1fr;
  }

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

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

  .product-grid {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .product-hero__grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 12px;
  }

  .product-limits {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 26px, 1120px);
  }

  .catalog-hero,
  .product-hero {
    padding: 56px 0;
  }

  .catalog-section {
    padding: 58px 0;
  }

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

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-auto-columns: min(88%, 340px);
  }

  .gallery-card img {
    height: 260px;
  }

  .product-hero__media {
    min-height: 280px;
  }

  .product-feature-grid,
  .music-mode {
    grid-template-columns: 1fr;
  }

  .product-panel,
  .music-mode {
    padding: 22px;
  }

  .catalog-footer .wrap {
    flex-direction: column;
  }
}

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

  .image-lightbox:not([hidden]) .image-lightbox__image {
    animation: none;
  }
}
