.landing-sample {
  overflow: hidden;
}

.landing-sample__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.landing-sample__card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(82, 151, 238, 0.28);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(15, 20, 28, 0.96), rgba(7, 10, 14, 0.98));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
}

.landing-sample__preview {
  position: relative;
  height: clamp(360px, 45vw, 590px);
  overflow: hidden;
  background: #0b0c0d;
}

.landing-sample__preview::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 32%;
  background: linear-gradient(transparent, rgba(7, 10, 14, 0.96));
  content: "";
  pointer-events: none;
}

.landing-sample__preview--light {
  background: #f3f7f4;
}

.landing-sample__preview img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-sample__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem;
}

.landing-sample__type {
  margin: 0 0 0.55rem;
  color: #69adff;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-sample__content h3 {
  margin: 0;
  color: #eef5ff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.3;
}

.landing-sample__content > p:not(.landing-sample__type) {
  margin: 0.7rem 0 1rem;
  color: #a9b4c7;
  font-size: 0.9rem;
  line-height: 1.65;
}

.landing-sample__button {
  margin-top: auto;
  padding: 0.78rem 1.05rem;
  border: 1px solid rgba(105, 173, 255, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, #287de6, #1359b2);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.landing-sample__button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.landing-sample__button:focus-visible,
.landing-viewer button:focus-visible {
  outline: 3px solid #8cc5ff;
  outline-offset: 3px;
}

.landing-viewer {
  width: min(96vw, 1440px);
  height: min(94vh, 1000px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(105, 173, 255, 0.42);
  border-radius: 18px;
  background: #080a0e;
  color: #eef5ff;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.72);
}

.landing-viewer::backdrop {
  background: rgba(1, 3, 6, 0.88);
  backdrop-filter: blur(7px);
}

.landing-viewer__surface {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.landing-viewer__toolbar {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(105, 173, 255, 0.22);
  background: rgba(10, 14, 20, 0.98);
}

.landing-viewer__toolbar h2 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(0.9rem, 2vw, 1.12rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-viewer__controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
}

.landing-viewer__controls button,
.landing-viewer__controls output {
  min-width: 42px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(105, 173, 255, 0.3);
  border-radius: 9px;
  background: #121923;
  color: #edf6ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.landing-viewer__controls button {
  cursor: pointer;
}

.landing-viewer__controls button:hover {
  background: #1b2b40;
}

.landing-viewer__controls output {
  padding: 0 0.5rem;
  color: #8cc5ff;
}

.landing-viewer__close {
  padding: 0 0.8rem;
}

.landing-viewer__viewport {
  overflow: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(45deg, #0b0f15 25%, transparent 25%),
    linear-gradient(-45deg, #0b0f15 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #0b0f15 75%),
    linear-gradient(-45deg, transparent 75%, #0b0f15 75%),
    #080a0e;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.landing-viewer__viewport img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  transform-origin: top left;
}

body.landing-viewer-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .landing-sample__grid {
    grid-template-columns: 1fr;
  }

  .landing-sample__preview {
    height: 480px;
  }

  .landing-viewer {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .landing-viewer__toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .landing-viewer__controls {
    width: 100%;
  }

  .landing-viewer__controls button,
  .landing-viewer__controls output {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .landing-sample__preview {
    height: 390px;
  }

  .landing-viewer__controls {
    gap: 0.3rem;
  }

  .landing-viewer__controls button,
  .landing-viewer__controls output {
    min-width: 0;
    padding: 0 0.35rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-sample__button {
    transition: none;
  }
}
