/* steps.css — Section 2: Steps — traveling chat showcase */

.sec-steps {
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
  padding: 100px 20px; position: relative; overflow: hidden;
}
.sec-steps .inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.sec-steps .sec-label {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 10px; font-weight: 700;
  transition: opacity 0.35s;
}
.sec-steps h2 {
  font-size: clamp(28px, 5vw, 40px); font-weight: 800;
  color: #111; margin-bottom: 36px; line-height: 1.2;
  transition: opacity 0.35s;
}

/* Floating bubbles background */
.bubbles-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bubble {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 16px; max-width: 260px;
  font-size: 13px; line-height: 1.4; white-space: nowrap;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.5s, filter 0.5s;
  cursor: default; pointer-events: none;
  animation: bubbleFloat 20s ease-in-out infinite alternate;
}
.bubble-user { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.15); color: #166534; }
.bubble-ai { background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.15); color: #5b21b6; }
.bubble-icon { font-size: 16px; flex-shrink: 0; }
.bubble-text { overflow: hidden; text-overflow: ellipsis; transition: opacity 0.3s; }
@keyframes bubbleFloat {
  0%   { transform: scale(var(--s,1)) translate(0, 0); }
  25%  { transform: scale(var(--s,1)) translate(15px, -20px); }
  50%  { transform: scale(var(--s,1)) translate(-10px, -5px); }
  75%  { transform: scale(var(--s,1)) translate(20px, 15px); }
  100% { transform: scale(var(--s,1)) translate(-5px, -15px); }
}

/* Step cards row */
.steps-row { display: flex; gap: 14px; margin-bottom: 24px; }
.scard {
  flex: 1; padding: 18px 16px; border-radius: 14px;
  background: rgba(255,255,255,0.88); border: 2px solid transparent;
  backdrop-filter: blur(8px); cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.scard:hover { border-color: rgba(16,185,129,0.3); box-shadow: 0 6px 24px rgba(16,185,129,0.08); }
.scard.active {
  border-color: var(--accent); background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 28px rgba(16,185,129,0.12); transform: translateY(-2px);
}
.scard-n {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; margin-bottom: 10px;
}
.scard-t {
  font-weight: 700; font-size: 15px; color: #111; margin: 0 0 4px;
  transition: opacity 0.35s;
}
.scard-d {
  font-size: 12px; color: #888; line-height: 1.4; margin: 0;
  transition: opacity 0.35s;
}
@media (max-width: 600px) {
  .steps-row { gap: 6px; }
  .scard { padding: 10px 6px; text-align: center; border-radius: 10px; }
  .scard-n { width: 24px; height: 24px; font-size: 11px; margin: 0 auto 6px; border-radius: 7px; }
  .scard-t { font-size: 11px; }
  .scard-d { display: none; }
  .scard.active { transform: translateY(-3px); }
}

/* Chat stage (traveling chat) */
.sc-stage { position: relative; min-height: 320px; }
.sc-ptr {
  position: absolute; top: -7px; width: 14px; height: 14px;
  background: #1a1a2e; transform: rotate(45deg); z-index: 4;
  transition: left 0.5s cubic-bezier(0.4,0,0.2,1);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.sc-chat {
  position: absolute; top: 0; left: 0;
  width: min(360px, 90vw); border-radius: 16px; overflow: hidden;
  background: #1a1a2e; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 40px rgba(139,92,246,0.04);
  z-index: 3;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
}
.sc-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sc-dot { width: 8px; height: 8px; border-radius: 50%; }
.sc-dot:nth-child(1) { background: #ef4444; }
.sc-dot:nth-child(2) { background: #f59e0b; }
.sc-dot:nth-child(3) { background: #22c55e; }
.sc-title { flex: 1; font-size: 12px; color: rgba(255,255,255,0.5); margin-left: 6px; font-weight: 600; }
.sc-num {
  font-size: 10px; color: rgba(255,255,255,0.3);
  padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,0.05);
}

/* Chat messages */
.sc-msgs {
  padding: 14px; min-height: 160px; max-height: 220px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
}
.sc-msg {
  padding: 8px 12px; border-radius: 12px;
  font-size: 12px; line-height: 1.5; max-width: 88%;
  animation: scMsgIn 0.3s ease-out;
}
@keyframes scMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sc-msg-user {
  background: rgba(16,185,129,0.15); color: #a7f3d0;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.sc-msg-ai {
  background: rgba(139,92,246,0.12); color: #c4b5fd;
  align-self: flex-start; border-bottom-left-radius: 4px;
}

/* Action lines */
.sc-action {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,0.35); padding: 3px 0;
  animation: scMsgIn 0.3s ease-out;
}
.sc-action-active { color: rgba(255,255,255,0.6); }
.sc-action-done { color: #4ade80; }
.sc-spinner {
  width: 10px; height: 10px; border: 2px solid rgba(139,92,246,0.2);
  border-top-color: var(--accent2); border-radius: 50%; flex-shrink: 0;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sc-check { color: #4ade80; font-weight: bold; flex-shrink: 0; }

/* Chat input footer */
.sc-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-top: 1px solid rgba(255,255,255,0.06);
}
.sc-inp {
  flex: 1; min-height: 28px; padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: #e0e0e0; font-family: inherit;
  display: flex; align-items: center; line-height: 1.4;
  overflow: hidden; word-break: break-word;
}
.sc-cursor {
  display: inline-block; width: 1.5px; height: 14px;
  background: var(--accent); margin-left: 1px;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.sc-send {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: bold; flex-shrink: 0;
  transition: opacity 0.3s;
}
.sc-send.dim { opacity: 0.3; }

/* Mini browser result overlay */
.sc-mini {
  position: absolute; top: 0; left: 0;
  width: min(360px, 90vw); border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid #e0e0e0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  z-index: 5;
  opacity: 0; pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
}
.sc-mini.show { opacity: 1; pointer-events: auto; }
.sc-mini-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
}
.sc-mini-url {
  flex: 1; font-size: 10px; color: #999;
  padding: 3px 8px; border-radius: 4px;
  background: #fff; border: 1px solid #e0e0e0;
  font-family: monospace; margin-left: 4px;
}
.sc-mini-page {
  height: 260px; overflow-y: auto;
}

/* Idea navigation dots */
.sc-pips {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.sc-pip {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,0.1); cursor: pointer;
  transition: all 0.3s;
}
.sc-pip:hover { background: rgba(16,185,129,0.3); transform: scale(1.2); }
.sc-pip.active { background: var(--accent); transform: scale(1.2); box-shadow: 0 0 8px rgba(16,185,129,0.4); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none !important; }
  .sc-msg { animation: none !important; }
  .sc-spinner { animation: none !important; }
  .sc-cursor { animation: none !important; }
}
