/* ================================================================
   DocParse — Page-Specific Overrides
   "Precision Instrumentation" aesthetic: clean, confident, engineered
   Blue-shifted identity on top of Sunholo design system
   ================================================================ */

/* ---- Site-Wide Navigation (injected by components.js) ---- */
.dp-site-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.2px;
}
.dp-site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.dp-site-nav a.dp-nav-active {
  color: #fff;
  background: rgba(0, 179, 122, 0.35);
  font-weight: 600;
}

/* ---- Mobile Nav Toggle ---- */
.dp-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  border-radius: 4px;
  transition: background 0.2s;
}
.dp-nav-toggle:hover {
  background: rgba(255,255,255,0.1);
}
@media (max-width: 900px) {
  .dp-site-nav {
    display: none;
    /* fixed (not absolute) so the dropdown isn't clipped by the
       parent .header which has overflow: hidden */
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    padding: 12px 20px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .dp-site-nav.dp-nav-open {
    display: flex;
  }
  .dp-site-nav a {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 6px;
  }
  .dp-nav-toggle {
    display: flex;
    align-items: center;
  }
  .header-right { display: none; }
  .header-right:has(.dp-header-auth[style*="block"]) {
    display: flex;
  }
  .header-right:has(.dp-header-auth[style*="block"]) > a { display: none; }
  .dp-header-user-name { display: none; }
}

/* ---- Section sub-nav (for index.html anchor sections) ---- */
.dp-section-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 8px;
}
.dp-section-nav a {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.dp-section-nav a:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.06);
}
.dp-section-nav a.dp-nav-active {
  color: rgba(255,255,255,0.9);
  background: rgba(0, 179, 122, 0.2);
}
@media (max-width: 900px) {
  .dp-section-nav { display: none; }
}

:root {
  --dp-blue: #00b37a;
  --dp-blue-light: #00cc8a;
  --dp-blue-dark: #009966;
  --dp-blue-faded: rgba(0, 179, 122, 0.08);
  --dp-blue-border: rgba(0, 179, 122, 0.25);
  --dp-blue-glow: rgba(0, 179, 122, 0.15);
}

html { scroll-behavior: smooth; }

/* Asymmetric radial glow — offset from center for a designed (not generated) feel */
body {
  background-image:
    radial-gradient(ellipse 90% 60% at 60% -5%, rgba(0, 179, 122, 0.06) 0%, transparent 55%);
  background-repeat: no-repeat;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease-out-expo),
              transform 0.45s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---- Hero ---- */
.hero { margin-bottom: 56px; position: relative; }
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.08;
  margin-bottom: 14px;
}
.dp-accent { color: var(--dp-blue); }

/* Subtle glow behind hero title */
.hero h1::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 80px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0, 179, 122, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.dp-hero-visual {
  margin-bottom: 32px;
  position: relative;
}
.dp-hero-svg {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 179, 122, 0.1);
}

/* Stats strip */
.dp-stats-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0 36px;
}
.dp-stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  min-width: 90px;
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.dp-stat-chip::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--dp-blue);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.dp-stat-chip:hover {
  box-shadow: var(--shadow-blue);
  border-color: var(--dp-blue-border);
}
.dp-stat-chip:hover::after { transform: scaleX(1); }
.dp-stat-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--dp-blue);
  line-height: 1.2;
}
.dp-stat-lbl {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA buttons */
.dp-hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.dp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s var(--ease-out-expo);
  position: relative;
}
.dp-btn:hover { transform: translateY(-2px); }
.dp-btn:active { transform: translateY(0); }
.dp-btn--primary {
  background: var(--dp-blue);
  color: #fff;
  border: 2px solid var(--dp-blue);
  box-shadow: 0 4px 14px rgba(0, 179, 122, 0.3);
}
.dp-btn--primary:hover {
  background: var(--dp-blue-dark);
  border-color: var(--dp-blue-dark);
  box-shadow: 0 6px 20px rgba(0, 179, 122, 0.4);
}
.dp-btn--secondary {
  background: var(--dp-blue-faded);
  color: var(--dp-blue);
  border: 2px solid var(--dp-blue-border);
}
.dp-btn--secondary:hover {
  background: var(--dp-blue);
  color: #fff;
  border-color: var(--dp-blue);
  box-shadow: 0 4px 14px rgba(0, 179, 122, 0.25);
}
.dp-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border);
}
.dp-btn--ghost:hover {
  border-color: var(--dp-blue);
  color: var(--dp-blue);
}
.dp-btn svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

