.template-showcase-page {
  min-height: 100vh;
}

.template-showcase-page::after {
  display: none;
}

.showcase-header {
  animation: none;
}

.showcase-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 132px 0 72px;
}

.showcase-hero,
.customizer-panel,
.template-stage {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(11, 12, 15, 0.78);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.showcase-hero {
  padding: clamp(28px, 5vw, 56px);
}

.showcase-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: end;
}

.showcase-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(46px, 8vw, 94px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.showcase-lede {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.showcase-hero__card {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.showcase-stat {
  display: block;
  color: var(--accent-lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 54px;
  font-weight: 700;
}

.showcase-hero__card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.customizer-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  margin-top: 18px;
  padding: 24px;
}

.customizer-panel__heading h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.customizer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.customizer-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.showcase-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
  outline: none;
  padding: 0 14px;
}

.showcase-input:focus {
  border-color: rgba(56, 242, 209, 0.75);
  box-shadow: 0 0 0 4px rgba(56, 242, 209, 0.08);
}

.template-stage {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.template-stage__top {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 16px;
  align-items: center;
}

.showcase-arrow {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 26px;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.showcase-arrow:hover,
.showcase-arrow:focus-visible {
  border-color: rgba(215, 255, 95, 0.68);
  background: rgba(215, 255, 95, 0.12);
  transform: translateY(-2px);
}

.template-summary {
  min-width: 0;
  text-align: center;
}

.template-category {
  margin: 0;
  color: var(--accent-cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.template-summary h2 {
  margin: 8px 0;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: -0.06em;
}

.template-summary p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
}

.preview-shell {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0d0e12;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.35);
}

.browser-frame {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.browser-frame span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent-rose);
}

.browser-frame span:nth-child(2) {
  background: var(--accent-amber);
}

.browser-frame span:nth-child(3) {
  background: var(--accent-cyan);
}

#templatePreview {
  display: block;
  width: 100%;
  height: min(72vh, 820px);
  min-height: 560px;
  border: 0;
  background: #fff;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.template-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}

.template-dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.template-dot.is-active {
  width: 32px;
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
}

@media (max-width: 960px) {
  .showcase-hero__grid,
  .customizer-panel,
  .customizer-grid {
    grid-template-columns: 1fr;
  }

  .site-header.showcase-header {
    position: static;
  }

  .showcase-main {
    padding-top: 24px;
  }
}

@media (max-width: 640px) {
  .template-stage__top {
    grid-template-columns: 1fr 1fr;
  }

  .template-summary {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .showcase-arrow {
    width: 100%;
  }

  #templatePreview {
    height: 620px;
    min-height: 620px;
  }
}
