.rapid-build {
  background: #0e1524;
  color: #edf3ff;
  padding: clamp(62px, 9vw, 122px) 24px;
  border-block: 1px solid #748dc83d;
}
.rapid-build__inner { width: min(100%, 1160px); margin-inline: auto; }
.rapid-build__intro { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 22px; margin-bottom: 32px; }
.rapid-build__intro h2 { margin: 0; font-size: clamp(36px, 6vw, 70px); line-height: 1.04; letter-spacing: -.045em; }
.rapid-build__intro h2 em { color: #adbeee; font-style: normal; }
.rapid-build__intro p { margin: 16px 0 0; max-width: 54ch; color: #b7c3d9; font-size: 17px; line-height: 1.55; }
.rapid-build__replay { color: #e1ebff; background: #1a2740; border: 1px solid #6f85ad; border-radius: 9px; padding: 11px 15px; font: inherit; cursor: pointer; }
.rapid-build__replay[hidden] { display: none; }
.rapid-build__replay:hover { background: #273b5c; }
.rapid-build :is(button, a):focus-visible { outline: 2px solid #c4d6ff; outline-offset: 4px; }
.rapid-build__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rapid-card { --rapid-accent: #a6caff; min-width: 0; display: flex; flex-direction: column; border: 1px solid #7792c750; border-radius: 19px; background: #151f32; overflow: hidden; }
.rapid-card--lovable { --rapid-accent: #f4b6d8; }
.rapid-card--n8n { --rapid-accent: #ffbca7; }
.rapid-scene {
  position: relative;
  isolation: isolate;
  min-height: 206px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #7792c740;
  background: radial-gradient(ellipse at 52% 18%, #264277, #0d1728 76%);
}
.rapid-scene--lovable { background: radial-gradient(ellipse at 50% 20%, #603b68, #1d192e 78%); }
.rapid-scene--n8n { background: radial-gradient(ellipse at 53% 20%, #623b47, #211a29 78%); }
.rapid-card__body { padding: 23px; display: flex; flex: 1; flex-direction: column; align-items: start; }
.rapid-card__body h3 { margin: 0; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.025em; }
.rapid-card__body p { color: #bcc9e2; margin: 10px 0 18px; font-size: 15px; line-height: 1.55; }
.rapid-card__body a { color: var(--rapid-accent); margin-top: auto; font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.rapid-card__body a:hover { color: #fff; }
.rapid-terminal, .rapid-app { width: min(75%, 260px); background: #131f36; border: 1px solid #8295c680; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 25px #05091280; transform: translate(-7px,-7px); }
.rapid-window { height: 29px; display: flex; align-items: center; gap: 4px; padding-inline: 9px; background: #26354f; color: #e0eaff; font-size: 10px; }
.rapid-window i { width: 5px; height: 5px; border-radius: 50%; background: var(--rapid-accent); }
.rapid-window span { margin-left: auto; }
.rapid-code { padding: 11px 8px 14px; color: #deebff; font: 10px/1.9 ui-monospace, monospace; }
.rapid-code span { display: block; }
.rapid-code b { color: var(--rapid-accent); }
.rapid-result, .rapid-app__tag, .rapid-run { position: absolute; border-radius: 8px; background: #22324f; border: 1px solid #8cabe580; color: #f5f8ff; box-shadow: 0 8px 22px #080b1680; font-size: 10px; }
.rapid-result { right: 9%; bottom: 19px; width: 108px; padding: 9px; }
.rapid-result strong { white-space: nowrap; }
.rapid-result strong i, .rapid-app__tag i, .rapid-run i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a0efce; margin-right: 4px; }
.rapid-result__chart { height: 23px; display: flex; align-items: end; gap: 3px; padding-top: 6px; }
.rapid-result__chart i { flex: 1; height: 52%; border-radius: 2px; background: #8eb6ff; }
.rapid-result__chart i:nth-child(2n) { height: 74%; }
.rapid-result__chart i:last-child { height: 100%; }
.rapid-app { background: #221d35; border-color: #c28bb980; }
.rapid-app .rapid-window { background: #443251; }
.rapid-app__body { display: grid; grid-template-columns: 32px minmax(0,1fr); min-height: 72px; }
.rapid-app__sidebar { background: #322641; padding: 11px 6px; }
.rapid-app__sidebar i { display: block; height: 3px; margin-bottom: 6px; border-radius: 2px; background: #c49fcb; }
.rapid-app__content { padding: 9px; font-size: 10px; color: #fff2fb; }
.rapid-app__content div { display: flex; gap: 5px; margin-top: 6px; }
.rapid-app__content i { height: 19px; flex: 1; border-radius: 4px; background: #704e78; }
.rapid-app__tag { padding: 8px 9px; right: 9%; bottom: 25px; background: #422c4c; border-color: #f0a9db80; }
.rapid-pipeline { position: relative; width: min(87%, 285px); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: -14px; }
.rapid-pipeline::before { content: ""; width: 71%; height: 1px; background: #ffbca7a0; position: absolute; left: 15%; top: 20px; }
.rapid-pipeline > div { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: center; font-size: 10px; color: #fff1ed; }
.rapid-pipeline b { display: grid; place-items: center; width: 42px; height: 42px; color: #ffdacd; background: #57313e; border: 1px solid #ffbca790; border-radius: 11px; font-size: 18px; }
.rapid-pulse { position: absolute; z-index: 2; top: 17px; left: 13%; width: 7px; height: 7px; background: #ffe1d8; box-shadow: 0 0 9px #ffc5b2; border-radius: 50%; opacity: 0; }
.rapid-run { bottom: 23px; padding: 7px 9px; background: #452b38; border-color: #ffbca780; }
.rapid-card.is-playing .rapid-code span { animation: rapid-pop .42s both; }
.rapid-card.is-playing .rapid-code span:nth-child(2) { animation-delay: .24s; }
.rapid-card.is-playing .rapid-code span:nth-child(3) { animation-delay: .47s; }
.rapid-card.is-playing :is(.rapid-result, .rapid-app__tag, .rapid-run) { animation: rapid-pop .6s .82s both; }
.rapid-card.is-playing .rapid-app__content i { animation: rapid-pop .48s .3s both; }
.rapid-card.is-playing .rapid-pulse { animation: rapid-signal 1.05s .12s both; }
@keyframes rapid-pop { from { opacity: 0; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
@keyframes rapid-signal { 0% { left: 13%; opacity: 0; } 18%,75% { opacity: 1; } 100% { left: 83%; opacity: 0; } }
@media (max-width: 790px) { .rapid-build__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .rapid-build__grid { grid-template-columns: 1fr; } .rapid-scene { min-height: 185px; } }
@media (prefers-reduced-motion: reduce) { .rapid-card.is-playing * { animation: none !important; } }
