.catalog-preview {
  display: grid;
  gap: 14px;
}

.home-hero {
  overflow: hidden;
  padding: 56px 0 36px;
  background:
    radial-gradient(circle at 78% 24%, rgba(246, 6, 6, 0.1), transparent 26%),
    radial-gradient(circle at 14% 74%, rgba(0, 63, 130, 0.12), transparent 30%),
    linear-gradient(145deg, #ffffff, var(--color-blue-soft));
}

.home-hero__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.home-hero h1 {
  max-width: 760px;
  margin: 10px 0 14px;
  font-size: clamp(2.4rem, 10vw, 5rem);
  line-height: 0.96;
}

.home-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.featured-rail {
  display: grid;
  grid-auto-columns: minmax(250px, 300px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
}

.featured-rail .product-card {
  scroll-snap-align: start;
  animation: railDrift 34s linear infinite;
}

.featured-rail:hover .product-card,
.featured-rail:focus-within .product-card {
  animation-play-state: paused;
}

@keyframes railDrift {
  0% { transform: translateX(0); }
  50% { transform: translateX(-34px); }
  100% { transform: translateX(0); }
}

.system-grid,
.benefit-strip {
  display: grid;
  gap: 14px;
}

.system-card,
.advisor-band,
.best-seller {
  display: grid;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.system-card__image,
.advisor-band__image,
.best-seller__image {
  display: grid;
  min-height: 160px;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-blue);
  background: linear-gradient(135deg, var(--color-blue-soft), #ffffff 50%, #ffecec);
  font-weight: 900;
}

.benefit-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
  font-weight: 900;
}

.best-seller__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.best-seller__content {
  display: grid;
  gap: 12px;
}

.hero-showcase {
  position: relative;
  min-height: 460px;
  perspective: 1200px;
}

.hero-showcase::before,
.hero-showcase::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-showcase::before {
  inset: 9% 4% 12%;
  border: 1px solid rgba(0, 63, 130, 0.16);
  border-radius: 46% 54% 43% 57%;
  clip-path: polygon(0 0, 82% 0, 100% 22%, 100% 100%, 18% 100%, 0 78%);
}

.hero-showcase::after {
  inset: 20% 10% 18%;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(0, 63, 130, 0.14) 18% 19%, transparent 19% 100%),
    linear-gradient(0deg, transparent 0 42%, rgba(246, 6, 6, 0.12) 42% 43%, transparent 43% 100%);
  transform: rotate(-9deg);
}

.hero-showcase__halo {
  position: absolute;
  inset: 16% 12% 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.98) 0 35%, rgba(232,241,251,0.82) 36% 58%, transparent 59%),
    radial-gradient(circle at 74% 24%, rgba(246,6,6,0.14), transparent 32%);
  filter: drop-shadow(0 34px 55px rgba(0, 63, 130, 0.12));
}

.hero-showcase__stage {
  position: absolute;
  inset: 5% 0 10%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.hero-product-image {
  width: min(88%, 520px);
  max-height: 430px;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 34px 42px rgba(0, 63, 130, 0.2));
  transform: translate3d(56px, 22px, -120px) rotateY(-14deg) scale(0.88);
  transition: opacity 520ms ease, filter 700ms ease, transform 850ms cubic-bezier(.2,.74,.22,1);
  animation: productFloat 5.2s ease-in-out infinite;
}

.hero-product-image.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 90px) rotateY(7deg) rotateZ(-1deg) scale(1);
}

.hero-showcase:hover .hero-product-image {
  animation-play-state: paused;
}

.hero-showcase__dots {
  position: absolute;
  right: 8%;
  bottom: 11%;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero-showcase__dots button {
  width: 10px;
  height: 10px;
  border: 1px solid var(--brand-blue);
  border-radius: 50%;
  background: #ffffff;
}

.hero-showcase__dots button.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--brand-red);
}

@keyframes productFloat {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -16px; rotate: 1.5deg; }
}

.featured-rail {
  grid-auto-columns: minmax(260px, 310px);
  gap: 18px;
  padding: 38px 4px 18px;
  cursor: grab;
}

.featured-rail.is-dragging {
  cursor: grabbing;
}

