:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #101828;
  --muted: #57647a;
  --border: #e1e6ee;
  --navy: #0a1a33;
  --navy-2: #0c2447;
  --accent: #e8791a;
  --accent-contrast: #10192b;
  --link: #1c5c8a;
  --shadow: 0 1px 3px rgba(10, 26, 51, 0.06), 0 10px 24px rgba(10, 26, 51, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #131d30;
    --text: #eef2f8;
    --muted: #9aa7bd;
    --border: #223054;
    --navy: #071328;
    --navy-2: #0a1e3d;
    --accent: #f0973f;
    --accent-contrast: #10192b;
    --link: #7cc4ff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

a { color: var(--link); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}

.logo-dot { color: var(--accent); }

.site-header nav a {
  margin-left: 1.75rem;
  color: #cfd9ea;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-header nav a:hover { color: #fff; }

main { padding-bottom: 3rem; }

/* Homepage hero — geodata visual */

.hero-geo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #f2f6fb;
  background: var(--navy);
}

.hero-geo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-geo-content {
  padding: 4.5rem 1.5rem 5.5rem;
  max-width: 760px;
}

/* Hero motion: grid drift, twinkling data points, radar-ping highlight, text reveal */

.geo-grid-rect {
  animation: geoGridDrift 22s ease-in-out infinite;
}

.geo-glow-rect {
  animation: geoGlowBreathe 7s ease-in-out infinite;
  transform-origin: center;
}

.node-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodeTwinkle 3.2s ease-in-out infinite;
}

.node-highlight {
  transform-box: fill-box;
  transform-origin: center;
}

.node-ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePing 2.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.node-ping-delay { animation-delay: 1.4s; }

.reveal {
  animation: heroReveal 0.7s ease-out both;
}

@keyframes geoGridDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, 5px); }
}

@keyframes geoGlowBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes nodeTwinkle {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes nodePing {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .geo-grid-rect,
  .geo-glow-rect,
  .node-dot,
  .node-ping,
  .reveal {
    animation: none;
  }
}

/* Below this width the hero text runs full-bleed, so the node network
   (positioned for the right third of a wide hero) is hidden to avoid
   ever sitting under the text. */
@media (max-width: 700px) {
  .node-network { display: none; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-geo h1 {
  font-size: 2.75rem;
  margin: 0 0 1.1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero-lede {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 0 2.25rem;
  color: #c4d1e6;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-trust {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: #93a6c4;
  letter-spacing: 0.01em;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.button-primary:hover { background: #ff8d2e; }

.hero-geo .button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* Plain page hero (actors / finder / hoe-werkt-het) */

.page-hero {
  padding: 2.75rem 0 1.25rem;
}

.page-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--text); }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 640px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.category-tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy-2);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-top-color 0.15s ease;
}

.category-tile:hover { transform: translateY(-2px); border-top-color: var(--accent); }

.category-tile h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.category-tile p { margin: 0; color: var(--muted); font-size: 0.9rem; }

h2.category-heading {
  margin-top: 3rem;
  border-bottom: 2px solid var(--navy-2);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.actor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.actor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.actor-card:hover { transform: translateY(-2px); }

.actor-card h3 { margin: 0; font-size: 1.05rem; }
.actor-card p { margin: 0; color: var(--muted); font-size: 0.92rem; flex-grow: 1; }

.actor-card .button { align-self: flex-start; }

.price-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: 0.2rem 0.65rem;
  background: rgba(232, 121, 26, 0.12);
  color: var(--accent);
  border: 1px solid rgba(232, 121, 26, 0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.actor-card .price-badge { flex-grow: 0; margin-bottom: 0; }

/* "Wat is Apify?" teaser on homepage */

.apify-teaser {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.apify-teaser .lede {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.02rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
}

.benefit-card h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Hoe-werkt-het explainer page */

.explainer h2 { margin-top: 2.5rem; }

.steps {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow);
}

.steps h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--navy-2); }
.steps p { margin: 0; color: var(--muted); }

@media (prefers-color-scheme: dark) {
  .steps h3 { color: var(--accent); }
}

.closing-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Actor finder quiz */

.finder-form fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--surface);
}

