/* Halaman showcase: perkenalan di kiri, bingkai iPhone 17 Pro Max di tengah, indeks layar di kanan. */
.showcase {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(480px, 1fr) minmax(280px, 340px);
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--gold-soft) 0%, transparent 70%),
    var(--bg-deep);
}

.showcase__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-10) var(--space-8);
  overflow-y: auto;
  scrollbar-width: none;
}

.showcase__logo {
  width: 220px;
  height: auto;
}

.showcase__logo--dark,
:root[data-theme="dark"] .showcase__logo--light {
  display: none;
}

:root[data-theme="dark"] .showcase__logo--dark {
  display: block;
}

.showcase__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.showcase__eyebrow,
.showcase__label {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.showcase__title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.showcase__lead {
  color: var(--ink-2);
}

.showcase__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.showcase__segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}

.showcase__segment {
  min-height: 38px;
  border-radius: 11px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-2);
  transition:
    background-color var(--duration) var(--ease-ios),
    color var(--duration) var(--ease-ios);
}

.showcase__segment[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.showcase__actions {
  display: grid;
  gap: var(--space-2);
}

.showcase__button {
  min-height: 46px;
  padding: 0 var(--space-4);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-align: left;
  background: var(--surface);
  transition:
    transform var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease);
}

.showcase__button:hover {
  border-color: var(--gold);
}

.showcase__button:active {
  transform: scale(0.98);
}

.showcase__button--gold {
  border-color: transparent;
  color: var(--on-gold);
  background: var(--gold-gradient);
}

.showcase__links {
  display: grid;
  gap: var(--space-2);
}

.showcase__link {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--gold-strong);
  text-decoration: underline;
  text-decoration-color: var(--gold-border);
  text-underline-offset: 4px;
}

.showcase__link:hover {
  text-decoration-color: currentcolor;
}

.showcase__note {
  margin-top: auto;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.showcase__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100dvh;
}

.showcase__route {
  position: absolute;
  bottom: var(--space-3);
  min-height: 1.5em;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Bingkai iPhone 17 Pro Max: layar 440 × 956 pt. Skala dihitung showcase.js agar muat di tinggi jendela. */
.device {
  --device-scale: 1;

  position: relative;
  flex: none;
  width: 464px;
  height: 980px;
  padding: 12px;
  border-radius: 74px;
  background: linear-gradient(145deg, #4b4437 0%, #1a1712 40%, #2d2820 100%);
  box-shadow:
    0 0 0 2px #0c0a07,
    0 40px 90px rgb(20 14 4 / 38%),
    inset 0 0 0 2px rgb(255 240 200 / 14%);
  transform: scale(var(--device-scale));
  transform-origin: center;
}

.device__screen {
  position: relative;
  width: 440px;
  height: 956px;
  overflow: hidden;
  border-radius: 62px;
  background: var(--bg);
}

.device__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.device__island {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 124px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.device__home {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 144px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  opacity: 0.85;
  transform: translateX(-50%);
  pointer-events: none;
}

.device__button {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: #2a251c;
}

.device__button--action {
  top: 170px;
  left: -4px;
  height: 34px;
}

.device__button--volume-up {
  top: 232px;
  left: -4px;
  height: 62px;
}

.device__button--volume-down {
  top: 310px;
  left: -4px;
  height: 62px;
}

.device__button--power {
  top: 270px;
  right: -4px;
  height: 100px;
}

.showcase__index {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--hairline);
  background: var(--glass);
  backdrop-filter: var(--blur);
}

.showcase__index-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--hairline);
}

.showcase__index-title {
  font-size: var(--fs-xl);
  font-weight: 800;
}

.showcase__index-count {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.showcase__search-input {
  width: 100%;
  min-height: 42px;
  padding: 0 var(--space-4);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  font-weight: 600;
  background: var(--surface);
}

.showcase__search-input:focus {
  border-color: var(--gold);
  outline: 0;
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.showcase__index-list {
  flex: 1;
  min-height: 0;
  padding: var(--space-4) var(--space-3) var(--space-8);
  overflow-y: auto;
}

.showcase__group + .showcase__group {
  margin-top: var(--space-5);
}

.showcase__group-title {
  padding: 0 var(--space-2) var(--space-2);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.showcase__screen {
  display: block;
  width: 100%;
  padding: 9px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: left;
  transition: background-color var(--duration-fast) var(--ease);
}

.showcase__screen:hover {
  background: var(--hairline);
}

.showcase__screen[data-active] {
  color: var(--gold-strong);
  background: var(--gold-soft);
}

.showcase__variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px var(--space-3) var(--space-2);
}

.showcase__variant {
  padding: 3px 10px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.showcase__variant:hover {
  border-color: var(--gold);
  color: var(--gold-strong);
}

@media (max-width: 1240px) {
  .showcase {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    grid-template-rows: 100dvh auto;
    height: auto;
    overflow: visible;
  }

  .showcase__intro {
    height: 100dvh;
  }

  .showcase__index {
    grid-column: 1 / -1;
    border-top: 1px solid var(--hairline);
    border-left: 0;
  }

  .showcase__index-list {
    overflow: visible;
  }

  .showcase__group-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 860px) {
  .showcase {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .showcase__intro {
    height: auto;
    padding: var(--space-8) var(--space-5);
  }

  .showcase__note {
    margin-top: 0;
  }
}