.featured-product {
  position: relative;
  display: grid;
  min-height: 360px;
  align-content: end;
  scroll-snap-align: start;
  border: 1px solid rgba(0, 63, 130, 0.16);
  border-radius: 6px 28px 6px 6px;
  padding: 110px 16px 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(246,249,252,0.8)),
    radial-gradient(circle at 84% 8%, rgba(246, 6, 6, 0.12), transparent 30%);
  box-shadow: var(--shadow-card);
  clip-path: polygon(0 0, 86% 0, 100% 14%, 100% 100%, 0 100%);
  animation: railDrift 28s ease-in-out infinite;
}

.featured-product::before {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
  content: "";
}

.featured-product__image {
  position: absolute;
  top: -30px;
  right: 8px;
  left: 20px;
  display: grid;
  height: 170px;
  place-items: center;
  pointer-events: none;
}

.featured-product__image img,
.system-card__image img,
.best-seller__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 20px rgba(0, 63, 130, 0.16));
}

.featured-product__body {
  display: grid;
  gap: 10px;
}

.featured-product__body h3,
.featured-product__body p {
  margin: 0;
}

.featured-product__body p {
  color: var(--text-secondary);
}

.featured-product__actions {
  margin-top: 6px;
}

.featured-rail:hover .featured-product,
.featured-rail:focus-within .featured-product,
.featured-rail.is-dragging .featured-product {
  animation-play-state: paused;
}

.system-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #ffffff, #f7fbff),
    radial-gradient(circle at 84% 18%, rgba(246, 6, 6, 0.12), transparent 28%);
}

.system-card::before {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 34%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  content: "";
}

.system-card--pressure {
  direction: rtl;
}

.system-card--pressure > * {
  direction: ltr;
}

.benefit-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.benefit-node {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 63, 130, 0.14);
  border-radius: 6px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.benefit-node--wide {
  grid-column: 1 / -1;
  background:
    linear-gradient(120deg, #ffffff, rgba(232, 241, 251, 0.88)),
    radial-gradient(circle at 92% 14%, rgba(246, 6, 6, 0.12), transparent 26%);
}

.benefit-node::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-blue));
  content: "";
}

.benefit-icon {
  width: 54px;
  height: 54px;
  color: inherit;
  background: linear-gradient(135deg, #ffffff, var(--color-blue-soft));
  box-shadow: inset 0 0 0 1px rgba(0, 63, 130, 0.14);
}

.benefit-icon svg,
.advisor-band__image svg {
  width: 34px;
  height: 34px;
}

.best-seller {
  background:
    linear-gradient(135deg, #ffffff 0 58%, #eef6ff),
    radial-gradient(circle at 20% 20%, rgba(246, 6, 6, 0.1), transparent 26%);
  clip-path: polygon(0 0, 94% 0, 100% 8%, 100% 100%, 6% 100%, 0 92%);
}

.catalog-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-grid {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.field input,
.field select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: #ffffff;
  color: var(--color-ink);
}

.catalog-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.stage-note {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--color-blue);
  background: var(--color-blue-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.compare-strip {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.compare-strip__items {
  display: grid;
  grid-auto-columns: minmax(220px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.compare-pill {
  min-width: 220px;
  padding: 14px;
  border: 1px dashed rgba(23, 105, 170, 0.35);
  border-radius: var(--radius-sm);
  background: var(--color-blue-soft);
  font-weight: 800;
}

.compare-page {
  padding: 34px 0 52px;
}

.compare-panel {
  display: grid;
  gap: 16px;
}

.compare-controls {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.compare-selected {
  display: grid;
  gap: 10px;
}

.compare-chip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.compare-chip strong,
.compare-card strong {
  display: block;
  line-height: 1.2;
}

.compare-chip span,
.compare-card span {
  color: var(--color-muted);
  font-size: 0.86rem;
}

.compare-chip button,
.compare-table button {
  min-height: 36px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--color-red);
  font-weight: 900;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: max(780px, 100%);
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  min-width: 190px;
  padding: 14px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  background: #ffffff;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.compare-table thead th {
  background: var(--color-blue-soft);
}

.compare-table thead th:first-child {
  background: var(--color-blue-soft);
}

.compare-card {
  display: grid;
  gap: 8px;
}

.compare-image {
  display: grid;
  min-height: 96px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-blue-soft), #ffffff 52%, #ffecec);
  color: var(--color-blue);
  font-weight: 900;
}

.compare-empty {
  padding: 28px;
  border: 1px dashed rgba(0, 63, 130, 0.35);
  border-radius: var(--radius-md);
  background: #ffffff;
  text-align: center;
}

.editor-page {
  padding: 34px 0 56px;
}

.editor-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.editor-help,
.editor-form,
.editor-output,
.editor-section {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.editor-help,
.editor-output,
.editor-section {
  padding: 16px;
}

.editor-form {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.editor-help {
  position: sticky;
  top: 88px;
}

.editor-help ol {
  padding-left: 20px;
}

.editor-help li + li {
  margin-top: 6px;
}

.editor-section h2,
.editor-output h2,
.editor-help h2 {
  margin: 0 0 12px;
}

.editor-section textarea,
.code-output {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--color-ink);
  background: #ffffff;
  font: inherit;
}

.code-output {
  min-height: 460px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
}

.editor-checks,
.editor-fieldset,
.editor-actions,
.editor-columns {
  display: grid;
  gap: 10px;
}

.editor-fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
}

.editor-checkbox,
.editor-fieldset label,
.editor-checks label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.dynamic-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.dynamic-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
}

.dynamic-row input,
.dynamic-row textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: #ffffff;
}

.dynamic-row button {
  justify-self: start;
}

.editor-message {
  min-height: 42px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--color-blue-soft);
  color: var(--color-blue);
  font-weight: 800;
}

.editor-message.is-error {
  color: var(--color-red-dark);
  background: #ffecec;
}

.editor-output {
  position: sticky;
  top: 88px;
}

.editor-output .product-card {
  margin-bottom: 16px;
}

@media (min-width: 900px) {
  .editor-layout {
    grid-template-columns: 260px minmax(0, 1fr) 390px;
  }

  .editor-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-shell {
  min-height: 68vh;
  padding: 54px 0;
  background: linear-gradient(145deg, var(--color-blue-soft), #ffffff 48%, #ffecec);
}

.page-shell__content {
  display: grid;
  max-width: 820px;
  gap: 14px;
}

.page-shell h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1;
}

.page-shell p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(0, 63, 130, 0.35);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-muted);
  text-align: center;
}

.product-detail {
  padding: 34px 0 48px;
}

.product-detail__grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 10px;
}

