.app-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 12vw, 180px) var(--pad);
  background:
    radial-gradient(circle at 70% 45%, rgba(20, 255, 214, .08), transparent 28%),
    linear-gradient(180deg, #050706, #030505 72%, #050706);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.app-showcase__halo {
  position: absolute;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(202, 255, 52, .14);
  border-radius: 50%;
  right: -280px;
  top: 34%;
  box-shadow: 0 0 100px rgba(72, 255, 220, .08), inset 0 0 100px rgba(202, 255, 52, .04);
  pointer-events: none;
}

.app-showcase__wrap { position: relative; z-index: 1; }

.app-showcase__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: end;
  margin-bottom: 58px;
}

.app-showcase__head h2 {
  margin: 18px 0 0;
  font: 600 clamp(3.6rem, 7vw, 7.4rem)/.88 Space Grotesk, sans-serif;
  letter-spacing: -.065em;
}

.app-showcase__head h2 i { color: var(--acid); font-style: normal; }
.app-showcase__intro p { margin: 0; color: #aeb7b1; font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.7; }

.app-showcase__legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: #77827b;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.app-showcase__legend span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
}

.app-showcase__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .18);
  margin-bottom: 46px;
}

.app-showcase__tab {
  position: relative;
  text-align: left;
  padding: 20px 20px 22px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: none;
  color: #69736d;
  cursor: pointer;
  font: 600 .78rem/1.35 Manrope, sans-serif;
  letter-spacing: .025em;
  transition: color .25s, border-color .25s;
}

