/* ==========================================================================
   NORTHSTAR SHOWROOM — page layouts
   ========================================================================== */

/* hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(900px, 92dvh);
  padding: clamp(48px, 7vh, 88px) 0 clamp(36px, 5vh, 64px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 720px;
  height: 720px;
  background: radial-gradient(
    circle,
    color-mix(in oklab, var(--gold) 10%, transparent),
    transparent 66%
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(44px, 5.9vw, 96px);
  line-height: 0.92;
}

.hero-title .serif {
  color: var(--gold);
}

.hero-sub {
  max-width: 520px;
  margin-top: 24px;
  color: var(--text-2);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 24px);
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font: 500 9px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-stack {
  position: relative;
  height: clamp(380px, 44vw, 560px);
  perspective: 1200px;
}

.stack-card {
  position: absolute;
  width: 75%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-card:nth-child(1) {
  top: 1%;
  left: 0;
  z-index: 1;
  transform: rotate(-8deg);
}

.stack-card:nth-child(2) {
  top: 15%;
  right: 0;
  z-index: 2;
  transform: rotate(6deg);
}

.stack-card:nth-child(3) {
  bottom: 8%;
  left: 7%;
  z-index: 3;
  transform: rotate(3deg);
}

.stack-card:nth-child(4) {
  right: 5%;
  bottom: 0;
  z-index: 4;
  transform: rotate(-5deg);
}

.hero-stack:hover .stack-card:nth-child(1) {
  transform: rotate(-11deg) translate(-10px, -8px);
}

.hero-stack:hover .stack-card:nth-child(2) {
  transform: rotate(9deg) translate(10px, -6px);
}

.hero-stack:hover .stack-card:nth-child(3) {
  transform: rotate(5deg) translate(-6px, 8px);
}

.hero-stack:hover .stack-card:nth-child(4) {
  transform: rotate(-7deg) translate(8px, 8px);
}

.stack-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(8, 8, 10, 0.62);
  color: rgba(255, 255, 255, 0.78);
  font: 500 8px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.hero-outline {
  position: absolute;
  right: 0;
  bottom: -4%;
  left: 0;
  z-index: 0;
  overflow: hidden;
  color: transparent;
  font-size: clamp(90px, 18vw, 280px);
  font-weight: 600;
  line-height: 0.72;
  letter-spacing: -0.055em;
  white-space: nowrap;
  opacity: 0.35;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
}

/* home sections ---------------------------------------------------------- */
.home-stats {
  padding: 0;
}

.featured-section {
  padding-top: clamp(48px, 6vw, 84px);
}

.categories-section .section-head {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.roadmap-section {
  background: color-mix(in oklab, var(--surface) 45%, transparent);
}

.cta-band {
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.cta-band .h2 {
  max-width: 880px;
}

.cta-band .lede {
  margin-top: 18px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

/* explore ---------------------------------------------------------------- */
.explore-head {
  padding: clamp(52px, 7vw, 96px) 0 clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.explore-head .h2 {
  margin-top: 16px;
  font-size: clamp(38px, 5.6vw, 78px);
}

.explore-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.explore-body {
  padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 96px);
}

[data-category-filters] {
  flex-wrap: wrap;
  max-width: 100%;
  row-gap: 5px;
}

.demo-grid.is-list {
  grid-template-columns: minmax(0, 1fr);
}

.demo-grid.is-list .demo-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
}

.demo-grid.is-list .demo-cover {
  height: 100%;
  min-height: 190px;
  aspect-ratio: auto;
}

.demo-grid.is-list .demo-body {
  padding: 18px 22px;
}

.demo-grid.is-list .demo-foot {
  margin-top: 18px;
}

/* detail ----------------------------------------------------------------- */
.detail-page {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 24px;
  color: var(--text-3);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .sep {
  color: var(--text-4);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.detail-fact {
  padding: 12px 14px;
  background: var(--surface);
}

.detail-fact span {
  display: block;
  color: var(--text-4);
  font: 500 8.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-fact b {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 12px;
  font-weight: 550;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* preview page ----------------------------------------------------------- */
.preview-page .brand-mark {
  box-shadow: none;
}

/* responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .detail-about {
    grid-template-columns: minmax(0, 1fr) !important;
  }

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

  .hero-stack {
    height: 440px;
    max-width: 720px;
    margin-top: 12px;
  }

  .hero-outline {
    display: none;
  }

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

@media (max-width: 860px) {
  .hero {
    min-height: 0;
    padding-top: 44px;
  }

  .hero-stack {
    height: 340px;
  }

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

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

@media (max-width: 720px) {
  .hero-stack {
    height: 300px;
  }

  .stack-card {
    width: 82%;
  }

  .demo-grid.is-list .demo-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-grid.is-list .demo-cover {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .explore-toolbar {
    align-items: flex-start;
  }

  .explore-toolbar .filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
}

@media (max-width: 520px) {
  .hero-stack {
    height: 250px;
  }

  .hero-title {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-meta {
    gap: 10px;
  }
}
