.gate-showcase {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
  position: relative;
  width: 100%;
  max-width: min(100%, 320px);
  border-radius: 18px;
  border: 1px solid rgba(47, 109, 246, 0.12);
  background: rgba(255, 255, 255, 0.66);
  padding: 16px 14px 26px;
  box-shadow: 0 14px 38px rgba(47, 109, 246, 0.06);
}

.gate-showcase__stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 6px 2px 10px;
}

.gate-showcase__orb {
  position: absolute;
  width: min(120%, 340px);
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(47, 109, 246, 0.22) 0%, transparent 68%);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
  animation: gateShowcaseOrb 10s ease-in-out infinite;
}

@keyframes gateShowcaseOrb {
  0%, 100% { opacity: 0.75; transform: scale(1) translate(0, 6px); }
  50% { opacity: 1; transform: scale(1.06) translate(0, -4px); }
}

.gate-showcase__sheet--far {
  position: absolute;
  width: 82%;
  max-width: 252px;
  aspect-ratio: 1 / 1.25;
  border-radius: 12px;
  background: linear-gradient(160deg, #dbe4ff 0%, #cfd9ff 100%);
  border: 1px solid rgba(47, 109, 246, 0.12);
  box-shadow: 0 10px 28px rgba(47, 109, 246, 0.1);
  transform: rotate(-11deg) translate(-14px, 18px);
  z-index: 0;
  opacity: 0.72;
  animation: gateShowcaseFar 9s ease-in-out infinite;
}

@keyframes gateShowcaseFar {
  0%, 100% { transform: rotate(-11deg) translate(-14px, 18px); }
  50% { transform: rotate(-9deg) translate(-10px, 14px); }
}

.gate-showcase__sheet--back {
  position: absolute;
  width: 86%;
  max-width: 268px;
  aspect-ratio: 1 / 1.22;
  border-radius: 12px;
  background: linear-gradient(148deg, #e6edff 0%, #dce6ff 55%, #d0dfff 100%);
  border: 1px solid rgba(47, 109, 246, 0.16);
  box-shadow: 0 14px 36px rgba(47, 109, 246, 0.14);
  transform: rotate(-7deg) translate(-8px, 10px);
  z-index: 1;
  animation: gateShowcaseBack 7.5s ease-in-out infinite;
}

@keyframes gateShowcaseBack {
  0%, 100% { transform: rotate(-7deg) translate(-8px, 10px); }
  50% { transform: rotate(-5.5deg) translate(-5px, 6px); }
}

.gate-showcase__sheet--mid {
  position: absolute;
  width: 88%;
  max-width: 278px;
  aspect-ratio: 1 / 1.2;
  border-radius: 13px;
  background: linear-gradient(135deg, #f8faff 0%, #eef3ff 55%, #e2ebff 100%);
  border: 1px solid rgba(47, 109, 246, 0.14);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  transform: rotate(4deg) translate(10px, 6px);
  z-index: 2;
  opacity: 0.92;
  animation: gateShowcaseMid 8s ease-in-out infinite;
}

@keyframes gateShowcaseMid {
  0%, 100% { transform: rotate(4deg) translate(10px, 6px); }
  50% { transform: rotate(2deg) translate(6px, 2px); }
}

.gate-showcase__sheet--front {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 292px;
  aspect-ratio: 1 / 1.18;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(47, 109, 246, 0.12);
  box-shadow:
    0 22px 56px rgba(15, 23, 42, 0.11),
    0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 11px 13px 12px;
  transform: rotate(2.5deg);
  animation: gateShowcaseFloat 7s ease-in-out infinite;
  overflow: hidden;
}

@keyframes gateShowcaseFloat {
  0%, 100% { transform: rotate(2.2deg) translateY(0) translateX(0); }
  33% { transform: rotate(3.2deg) translateY(-6px) translateX(2px); }
  66% { transform: rotate(2deg) translateY(-3px) translateX(-2px); }
}

.gate-showcase__stage {
  position: relative;
  min-height: 168px;
  margin-top: 2px;
}

.gate-showcase__scene {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.gate-showcase__scene--1 {
  animation: gateScene1 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.gate-showcase__scene--2 {
  animation: gateScene2 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.gate-showcase__scene--3 {
  animation: gateScene3 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.gate-showcase__scene--4 {
  animation: gateScene4 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes gateScene1 {
  0%, 1.5% { opacity: 0; transform: translateY(10px) scale(0.98); }
  3%, 22% { opacity: 1; transform: translateY(0) scale(1); }
  25%, 100% { opacity: 0; transform: translateY(8px) scale(0.98); }
}

@keyframes gateScene2 {
  0%, 24% { opacity: 0; transform: translateY(10px) scale(0.98); }
  26%, 47% { opacity: 1; transform: translateY(0) scale(1); }
  50%, 100% { opacity: 0; transform: translateY(8px) scale(0.98); }
}

@keyframes gateScene3 {
  0%, 49% { opacity: 0; transform: translateY(10px) scale(0.98); }
  51%, 72% { opacity: 1; transform: translateY(0) scale(1); }
  75%, 100% { opacity: 0; transform: translateY(8px) scale(0.98); }
}

@keyframes gateScene4 {
  0%, 74% { opacity: 0; transform: translateY(10px) scale(0.98); }
  76%, 96% { opacity: 1; transform: translateY(0) scale(1); }
  99%, 100% { opacity: 0; transform: translateY(8px) scale(0.98); }
}

.gate-showcase__scene-caption {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(47, 109, 246, 0.88);
  margin: 0 0 10px;
}

.gate-showcase__gen-bar {
  height: 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-bottom: 10px;
}

.gate-showcase__gen-bar > i {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(47, 109, 246, 0.25), rgba(47, 109, 246, 0.75));
  animation: gateGenSweep 1.8s ease-in-out infinite;
}

@keyframes gateGenSweep {
  0% { transform: translateX(-30%); opacity: 0.75; }
  50% { transform: translateX(120%); opacity: 1; }
  100% { transform: translateX(240%); opacity: 0.75; }
}

.gate-showcase__gen-dots {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}

.gate-showcase__gen-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(47, 109, 246, 0.35);
  animation: gateGenDot 1.2s ease-in-out infinite;
}

.gate-showcase__gen-dots span:nth-child(2) { animation-delay: 0.15s; }
.gate-showcase__gen-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes gateGenDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.gate-showcase__scene--minimal .gate-showcase__header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
}

.gate-showcase__scene--minimal .gate-showcase__avatar {
  margin: 0 auto;
}

.gate-showcase__scene--minimal .gate-showcase__lines {
  align-items: center;
}

.gate-showcase__scene--minimal .gate-showcase__line--title {
  width: 88%;
}

.gate-showcase__scene--minimal .gate-showcase__line--sub {
  width: 52%;
}

.gate-showcase__scene--minimal .gate-showcase__block {
  margin-bottom: 11px;
}

.gate-showcase__build {
  display: flex;
  gap: 8px;
  min-height: 132px;
}

.gate-showcase__build-rail {
  width: 34px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 5px;
  border-radius: 10px;
  background: rgba(47, 109, 246, 0.06);
  border: 1px solid rgba(47, 109, 246, 0.12);
}

.gate-showcase__build-rail span {
  height: 8px;
  border-radius: 4px;
  background: rgba(47, 109, 246, 0.2);
}

.gate-showcase__build-rail span:nth-child(2) {
  opacity: 0.65;
}

.gate-showcase__build-rail span:nth-child(3) {
  opacity: 0.45;
}

.gate-showcase__build-main {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px dashed rgba(47, 109, 246, 0.22);
  padding: 8px 8px 9px;
  background: rgba(248, 250, 255, 0.9);
}

.gate-showcase__build-chip {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(47, 109, 246, 0.1);
  color: rgba(37, 99, 235, 0.95);
  margin-bottom: 7px;
  border: 1px solid rgba(47, 109, 246, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .gate-showcase__orb,
  .gate-showcase__sheet--far,
  .gate-showcase__sheet--back,
  .gate-showcase__sheet--mid,
  .gate-showcase__sheet--front,
  .gate-showcase__scene,
  .gate-showcase__line--title,
  .gate-showcase__gen-bar > i,
  .gate-showcase__gen-dots span,
  .gate-showcase__mini {
    animation: none !important;
  }

  .gate-showcase__scene {
    position: absolute;
    opacity: 0 !important;
    transform: none !important;
  }

  .gate-showcase__scene--2 {
    position: relative;
    display: block;
    opacity: 1 !important;
  }

  .gate-showcase__scene--1,
  .gate-showcase__scene--3,
  .gate-showcase__scene--4 {
    display: none !important;
  }

  .gate-showcase__line--title {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.13), rgba(15, 23, 42, 0.05));
    background-size: auto;
  }

  .gate-showcase__gen-bar > i {
    width: 65%;
    transform: none;
  }

  .gate-showcase__sheet--far {
    transform: rotate(-11deg) translate(-14px, 18px);
  }

  .gate-showcase__sheet--back {
    transform: rotate(-7deg) translate(-8px, 10px);
  }

  .gate-showcase__sheet--mid {
    transform: rotate(4deg) translate(10px, 6px);
  }

  .gate-showcase__sheet--front {
    transform: rotate(2.5deg);
  }
}

.gate-showcase__toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.gate-showcase__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
}

.gate-showcase__toolbar-label {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(100, 116, 139, 0.88);
}

.gate-showcase__header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 11px;
}

.gate-showcase__avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(140deg, rgba(47, 109, 246, 0.22), rgba(129, 161, 255, 0.4));
  border: 1px solid rgba(47, 109, 246, 0.22);
}

.gate-showcase__lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gate-showcase__line {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.13), rgba(15, 23, 42, 0.05));
}

