/* v3.1 — merged hero+showcase, feature overview table, features page */

/* ---- Showcase host inside hero ---- */
.hshow-host {
  position: relative;
}

.hshow-switch {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 auto 30px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hshow-tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--text-3);
  font-size: 13.5px;
  letter-spacing: -0.005em;
  transition: color .15s ease, background .15s ease, box-shadow .2s ease;
}
.hshow-tab:hover { color: var(--text); }
.hshow-tab.active {
  background: linear-gradient(180deg, rgba(243,214,168,0.16), rgba(243,214,168,0.06));
  color: var(--cream-hi);
  box-shadow: inset 0 0 0 1px rgba(243,214,168,0.3), 0 6px 20px -8px rgba(243,214,168,0.25);
}

.hshow-frame {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.7),
    0 30px 60px -30px rgba(90,70,160,0.35),
    0 0 0 1px rgba(255,255,255,0.04);
  aspect-ratio: 2772 / 1840;
}
.hshow-frame::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  pointer-events: none;
}
.hshow-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transition: opacity .35s ease;
}
.hshow-img.active { opacity: 1; }

/* ambient glow that adapts to view */
.hshow-glow {
  position: absolute;
  left: 50%; top: 30%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
  opacity: 0.7;
  transition: background .35s ease;
}
.hshow-host[data-view="library"]    .hshow-glow { background: radial-gradient(50% 50% at 50% 50%, rgba(110,150,240,0.30), transparent 70%); }
.hshow-host[data-view="nowplaying"] .hshow-glow { background: radial-gradient(50% 50% at 50% 50%, rgba(210, 110, 90, 0.32), transparent 70%); }
.hshow-host[data-view="search"]     .hshow-glow { background: radial-gradient(50% 50% at 50% 50%, rgba(168,135,235,0.30), transparent 70%); }
.hshow-host[data-view="edit"]       .hshow-glow { background: radial-gradient(50% 50% at 50% 50%, rgba(126,196,138,0.22), transparent 70%); }

.hshow-caption {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  min-height: 1.5em;
}
.hshow-caption strong { color: var(--text); font-weight: 500; }

/* The hero-mockup-wrap already has a built-in radial; suppress it under the
   showcase host so the data-view glow can do its job alone. */
.hero-show .hero-mockup-wrap::after { display: none; }

@media (max-width: 760px) {
  .hshow-switch { padding: 4px; gap: 3px; }
  .hshow-tab { padding: 0 12px; font-size: 12.5px; height: 32px; }
  .hshow-tab .tab-label-short { display: inline; }
  .hshow-tab .tab-label-long { display: none; }
}
@media (min-width: 761px) {
  .hshow-tab .tab-label-short { display: none; }
  .hshow-tab .tab-label-long { display: inline; }
}

/* ---- Feature overview (grouped grid) ---- */
.feat-overview {
  padding: 110px 0 100px;
  position: relative;
}
.feat-overview-head {
  max-width: 1080px;
  margin: 0 auto 48px;
}
.feat-overview-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.feat-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 56px;
  row-gap: 48px;
}
.feat-group {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feat-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.feat-group-ico {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--cream);
  background: rgba(243,214,168,0.07);
  border: 1px solid rgba(243,214,168,0.18);
  border-radius: 8px;
  flex: 0 0 auto;
}
.feat-group h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 0;
}
.feat-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.feat-group-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.feat-group-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.feat-item-ico {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-top: 2px;
  color: var(--text-3);
}
.feat-item-t { display: block; }

.feat-overview-foot {
  text-align: center;
  margin-top: 44px;
}
.feat-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: 14px;
  letter-spacing: -0.005em;
  padding: 10px 18px;
  border: 1px solid rgba(243,214,168,0.22);
  border-radius: 999px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.feat-more:hover {
  background: rgba(243,214,168,0.08);
  border-color: rgba(243,214,168,0.36);
  color: var(--cream-hi);
}
.feat-more svg { transition: transform .2s ease; }
.feat-more:hover svg { transform: translateX(3px); }

@media (max-width: 960px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .feat-grid { grid-template-columns: 1fr; }
}

/* ---- Features page ---- */
.fpage { padding: 120px 0 40px; }
.fpage-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.fpage-head h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-top: 18px;
}
.fpage-head .lede { margin: 22px auto 0; }

/* override .features section spacing on features page */
.fpage .features { padding-top: 0; padding-bottom: 60px; }
.fpage .features > .container > .section-head { display: none; }
.fpage .showcase { padding-top: 80px; }
.fpage .showcase > .container > .section-head { display: none; }
