/* ────────────────────────────────────────────────
   use cases — living showcase
   ──────────────────────────────────────────────── */

.use-cases{
  padding: 70px 0 80px;
  position: relative;
}
.use-cases > .container{ max-width: var(--container); }

.use-cases header{
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
  max-width: 760px;
}
.use-cases header h2{
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--h2);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.use-cases header h2 em{
  font-style: normal;
  color: var(--ink-dim);
  font-weight: 400;
}
.use-cases header p{
  font-size: var(--body);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 540px;
  letter-spacing: -0.005em;
}

/* pills */
.uc-pills{
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.uc-pill{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 11px 18px 11px 14px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: none;
  transition: all .35s var(--ease-out);
}
.uc-pill:hover{ border-color: var(--line-2); color: var(--ink); }
.uc-pill.active{
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.uc-pill svg{ width: 14px; height: 14px; flex-shrink: 0; }

/* ────────── demo zone ────────── */
.uc-demo-zone{
  position: relative;
  height: 600px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-2);
}

.uc-demo-marquee{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  padding: 24px 0;
  gap: 16px;
  opacity: 0.45;
}
.uc-m-row{
  height: 200px;
  overflow: hidden;
  position: relative;
}
.uc-m-track{
  display: flex;
  gap: 8px;
  height: 100%;
  width: max-content;
  will-change: transform;
}
.uc-m-tile{
  flex-shrink: 0;
  width: 160px;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-3);
}
.uc-m-tile img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.65) brightness(0.55) contrast(1.05) blur(0.5px);
}
@keyframes uc-marquee-left{
  from{ transform: translate3d(0, 0, 0); }
  to  { transform: translate3d(-50%, 0, 0); }
}
@keyframes uc-marquee-right{
  from{ transform: translate3d(-50%, 0, 0); }
  to  { transform: translate3d(0, 0, 0); }
}
.uc-m-row-1 .uc-m-track{ animation: uc-marquee-left 90s linear infinite; }
.uc-m-row-2 .uc-m-track{ animation: uc-marquee-right 110s linear infinite; }

.uc-demo-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 75% at 50% 50%, rgba(10,9,8,0.92) 0%, rgba(10,9,8,0.45) 45%, transparent 80%),
    linear-gradient(to right, var(--bg-2) 0%, transparent 6%, transparent 94%, var(--bg-2) 100%),
    linear-gradient(to bottom, rgba(10,9,8,0.55) 0%, transparent 12%, transparent 88%, rgba(10,9,8,0.55) 100%);
}

.uc-demo-content{
  position: relative;
  z-index: 5;
  padding: 56px 64px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 56px;
}

/* phone */
.uc-phone-wrap{
  flex-shrink: 0;
  perspective: 800px;
  position: relative;
}

/* per-variant static image (overrides the morphing phone when active) */
.uc-variant-image{
  display: none;
  width: 420px;
  height: auto;
  max-width: none;
  margin: -50px 0 -50px -50px;
  pointer-events: none;
  user-select: none;
}
.uc-phone-wrap.has-variant-image .uc-phone{ display: none; }
.uc-phone-wrap.has-variant-image .uc-variant-image{ display: block; }