.gate-showcase__line--title {
  height: 9px;
  width: 74%;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.1) 0%,
    rgba(47, 109, 246, 0.22) 45%,
    rgba(15, 23, 42, 0.1) 100%
  );
  background-size: 180% 100%;
  animation: gateShowcaseLineShimmer 4.2s ease-in-out infinite;
}

@keyframes gateShowcaseLineShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gate-showcase__line--sub {
  height: 6px;
  width: 46%;
  opacity: 0.88;
}

.gate-showcase__line--short {
  width: 58%;
}

.gate-showcase__block {
  margin-bottom: 9px;
}

.gate-showcase__pill {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(47, 109, 246, 0.09);
  color: rgba(37, 99, 235, 0.98);
  margin-bottom: 5px;
  border: 1px solid rgba(47, 109, 246, 0.16);
}

.gate-showcase__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed rgba(47, 109, 246, 0.16);
}

.gate-showcase__tag {
  font-size: 0.6rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(47, 109, 246, 0.14);
  color: rgba(17, 24, 39, 0.78);
}

.gate-showcase__minis {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  max-width: min(100%, 320px);
  margin-top: 6px;
  padding: 6px 2px 4px;
}

.gate-showcase__mini {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(47, 109, 246, 0.14);
  padding: 8px 8px 9px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(47, 109, 246, 0.07);
  animation: gateShowcaseMini 5.5s ease-in-out infinite;
}

