/* ===== DETAIL PAGE SHARED STYLES ===== */

/* Hero */
.detail-hero {
  padding: calc(var(--nav-h) + 16px) 0 64px;
  background: linear-gradient(160deg, var(--blue-pale) 0%, var(--white) 60%);
  border-bottom: 1px solid var(--gray-2);
}

/* Breadcrumb bar — sits between nav and hero content */
.detail-breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 13px 0;
}
.detail-breadcrumb a {
  color: var(--text-2);
  font-weight: 500;
  transition: color var(--transition);
}
.detail-breadcrumb a:hover { color: var(--blue); }
.detail-breadcrumb i { font-size: 0.7rem; color: var(--gray-3); }
.detail-breadcrumb span {
  color: var(--blue);
  font-weight: 600;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.detail-hero-text .section-label { text-align: left; margin-bottom: 12px; }

.detail-hero-text h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.detail-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.detail-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.detail-hero-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Overview grid */
.detail-overview-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.detail-overview-main h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
}
.detail-overview-main h2:first-child { margin-top: 0; }

.detail-overview-main > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

/* Feature list */
.detail-feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}

.detail-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.detail-feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-feature h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.detail-feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Side stats */
.detail-stat-card {
  background: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.detail-stat {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-stat:last-child { border-bottom: none; }

.detail-stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.detail-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  line-height: 1.4;
}

.detail-tags-card {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.detail-tags-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-pale);
  border: 1px solid rgba(26,86,219,0.15);
  padding: 4px 12px;
  border-radius: 100px;
}

/* How it works steps */
.detail-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.detail-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--gray-2);
  transition: all var(--transition);
}
.detail-step:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(26,86,219,0.2);
}

.detail-step-num {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.08em;
  background: var(--blue-pale);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.detail-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.detail-step p {
  font-size: 0.835rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.detail-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--gray-3);
  font-size: 0.9rem;
  padding-top: 40px;
}

/* CTA section */
.detail-cta-section {
  text-align: center;
  padding: 64px 0;
  border-top: 1px solid var(--gray-2);
}

.detail-cta-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.detail-cta-section p {
  font-size: 0.975rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Bottom nav bar */
.detail-nav-bar {
  background: var(--slate);
  border-top: 1px solid var(--gray-2);
  padding: 20px 0;
}

.detail-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition);
}
.detail-nav-link:hover { gap: 12px; }
.detail-nav-prev:hover { gap: 12px; }
.detail-nav-prev { gap: 8px; }
.detail-nav-prev:hover { gap: 4px; }

/* Responsive */
@media (max-width: 1024px) {
  .detail-overview-grid { grid-template-columns: 1fr; }
  .detail-overview-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .detail-stat-card { margin-bottom: 0; }
  .detail-steps { grid-template-columns: 1fr; gap: 16px; }
  .detail-step-arrow { display: none; }
}