/* Section title overrides */
.section-title {
  font-size: 22px;
  text-transform: none;
  letter-spacing: -0.3px;
}
.section { margin-bottom: 56px; }
.section-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* ---- Format Grid ---- */
.dp-format-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.dp-format-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 10px 14px;
  text-align: center;
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.3s ease,
              border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.dp-format-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--border-active);
}
.dp-format-card:hover .dp-format-icon {
  transform: scale(1.12);
}
.dp-format-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.dp-format--office::before { background: var(--dp-blue); }
.dp-format--text::before { background: var(--teal); }
.dp-format--ai::before { background: var(--amber); }

/* Hover glow per category */
.dp-format--office:hover { box-shadow: var(--shadow-blue); border-color: var(--dp-blue-border); }
.dp-format--text:hover { box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12); border-color: rgba(13, 148, 136, 0.3); }
.dp-format--ai:hover { box-shadow: 0 8px 24px rgba(217, 119, 6, 0.12); border-color: rgba(217, 119, 6, 0.3); }

.dp-format-icon {
  width: 28px; height: 28px;
  margin: 0 auto 8px;
  transition: transform 0.2s var(--ease-out-expo);
}
.dp-format-icon svg {
  width: 28px; height: 28px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.dp-format--office .dp-format-icon { color: var(--dp-blue); }
.dp-format--text .dp-format-icon { color: var(--teal); }
.dp-format--ai .dp-format-icon { color: var(--amber); }

.dp-format-ext {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.dp-format-method {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dp-format-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.dp-legend-item { display: flex; align-items: center; gap: 7px; }
.dp-legend-dot { width: 8px; height: 8px; border-radius: 2px; }
.dp-legend--office { background: var(--dp-blue); }
.dp-legend--text { background: var(--teal); }
.dp-legend--ai { background: var(--amber); }

/* ---- Capabilities ---- */
.dp-capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dp-cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--dp-blue);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  position: relative;
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.3s ease;
}
.dp-cap-card:hover {
  box-shadow: 0 0 0 1px var(--dp-blue-border), var(--shadow-blue);
}
.dp-cap-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dp-blue-faded);
  color: var(--dp-blue);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  transition: background 0.2s, transform 0.2s;
}
.dp-cap-card:hover .dp-cap-icon {
  background: rgba(0, 179, 122, 0.14);
  transform: scale(1.05);
}
.dp-cap-icon svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dp-cap-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.dp-cap-detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.dp-cap-badge {
  position: absolute;
  top: 18px; right: 16px;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.dp-cap-badge--exclusive { background: var(--dp-blue-faded); color: var(--dp-blue); }
.dp-cap-badge--better { background: var(--success-bg); color: var(--success); }
.dp-cap-badge--unique { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

/* ---- Benchmark ---- */
.benchmark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
/* Subtle blue accent line at top */
.benchmark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dp-blue), var(--dp-blue-light), var(--dp-blue));
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}
.stat-value.dp-blue { color: var(--dp-blue); }
.stat-value.muted { color: var(--text-muted); }
.stat-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table th {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  color: var(--text-primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.compare-table th.dp-col {
  color: var(--dp-blue);
  background: var(--dp-blue-faded);
  border-radius: 4px 4px 0 0;
}
.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .win { color: var(--success); font-weight: 600; }
.compare-table .partial { color: var(--warning); }
.compare-table .no { color: var(--text-muted); }
/* Highlight DocParse column */
.compare-table td:nth-child(2) {
  background: var(--dp-blue-faded);
  font-weight: 500;
}

/* ---- Pipeline / Architecture ---- */
.dp-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 36px 0 28px;
  flex-wrap: wrap;
}
.dp-pipeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: center;
  min-width: 128px;
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.3s ease;
  position: relative;
}
.dp-pipeline-step:hover { box-shadow: 0 0 16px rgba(0, 179, 122, 0.1); border-color: var(--dp-blue-border); }
.dp-pipeline-step--highlight {
  border-color: var(--dp-blue);
  border-width: 2px;
  background: var(--dp-blue-faded);
  box-shadow: 0 0 0 4px rgba(0, 179, 122, 0.06);
}
.dp-pipeline-icon {
  width: 32px; height: 32px;
  margin: 0 auto 10px;
  color: var(--dp-blue);
}
.dp-pipeline-icon svg {
  width: 24px; height: 24px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dp-pipeline-label {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}
.dp-pipeline-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}
.dp-pipeline-arrow {
  font-size: 18px;
  color: var(--dp-blue);
  padding: 0 12px;
  font-family: var(--font-mono);
  opacity: 0.5;
}

