.launch {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 52px 0 44px;
  background:
    radial-gradient(ellipse 42% 55% at -6% 48%, rgba(198, 176, 255, 0.38), transparent 70%),
    radial-gradient(ellipse 38% 50% at 106% 58%, rgba(245, 190, 228, 0.34), transparent 68%),
    linear-gradient(180deg, #ffffff 0%, #f7f4ff 22%, #f4f1fb 100%);
}

.launch__card {
  display: grid;
  gap: 40px;
}

.launch .eyebrow {
  margin-bottom: 14px;
  color: #8b6cf0;
}

.launch h2 {
  max-width: 18em;
  font-size: clamp(1.55rem, 7.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.launch__break {
  display: none;
}

.launch__accent {
  display: block;
  max-width: 12.2em;
  margin-top: 0.08em;
  background: linear-gradient(100deg, #6d46f5 0%, #a04cf0 46%, #e23cad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.launch__lead {
  max-width: 34em;
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.launch__expand {
  display: none;
}

.launch__more {
  display: grid;
  gap: 40px;
}

.launch__offer {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.launch__starting {
  margin: 0;
  color: #2a2633;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.launch__scope {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #6b6578;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(107, 101, 120, 0.55);
}

.launch__scope:hover {
  color: #5b3cc4;
}

.launch__scope:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.launch__scope[aria-expanded="true"] {
  color: #5b3cc4;
}

.launch__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #7a4ff2 0%, #6436e0 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 14px 28px rgba(109, 70, 230, 0.24);
}

.launch__cta:hover {
  transform: translateY(-1px);
}

.launch__cta:focus-visible {
  outline: none;
  box-shadow: var(--focus), 0 14px 28px rgba(109, 70, 230, 0.24);
}

.launch__chain {
  width: min(100%, 28rem);
}

.launch__track {
  --gap: 6px;
  --col: calc((100% - (3 * var(--gap))) / 4);
  position: relative;
}

.launch__links {
  position: absolute;
  z-index: 0;
  inset: 0;
  color: #c3b0f6;
  pointer-events: none;
}

.launch__arc,
.launch__node {
  display: none;
}

.launch__link {
  position: absolute;
  top: 0;
  width: calc(var(--gap) + 10px);
  height: 2px;
  margin-top: calc((100% - (3 * var(--gap))) / 8);
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
}

.launch__link::before,
.launch__link::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.launch__link::before { left: -1px; }
.launch__link::after { right: -1px; }

.launch__link:nth-child(1) { left: calc(var(--col) - 5px); }
.launch__link:nth-child(2) { left: calc((var(--col) * 2) + var(--gap) - 5px); }
.launch__link:nth-child(3) { left: calc((var(--col) * 3) + (var(--gap) * 2) - 5px); }

.launch__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.launch__steps li {
  min-width: 0;
  color: #2a2633;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.launch__steps img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.launch__steps span {
  display: block;
  margin-top: 2px;
}

.launch__connected {
  margin: 22px 0 0;
  color: #6b6578;
  font-size: 0.98rem;
  line-height: 1.4;
  text-align: center;
}

.launch-scope {
  position: fixed;
  z-index: 60;
  width: min(100% - 32px, 22rem);
  max-height: min(70dvh, 28rem);
  overflow: auto;
  padding: 18px 18px 16px;
  border: 1px solid rgba(214, 190, 242, 0.75);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(50, 30, 80, 0.16);
}

.launch-scope[hidden] {
  display: none;
}

.launch-scope__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f4efff;
  color: #3a3348;
  font-size: 1.35rem;
  line-height: 1;
}

.launch-scope__close:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.launch-scope h3 {
  margin: 0 32px 10px 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.launch-scope ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #2a2633;
  font-size: 0.95rem;
  line-height: 1.4;
}

.launch-scope p {
  margin: 12px 0 0;
  color: #6b6578;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: no-preference) {
  .launch__steps li {
    animation: workflow-card-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .launch__steps li:nth-child(1) { animation-delay: 80ms; }
  .launch__steps li:nth-child(2) { animation-delay: 200ms; }
  .launch__steps li:nth-child(3) { animation-delay: 320ms; }
  .launch__steps li:nth-child(4) { animation-delay: 440ms; }

  .launch__link {
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    animation: launch-link-in 520ms ease forwards;
  }

  .launch__link:nth-child(1) { animation-delay: 180ms; }
  .launch__link:nth-child(2) { animation-delay: 300ms; }
  .launch__link:nth-child(3) { animation-delay: 420ms; }

  .launch__arc-line,
  .launch__arc-glow {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: launch-arc-in 1100ms ease forwards;
  }

  .launch__node,
  .launch__arc-head {
    opacity: 0;
    animation: workflow-node-in 420ms ease forwards;
  }

  .launch__node:nth-of-type(1) { animation-delay: 280ms; }
  .launch__node:nth-of-type(2) { animation-delay: 460ms; }
  .launch__node:nth-of-type(3) { animation-delay: 640ms; }
  .launch__arc-head { animation-delay: 820ms; }
}

@keyframes launch-link-in {
  to { transform: translateY(-50%) scaleX(1); }
}

@keyframes launch-arc-in {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 1023px) {
  .launch__expand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: none;
    color: #6d46f5;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
  }

  .launch__expand-hide {
    display: none;
  }

  .launch.is-open .launch__expand-show {
    display: none;
  }

  .launch.is-open .launch__expand-hide {
    display: inline;
  }

  .launch__expand-mark {
    width: 16px;
    height: 16px;
    transition: transform 200ms ease;
  }

  .launch.is-open .launch__expand-mark {
    transform: rotate(180deg);
  }

  .launch__expand:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 6px;
  }

  .launch:not(.is-open) .launch__more,
  .launch:not(.is-open) .launch-repair {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch__expand-mark {
    transition: none;
  }
}

@media (min-width: 768px) {
  .launch {
    padding: 80px 0 64px;
  }

  .launch__card {
    gap: 52px;
  }

  .launch h2 {
    font-size: clamp(2.35rem, 4vw, 3.05rem);
  }

  .launch__lead {
    margin-top: 26px;
    font-size: 1.12rem;
  }

  .launch__cta {
    width: min(100%, 28rem);
    margin-top: 24px;
  }

  .launch-repair {
    margin-top: 72px;
  }

  .launch__chain {
    width: min(100%, 32rem);
  }

  .launch__steps li {
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) {
  .launch > .shell {
    width: min(100% - 48px, 1180px);
  }

  .launch__card {
    position: relative;
    display: block;
    padding-bottom: 36px;
  }

  .launch__more {
    display: contents;
  }

  .launch__expand {
    display: none;
  }

  .launch__copy,
  .launch__offer {
    position: relative;
    z-index: 3;
    max-width: min(28rem, 40%);
  }

  .launch h2 {
    max-width: 11.2em;
    font-size: clamp(2.35rem, 2.7vw, 3.15rem);
  }

  .launch__break {
    display: block;
  }

  .launch__accent {
    max-width: none;
  }

  .launch__lead {
    max-width: 26em;
  }

  .launch__offer {
    margin-top: 56px;
  }

  .launch__cta {
    width: auto;
    margin-top: 18px;
    padding-inline: 22px;
  }

  .launch__chain {
    position: absolute;
    inset: 0;
    width: auto;
    min-height: 0;
    pointer-events: none;
  }

  .launch__track {
    height: 100%;
    min-height: 0;
  }

  .launch__links {
    display: none;
  }

  .launch__arc {
    display: block;
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    color: #c9b6f6;
    pointer-events: none;
  }

  .launch__node {
    display: block;
    position: absolute;
    z-index: 6;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: #b388ff;
    box-shadow:
      0 0 0 3px #f7f3ff,
      0 0 0 5px #c9b0ff,
      0 0 12px 1px rgba(140, 90, 255, 0.55);
    pointer-events: none;
  }

  .launch__steps {
    --seq: max(0px, 252px - 24%);
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
  }

  .launch__steps li {
    position: absolute;
  }

  .launch__steps span {
    margin-top: 6px;
    font-size: 0.98rem;
  }

  .launch__steps li:nth-child(1) {
    left: calc(24% + var(--seq));
    bottom: 0;
    z-index: 1;
    width: 17.2%;
  }

  .launch__steps li:nth-child(2) {
    left: calc(44.2% + var(--seq));
    bottom: 16%;
    z-index: 2;
    width: 15%;
  }

  .launch__steps li:nth-child(3) {
    left: calc(62.2% + var(--seq));
    bottom: 33%;
    z-index: 3;
    width: 16.4%;
  }

  .launch__steps li:nth-child(4) {
    right: 3%;
    bottom: 49%;
    z-index: 4;
    width: 14.8%;
  }

  .launch__steps li:nth-child(1) img { transform: rotate(-6deg); }
  .launch__steps li:nth-child(2) img { transform: rotate(7deg); }
  .launch__steps li:nth-child(3) img { transform: rotate(-3deg); }
  .launch__steps li:nth-child(4) img { transform: rotate(6deg); }

  .launch__connected {
    position: absolute;
    left: 50%;
    right: 18%;
    bottom: 0;
    z-index: 1;
    margin: 0;
    text-align: center;
  }
}

.launch-repair {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: start;
  max-width: 34em;
  margin-top: 56px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.launch-repair__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #a39cab;
}

.launch-repair__icon svg {
  width: 18px;
  height: 18px;
}

.launch-repair__copy h3 {
  color: #6b6578;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.launch-repair__copy p {
  margin-top: 2px;
  color: #8a8494;
  font-size: 0.86rem;
  line-height: 1.45;
}

.launch-repair__cta {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #6b6578;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(107, 101, 120, 0.45);
}

.launch-repair__cta:hover {
  color: #5b3cc4;
  background: none;
}

.launch-repair__cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

@media (min-width: 1024px) {
  .launch-repair {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 22px;
    max-width: none;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(196, 176, 220, 0.45);
  }

  .launch-repair__icon {
    width: 44px;
    height: 44px;
    margin-top: 0;
    border-radius: 50%;
    background: #f4efff;
    color: #b7a4d4;
  }

  .launch-repair__icon svg {
    width: 22px;
    height: 22px;
  }

  .launch-repair__copy {
    padding-left: 18px;
    border-left: 1px solid rgba(196, 176, 220, 0.5);
  }

  .launch-repair__copy h3 {
    color: #2a2633;
    font-size: 0.98rem;
  }

  .launch-repair__cta {
    grid-column: auto;
    justify-self: end;
    margin-top: 0;
    color: #7a46f0;
    font-weight: 600;
    text-decoration-color: rgba(122, 70, 240, 0.45);
  }
}

[data-theme="dark"] .launch {
  background:
    radial-gradient(ellipse 42% 55% at -6% 48%, rgba(120, 80, 190, 0.22), transparent 70%),
    radial-gradient(ellipse 38% 50% at 106% 58%, rgba(160, 80, 140, 0.16), transparent 68%),
    #16111f;
}

[data-theme="dark"] .launch__accent {
  background: linear-gradient(100deg, #b9a0ff 0%, #d08cf0 46%, #f0a0d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .launch__starting,
[data-theme="dark"] .launch__steps li {
  color: #f4efff;
}

[data-theme="dark"] .launch__scope,
[data-theme="dark"] .launch__connected {
  color: #c5bdd4;
}

[data-theme="dark"] .launch__links {
  color: #b9a0e8;
}

[data-theme="dark"] .launch-scope {
  border-color: rgba(196, 176, 230, 0.28);
  background: #1c1628;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .launch-scope__close {
  background: rgba(186, 148, 255, 0.16);
  color: #f4efff;
}

[data-theme="dark"] .launch-scope ul {
  color: #f4efff;
}

[data-theme="dark"] .launch-scope p {
  color: #c5bdd4;
}

[data-theme="dark"] .launch-repair__icon,
[data-theme="dark"] .launch-repair__copy h3,
[data-theme="dark"] .launch-repair__copy p,
[data-theme="dark"] .launch-repair__cta {
  color: #a79eb8;
}

[data-theme="dark"] .launch-repair__cta:hover {
  color: #d2c6ff;
  background: none;
}

@media (min-width: 1024px) {
  [data-theme="dark"] .launch__arc {
    color: #cbb6ff;
  }

  [data-theme="dark"] .launch__node {
    background: #c9a6ff;
    box-shadow:
      0 0 0 3px #16111f,
      0 0 0 5px #b794f6,
      0 0 12px 1px rgba(190, 150, 255, 0.6);
  }

  [data-theme="dark"] .launch-repair {
    border-top-color: rgba(196, 176, 220, 0.22);
  }

  [data-theme="dark"] .launch-repair__icon {
    background: rgba(186, 148, 255, 0.16);
    color: #d2c6ff;
  }

  [data-theme="dark"] .launch-repair__copy {
    border-left-color: rgba(196, 176, 220, 0.28);
  }
}
