/* ============================================================
   AgentWatch — Shared Marketing Page Styles
   Uses same CSS variables as public/styles.css (black/white theme)
   ============================================================ */

/* Reset body for full-page scroll (overrides dashboard defaults) */
body.marketing-page {
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
  display: block;
}

/* ── Top Nav ── */
.landing-header {
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { font-weight: 700; font-size: 18px; letter-spacing: -0.5px; color: var(--neutral-950); }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-link {
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover, .nav-link.active { background: var(--bg-secondary); color: var(--text); }
.nav-link.active { font-weight: 600; }
.nav-cta {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--neutral-950);
  border-radius: 99px;
  text-decoration: none;
  margin-left: 6px;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.8; color: #fff; }

/* ── Section base ── */
.lp-section {
  padding: 80px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.lp-section-full {
  padding: 80px 24px;
  background: var(--bg-secondary);
}
.lp-section-full .lp-inner { max-width: 1160px; margin: 0 auto; }
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--neutral-950);
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 44px;
}
.centered { text-align: center; }
.centered .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Hero ── */
.hero-section {
  padding: 100px 24px 72px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--neutral-950);
}
.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.6;
}
.cta-container {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.btn-large {
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--neutral-950);
  color: white;
  border: 1px solid var(--neutral-950);
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--neutral-950);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-secondary); }

/* ── Stats bar ── */
.hero-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}
.hero-stat {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-value { font-size: 26px; font-weight: 800; color: var(--neutral-950); }
.hero-stat-label { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-top: 4px; }

/* ── Feature cards grid ── */
.cards-grid { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.feat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: all 0.22s ease;
}
.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  border-color: var(--neutral-400);
}
.feat-card-icon {
  width: 42px;
  height: 42px;
  background: var(--bg-secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.feat-card-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--neutral-950); }