/* ADT variant tags */
.dp-adt-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.dp-adt-variant {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--dp-blue-border);
  color: var(--dp-blue);
  background: var(--dp-blue-faded);
  transition: background 0.2s, transform 0.15s;
}
.dp-adt-variant:hover {
  background: rgba(0, 179, 122, 0.14);
  transform: translateY(-1px);
}

/* ---- Code examples ---- */
.dp-code-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.dp-code-panel { position: relative; }
.dp-code-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-blue);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cli-block {
  background: var(--bg-code);
  border-radius: var(--radius);
  padding: 22px 26px;
  overflow-x: auto;
  border: 1px solid rgba(0, 179, 122, 0.1);
}
.cli-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.8;
  white-space: pre;
}
.cli-block .comment { color: #475569; }
.cli-block .cmd { color: #38bdf8; }
.cli-block .flag { color: #a78bfa; }
.cli-block .string { color: #86efac; }

/* ---- AI Providers ---- */
.dp-providers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dp-provider {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.3s ease;
}
.dp-provider:hover {
  box-shadow: var(--shadow-blue);
  border-color: var(--dp-blue-border);
}
.dp-provider-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.dp-provider-models {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.5;
}
.dp-provider-auth {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.dp-provider-badge {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.dp-provider-badge--default { background: var(--dp-blue-faded); color: var(--dp-blue); }
.dp-provider-badge--free { background: var(--success-bg); color: var(--success); }

/* ---- Roadmap ---- */
.coming-soon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.coming-soon-item {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: opacity 0.25s, transform 0.25s var(--ease-out-expo), border-color 0.25s;
  opacity: 0.65;
}
.coming-soon-item:hover {
  opacity: 1;
  border-color: var(--dp-blue-border);
}
.coming-soon-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--dp-blue-faded);
  color: var(--dp-blue);
  display: inline-block;
  margin-bottom: 8px;
}
.feature-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: -0.2px;
}
.feature-detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Demo Cards ---- */
.dp-demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dp-demo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.3s ease,
              border-color 0.25s ease;
  overflow: hidden;
}
.dp-demo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.dp-demo-card:hover {
  box-shadow: var(--shadow-blue);
  border-color: rgba(0, 179, 122, 0.2);
}
.dp-demo-card--parse::before { background: var(--dp-blue); }
.dp-demo-card--extract::before { background: var(--primary); }
.dp-demo-card--contracts::before { background: #8b5cf6; }
.dp-demo-card--verify::before { background: #7c3aed; }
.dp-demo-card--voice::before { background: var(--dp-blue); }

.dp-demo-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.dp-demo-card--parse .dp-demo-icon { background: var(--dp-blue-faded); color: var(--dp-blue); }
.dp-demo-card--extract .dp-demo-icon { background: var(--primary-faded); color: var(--primary); }
.dp-demo-card--contracts .dp-demo-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.dp-demo-card--verify .dp-demo-icon { background: rgba(124, 58, 237, 0.08); color: #7c3aed; }
.dp-demo-card--voice .dp-demo-icon { background: var(--dp-blue-faded); color: var(--dp-blue); }

.dp-demo-icon svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dp-demo-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: -0.2px;
}
.dp-demo-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 12px;
}
.dp-demo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}
.dp-demo-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.dp-demo-badge--wasm { background: var(--dp-blue-faded); color: var(--dp-blue); }
.dp-demo-badge--api { background: var(--primary-faded); color: var(--primary); font-size: 9px; }
.dp-demo-badge--provider { background: var(--bg-input); color: var(--text-muted); }
.dp-demo-badge--ws { background: var(--success-bg); color: var(--success); }

.dp-demo-arrow {
  position: absolute;
  top: 22px; right: 18px;
  color: var(--text-muted);
  font-size: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
  font-family: var(--font-mono);
}
.dp-demo-card:hover .dp-demo-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 900px) {
  .dp-demos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dp-demos-grid { grid-template-columns: 1fr; }
}

/* ---- Output Examples (tabbed) ---- */
.dp-output-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.dp-output-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  letter-spacing: 0.2px;
}
.dp-output-tab:hover {
  color: var(--text-secondary);
  background: rgba(0, 179, 122, 0.04);
}
.dp-output-tab.active {
  color: var(--dp-blue);
  background: var(--bg-code);
  border-color: var(--dp-blue-border);
  font-weight: 600;
}
.dp-output-panel {
  display: none;
  background: var(--bg-code);
  border: 1px solid var(--dp-blue-border);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 0;
  overflow: hidden;
}
.dp-output-panel.active { display: block; }
.dp-output-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0, 179, 122, 0.1);
  background: rgba(0, 179, 122, 0.03);
}
.dp-output-file {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-blue);
}
.dp-output-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.dp-output-badge--exclusive {
  background: rgba(0, 179, 122, 0.12);
  color: var(--dp-blue);
}
.dp-output-badge--structural {
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
}
.dp-output-badge--ai {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}
.dp-output-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}
/* Visual output renderings */
.dp-output-visual {
  padding: 24px;
}
.dp-output-visual-doc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.dp-output-visual-doc p {
  margin: 4px 0;
}
.dp-visual-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.dp-visual-meta-label {
  color: var(--text-muted);
  opacity: 0.6;
}
.dp-change-block {
  padding: 10px 14px;
  margin: 8px 0;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
}
.dp-change-block--move-to {
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid #22c55e;
}
.dp-change-block--move-from {
  background: rgba(239, 68, 68, 0.06);
  border-left: 3px solid #ef4444;
  opacity: 0.65;
  text-decoration: line-through;
}
.dp-change-block--insert {
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid #22c55e;
}
.dp-change-block--delete {
  background: rgba(239, 68, 68, 0.06);
  border-left: 3px solid #ef4444;
  text-decoration: line-through;
  opacity: 0.65;
}
.dp-change-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-decoration: none;
}
.dp-change-label--move-to { color: #22c55e; }
.dp-change-label--move-from { color: #ef4444; }
.dp-change-author {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.7;
  margin-left: 8px;
  text-decoration: none;
  display: inline;
}
.dp-visual-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}
.dp-visual-table th {
  background: rgba(0, 179, 122, 0.1);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: #93c5fd;
  border: 1px solid rgba(0, 179, 122, 0.15);
}
.dp-visual-table td {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
}
.dp-visual-table .merged-cell {
  background: rgba(0, 179, 122, 0.06);
  position: relative;
}
.dp-visual-table .merged-indicator {
  font-size: 9px;
  color: var(--dp-blue);
  opacity: 0.6;
  display: block;
  margin-top: 2px;
}
.dp-comment-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dp-comment-body-text {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.dp-comment-bubble {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 179, 122, 0.06);
  border-radius: 6px;
  border-left: 3px solid var(--dp-blue);
  font-size: 12px;
  line-height: 1.5;
}
.dp-comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 179, 122, 0.15);
  color: var(--dp-blue);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dp-comment-author {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--dp-blue);
  margin-bottom: 2px;
}
.dp-comment-text {
  color: var(--text-secondary);
}
.dp-media-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dp-media-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dp-media-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dp-media-icon--audio {
  background: rgba(168, 85, 247, 0.12);
}
.dp-media-icon--video {
  background: rgba(168, 85, 247, 0.12);
}
.dp-media-icon svg {
  width: 20px;
  height: 20px;
  stroke: #a855f7;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dp-media-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dp-media-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}
.dp-media-transcript {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  border-left: 3px solid #a855f7;
  font-style: italic;
}
.dp-json-toggle {
  border-top: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
}
.dp-json-toggle summary {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 10px 24px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.dp-json-toggle summary::-webkit-details-marker { display: none; }
.dp-json-toggle summary::before {
  content: '>';
  display: inline-block;
  transition: transform 0.2s;
  font-size: 10px;
}
.dp-json-toggle[open] summary::before {
  transform: rotate(90deg);
}
.dp-output-json {
  padding: 20px 24px;
  overflow-x: auto;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 179, 122, 0.2) transparent;
}
.dp-output-json::-webkit-scrollbar { width: 6px; height: 6px; }
.dp-output-json::-webkit-scrollbar-thumb { background: rgba(0, 179, 122, 0.2); border-radius: 3px; }
.dp-output-json pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #e2e8f0;
  white-space: pre;
}
.dp-output-json .json-key { color: #93c5fd; }
.dp-output-json .json-str { color: #86efac; }
.dp-output-json .json-num { color: #fbbf24; }
.dp-output-json .json-bool { color: #a78bfa; }
.dp-output-json .json-null { color: #64748b; }
.dp-output-json .json-highlight {
  background: rgba(0, 179, 122, 0.08);
  display: inline;
  border-radius: 2px;
  padding: 1px 0;
}
.dp-output-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--dp-blue-faded);
  border: 1px solid var(--dp-blue-border);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.dp-output-callout svg {
  width: 16px; height: 16px; min-width: 16px;
  margin-top: 2px;
  stroke: var(--dp-blue); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 560px) {
  .dp-output-tabs { flex-wrap: wrap; gap: 4px; }
  .dp-output-tab { font-size: 11px; padding: 8px 12px; }
  .dp-output-header { flex-wrap: wrap; padding: 12px 16px; }
  .dp-output-desc { margin-left: 0; }
  .dp-output-visual { padding: 16px; }
  .dp-output-json { padding: 14px 16px; max-height: 340px; }
  .dp-output-json pre { font-size: 11px; }
  .dp-output-panel { border-radius: 0 0 var(--radius) var(--radius); }
  .dp-visual-meta { flex-wrap: wrap; gap: 8px; }
  .dp-visual-table { font-size: 11px; }
  .dp-visual-table th, .dp-visual-table td { padding: 6px 8px; }
  .dp-comment-bubble { padding: 8px 10px; }
}

/* ---- Section Divider — scanning beam echoes hero SVG motif ---- */
.dp-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dp-blue-border), transparent);
  margin: 0 0 56px;
  border: none;
  position: relative;
  overflow: hidden;
}
.dp-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 179, 122, 0.5), transparent);
  animation: dp-scan 4s ease-in-out infinite;
}
@keyframes dp-scan {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* ---- FAQ Section ---- */
.dp-faq { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--border); }
.dp-faq h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  letter-spacing: -0.3px;
  border-top: none;
  padding-top: 0;
}
.dp-faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg-card);
  transition: border-color 0.2s;
}
.dp-faq details[open] { border-color: var(--dp-blue-border); }
.dp-faq summary {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  line-height: 1.4;
}
.dp-faq summary::-webkit-details-marker { display: none; }
.dp-faq summary::before {
  content: '+';
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--dp-blue);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.dp-faq details[open] summary::before { content: '\2212'; }
.dp-faq summary:hover { color: var(--dp-blue); }
.dp-faq .dp-faq-answer {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0 18px 16px 48px;
}
.dp-faq .dp-faq-answer p { margin: 0 0 8px; }
.dp-faq .dp-faq-answer p:last-child { margin-bottom: 0; }
.dp-faq .dp-faq-answer code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-input);
  color: var(--dp-blue);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.dp-faq .dp-faq-answer a { color: var(--dp-blue); font-weight: 600; text-decoration: none; }
