/* ==========================================================================
   SHOWCASE — tabbed glass-mockup section
   Replaces the legacy `.ui-showcase` on index.html. The legacy `.browser-window`
   chrome is kept in apple.css for other pages (product.html etc.) — this file
   doesn't override it. Single dark image per tab; the mockup floats above the
   bright marketing canvas with a 3D tilt + accent glow.
   Layer stack mirrors the recipe in §2 of the showcase prompt.
   ========================================================================== */

.showcase {
  padding: 120px 0 140px;
  background: var(--bg);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

/* Faint grid wash behind the slab — Apple's "engineering precision" cue */
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 29, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center 60%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center 60%, black 30%, transparent 75%);
  z-index: 0;
}

.showcase-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- Heading block ---- */

.showcase-head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.showcase-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.showcase-title {
  margin: 22px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

.showcase-lede {
  margin: 18px auto 0;
  max-width: 560px;
  font-family: var(--font-text);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--ink-3);
}

/* ---- Tab strip ---- */

.showcase-tabs-row {
  display: flex;
  justify-content: center;
  margin: 40px 0 56px;
}

.showcase-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.showcase-tab {
  appearance: none;
  border: 0;
  background: transparent;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.showcase-tab:hover {
  color: var(--ink);
}

.showcase-tab[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.showcase-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Glass mockup ---- */

.showcase-stage {
  perspective: 1600px;
  perspective-origin: 50% 30%;
  position: relative;
  margin: 0 auto 80px;
  max-width: 1100px;
}

/* Outer accent glow — kisses on hover */
.glass-mockup__glow {
  position: absolute;
  inset: -48px;
  border-radius: 40px;
  background: radial-gradient(ellipse at center, rgba(0, 102, 204, 0.35), transparent 70%);
  filter: blur(40px);
  opacity: 0.25;
  transition: opacity 700ms var(--ease);
  pointer-events: none;
  z-index: 0;
}

/* Floor reflection — gives the "floating" feel */
.glass-mockup__floor {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: -32px;
  height: 128px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* The 3D slab itself */
.glass-mockup {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(2deg) rotateY(-6deg);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.glass-mockup:hover ~ .glass-mockup__glow,
.showcase-stage:hover .glass-mockup__glow { opacity: 0.7; }

.showcase-stage:hover .glass-mockup {
  transform: rotateX(1deg) rotateY(-3deg);
}

/* Layer 5 — bezel (gradient ring), the 1px premium edge */
.glass-mockup__bezel {
  position: relative;
  padding: 1px;
  border-radius: 22px;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.08) 30%,
      rgba(0, 0, 0, 0.18) 70%,
      rgba(255, 255, 255, 0.65) 100%);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.32),
    0 8px 24px -8px rgba(0, 0, 0, 0.18);
}

/* Layer 6 — card surface (holds the screenshot) */
.glass-mockup__card {
  position: relative;
  border-radius: 21px;
  background: #0a0a0c;
  overflow: hidden;
}

/* Layer 7 — window-chrome caption strip */
.glass-mockup__chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-mockup__dots {
  display: flex;
  gap: 8px;
}

.glass-mockup__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a3d;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3) inset;
}

.glass-mockup__caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* Empty third column keeps caption mathematically centered */
.glass-mockup__chrome-spacer { display: block; }

/* Layer 8 — the screenshot itself */
.glass-mockup__shot {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* Layer 9 — top-edge specular highlight, 1px */
.glass-mockup__highlight {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}

/* Layer 10 — inner glass sheen, diagonal wash */
.glass-mockup__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    rgba(255, 255, 255, 0.10) 0%,
    transparent 40%,
    transparent 60%,
    rgba(0, 0, 0, 0.06) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Layer 11 — brand-accent corner kiss (bottom-right) */
.glass-mockup__corner {
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 192px;
  height: 192px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.18);
  filter: blur(64px);
  opacity: 0.7;
  pointer-events: none;
}

/* Layer 12 — hover shimmer band */
.glass-mockup__shimmer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: 21px;
}

.glass-mockup__shimmer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -33%;
  width: 33%;
  transform: skewX(-12deg) translateX(0);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0;
  transition: transform 1400ms var(--ease-out), opacity 250ms var(--ease);
}

.showcase-stage:hover .glass-mockup__shimmer::before {
  opacity: 1;
  transform: skewX(-12deg) translateX(400%);
}

/* Layer 13 — outer-bezel inner shadow (1px inset ring) */
.glass-mockup__inset {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

/* ---- Capabilities + outcomes panel ---- */

.showcase-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 40px 44px;
  border-radius: 22px;
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.showcase-panel__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.showcase-panel__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-panel__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-text);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.showcase-panel__mark {
  flex-shrink: 0;
  margin-top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.showcase-panel__mark svg {
  width: 10px;
  height: 10px;
}

.showcase-panel__dash {
  flex-shrink: 0;
  margin-top: 10px;
  display: inline-block;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.showcase-panel__list--outcomes li { color: var(--ink-3); }

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .showcase { padding: 90px 0 110px; }
  .glass-mockup { transform: none; }
  .showcase-stage:hover .glass-mockup { transform: none; }
  .glass-mockup__floor { display: none; }
  .glass-mockup__corner { display: none; }
  .showcase-panel { grid-template-columns: 1fr; gap: 32px; padding: 32px 28px; }
}

@media (max-width: 540px) {
  .showcase { padding: 72px 0 96px; }
  .showcase-inner { padding: 0 16px; }
  .showcase-tabs { gap: 0; padding: 3px; overflow-x: auto; max-width: 100%; flex-wrap: nowrap; }
  .showcase-tab { padding: 0 12px; font-size: 12.5px; }
  .glass-mockup__bezel { border-radius: 16px; }
  .glass-mockup__card { border-radius: 15px; }
  .glass-mockup__inset { border-radius: 16px; }
  .glass-mockup__shimmer { border-radius: 15px; }
  .glass-mockup__caption { font-size: 9px; letter-spacing: 0.14em; }
  .showcase-panel { padding: 24px 20px; }
}

/* Respect reduced-motion users — no shimmer, no tilt easing */
@media (prefers-reduced-motion: reduce) {
  .glass-mockup,
  .showcase-stage:hover .glass-mockup,
  .glass-mockup__glow,
  .glass-mockup__shimmer::before { transition: none; }
}