.gate-showcase__mini--a {
  animation-delay: 0s;
  transform-origin: 50% 100%;
}

.gate-showcase__mini--b {
  animation-delay: -1.8s;
  transform-origin: 50% 100%;
}

.gate-showcase__mini--c {
  animation-delay: -3.6s;
  transform-origin: 50% 100%;
}

.gate-showcase__mini--a .gate-showcase__mini-bar {
  background: linear-gradient(90deg, rgba(47, 109, 246, 0.35), rgba(129, 161, 255, 0.45));
}

.gate-showcase__mini--b .gate-showcase__mini-bar {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.35), rgba(59, 130, 246, 0.4));
}

.gate-showcase__mini--c .gate-showcase__mini-bar {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.35), rgba(147, 51, 234, 0.32));
}

@keyframes gateShowcaseMini {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.03); }
}

.gate-showcase__mini-bar {
  height: 5px;
  border-radius: 4px;
  margin-bottom: 7px;
  opacity: 0.95;
}

.gate-showcase__mini-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gate-showcase__mini-lines span {
  display: block;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.05));
}

.gate-showcase__mini-lines span:nth-child(2) {
  width: 78%;
}

.gate-showcase__mini-lines span:nth-child(3) {
  width: 62%;
}

.gate-showcase__mini-lines span:nth-child(4) {
  width: 55%;
}

.gate-showcase__steps {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gate-showcase__step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(17, 24, 39, 0.8);
}

.gate-showcase__step-num {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: rgba(47, 109, 246, 0.1);
  border: 1px solid rgba(47, 109, 246, 0.18);
  font-weight: 900;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(47, 109, 246, 0.95);
}

/* Мобилка: шаги и подписи в превью читабельнее (базовые rem здесь слишком мелкие) */
@media (max-width: 640px) {
  .gate-showcase__scene-caption {
    font-size: 0.72rem;
  }
  .gate-showcase__toolbar-label {
    font-size: 0.72rem;
  }
  .gate-showcase__step {
    font-size: 0.93rem;
    line-height: 1.45;
  }
  .gate-showcase__step-num {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 0.78rem;
  }
}