.dp-faq .dp-faq-answer a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .dp-faq summary { font-size: 13px; padding: 12px 14px; }
  .dp-faq .dp-faq-answer { padding: 0 14px 14px 38px; font-size: 12px; }
}

/* ---- Sliding underline on content links ---- */
.dp-docs-content a:not(.dp-btn):not(.dp-callout a):not([class]) {
  text-decoration: none;
  color: var(--dp-blue);
  background-image: linear-gradient(var(--dp-blue), var(--dp-blue));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease-out-expo);
}
.dp-docs-content a:not(.dp-btn):not(.dp-callout a):not([class]):hover {
  background-size: 100% 1px;
}

/* ---- Alternating section backgrounds ---- */
.dp-section-alt {
  background: rgba(0, 179, 122, 0.015);
  margin-left: -32px;
  margin-right: -32px;
  padding: 48px 32px;
  border-top: 1px solid rgba(0, 179, 122, 0.06);
  border-bottom: 1px solid rgba(0, 179, 122, 0.06);
}

/* ---- Hexagonal accent decoration ---- */
.dp-hex-accent {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.03;
  background: var(--dp-blue);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  pointer-events: none;
  animation: dp-float 8s ease-in-out infinite;
}
.dp-hex-accent--lg {
  width: 100px;
  height: 100px;
}
@keyframes dp-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(15deg); }
}

/* ---- Footer override ---- */
.footer-line a:hover { color: var(--dp-blue); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .dp-format-grid { grid-template-columns: repeat(4, 1fr); }
  .dp-capabilities { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .dp-providers { grid-template-columns: 1fr; }
  .coming-soon { grid-template-columns: 1fr; }
  .dp-pipeline { gap: 4px; }
  .dp-pipeline-step { min-width: 100px; padding: 16px; }
  .dp-pipeline-arrow { padding: 0 6px; font-size: 16px; }
  .compare-table { font-size: 11px; }
  .compare-table th, .compare-table td { padding: 8px 8px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .dp-format-grid { grid-template-columns: repeat(3, 1fr); }
  .dp-capabilities { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dp-format-legend { flex-direction: column; align-items: center; gap: 8px; }
  .dp-pipeline { flex-direction: column; }
  .dp-pipeline-arrow { transform: rotate(90deg); padding: 4px 0; }
  .dp-stat-chip { padding: 10px 16px; min-width: 70px; }
  .dp-stat-val { font-size: 22px; }
  .stat-value { font-size: 26px; }
  /* Horizontal scroll for comparison table on mobile */
  .dp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { min-width: 560px; }
}