.product-gallery__main {
  display: grid;
  min-height: 300px;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-blue-soft), #ffffff 52%, #ffecec);
  color: var(--color-blue);
  font-weight: 900;
  overflow: hidden;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery__thumbs {
  display: grid;
  grid-auto-columns: minmax(92px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-button {
  min-height: 72px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.thumb-button.is-active {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(246, 6, 6, 0.1);
}

.product-summary {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.product-summary h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-stack {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--color-blue-soft);
}

.price-stack del {
  color: var(--color-muted);
}

.price-stack strong {
  color: var(--color-blue);
  font-size: 2rem;
  line-height: 1;
}

.msi-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.msi-list span {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-blue);
  background: #ffffff;
  font-weight: 800;
}

.detail-actions {
  display: grid;
  gap: 10px;
}

.detail-section {
  padding: 32px 0;
}

.detail-layout {
  display: grid;
  gap: 18px;
}

.spec-grid {
  display: grid;
  gap: 8px;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.spec-row span:first-child {
  color: var(--color-muted);
  font-weight: 800;
}

.accordion-list {
  display: grid;
  gap: 10px;
}

.accordion-list details {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.accordion-list summary {
  padding: 14px;
  cursor: pointer;
  font-weight: 900;
}

.accordion-list details p,
.accordion-list details ul {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--color-muted);
}

.document-grid {
  display: grid;
  gap: 10px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-blue-soft);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
  font-weight: 900;
}

.video-play span {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.16);
}

.consent-banner {
  position: fixed;
  right: 16px;
  bottom: 86px;
  left: 16px;
  z-index: 40;
  display: grid;
  gap: 12px;
  max-width: 720px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.consent-banner p {
  margin: 4px 0 0;
  color: var(--color-muted);
}

.consent-banner a {
  color: var(--color-blue);
  font-weight: 800;
}

.consent-banner__actions {
  display: grid;
  gap: 8px;
}

@media (min-width: 720px) {
  .consent-banner {
    left: auto;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .consent-banner__actions {
    grid-template-columns: max-content max-content;
  }
}

@media (min-width: 900px) {
  .product-detail__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  }

  .detail-actions,
  .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
