/* ==========================================================================
   SenseforgeAI Scraper — landing page
   ========================================================================== */

body {
  background: var(--surface);
  font-size: 15px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(var(--surface), rgba(255, 255, 255, 0) 70%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(16, 24, 40, 0.035) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(16, 24, 40, 0.035) 79px 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-ink);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.hero h1 {
  margin-top: 20px;
  max-width: 820px;
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero-sub {
  margin-top: 20px;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13.5px;
  color: var(--text-muted);
  list-style: none;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .icon {
  color: var(--brand);
}

/* Product preview */
.preview {
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 30px 60px -20px rgba(16, 24, 40, 0.18), 0 0 0 6px rgba(16, 24, 40, 0.025);
  overflow: hidden;
}

.preview-bar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.preview-url {
  flex: 1;
  max-width: 360px;
  margin: 0 auto;
  height: 24px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-subtle);
  display: grid;
  place-items: center;
}

.preview-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 320px;
}

.preview-side {
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.preview-nav.active {
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 500;
}

.preview-main {
  padding: 18px 20px;
  min-width: 0;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.preview-head h4 {
  font-size: 15px;
}

.preview-head p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.preview-table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: auto;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  white-space: nowrap;
}

.preview-table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-alt);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.preview-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.preview-table tr:last-child td {
  border-bottom: none;
}

.preview-table .muted {
  color: var(--text-subtle);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Scraper grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
  gap: 1px;
}

.tool {
  background: var(--surface);
  padding: 28px;
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--ink);
  margin-bottom: 18px;
}

.tool h3 {
  font-size: 16px;
}

.tool p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.tool-cta {
  grid-column: 1 / -1;
  background: var(--ink);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.tool-cta h3 {
  color: #FFFFFF;
}

.tool-cta p {
  color: #98A2B3;
}

.tool-cta .btn {
  flex-shrink: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.step::before {
  content: '0' counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 12px;
}

.step h3 {
  font-size: 17px;
}

.step p {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Data split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.split .section-head {
  margin-bottom: 0;
}

.check-list {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  line-height: 1.55;
}

.check-list .icon {
  margin-top: 3px;
  color: var(--brand);
}

.check-list strong {
  color: var(--ink);
  font-weight: 600;
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
}

.field-table caption {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 10px;
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.field-table th {
  font-weight: 500;
  color: var(--ink);
  width: 38%;
  font-family: var(--font-mono);
  font-size: 13px;
}

.field-table td {
  color: var(--text-muted);
}

.field-table tr:last-child th,
.field-table tr:last-child td {
  border-bottom: none;
}

.format-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

.format {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

/* API */
.code-panel {
  background: #0D1117;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #21262D;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8B949E;
}

.code-panel pre {
  padding: 20px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.75;
  color: #E6EDF3;
}

.tok-k { color: #FF7B72; }
.tok-s { color: #A5D6FF; }
.tok-c { color: #8B949E; }

/* CTA */
.cta-band {
  padding: 88px 0;
  background: var(--ink);
  color: #FFFFFF;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #FFFFFF;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-band p {
  margin-top: 10px;
  color: #98A2B3;
  font-size: 16px;
}

.btn-light {
  background: #FFFFFF;
  color: var(--ink);
}

.btn-light:hover {
  background: #E4E7EC;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  font-size: 13.5px;
  color: var(--text-subtle);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .preview-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-side {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .nav-links,
  .wordmark-product {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero-sub {
    font-size: 16.5px;
  }

  .preview {
    margin-top: 44px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .tool-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    gap: 28px;
  }

  .cta-band {
    padding: 64px 0;
  }
}

.check-list code {
  font-size: 13px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--ink);
}