.app-showcase__tab small { display: block; margin-bottom: 9px; color: #48514c; font-size: .62rem; letter-spacing: .14em; }
.app-showcase__tab::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: linear-gradient(90deg, #12dfff, var(--acid)); transition: right .35s ease; }
.app-showcase__tab.is-active { color: #f6faf7; border-bottom-color: rgba(255, 255, 255, .24); }
.app-showcase__tab.is-active small { color: var(--acid); }
.app-showcase__tab.is-active::after { right: 18px; }
.app-showcase__tab:focus-visible,
.app-showcase__controls button:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

.app-showcase__stage {
  display: grid;
  grid-template-columns: minmax(240px, .34fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  min-height: 690px;
}

.app-showcase__copy { align-self: center; }

.app-showcase__counter {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 54px;
  color: #5c6760;
  font: 600 .7rem Space Grotesk, sans-serif;
  letter-spacing: .12em;
}

.app-showcase__counter span:first-child { color: var(--acid); }
.app-showcase__counter i { display: block; width: 48px; height: 1px; background: #35413a; }
.app-showcase__story { display: none; max-width: 390px; }
.app-showcase__story.is-active { display: block; animation: app-copy-in .45s ease both; }
.app-showcase__story h3 { margin: 18px 0 22px; font: 600 clamp(2.15rem, 3.4vw, 3.9rem)/.98 Space Grotesk, sans-serif; letter-spacing: -.055em; }
.app-showcase__story p { margin: 0; color: #9da8a1; line-height: 1.75; max-width: 360px; }

.app-showcase__controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 46px; }
.app-showcase__controls button {
  height: 48px;
  min-width: 48px;
  border-radius: 999px;
  border: 1px solid #344139;
  background: rgba(7, 12, 9, .7);
  color: #ecf3ee;
  cursor: pointer;
  font-size: 1.1rem;
  transition: border-color .2s, color .2s, transform .2s;
}
.app-showcase__controls button:hover { border-color: var(--acid); color: var(--acid); transform: translateY(-2px); }
.app-showcase__controls .app-showcase__autoplay { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; font-size: .72rem; letter-spacing: .03em; }
.app-showcase__autoplay b { width: 12px; color: var(--acid); font-size: .72rem; }
.app-showcase__autoplay.is-paused { border-color: rgba(202, 255, 52, .4); }

.app-showcase__device-display { min-width: 0; }
.app-showcase__device-pair { display: flex; align-items: flex-end; justify-content: flex-end; gap: clamp(18px, 2.4vw, 34px); min-width: 0; }
.app-showcase__device-unit { min-width: 0; }
.app-showcase__device-unit--phone { flex: 0 1 230px; width: 230px; }
.app-showcase__device-unit--tablet { flex: 1 1 620px; width: min(650px, 100%); }

.app-showcase__device-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  margin-bottom: 13px;
  color: #657169;
  font-size: .62rem;
  letter-spacing: .06em;
}
.app-showcase__device-label b { color: #dce5df; font: 600 .78rem Space Grotesk, sans-serif; letter-spacing: .04em; }

.app-showcase__device-shell { position: relative; width: 100%; }
.app-showcase__device-glow { position: absolute; inset: 9% -20% 5%; background: radial-gradient(ellipse, rgba(28, 244, 223, .18), transparent 58%); filter: blur(26px); pointer-events: none; }
.app-showcase__device {
  position: relative;
  aspect-ratio: 853/1844;
  border: 1px solid #334139;
  border-radius: 32px;
  overflow: hidden;
  background: #020404;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .64), 0 0 0 6px #090d0b, 0 0 0 7px #262e29;
}
.app-showcase__device::before { content: ""; position: absolute; z-index: 4; top: 7px; left: 50%; width: 58px; height: 13px; transform: translateX(-50%); border-radius: 999px; background: #020403; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }

.app-showcase__tablet-shell {
  position: relative;
  padding: 10px;
  aspect-ratio: 4/3;
  border: 1px solid #334139;
  border-radius: 28px;
  background: #090d0b;
  box-shadow: 0 48px 100px rgba(0, 0, 0, .62), 0 0 0 1px #252e29;
}
.app-showcase__tablet-camera { position: absolute; z-index: 4; top: 50%; right: 3px; width: 4px; height: 4px; transform: translateY(-50%); border-radius: 50%; background: #35423b; box-shadow: 0 0 0 2px #060807; }
.app-showcase__tablet-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 20px; background: #020404; }
.app-showcase__screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.012); transition: opacity .5s ease, transform .8s ease; }
.app-showcase__screen.is-active { opacity: 1; transform: scale(1); z-index: 2; }

.app-showcase__flow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  color: #667169;
  font: .6rem/1.4 Space Grotesk, sans-serif;
  letter-spacing: .11em;
}
.app-showcase__flow i { color: var(--acid); font-style: normal; }
.app-showcase__note { max-width: 720px; margin: 66px auto 0; color: #59645e; text-align: center; font-size: .68rem; line-height: 1.65; }

@keyframes app-copy-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  .app-showcase__stage { grid-template-columns: 1fr; gap: 54px; }
  .app-showcase__copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .app-showcase__counter { grid-column: 1/-1; margin-bottom: 28px; }
  .app-showcase__story { grid-column: 1; }
  .app-showcase__controls { grid-column: 2; align-self: end; margin: 0 0 0 30px; justify-content: flex-end; }
  .app-showcase__device-pair { justify-content: center; }
  .app-showcase__device-unit--phone { flex-basis: 205px; width: 205px; }
  .app-showcase__device-unit--tablet { max-width: 620px; }
}

@media (max-width: 700px) {
  .app-showcase { padding-top: 88px; padding-bottom: 100px; }
  .app-showcase__head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .app-showcase__head h2 { font-size: clamp(3.3rem, 16vw, 5rem); }
  .app-showcase__intro p { font-size: .96rem; }
  .app-showcase__tabs { overflow-x: auto; grid-template-columns: repeat(4, minmax(160px, 1fr)); margin-right: calc(var(--pad) * -1); margin-bottom: 42px; scrollbar-width: none; }
  .app-showcase__tabs::-webkit-scrollbar { display: none; }
  .app-showcase__tab { min-width: 160px; }
  .app-showcase__copy { display: block; width: 100%; }
  .app-showcase__counter { margin-bottom: 30px; }
  .app-showcase__story h3 { font-size: clamp(2.25rem, 11vw, 3.6rem); }
  .app-showcase__controls { margin: 32px 0 0; justify-content: flex-start; }
  .app-showcase__device-display { width: calc(100% + var(--pad)); overflow-x: auto; margin-right: calc(var(--pad) * -1); padding: 10px var(--pad) 40px 8px; scrollbar-width: thin; scrollbar-color: #435149 transparent; }
  .app-showcase__device-pair { width: 750px; justify-content: flex-start; gap: 24px; }
  .app-showcase__device-unit--phone { flex: 0 0 190px; width: 190px; }
  .app-showcase__device-unit--tablet { flex: 0 0 520px; width: 520px; }
  .app-showcase__device { border-radius: 28px; }
  .app-showcase__tablet-shell { border-radius: 23px; }
  .app-showcase__tablet-screen { border-radius: 16px; }
  .app-showcase__flow { width: 750px; justify-content: flex-start; }
  .app-showcase__note { margin-top: 36px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .app-showcase__story.is-active { animation: none; }
  .app-showcase__screen { transition: none; }
}