.finder-form legend { font-weight: 700; padding: 0 0.4rem; }

.finder-form label {
  display: block;
  padding: 0.4rem 0;
  cursor: pointer;
}

#finder-results {
  margin-top: 2rem;
}

#finder-results:empty { display: none; }

.site-footer {
  background: var(--navy);
  color: #9fb0cc;
  margin-top: 2rem;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.site-footer a { color: #cfe0f5; }

/* SEO Landing Pages */

.landing-hero {
  padding: 3rem 0 2rem;
}

.landing-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.landing-lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.landing-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.landing-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.keyword-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.usecase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}

a.usecase-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.usecase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 26, 51, 0.1);
}

.usecase-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.usecase-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "▸ ";
  color: var(--accent);
}

.faq-item[open] summary::before {
  content: "▾ ";
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.landing-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--navy);
  border-radius: 12px;
  text-align: center;
  color: #fff;
}

.landing-cta h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.landing-cta p {
  color: #c4d1e6;
  margin-bottom: 1.25rem;
}

.landing-cta .button-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.button-large {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

/* Oplossingen index */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.solution-tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.solution-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 26, 51, 0.1);
}

.solution-tile h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy-2);
}

.solution-tile p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.solution-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (prefers-color-scheme: dark) {
  .solution-tile h2 { color: var(--accent); }
  .landing-cta { background: var(--navy-2); }
}

/* Guide Steps & Code Blocks */

.guide-steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.guide-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.guide-step p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.code-block-wrapper {
  background: #0d1726;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0;
}

.code-block-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

.code-lang {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8da2c0;
  font-weight: 700;
}

.code-block-wrapper pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
}

.code-block-wrapper code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.88rem;
  color: #e2eafc;
  line-height: 1.5;
}

.step-tip {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(232, 121, 26, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text);
}

/* Comparison Tables */

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.95rem;
}

.comparison-table thead {
  background: var(--navy);
  color: #fff;
}

.comparison-table th {
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: 0.9rem 1.1rem;
  vertical-align: top;
  line-height: 1.45;
}

.comparison-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  width: 28%;
}

.comparison-table td.highlight-column {
  background: rgba(232, 121, 26, 0.06);
  color: var(--text);
  font-weight: 500;
}

.comparison-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}

.comparison-table tbody tr:hover td.highlight-column {
  background: rgba(232, 121, 26, 0.1);
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.pros-box, .cons-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.pros-box h3 {
  color: #15803d;
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.cons-box h3 {
  color: #b42318;
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.pros-box ul, .cons-box ul {
  margin: 0;
  padding-left: 1.2rem;
}

.pros-box li, .cons-box li {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.conclusion-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.conclusion-box p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  .comparison-table thead { background: var(--navy-2); }
  .comparison-table td.highlight-column { background: rgba(232, 121, 26, 0.12); }
  .comparison-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
  .comparison-table tbody tr:hover td.highlight-column { background: rgba(232, 121, 26, 0.18); }
  .pros-box h3 { color: #4ade80; }
  .cons-box h3 { color: #f87171; }
}

/* Blog & Kennisbank Index */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 26, 51, 0.1);
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.blog-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

.blog-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--link);
}

.blog-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.94rem;
  flex-grow: 1;
}

.blog-card .read-more {
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  align-self: flex-start;
}

/* Blog Post Detail Layout */

.blog-post-layout {
  max-width: 760px;
  padding-top: 3rem;
}

.blog-post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.blog-post-header h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0 1rem;
  color: var(--text);
}

.blog-post-meta {
  font-size: 0.95rem;
  color: var(--muted);
}

.blog-post-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.blog-post-content h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
}

.blog-post-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.blog-post-content p {
  margin: 0 0 1.25rem;
}

.blog-post-content ul, .blog-post-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content pre {
  background: #0d1726;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-post-content code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.blog-post-content pre code {
  background: transparent;
  padding: 0;
  color: #e2eafc;
}

.blog-post-cta {
  margin: 3rem 0;
}

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.cta-box p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.blog-post-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.back-to-blog {
  text-decoration: none;
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .blog-post-content code {
    background: rgba(255, 255, 255, 0.08);
  }
}
