.home-how {
  scroll-margin-top: 82px;
  margin: 16px 0 22px;
  border-block: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, .96), transparent 42%),
    linear-gradient(180deg, #fffcfa 0%, #fbf8f5 100%);
  overflow: hidden;
}

.home-how-inner {
  max-width: 1180px;
  padding-top: 36px;
  padding-bottom: 40px;
  text-align: center;
}

.home-how-heading h2 {
  color: #111827;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.7vw, 46px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.home-how-heading p {
  margin-top: 8px;
  color: #666b84;
  font-size: clamp(15.5px, 1.35vw, 18px);
  line-height: 1.4;
}

.home-how-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(520px, 100%);
  margin: 24px auto 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 253, 250, .8);
  box-shadow: 0 8px 24px rgba(42, 36, 68, .05);
}

.home-how-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 15px;
  border-radius: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .12s ease;
}

.home-how-tab:hover { color: var(--violet-ink); }
.home-how-tab:active { transform: translateY(1px); }
.home-how-tab:focus-visible { outline: 3px solid rgba(106, 77, 244, .3); outline-offset: 2px; }
.home-how-tab .icon { width: 24px; height: 24px; }
.home-how-tab.active {
  color: #4d2ee8;
  background: linear-gradient(110deg, #f0e8ff 0%, #eee5ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.home-how-panel[hidden] { display: none; }
.home-how-panel.active { animation: homeHowPanelIn .28s ease both; }

.home-how-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.home-how-step {
  position: relative;
  min-width: 0;
}

.home-how-number {
  display: block;
  height: 48px;
  color: #967de8;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
}

.home-how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 148px;
  left: calc(50% + 68px);
  width: calc(100% - 120px);
  height: 12px;
  background:
    radial-gradient(circle at 6px 6px, #5833e8 0 2.5px, #eee9ff 3px 6px, transparent 6.5px),
    radial-gradient(circle at calc(100% - 6px) 6px, #5833e8 0 2.5px, #eee9ff 3px 6px, transparent 6.5px),
    linear-gradient(#9b86f4, #9b86f4) center / calc(100% - 12px) 1px no-repeat;
}

.home-how-media {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 215px);
  height: 180px;
  margin: 0 auto;
  overflow: hidden;
}

.home-how-media img {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.home-how-media-square img {
  width: 88%;
  height: auto;
  transform: translateY(-44px);
}

#how-panel-traders .home-how-step:nth-child(2) .home-how-media-square img {
  clip-path: inset(32% 0 0);
  transform: translateY(-38px);
}

#how-panel-creators .home-how-media-wide img {
  transform: translateY(-70px);
}

.home-how-media-wide img {
  width: 180%;
  height: auto;
  transform: translateY(-48px);
}

.home-how-step h3 {
  margin-top: 0;
  color: #151b2b;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.018em;
}

.home-how-step p {
  min-height: 48px;
  margin-top: 6px;
  color: #606780;
  font-size: 14.5px;
  line-height: 1.5;
}

.home-how-cta {
  min-width: 250px;
  min-height: 54px;
  margin-top: 25px;
  padding-inline: 26px;
  border-radius: 15px;
  font-family: var(--font-display);
  font-size: 18px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .14);
}

.home-how-cta .icon { width: 21px; height: 21px; margin-left: 9px; }

@keyframes homeHowPanelIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .home-how-inner { max-width: 920px; }
  .home-how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .home-how-step:nth-child(2)::after { display: none; }
  .home-how-step:not(:last-child)::after { width: calc(100% - 112px); }
}

@media (max-width: 680px) {
  .home-how { margin-top: 8px; }
  .home-how-inner { padding: 30px 18px 34px; }
  .home-how-heading h2 { font-size: clamp(32px, 9.8vw, 39px); }
  .home-how-heading p { max-width: 320px; margin: 9px auto 0; font-size: 15px; }
  .home-how-tabs { margin-top: 21px; padding: 5px; border-radius: 17px; }
  .home-how-tab { min-height: 46px; gap: 7px; padding: 7px 9px; border-radius: 12px; font-size: 15px; }
  .home-how-tab .icon { width: 21px; height: 21px; }
  .home-how-steps { grid-template-columns: 1fr; gap: 20px; }
  .home-how-step {
    max-width: 390px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 20px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  }
  .home-how-step:last-child { padding-bottom: 0; border-bottom: 0; }
  .home-how-step::after { display: none !important; }
  .home-how-number { height: 46px; font-size: 42px; }
  .home-how-media { height: 180px; }
  .home-how-media-square { width: min(100%, 215px); }
  .home-how-media-wide { width: min(100%, 215px); }
  .home-how-step h3 { font-size: 19px; }
  .home-how-step p { min-height: 0; font-size: 14.5px; }
  .home-how-cta { width: min(100%, 270px); min-width: 0; min-height: 52px; margin-top: 24px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-how-panel.active { animation: none; }
  .home-how-tab { transition: none; }
}