@media (max-width: 720px){
  .uc-variant-image{ width: 320px; margin: -32px 0 -32px -32px; }
}
.uc-phone{
  width: 280px;
  height: 480px;
  background: #08070a;
  border: 1px solid var(--line-2);
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.uc-phone::before{
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 24px;
  background: #000;
  border-radius: 100px;
  z-index: 5;
}
.uc-phone-screen{
  width: 100%; height: 100%;
  background: #0d0c0b;
  border-radius: 30px;
  padding: 54px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.uc-phone-topline{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.uc-phone-live{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--rec);
  border: 1px solid rgba(255, 92, 0, 0.35);
  background: rgba(255, 92, 0, 0.08);
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 8px;
}
.uc-phone-live::before{
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 6px var(--rec);
  animation: pulse 1.6s ease-in-out infinite;
}
.uc-phone-title{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.uc-phone-meta{
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: -4px;
}
.uc-feed-grid{
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
  align-content: start;
}
.uc-feed-tile{
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.uc-feed-tile img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.92);
}
.uc-feed-tile.fresh::after{
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--rec);
  border-radius: 4px;
  animation: ringFade 1.4s ease-out forwards;
}
.uc-phone-foot{
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 6px 0;
}
.uc-phone-foot strong{ color: var(--ink); font-weight: 500; }

/* right-side info */
.uc-info{
  flex: 1;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.uc-lede{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(19px, 1.85vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.018em;
}
.uc-lede em{
  font-style: normal;
  color: var(--ink-dim);
}
.uc-divider{
  height: 1px;
  background: var(--line-2);
}
.uc-captures-label{
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.uc-captures{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.uc-capture-item{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-dim);
  letter-spacing: -0.005em;
}
.uc-capture-item::before{
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ctx CTA */
.uc-ctx-cta{
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.uc-ctx-msg{
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: -0.005em;
}
.uc-ctx-msg strong{ color: var(--ink); font-weight: 500; }
.uc-ctx-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 100px;
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.01em;
  cursor: none;
  transition: transform .3s;
}
.uc-ctx-btn:hover{ transform: translateY(-1px); }
.uc-ctx-btn .arrow{ transition: transform .3s; }
.uc-ctx-btn:hover .arrow{ transform: translate(2px, -2px); }

/* ────────── responsive ────────── */
@media (max-width: 980px){
  .use-cases{ padding: 56px 0 70px; }
  .use-cases header{ margin-bottom: 30px; gap: 18px; }
  .uc-pills{
    overflow-x: auto;
    flex-wrap: nowrap;
    margin: 0 -20px 16px;
    padding: 0 20px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .uc-pills::-webkit-scrollbar{ display: none; }
  .uc-pill{ flex-shrink: 0; scroll-snap-align: start; }

  .uc-demo-zone{ height: auto; border-radius: 18px; }
  .uc-demo-content{
    flex-direction: column;
    padding: 36px 24px;
    gap: 36px;
    align-items: center;
  }
  .uc-info{ max-width: 100%; gap: 28px; width: 100%; }

  .uc-demo-marquee{ opacity: 0.3; padding: 14px 0; gap: 10px; }
  .uc-m-row{ height: 120px; }
  .uc-m-tile{ width: 110px; }
  .uc-demo-overlay{
    background:
      radial-gradient(ellipse 90% 70% at 50% 50%, rgba(10,9,8,0.92) 0%, rgba(10,9,8,0.5) 50%, transparent 90%),
      linear-gradient(to right, var(--bg-2) 0%, transparent 6%, transparent 94%, var(--bg-2) 100%);
  }

  .uc-ctx-cta{
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 24px;
  }
  .uc-ctx-btn{ justify-content: center; padding: 14px 22px; }
}

@media (max-width: 620px){
  .use-cases header h2{ font-size: 36px; line-height: 1.02; }
  .use-cases header p{ font-size: 14.5px; }
  .uc-pill{ padding: 10px 14px 10px 12px; font-size: 12px; }
  .uc-pill svg{ width: 13px; height: 13px; }
  .uc-demo-content{ padding: 26px 18px; gap: 26px; }
  .uc-phone{ width: 224px; height: 388px; border-radius: 36px; padding: 10px; }
  .uc-phone::before{ width: 80px; height: 22px; top: 12px; }
  .uc-phone-screen{ padding: 46px 12px 12px; border-radius: 27px; gap: 10px; }
  .uc-phone-title{ font-size: 19px; }
  .uc-phone-topline{ font-size: 8px; }
  .uc-phone-foot{ font-size: 8px; }
  .uc-demo-marquee{ opacity: 0.22; }
  .uc-m-row-2{ display: none; }
  .uc-lede{ font-size: 17px; line-height: 1.42; }
  .uc-capture-item{ font-size: 14px; }
  .uc-info{ gap: 26px; }
  .uc-ctx-msg{ font-size: 13px; }
  .uc-ctx-btn{ font-size: 13px; padding: 14px 20px; width: 100%; }
}
