/* ── Product Detail Pages — Shared Styles ────────────── */

/* ── Detail Hero ────────────────────────────────────── */
.detail-hero {
  text-align: center;
  padding: 80px 32px 64px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 50%, var(--accent-glow, rgba(99,102,241,0.10)) 0%, transparent 70%);
  pointer-events: none;
}
.detail-hero h1 {
  font-size: 3rem;
  margin-bottom: 8px;
}
.detail-hero .product-name {
  color: var(--accent, #818cf8);
}
.detail-hero .tagline {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  margin: 0 auto 24px;
}

/* ── Badge Row ──────────────────────────────────────── */
.detail-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.detail-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.3);
  color: #34d399;
}
.detail-badge.live {
  background: rgba(52,211,153,0.12);
  border-color: rgba(52,211,153,0.3);
  color: #34d399;
}
.detail-badge.coming-soon {
  background: rgba(251,191,36,0.12);
  border-color: rgba(251,191,36,0.3);
  color: #fbbf24;
}
.detail-badge.accent {
  background: var(--accent-bg, rgba(99,102,241,0.12));
  border-color: var(--accent-border, rgba(99,102,241,0.3));
  color: var(--accent, #818cf8);
}

/* ── Hero Stats Row ─────────────────────────────────── */
.detail-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px auto 0;
  max-width: 600px;
}
.detail-stat {
  text-align: center;
}
.detail-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent, #818cf8);
}
.detail-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* ── Section Block ──────────────────────────────────── */
.detail-section {
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.detail-section .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent, #818cf8);
  margin-bottom: 12px;
  display: block;
}
.detail-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.detail-section .section-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 700px;
  margin-bottom: 32px;
}

/* ── Feature Grid ───────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.feature-card {
  padding: 28px 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: border-color 0.3s;
}
.feature-card:hover {
  border-color: var(--accent-border, rgba(99,102,241,0.3));
}
.feature-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e0e0e8;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0;
}

/* ── AI Pipeline (reuse from shared.css structure) ─── */
.detail-pipeline {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin: 28px auto;
  max-width: 750px;
}
.detail-pipeline .pipe-stage {
  flex: 1;
  padding: 20px 14px;
  text-align: center;
  background: var(--accent-bg, rgba(99,102,241,0.06));
  border: 1px solid var(--accent-border, rgba(99,102,241,0.15));
  position: relative;
}
.detail-pipeline .pipe-stage:first-child { border-radius: 12px 0 0 12px; }
.detail-pipeline .pipe-stage:last-child  { border-radius: 0 12px 12px 0; }
.detail-pipeline .pipe-icon { font-size: 1.8rem; margin-bottom: 6px; }
.detail-pipeline .pipe-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent, #818cf8);
  margin-bottom: 4px;
}
.detail-pipeline .pipe-desc {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
}
.detail-pipeline .pipe-stage + .pipe-stage::before {
  content: "\2192";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.2);
  font-size: 1rem;
  z-index: 1;
}

/* ── Tech Stack Grid ────────────────────────────────── */
.detail-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.detail-stack-item {
  padding: 18px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  text-align: center;
}
.detail-stack-item .stack-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e0e0e8;
  margin-bottom: 2px;
}
.detail-stack-item .stack-role {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}

/* ── Pricing Tiers ──────────────────────────────────── */
.detail-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.detail-tier {
  padding: 32px 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  text-align: center;
}
.detail-tier.featured {
  border-color: var(--accent-border, rgba(99,102,241,0.4));
  background: var(--accent-bg, rgba(99,102,241,0.06));
}
.detail-tier .tier-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #818cf8);
  margin-bottom: 4px;
}
.detail-tier .tier-price {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: #e0e0e8;
  margin-bottom: 4px;
}
.detail-tier .tier-period {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.detail-tier .tier-features {
  list-style: none;
  padding: 0;
}
.detail-tier .tier-features li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── CTA Button ─────────────────────────────────────── */
.detail-cta {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent, #818cf8), var(--accent-light, #a5b4fc));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s;
}
.detail-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ── CTA Section ────────────────────────────────────── */
.detail-cta-section {
  text-align: center;
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── Persona Cards ──────────────────────────────────── */
.detail-personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.detail-persona {
  padding: 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.detail-persona .persona-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}
.detail-persona h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #e0e0e8;
}
.detail-persona p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
}
.detail-persona blockquote {
  font-style: italic;
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  border-left: 2px solid var(--accent, #818cf8);
  padding-left: 12px;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ── Columns Layout ─────────────────────────────────── */
.detail-cols {
  display: flex;
  gap: 40px;
  margin: 24px 0;
}
.detail-cols > div { flex: 1; }

/* ── Back Link ──────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: #e0e0e8; }

/* ── Competitive Table ──────────────────────────────── */
.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.85rem;
}
.detail-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--accent-bg, rgba(99,102,241,0.12));
  border-bottom: 1px solid var(--accent-border, rgba(99,102,241,0.25));
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #818cf8);
}
.detail-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
}
.detail-table tr:nth-child(even) td {
  background: rgba(255,255,255,0.015);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .detail-hero { padding: 48px 16px 40px; }
  .detail-hero h1 { font-size: 2.2rem; }
  .detail-stats { gap: 20px; }
  .detail-stat-value { font-size: 1.4rem; }
  .detail-pipeline { flex-wrap: wrap; }
  .detail-pipeline .pipe-stage { min-width: calc(33% - 4px); }
  .detail-cols { flex-direction: column; gap: 24px; }
  .detail-tiers { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .detail-stack { grid-template-columns: repeat(2, 1fr); }
}
