/* ── Prompt Workbench page styles ── */

/* Hero */
.pw-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 5% 80px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.pw-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.pw-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.pw-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(77,171,255,0.45) 0%, transparent 70%);
  top: -120px; right: -80px;
}
.pw-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26,111,212,0.35) 0%, transparent 70%);
  bottom: -60px; left: -60px;
}
.pw-hero-content { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }

.pw-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  animation: fadeIn 0.6s ease 0.1s both;
}
.pw-breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.pw-breadcrumb a:hover { color: var(--accent); }
.pw-breadcrumb span:last-child { color: var(--accent2); }

/* Core value props */
.pw-props {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 5%;
}
.pw-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pw-prop {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform 0.4s cubic-bezier(.16,1,.3,1),
              box-shadow var(--transition);
}
.pw-prop:hover {
  border-color: rgba(77,171,255,0.4);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.pw-prop-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.pw-prop h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.pw-prop p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* Feature rows */
.pw-features { background: var(--bg-dark); padding: 100px 5%; }
.pw-features-inner {
  display: flex;
  flex-direction: column;
  gap: 100px;
  max-width: 1100px;
  margin: 0 auto;
}
.pw-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.pw-feature-row-reverse { direction: rtl; }
.pw-feature-row-reverse > * { direction: ltr; }

/* Checklist */
.pw-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.pw-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.pw-checklist li::before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(77,171,255,0.12);
  border: 1px solid rgba(77,171,255,0.35);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%234DABFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 1px;
}

/* ── Mock visuals ── */
.pw-feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Code-style mock card */
.pw-mock-card {
  background: #060f22;
  border: 1px solid rgba(77,171,255,0.18);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(77,171,255,0.06);
}
.pw-mock-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  background: #0b1830;
  border-bottom: 1px solid rgba(77,171,255,0.1);
}
.pw-mock-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.pw-mock-dot.red    { background: #ff5f57; }
.pw-mock-dot.yellow { background: #febc2e; }
.pw-mock-dot.green  { background: #28c840; }
.pw-mock-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-family: 'Courier New', monospace;
}
.pw-mock-body { padding: 1.25rem; font-family: 'Courier New', monospace; font-size: 0.8rem; line-height: 2; }
.pw-mock-line { display: flex; gap: 1rem; }
.pw-mock-line .dim  { color: #334466; min-width: 14px; }
.pw-mock-line .key  { color: #7CC8FF; }
.pw-mock-line .val  { color: #93c5fd; }
.pw-mock-line .num  { color: #4DABFF; }
.pw-mock-line .str  { color: #86efac; }
.pw-mock-line .tag  { color: #4ade80; font-size: 0.72rem; background: rgba(74,222,128,0.1); border-radius: 3px; padding: 0 4px; }
.pw-mock-line.new   { background: rgba(74,222,128,0.05); border-radius: 4px; }

/* Compare card */
.pw-compare-card {
  background: #060f22;
  border: 1px solid rgba(77,171,255,0.18);
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.pw-compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.pw-vs {
  background: rgba(77,171,255,0.12);
  border: 1px solid rgba(77,171,255,0.25);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.pw-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pw-compare-col { display: flex; flex-direction: column; gap: 0.35rem; }
.pw-compare-label { font-size: 0.72rem; color: var(--text-muted); }
.pw-compare-bar {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.pw-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #2563eb);
  border-radius: 3px;
  transition: width 1s ease;
}
.pw-bar-fill.accent2 { background: linear-gradient(90deg, #7CC8FF, #4DABFF); }
.pw-compare-val { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.pw-compare-winner {
  margin-top: 0.5rem;
  padding: 0.6rem 0.85rem;
  background: rgba(77,171,255,0.07);
  border: 1px solid rgba(77,171,255,0.2);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent2);
  text-align: center;
}

/* Team/collab card */
.pw-team-card {
  background: #060f22;
  border: 1px solid rgba(77,171,255,0.18);
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pw-team-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.pw-team-row:last-child { border-bottom: none; padding-bottom: 0; }
.pw-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.pw-avatar.green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.pw-avatar.purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.pw-team-info { flex: 1; }
.pw-team-info strong { display: block; font-size: 0.85rem; font-weight: 600; }
.pw-team-info span   { font-size: 0.78rem; color: var(--text-muted); }
.pw-time { font-size: 0.72rem; color: var(--text-muted); flex-shrink: 0; }

/* Responsive */
@media (max-width: 900px) {
  .pw-feature-row,
  .pw-feature-row-reverse { grid-template-columns: 1fr; direction: ltr; }
  .pw-feature-visual { justify-content: flex-start; }
}
