/* ============================================================
   Data Scraper — Product Page Stylesheet
   Theme: Dark
   ============================================================ */

:root {
  --primary:    #2563EB;
  --secondary:  #06B6D4;
  --accent:     #A3E635;
  --text:       #E5E7EB;
  --text-muted: #94A3B8;
  --heading:    #F8FAFC;
  --bg:         #0B1220;
  --bg-alt:     #0F1729;
  --card-bg:    #111A2E;
  --card-border:#1F2A44;
  --divider:    #1F2A44;
  --radius:     12px;
  --radius-sm:  8px;
  --max-w:      1120px;
  --transition: .25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Utility ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.row-between { display: flex; align-items: center; justify-content: space-between; }

code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: rgba(37, 99, 235, .15);
  color: var(--secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .9em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-sm  { padding: 8px 18px; font-size: .875rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: #3B82F6; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.35); }

.btn-accent {
  background: var(--accent);
  color: #0B1220;
}
.btn-accent:hover { background: #BEF264; color: #0B1220; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(163,230,53,.3); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { border-color: var(--secondary); color: var(--secondary); }

/* ── Header ── */
.ds-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(11, 18, 32, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  transition: background var(--transition);
}
.ds-brand { display: flex; align-items: center; text-decoration: none; }
.ds-brand-logo { height: 36px; width: auto; }
.ds-nav { display: flex; align-items: center; gap: 28px; }
.ds-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.ds-nav a:hover { color: var(--text); }
.ds-nav a.btn-accent { color: #0B1220; }
.ds-nav a.btn-accent:hover { color: #0B1220; }
.back-link { font-size: .85rem !important; }

.ds-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.ds-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
}
.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero-icon {
  display: block;
  max-width: 280px;
  height: auto;
  margin: 0 auto 24px;
}
.eyebrow {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 16px;
}
.grad {
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.15;
  max-width: 780px;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust {
  font-size: .82rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .02em;
}

/* ── Sections ── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -.015em;
}
.section-sub {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Outcome Cards ── */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.outcome-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.outcome-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.outcome-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.outcome-icon--extract  { background: rgba(37,99,235,.12);  color: var(--primary); }
.outcome-icon--transform { background: rgba(6,182,212,.12);  color: var(--secondary); }
.outcome-icon--export   { background: rgba(163,230,53,.12); color: var(--accent); }
.outcome-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
}
.outcome-card p { color: var(--text-muted); font-size: .95rem; }

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--secondary); transform: translateY(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,.08);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}
.feature-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* ── Pipeline ── */
.pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.pipeline-step {
  text-align: center;
  max-width: 200px;
  padding: 0 12px;
}
.pipeline-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.pipeline-step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}
.pipeline-step p { color: var(--text-muted); font-size: .875rem; }
.pipeline-arrow {
  display: flex;
  align-items: center;
  padding-top: 12px;
}

/* ── Use Cases ── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.usecase-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition);
}
.usecase-card:hover { border-color: var(--accent); }
.usecase-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: rgba(163,230,53,.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.usecase-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}
.usecase-card p { color: var(--text-muted); font-size: .925rem; }

/* ── Tech Snapshot ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
.tech-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.tech-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.tech-value {
  font-size: .95rem;
  font-weight: 500;
  color: var(--heading);
}

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--secondary); }
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .975rem;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: .925rem;
  line-height: 1.7;
}

/* ── CTA Section ── */
.cta-section { padding: 80px 0; }
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(6,182,212,.08));
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 64px 40px;
}
.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
}
.cta-box p { color: var(--text-muted); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.ds-footer {
  padding: 32px 0;
  border-top: 1px solid var(--divider);
}
.footer-brand { font-size: .95rem; color: var(--text-muted); }
.footer-brand strong { color: var(--text); }
.footer-copy { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .outcomes-grid   { grid-template-columns: 1fr; }
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid   { grid-template-columns: 1fr; }
  .tech-grid        { grid-template-columns: repeat(2, 1fr); }

  .pipeline { flex-direction: column; align-items: center; }
  .pipeline-arrow { transform: rotate(90deg); padding: 8px 0; }
}

@media (max-width: 640px) {
  .ds-nav { display: none; }
  .ds-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(11, 18, 32, .98);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--divider);
  }
  .ds-nav-toggle { display: flex; }
  .ds-nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .ds-nav-toggle.open span:nth-child(2) { opacity: 0; }
  .ds-nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .features-grid   { grid-template-columns: 1fr; }
  .tech-grid        { grid-template-columns: 1fr; }

  .hero { padding: 130px 0 72px; }
  .hero h1 { font-size: 2.4rem; }
  .section { padding: 64px 0; }
  .cta-box { padding: 40px 24px; }

  .row-between { flex-wrap: wrap; gap: 16px; }
  .footer-links { gap: 16px; }
}