@media (max-width: 768px) {
  .detail-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .detail-hero-img { order: -1; }
  .detail-hero-img img { height: 220px; }
  .detail-overview-side { grid-template-columns: 1fr; }
  .detail-nav-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* =============================================
   PAGE-SPECIFIC THEMES
   ============================================= */

/* --- AI Video Script: warm creative --- */
body.page-video-script .detail-hero {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 40%, #fff 100%);
}
body.page-video-script .detail-hero h1 { color: #92400e; }
body.page-video-script .detail-hero .section-label { color: #d97706; }
body.page-video-script .detail-feature-icon { background: #fef3c7; color: #d97706; }
body.page-video-script .detail-stat-card { background: linear-gradient(160deg, #92400e, #b45309); }
body.page-video-script .detail-tags span { background: #fef3c7; color: #92400e; border-color: rgba(217,119,6,0.2); }
body.page-video-script .detail-step-num { background: #fef3c7; color: #d97706; }
body.page-video-script .detail-step:hover { border-color: rgba(217,119,6,0.3); }
body.page-video-script .detail-cta-section { background: linear-gradient(135deg, #fff7ed, #fff); border-radius: var(--radius); }

/* script preview block */
.script-preview {
  background: #1e1e2e;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  color: #cdd6f4;
  position: relative;
  overflow: hidden;
}
.script-preview::before {
  content: 'SCRIPT PREVIEW';
  position: absolute;
  top: 12px; right: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f38ba8;
  font-family: inherit;
}
.script-line-label { color: #89b4fa; font-weight: 700; }
.script-line-action { color: #a6e3a1; font-style: italic; }
.script-line-dialogue { color: #cdd6f4; }

/* --- Conversational AI: tech blue --- */
body.page-conv-ai .detail-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1a56db 100%);
}
body.page-conv-ai .detail-hero h1,
body.page-conv-ai .detail-hero .detail-lead { color: #fff; }
body.page-conv-ai .detail-hero .section-label { color: #93c5fd; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
body.page-conv-ai .detail-hero .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
body.page-conv-ai .detail-hero .btn-outline:hover { background: rgba(255,255,255,0.1); }
body.page-conv-ai .detail-stat-card { background: linear-gradient(160deg, #0f172a, #1e3a5f); }

/* chat bubble demo */
.chat-demo {
  background: #f8fafc;
  border: 1px solid var(--gray-2);
  border-radius: 16px;
  padding: 20px;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble {
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 0.845rem;
  line-height: 1.6;
}
.chat-bubble.user {
  background: var(--blue);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-bubble.ai {
  background: #fff;
  border: 1px solid var(--gray-2);
  color: var(--text-2);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Multi-Agent BPA: dark engineering --- */
body.page-bpa .detail-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
body.page-bpa .detail-hero h1,
body.page-bpa .detail-hero .detail-lead { color: #fff; }
body.page-bpa .detail-hero .section-label { color: #6ee7b7; background: rgba(110,231,183,0.1); border-color: rgba(110,231,183,0.2); }
body.page-bpa .detail-hero .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
body.page-bpa .detail-hero .btn-outline:hover { background: rgba(255,255,255,0.1); }
body.page-bpa .detail-feature-icon { background: #f0fdf4; color: #059669; }
body.page-bpa .detail-stat-card { background: linear-gradient(160deg, #0f172a, #064e3b); }
body.page-bpa .detail-tags span { background: #f0fdf4; color: #065f46; border-color: rgba(5,150,105,0.2); }
body.page-bpa .detail-step-num { background: #f0fdf4; color: #059669; }

/* agent network diagram */
.agent-network {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 28px 0;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid var(--gray-2);
  border-radius: 16px;
}
.agent-node {
  background: #fff;
  border: 1.5px solid var(--gray-2);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--transition);
}
.agent-node.supervisor {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  grid-column: 1 / -1;
  margin-bottom: 8px;
}
.agent-node:hover { border-color: #059669; color: #059669; }
.agent-nodes-sub { display: flex; flex-direction: column; gap: 8px; }
.agent-arrow { color: var(--gray-3); font-size: 1.2rem; text-align: center; }

/* --- AI Commercialization: purple product --- */
body.page-commercialization .detail-hero {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #fff 100%);
}
body.page-commercialization .detail-hero h1 { color: #4c1d95; }
body.page-commercialization .detail-hero .section-label { color: #7c3aed; }
body.page-commercialization .detail-feature-icon { background: #f5f3ff; color: #7c3aed; }
body.page-commercialization .detail-stat-card { background: linear-gradient(160deg, #4c1d95, #6d28d9); }
body.page-commercialization .detail-tags span { background: #f5f3ff; color: #5b21b6; border-color: rgba(124,58,237,0.2); }
body.page-commercialization .detail-step-num { background: #f5f3ff; color: #7c3aed; }
body.page-commercialization .detail-step:hover { border-color: rgba(124,58,237,0.3); }

/* pricing tier cards */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.tier-card {
  border: 1.5px solid var(--gray-2);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
}
.tier-card.featured {
  border-color: #7c3aed;
  background: linear-gradient(160deg, #f5f3ff, #fff);
  position: relative;
}
.tier-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -11px; left: 50%; transform: translateX(-50%);
  background: #7c3aed; color: #fff;
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 12px; border-radius: 100px;
  letter-spacing: 0.05em;
}
.tier-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.tier-name { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.tier-price { font-size: 1.6rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; margin-bottom: 4px; }
.tier-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 16px; }
.tier-features { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.tier-features li { font-size: 0.8rem; color: var(--text-2); padding-left: 18px; position: relative; }
.tier-features li::before { content: '✓'; position: absolute; left: 0; color: #7c3aed; font-weight: 700; }

/* --- AI Agent Delivery: professional green --- */
body.page-delivery .detail-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 40%, #fff 100%);
}
body.page-delivery .detail-hero h1 { color: #14532d; }
body.page-delivery .detail-hero .section-label { color: #16a34a; }
body.page-delivery .detail-feature-icon { background: #f0fdf4; color: #16a34a; }
body.page-delivery .detail-stat-card { background: linear-gradient(160deg, #14532d, #166534); }
body.page-delivery .detail-tags span { background: #f0fdf4; color: #166534; border-color: rgba(22,163,74,0.2); }
body.page-delivery .detail-step-num { background: #f0fdf4; color: #16a34a; }
body.page-delivery .detail-step:hover { border-color: rgba(22,163,74,0.3); }

/* SLA table */
.sla-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.855rem;
}
.sla-table th {
  background: #f0fdf4;
  color: #14532d;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #bbf7d0;
}
.sla-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-2);
  color: var(--text-2);
}
.sla-table tr:last-child td { border-bottom: none; }
.sla-table tr:hover td { background: #f8fafc; }
.sla-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
}

/* --- AIEOS: flagship dark tech --- */
body.page-aieos .detail-hero {
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);
  min-height: 520px;
}
body.page-aieos .detail-hero h1,
body.page-aieos .detail-hero .detail-lead { color: #fff; }
body.page-aieos .detail-hero .section-label { color: #a5b4fc; background: rgba(165,180,252,0.1); border-color: rgba(165,180,252,0.2); }
body.page-aieos .detail-hero .btn-outline { border-color: rgba(255,255,255,0.35); color: #fff; }
body.page-aieos .detail-hero .btn-outline:hover { background: rgba(255,255,255,0.08); }
body.page-aieos .detail-hero-img img { box-shadow: 0 0 60px rgba(99,102,241,0.3); }
body.page-aieos .detail-feature-icon { background: #1e1b4b; color: #a5b4fc; }
body.page-aieos .detail-stat-card { background: linear-gradient(160deg, #020617, #1e1b4b); }
body.page-aieos .detail-tags span { background: #1e1b4b; color: #a5b4fc; border-color: rgba(165,180,252,0.2); }
body.page-aieos .detail-step-num { background: #1e1b4b; color: #a5b4fc; }
body.page-aieos .detail-step:hover { border-color: rgba(99,102,241,0.4); }

/* stack diagram */
.stack-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 28px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(99,102,241,0.2);
}
.stack-layer {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(99,102,241,0.15);
  transition: all var(--transition);
}
.stack-layer:last-child { border-bottom: none; }
.stack-layer:hover { background: rgba(99,102,241,0.06); }
.stack-layer-num {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800;
  flex-shrink: 0;
}
.stack-layer-name { font-size: 0.875rem; font-weight: 700; color: var(--text); min-width: 160px; }
.stack-layer-desc { font-size: 0.8rem; color: var(--text-muted); }
.stack-layer:nth-child(1) { background: rgba(99,102,241,0.04); }
.stack-layer:nth-child(2) { background: rgba(99,102,241,0.06); }
.stack-layer:nth-child(3) { background: rgba(99,102,241,0.08); }
.stack-layer:nth-child(4) { background: rgba(99,102,241,0.10); }

/* --- Industry: Financial --- */
body.page-financial .detail-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 40%, #fff 100%);
}
body.page-financial .detail-hero h1 { color: #1e3a8a; }
body.page-financial .detail-hero .section-label { color: #1d4ed8; }
body.page-financial .detail-feature-icon { background: #eff6ff; color: #1d4ed8; }
body.page-financial .detail-stat-card { background: linear-gradient(160deg, #1e3a8a, #1d4ed8); }
body.page-financial .detail-tags span { background: #eff6ff; color: #1e40af; border-color: rgba(29,78,216,0.2); }

/* --- Industry: Healthcare --- */
body.page-healthcare .detail-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 40%, #fff 100%);
}
body.page-healthcare .detail-hero h1 { color: #14532d; }
body.page-healthcare .detail-hero .section-label { color: #16a34a; }
body.page-healthcare .detail-feature-icon { background: #f0fdf4; color: #16a34a; }
body.page-healthcare .detail-stat-card { background: linear-gradient(160deg, #14532d, #15803d); }
body.page-healthcare .detail-tags span { background: #f0fdf4; color: #166534; border-color: rgba(22,163,74,0.2); }

/* --- Industry: E-commerce --- */
body.page-ecommerce .detail-hero {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 40%, #fff 100%);
}
body.page-ecommerce .detail-hero h1 { color: #78350f; }
body.page-ecommerce .detail-hero .section-label { color: #d97706; }
body.page-ecommerce .detail-feature-icon { background: #fffbeb; color: #d97706; }
body.page-ecommerce .detail-stat-card { background: linear-gradient(160deg, #78350f, #b45309); }
body.page-ecommerce .detail-tags span { background: #fffbeb; color: #92400e; border-color: rgba(217,119,6,0.2); }

/* --- Industry: Software/SaaS --- */
body.page-saas .detail-hero {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 40%, #fff 100%);
}
body.page-saas .detail-hero h1 { color: #4c1d95; }
body.page-saas .detail-hero .section-label { color: #7c3aed; }
body.page-saas .detail-feature-icon { background: #f5f3ff; color: #7c3aed; }
body.page-saas .detail-stat-card { background: linear-gradient(160deg, #4c1d95, #6d28d9); }
body.page-saas .detail-tags span { background: #f5f3ff; color: #5b21b6; border-color: rgba(124,58,237,0.2); }
