.feature-intro {
  background: #fffaf5;
}

.fabric-spotlight,
.tool-story {
  position: relative;
  display: grid;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.fabric-spotlight::after,
.tool-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  filter: blur(3px);
}

.fabric-spotlight {
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, .82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 78px);
  min-height: 650px;
  padding: clamp(38px, 6vw, 72px);
  border-radius: 40px;
  background: linear-gradient(140deg, #ee654b 0%, #f49b3f 48%, #c8558d 100%);
  box-shadow: 0 34px 80px rgba(120,58,35,.16);
}

.fabric-spotlight::after {
  right: -110px;
  top: -140px;
}

.feature-copy {
  position: relative;
  z-index: 2;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.wow-line {
  margin: 22px 0 0;
  color: rgba(255,255,255,.76);
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.feature-copy h3 {
  max-width: 690px;
  margin: 12px 0 18px;
  font-size: clamp(2.5rem, 4.8vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.feature-lead {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.wow-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.wow-list p {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.2);
}

.wow-list b {
  font-size: .95rem;
}

.wow-list span {
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  line-height: 1.5;
}

.feature-phone {
  position: relative;
  z-index: 2;
  width: min(270px, 100%);
  aspect-ratio: 1125 / 2436;
  height: auto;
  margin: 0 auto;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 38px;
  background: #17131b;
  box-shadow: 0 30px 68px rgba(0,0,0,.29);
  transform: rotate(1.4deg);
}

.feature-phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 31px;
  object-fit: cover;
}

.feature-phone--hero {
  width: min(310px, 100%);
  transform: rotate(2.2deg);
}

.tools-showcase {
  padding: 112px 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(139,71,161,.2), transparent 27%),
    #211925;
}

.tools-head {
  color: #fff;
}

.tools-head > p:last-child {
  color: rgba(255,255,255,.66);
}

.feature-rail {
  position: sticky;
  z-index: 10;
  top: 16px;
  display: flex;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 34px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(29,22,33,.82);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}

.feature-rail a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.feature-rail a:hover,
.feature-rail a:focus-visible {
  color: #211925;
  background: #fff;
}

.tool-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tool-story {
  border-radius: 34px;
  padding: clamp(30px, 4vw, 54px);
  box-shadow: 0 26px 62px rgba(0,0,0,.18);
  scroll-margin-top: 110px;
}

.tool-story--thread,
.tool-story--reference,
.tool-story--alternatives {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr);
  align-items: center;
  gap: clamp(34px, 6vw, 74px);
  min-height: 590px;
}

.tool-story--thread {
  background: linear-gradient(140deg, #4d155e, #772986 56%, #9a4bad);
}

.tool-story--thread::after,
.tool-story--alternatives::after {
  right: -130px;
  top: -160px;
}

.tool-story--reference {
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  min-height: 650px;
  background: linear-gradient(140deg, #173e68, #285f86 58%, #4d8dbd);
}

.tool-story--reference::after {
  left: -160px;
  bottom: -170px;
}

.tool-story--projects,
.tool-story--calculators {
  grid-template-rows: auto 1fr;
  align-content: start;
  min-height: 760px;
}

.tool-story--projects {
  background: linear-gradient(150deg, #104b35, #176c49 58%, #33a876);
}

.tool-story--calculators {
  background: linear-gradient(150deg, #0d402e, #145b3d 58%, #258465);
}

.tool-story--projects::after,
.tool-story--calculators::after {
  right: -200px;
  bottom: -190px;
}

.tool-story--projects .feature-copy h3,
.tool-story--calculators .feature-copy h3 {
  font-size: clamp(2.25rem, 3.4vw, 3.5rem);
}

.tool-story--projects .wow-list p,
.tool-story--calculators .wow-list p {
  grid-template-columns: 1fr;
  gap: 4px;
}

.tool-story--projects .feature-phone,
.tool-story--calculators .feature-phone {
  width: min(235px, 70%);
  margin-top: 34px;
}

.tool-story--alternatives {
  background: linear-gradient(140deg, #3e154c, #672376 56%, #8c3b9f);
}

.reference-stack {
  position: relative;
  min-height: 570px;
}

.reference-stack .feature-phone {
  position: absolute;
  left: 0;
  top: 0;
  width: 205px;
  transform: rotate(-2deg);
}

.mini-info {
  position: absolute;
  width: min(350px, 72%);
  margin: 0;
  padding: 6px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(0,0,0,.27);
}

.mini-info img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.mini-info--one {
  right: 0;
  top: 85px;
  transform: rotate(2deg);
}

.mini-info--two {
  right: 5%;
  bottom: 24px;
  transform: rotate(-1deg);
}

@media (max-width: 920px) {
  .fabric-spotlight,
  .tool-story--thread,
  .tool-story--reference,
  .tool-story--alternatives {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tool-stories {
    grid-template-columns: 1fr;
  }

  .tool-story {
    grid-column: 1;
  }

  .tool-story--projects,
  .tool-story--calculators {
    min-height: auto;
  }

  .reference-stack {
    width: min(610px, 100%);
    min-height: 590px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .tools-showcase {
    padding: 78px 0;
  }

  .fabric-spotlight,
  .tool-story {
    gap: 32px;
    padding: 30px 22px;
    border-radius: 27px;
  }

  .feature-copy h3,
  .tool-story--projects .feature-copy h3,
  .tool-story--calculators .feature-copy h3 {
    font-size: clamp(2.2rem, 11.5vw, 3.35rem);
  }

  .wow-list p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .feature-phone,
  .feature-phone--hero,
  .tool-story--projects .feature-phone,
  .tool-story--calculators .feature-phone {
    width: min(235px, 78%);
  }

  .feature-rail {
    justify-content: flex-start;
    width: 100%;
    border-radius: 20px;
  }

  .reference-stack {
    display: grid;
    gap: 15px;
    min-height: 0;
  }

  .reference-stack .feature-phone,
  .mini-info {
    position: relative;
    inset: auto;
    width: min(100%, 420px);
    margin: 0 auto;
    transform: none;
  }

  .reference-stack .feature-phone {
    width: min(235px, 78%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-phone,
  .feature-phone--hero,
  .mini-info {
    transform: none;
  }
}