.feat-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.feat-card.risk { background: #fff8f8; border-color: #fecaca; }
.feat-card.risk .feat-card-title { color: #991b1b; }
.feat-card.highlight { border-color: var(--neutral-950); border-width: 2px; }

/* ── Flow diagram ── */
.flow-diagram {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  background: #fff;
  margin-bottom: 36px;
}
.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.flow-node {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  min-width: 120px;
}
.flow-node.danger { background: #fff8f8; border-color: #fecaca; }
.flow-node.accent { background: #f0fdf4; border-color: #bbf7d0; }
.flow-node.highlight { background: var(--neutral-950); border-color: var(--neutral-950); }
.flow-node.highlight .fn-label { color: #fff; }
.flow-node.highlight .fn-sub { color: #aaa; }
.flow-node .fn-icon { font-size: 22px; display: block; margin-bottom: 4px; }
.flow-node .fn-label { font-size: 12px; font-weight: 600; color: var(--neutral-950); }
.flow-node .fn-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
}
.flow-arrow-line {
  width: 1px;
  height: 26px;
  background: var(--border);
  position: relative;
}
.flow-arrow-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--neutral-400);
}
.flow-arrow-label { font-size: 10px; font-weight: 500; color: var(--text-muted); margin: 2px 0; white-space: nowrap; }
.flow-arrow.danger .flow-arrow-line { background: #fca5a5; }
.flow-arrow.danger .flow-arrow-line::after { border-top-color: #ef4444; }
.flow-arrow.danger .flow-arrow-label { color: #ef4444; }
.flow-h-arrow {
  display: flex;
  align-items: center;
  gap: 0;
}
.flow-h-line {
  height: 1px;
  width: 32px;
  background: var(--border);
  position: relative;
}
.flow-h-line::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--neutral-400);
}

/* ── Stats strip ── */
.stats-strip {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.stat-box {
  flex: 1;
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: #fff;
}
.stat-box:last-child { border-right: none; }
.stat-box .sb-value { font-size: 28px; font-weight: 800; color: var(--neutral-950); line-height: 1; }
.stat-box .sb-label { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-box.success .sb-value { color: #166534; }
.stat-box.danger .sb-value { color: #dc2626; }

/* ── Deployment cards ── */
.deploy-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: all 0.22s;
}
.deploy-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.06); }
.deploy-card .dc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.deploy-card.featured { border-color: var(--neutral-950); border-width: 2px; }
.deploy-card.featured .dc-badge { background: var(--neutral-950); color: #fff; border-color: var(--neutral-950); }
.deploy-card .dc-icon { font-size: 30px; display: block; margin-bottom: 12px; }
.deploy-card .dc-title { font-size: 17px; font-weight: 700; color: var(--neutral-950); margin-bottom: 8px; }
.deploy-card .dc-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.deploy-card .dc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.deploy-card .dc-list li { font-size: 13px; color: var(--text-muted); display: flex; align-items: flex-start; gap: 8px; }
.deploy-card .dc-list li::before { content: '→'; color: var(--neutral-950); font-weight: 700; flex-shrink: 0; }

/* ── Callout box ── */
.callout-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  background: var(--bg-secondary);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}
.callout-box .cb-icon { font-size: 22px; flex-shrink: 0; }
.callout-box .cb-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.callout-box .cb-text strong { color: var(--neutral-950); }

/* ── Before/After comparison ── */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.comp-col { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.comp-col.before { border-color: #fecaca; }
.comp-col.after { border-color: var(--neutral-950); border-width: 2px; }
.comp-col .cc-header {
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.comp-col.before .cc-header { background: #fff8f8; color: #991b1b; }
.comp-col.after .cc-header { background: var(--neutral-950); color: #fff; }
.comp-col .cc-body { padding: 14px 18px; }
.comp-col .cc-body li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.comp-col .cc-body li:last-child { border-bottom: none; }
.comp-col.before .cc-body li::before { content: '✕'; color: #dc2626; font-weight: 700; flex-shrink: 0; }
.comp-col.after .cc-body li::before { content: '✓'; color: #166534; font-weight: 700; flex-shrink: 0; }

/* ── Tier badges ── */
.tier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.tier-foundation { background: #dcfce7; color: #166534; }
.tier-advanced { background: #fef3c7; color: #92400e; }
.tier-enterprise { background: #dbeafe; color: #1e40af; }

/* ── Code block ── */
.code-block {
  background: #0f172a;
  border-radius: 12px;
  padding: 22px;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: #94a3b8;
  overflow-x: auto;
  margin-top: 20px;
}
.code-block .cb-comment { color: #475569; }
.code-block .cb-keyword { color: #c084fc; }
.code-block .cb-string { color: #34d399; }
.code-block .cb-prop { color: #60a5fa; }

/* ── Benefits checklist ── */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.benefit-item .bi-check { color: #166534; font-weight: 700; font-size: 14px; flex-shrink: 0; }

/* ── Pipeline row ── */
.pipeline-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
}
.pipeline-step {
  flex: 1;
  padding: 14px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: #fff;
}
.pipeline-step:last-child { border-right: none; }
.pipeline-step.highlighted { background: var(--bg-secondary); }
.pipeline-step .ps-icon { font-size: 20px; display: block; margin-bottom: 5px; }
.pipeline-step .ps-label { font-size: 11px; font-weight: 700; color: var(--neutral-950); }
.pipeline-step .ps-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ── Section divider ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-divider span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── CTA section ── */
.cta-section {
  padding: 88px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-section .cta-title { font-size: 38px; font-weight: 800; letter-spacing: -1px; color: var(--neutral-950); margin-bottom: 14px; }
.cta-section .cta-sub { font-size: 17px; color: var(--text-muted); margin-bottom: 36px; }

/* ── Site footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-nav a:hover { color: var(--text); }

/* ── Comparison table ── */
.mkt-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 13px;
}
.mkt-table th, .mkt-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.mkt-table th {
  background: var(--bg-secondary);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.mkt-table td { color: var(--text-muted); }
.mkt-table tr:last-child td { border-bottom: none; }
.mkt-table .col-aw { font-weight: 700; color: var(--neutral-950); }
.mkt-table .check { color: #166534; font-weight: 700; font-size: 15px; }
.mkt-table .cross { color: #dc2626; font-weight: 700; }
.mkt-table .partial { color: #92400e; font-weight: 700; }
.mkt-table .section-row td { background: var(--bg-secondary); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--neutral-950); }
.table-wrapper { overflow-x: auto; border-radius: 12px; }

/* ── Script/pitch boxes ── */
.pitch-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.pitch-box .pitch-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pitch-box .pitch-title { font-size: 16px; font-weight: 700; color: var(--neutral-950); margin-bottom: 12px; }
.pitch-box .pitch-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.pitch-box.accent {
  background: var(--neutral-950);
  border-color: var(--neutral-950);
}
.pitch-box.accent .pitch-label { color: #aaa; }
.pitch-box.accent .pitch-title { color: #fff; }
.pitch-box.accent .pitch-text { color: #ccc; }

.script-box {
  background: var(--bg-secondary);
  border-left: 3px solid var(--neutral-950);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
}
.script-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ── KPI card ── */
.kpi-card { text-align: center; }
.kpi-value { font-size: 42px; font-weight: 800; color: var(--neutral-950); line-height: 1; }
.kpi-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-desc { font-size: 13px; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }

/* ── Info cards ── */
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.info-card .ic-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.info-card .ic-title { font-size: 16px; font-weight: 700; color: var(--neutral-950); margin-bottom: 12px; }
.info-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.info-card ul li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.info-card ul li::before { content: '→'; color: var(--neutral-950); font-weight: 700; flex-shrink: 0; }

/* ── Check list ── */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.check-list li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.check-list li::before { content: '✓'; color: #166534; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Tech stack table ── */
.tech-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tech-table tr { border-bottom: 1px solid var(--border); }
.tech-table tr:last-child { border-bottom: none; }
.tech-table td { padding: 8px 4px; color: var(--text-muted); }
.tech-table td:first-child { font-weight: 600; color: var(--neutral-950); width: 40%; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .comparison-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 40px; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 32px; }
  .hero-section { padding-top: 56px; }
  .cta-container { flex-direction: column; align-items: center; }
  .btn-large { width: 100%; justify-content: center; }
  .cards-3, .cards-4, .cards-2 { grid-template-columns: 1fr; }
  .nav-links .nav-link { display: none; }
  .nav-links .nav-link.active { display: inline; }
  .pipeline-row { flex-wrap: wrap; }
  .pipeline-step { min-width: 50%; }
  .landing-header { padding: 12px 20px; }
  .lp-section { padding: 56px 20px; }
  .site-footer { flex-direction: column; text-align: center; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.7s ease-out; }
