.feature-scroll {
  position: relative;
  background: linear-gradient(135deg, #f8f7fb 0%, #f7f4ef 48%, #eef3f8 100%);
}

.feature-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 700px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.feature-sticky::before {
  content: "";
  position: absolute;
  inset: 8% 28%;
  background: var(--lilac);
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.38;
}

.feature-copy-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.showcase-copy {
  position: absolute;
  top: 50%;
  width: min(26vw, 400px);
  opacity: 0;
  transform: translateY(calc(-50% + 30px));
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.showcase-copy.side-left { left: var(--pad); }
.showcase-copy.side-right { right: var(--pad); }

.showcase-copy.active {
  opacity: 1;
  transform: translateY(-50%);
}

.showcase-copy > span {
  color: var(--violet);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.showcase-copy h2 {
  margin: 18px 0 22px;
  font-size: clamp(38px, 3.8vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.showcase-copy p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.showcase-device {
  position: relative;
  z-index: 3;
  width: min(32vw, 470px);
  height: min(23.3vw, 342px);
  min-width: 380px;
  min-height: 292px;
  padding: 10px;
  overflow: hidden;
  background: #171717;
  border: 1px solid #777;
  border-radius: 18px;
  box-shadow: 0 35px 85px rgba(20, 20, 18, 0.22), inset 0 0 0 1px #333;
}

.showcase-device-top {
  position: absolute;
  z-index: 8;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #20211f;
  color: rgba(255, 255, 255, 0.75);
  font-size: 9px;
  border-radius: 9px 9px 0 0;
}

.showcase-device-top strong {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 500;
}

.showcase-device-top b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: white;
  border-radius: 50%;
  font-size: 7px;
}

.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; display: block; background: #6d6d68; border-radius: 50%; }
.window-dots i:first-child { background: #ef7867; }
.window-dots i:nth-child(2) { background: #dfbd55; }
.window-dots i:nth-child(3) { background: #6bad72; }

.showcase-screen {
  position: absolute;
  inset: 52px 10px 10px;
  padding: 22px 27px;
  overflow: hidden;
  background: #f7f6f1;
  border-radius: 0 0 9px 9px;
  text-align: left;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.showcase-screen.active {
  opacity: 1;
  transform: scale(1);
}

.showcase-screen h3 {
  margin: 5px 0 17px;
  font-size: clamp(23px, 1.8vw, 30px);
  line-height: 1;
}

.showcase-screen .upload-card {
  width: min(440px, 82%);
  min-height: 210px;
  margin: 0 auto;
  padding: 24px;
}

.showcase-screen .file-icon {
  width: 58px;
  height: 67px;
  margin-bottom: 15px;
}

.showcase-screen .progress { margin-top: 20px; }

.showcase-screen[data-screen-step="0"] {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 34px;
}

.showcase-screen[data-screen-step="0"] > .screen-label,
.showcase-screen[data-screen-step="0"] > h3 { grid-column: 1; }
.showcase-screen[data-screen-step="0"] > .topic-row,
.showcase-screen[data-screen-step="0"] > .topic-insight { grid-column: 2; }
.showcase-screen[data-screen-step="0"] > .topic-row:first-of-type { grid-row: 1; }
.showcase-screen[data-screen-step="0"] > .topic-row:nth-of-type(2) { grid-row: 2; }
.showcase-screen[data-screen-step="0"] > .topic-row:nth-of-type(3) { grid-row: 3; }
.showcase-screen[data-screen-step="0"] > .topic-row:nth-of-type(4) { grid-row: 4; }
.showcase-screen[data-screen-step="0"] > .topic-insight { grid-row: 5; margin-top: 14px; }

.time-screen {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px 28px;
  align-items: start;
}

.time-screen .screen-label,
.time-screen h3 {
  grid-column: 1;
}

.time-grid {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.time-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.time-grid i {
  aspect-ratio: 1;
  display: block;
  border-radius: 10px;
  background: rgba(108, 98, 232, calc(.18 + var(--heat) * .55));
  box-shadow: inset 0 0 0 1px rgba(108, 98, 232, .12);
}

.time-grid i.hot {
  background: var(--violet);
}

.time-screen .topic-insight {
  grid-column: 1 / -1;
  margin-top: 5px;
}

.showcase-screen.focus-screen ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.showcase-screen.focus-screen li {
  min-height: 165px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
  background: white;
  border: 1px solid #dcd9d2;
  border-radius: 12px;
}

.showcase-screen.focus-screen li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--lilac);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.showcase-screen.focus-screen li p {
  margin: auto 0 0;
  font-size: 13px;
  line-height: 1.35;
}

.risk-screen li:first-child {
  border-color: rgba(239, 133, 110, .55);
  background: #fff4f0;
}

.risk-screen li:first-child > span {
  background: var(--coral);
  color: white;
}

.risk-screen li:nth-child(2) > span {
  background: #f0dfb0;
}

.recommendation-screen .briefing-cover {
  background: linear-gradient(135deg, #19221d 0%, #26362d 100%);
}

.briefing-cover {
  min-height: 195px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  background: #19221d;
  color: white;
  border-radius: 16px;
}

.briefing-cover small { font-size: 9px; letter-spacing: 0.12em; }
.briefing-cover strong { margin: 30px 0 22px; font-size: 29px; line-height: 1.03; font-weight: 500; }
.briefing-cover i { width: 100%; height: 7px; margin-top: 12px; background: rgba(255, 255, 255, 0.22); border-radius: 5px; }
.briefing-cover i:nth-of-type(2) { width: 76%; }
.briefing-cover i:nth-of-type(3) { width: 55%; }

.showcase-screen.briefing-screen button {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: white;
  font-weight: 600;
}

.showcase-progress {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.showcase-progress i {
  width: 6px;
  height: 6px;
  background: #b9b7b0;
  border-radius: 50%;
  transition: width 0.25s, background 0.25s;
}

.showcase-progress i.active {
  width: 24px;
  background: var(--violet);
  border-radius: 5px;
}

.feature-trigger { height: 100vh; pointer-events: none; }

@media (max-width: 900px) {
  .feature-scroll { height: auto; padding: 90px var(--pad); }
  .feature-sticky { position: relative; height: auto; min-height: 0; display: flex; flex-direction: column; overflow: visible; }
  .feature-sticky::before { inset: 10% 5%; }
  .showcase-device { order: 1; width: min(100%, 590px); height: 430px; min-width: 0; min-height: 0; }
  .feature-copy-layer { position: relative; inset: auto; order: 2; width: 100%; margin-top: 60px; display: grid; gap: 65px; }
  .showcase-copy { position: relative; top: auto; width: 100%; max-width: 650px; opacity: 1; transform: none; }
  .showcase-copy.side-left, .showcase-copy.side-right { left: auto; right: auto; }
  .showcase-copy:nth-child(even) { justify-self: end; text-align: right; }
  .showcase-copy:nth-child(even) p { margin-left: auto; }
  .showcase-progress, .feature-trigger { display: none; }
}

@media (max-width: 620px) {
  .feature-scroll { padding: 70px 19px 80px; }
  .showcase-device { width: 100%; height: 360px; border-radius: 12px; }
  .showcase-device-top { height: 35px; }
  .showcase-screen { inset: 45px 10px 10px; padding: 19px; border-radius: 0 0 6px 6px; }
  .showcase-screen .upload-card { min-height: 205px; padding: 16px; }
  .showcase-screen[data-screen-step="0"] { display: block; }
  .showcase-screen[data-screen-step="0"] .topic-row:nth-of-type(n+4) { display: none; }
  .time-screen { display: block; }
  .time-grid { grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 10px 0 12px; }
  .showcase-screen.focus-screen ol { grid-template-columns: 1fr; gap: 7px; }
  .showcase-screen.focus-screen li { min-height: 58px; display: grid; grid-template-columns: 30px 1fr; padding: 9px; }
  .showcase-screen.focus-screen li p { margin: 3px 0 0; }
  .briefing-cover { min-height: 185px; padding: 18px; }
  .briefing-cover strong { margin: 24px 0 18px; font-size: 25px; }
  .showcase-copy h2 { font-size: 49px; }
  .showcase-copy p { font-size: 16px; }
  .feature-copy-layer { gap: 52px; }
}
