.cw-ai-app-development-process {
  box-sizing: border-box;
  width: 100%;
  background: #f3efe7;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
}

.cw-ai-app-development-process__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}

.cw-ai-app-development-process__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  align-items: end;
}

.cw-ai-app-development-process__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.cw-ai-app-development-process__em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #c8391a;
}

.cw-ai-app-development-process__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #3a332d;
}

.cw-ai-app-development-process__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.cw-ai-app-development-process__rail-track {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 21px;
  height: 2px;
  background: rgba(20, 18, 16, 0.12);
  pointer-events: none;
  z-index: 0;
}

.cw-ai-app-development-process__rail-fill {
  height: 100%;
  width: 0;
  background: #e0431c;
  transition: width 0.6s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.cw-ai-app-development-process__rail-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  font: inherit;
  color: #141210;
}

.cw-ai-app-development-process__rail-btn:focus-visible {
  outline: 2px solid #e0431c;
  outline-offset: 4px;
  border-radius: 8px;
}

.cw-ai-app-development-process__rail-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f3efe7;
  color: #141210;
  border: 2px solid rgba(20, 18, 16, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 14px 'Inter Tight', 'Inter', system-ui, sans-serif;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  box-sizing: border-box;
}

.cw-ai-app-development-process__rail-btn.is-on .cw-ai-app-development-process__rail-badge {
  background: #e0431c;
  color: #fff;
  border-color: #e0431c;
}

.cw-ai-app-development-process__rail-btn.is-past .cw-ai-app-development-process__rail-badge {
  background: #141210;
  color: #fff;
  border-color: #141210;
}

.cw-ai-app-development-process__rail-label {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.cw-ai-app-development-process__rail-btn.is-on .cw-ai-app-development-process__rail-label {
  opacity: 1;
}

.cw-ai-app-development-process__panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.cw-ai-app-development-process__card {
  background: #fff;
  border-radius: 26px;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cw-ai-app-development-process__card.is-updating {
  animation: cw-ai-app-development-process-fade 0.45s ease-out both;
}

.cw-ai-app-development-process__card-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #c8391a;
}

.cw-ai-app-development-process__card-title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.cw-ai-app-development-process__card-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #3a332d;
}

.cw-ai-app-development-process__card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cw-ai-app-development-process__btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font: 600 14px 'Inter', system-ui, sans-serif;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cw-ai-app-development-process__btn--prev {
  border: 1px solid rgba(20, 18, 16, 0.18);
  background: transparent;
  color: #141210;
}

.cw-ai-app-development-process__btn--prev:hover {
  border-color: #e0431c;
  color: #e0431c;
}

.cw-ai-app-development-process__btn--next {
  border: 0;
  background: #141210;
  color: #fff;
}

.cw-ai-app-development-process__btn--next:hover {
  background: #e0431c;
}

.cw-ai-app-development-process__btn--play {
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #6b6158;
  font-size: 13px;
}

.cw-ai-app-development-process__log-panel {
  border-radius: 26px;
  background: #141210;
  color: #eae7e1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}

.cw-ai-app-development-process__log-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(234, 231, 225, 0.5);
}

.cw-ai-app-development-process__log-stage {
  color: #d4f53c;
}

.cw-ai-app-development-process__log-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.cw-ai-app-development-process__log-lines.is-updating .cw-ai-app-development-process__log-line {
  animation: cw-ai-app-development-process-fade 0.4s ease-out both;
}

.cw-ai-app-development-process__log-line {
  padding: 12px 14px;
  border-radius: 12px;
  background: #1e1b18;
}

.cw-ai-app-development-process__log-progress {
  height: 6px;
  border-radius: 3px;
  background: rgba(234, 231, 225, 0.08);
  overflow: hidden;
}

.cw-ai-app-development-process__log-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7b2ff7, #e0431c);
  transition: width 0.6s ease;
}

@keyframes cw-ai-app-development-process-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .cw-ai-app-development-process__rail {
    grid-template-columns: repeat(5, minmax(88px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cw-ai-app-development-process__rail::-webkit-scrollbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-ai-app-development-process__rail-fill,
  .cw-ai-app-development-process__log-progress-fill,
  .cw-ai-app-development-process__rail-badge,
  .cw-ai-app-development-process__rail-label {
    transition: none;
  }

  .cw-ai-app-development-process__card.is-updating,
  .cw-ai-app-development-process__log-lines.is-updating .cw-ai-app-development-process__log-line {
    animation: none;
  }
}
