/* -------- Showcase (two screens + moving glass window) -------- */

.showcase {
  position: relative;
  /* height: 80vh; */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6vh;
}

.showcase-screen {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

/* control only width of each screen relative to showcase */
.showcase-screen--top {
  width: 80%;
  box-shadow: 0 0 15px 2px rgba(55, 155, 254, 0.35);
}

.showcase-screen--bottom {
  width: 68%;
  box-shadow: 0 0 15px 1px rgba(239, 108, 9, 0.25);
}

img.screen-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* glass window */

.app-window {
  position: absolute;
  width: 65%;
  left: 17.5%;
  --h: 0.45;
  height: calc(var(--h) * 100%);
  border-radius: 6px;
  background: rgba(250, 250, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
  display: flex;        
  flex-direction: column;
  container-type: inline-size;
}

.app-window--top {
  /* start around center of top screen */
  top: 18%;
  opacity: 1;
}

.app-window--bottom {
  /* start hidden above bottom screen */
  top: calc(18% - 100%);
  opacity: 0;
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: clamp(3px, 1.7cqi, 6px);
  padding: clamp(3px, 2cqi, 7px) clamp(4px, 2.85cqi, 10px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.4)
  );
}

.window-dot {
  width: clamp(4px, 2.26cqi, 8px);
  height: clamp(4px, 2.26cqi, 8px);
  border-radius: 999px;
}

.window-dot.red {
  background: #ff5f57;
}

.window-dot.yellow {
  background: #febc2e;
}

.window-dot.green {
  background: #28c840;
}

.window-body {
  flex: 1;  /* <— added */
  padding: clamp(5px, 3.95cqi, 16px) clamp(5px, 3.4cqi, 14px) clamp(5px, 3.95cqi, 16px);
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.1),
    rgba(148, 163, 184, 0.02)
  );
}

.window-row {
  height: clamp(4px, 1.7cqi, 8px);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
  margin-bottom: clamp(4px, 1.7cqi, 8px);
}

.window-row.medium {
  width: 72%;
}

.window-row.short {
  width: 55%;
}

.window-row:last-child {
  margin-bottom: 0;
}



@media (max-width: 1000px) {
  .showcase-screen--top {
    width: 94%;
  }

  .showcase-screen--bottom {
    width: 78%;
  }
}