/*
 * Huisstijl van progressivesystems.nl, gelijk aan Progressive Studio:
 * Geist, indigo als accent en stone als neutrale kleur (Tailwind-palet).
 */
:root {
  --indigo-50: oklch(96.2% 0.018 272.314);
  --indigo-100: oklch(93% 0.034 272.788);
  --indigo-200: oklch(87% 0.065 274.039);
  --indigo-300: oklch(78.5% 0.115 274.713);
  --indigo-400: oklch(67.3% 0.182 276.935);
  --indigo-500: oklch(58.5% 0.233 277.117);
  --indigo-600: oklch(51.1% 0.262 276.966);
  --indigo-700: oklch(45.7% 0.24 277.023);
  --indigo-900: oklch(35.9% 0.144 278.697);
  --indigo-950: oklch(25.7% 0.09 281.288);
  --stone-50: oklch(98.5% 0.001 106.423);
  --stone-100: oklch(97% 0.001 106.424);
  --stone-200: oklch(92.3% 0.003 48.717);
  --stone-300: oklch(86.9% 0.005 56.366);
  --stone-400: oklch(70.9% 0.01 56.259);
  --stone-500: oklch(55.3% 0.013 58.071);
  --stone-600: oklch(44.4% 0.011 73.639);
  --stone-700: oklch(37.4% 0.01 67.558);
  --stone-800: oklch(26.8% 0.007 34.298);
  --stone-900: oklch(21.6% 0.006 56.043);
  --emerald-400: oklch(76.5% 0.177 163.223);
  --emerald-600: oklch(59.6% 0.145 163.225);
  /* Bijna zwart met een zweem indigo: de eigen kleur van de bedrijfssite. */
  --ink: oklch(18% 0.035 280);

  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--stone-900);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
code, pre { font-family: var(--font-mono); }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.section { padding: 5rem 0; scroll-margin-top: 4rem; }
.section-muted { background: var(--stone-50); border-block: 1px solid var(--stone-200); }

/* Header en footer */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  color: #fff;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.brand-name { white-space: nowrap; }
.logo { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.375rem; background: var(--indigo-600); color: #fff; }
.logo svg { width: 1.4rem; }
.logo-small { width: 1.5rem; height: 1.5rem; }
.logo-small svg { width: 1.05rem; }
.nav { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; }
.nav-link { border-radius: 0.375rem; padding: 0.375rem 0.625rem; color: var(--indigo-200); white-space: nowrap; }
.nav-link:hover { background: rgb(255 255 255 / 0.08); color: #fff; }
.nav-link[aria-current="page"] { color: #fff; font-weight: 500; }

.site-footer { border-top: 1px solid var(--stone-200); }
.site-footer .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 2rem; font-size: 0.875rem; color: var(--stone-500);
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.footer-links a:hover { color: var(--stone-800); }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.375rem; padding: 0.5rem 0.875rem;
  font-size: 0.875rem; font-weight: 500; line-height: 1.25rem;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: 2px solid var(--indigo-600); outline-offset: 2px; }
.btn-lg { padding: 0.625rem 1.25rem; font-size: 1rem; line-height: 1.5rem; }
.btn-primary { background: var(--indigo-600); color: #fff; }
.btn-primary:hover { background: var(--indigo-700); }
.btn-secondary { border-color: var(--stone-300); background: #fff; color: var(--stone-800); }
.btn-secondary:hover { background: var(--stone-50); }
.btn-white { background: #fff; color: var(--indigo-700); }
.btn-white:hover { background: var(--indigo-50); }
.btn-white:focus-visible, .btn-outline-white:focus-visible { outline-color: #fff; }
.btn-outline-white { color: #fff; border-color: rgb(255 255 255 / 0.4); }
.btn-outline-white:hover { background: rgb(255 255 255 / 0.1); }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(2px); }
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Typografie */
.eyebrow { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--indigo-600); }
.eyebrow .num { color: var(--stone-400); }
.section-dark .eyebrow .num { color: var(--indigo-400); }
.h1 { font-size: 2.25rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.h2 { font-size: 1.875rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.h3 { font-size: 1.125rem; line-height: 1.4; font-weight: 600; }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--stone-600); text-wrap: pretty; }
.muted { color: var(--stone-600); }
.small { font-size: 0.875rem; }
.section-heading { max-width: 42rem; }
.section-heading .h2 { margin-top: 0.5rem; }
.section-heading .lead { margin-top: 1rem; }
.prose > * + * { margin-top: 1rem; }
.prose { color: var(--stone-600); line-height: 1.7; }
.prose strong { color: var(--stone-900); font-weight: 600; }
.inline-code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--stone-100); border-radius: 0.25rem; padding: 0.1em 0.3em; color: var(--stone-800);
}
.link { color: var(--indigo-700); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/*
 * Hero. Waar Studio licht en vriendelijk is, is de bedrijfssite donker en technisch:
 * een blauwdrukraster met het lus-en-pijlsymbool uit het logo.
 */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before, .section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(48rem 28rem at 85% 10%, color-mix(in oklch, var(--indigo-600) 35%, transparent), transparent 70%);
}
.hero .container { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; padding-block: 4rem; }
.hero .h1 { margin-top: 1rem; }
.hero .lead { margin-top: 1.25rem; max-width: 40rem; color: var(--indigo-200); }
.hero .buttons { margin-top: 2rem; }
.hero .btn-primary { background: var(--indigo-500); }
.hero .btn-primary:hover { background: var(--indigo-400); }
.hero-note { margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--indigo-300); }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.25rem 0.75rem;
  font-family: var(--font-mono); font-size: 0.8125rem;
  background: rgb(255 255 255 / 0.06); color: var(--indigo-100);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}
/* Statuslampje: het systeem draait. */
.badge-dot { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--emerald-400); }
.badge-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

/* Het logosymbool groot, dat zichzelf tekent. */
.hero-art { display: none; }
.hero-art svg { width: 100%; overflow: visible; }
.hero-art .track { stroke: rgb(255 255 255 / 0.07); stroke-width: 18; }
.hero-art .draw {
  stroke: url(#loop-gradient); stroke-width: 18;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}
.hero-art .arrow-head {
  stroke: var(--indigo-300); stroke-width: 18;
  opacity: 0; transform: translateX(-60px);
  animation: arrive 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 2s forwards;
}
.hero-art .stop-a { stop-color: var(--indigo-500); stop-opacity: 0.35; }
.hero-art .stop-b { stop-color: var(--indigo-300); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes arrive { to { opacity: 1; transform: none; } }

/* Grids en kaarten */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.card { border: 1px solid var(--stone-200); border-radius: 0.75rem; padding: 1.5rem; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.card-muted { background: var(--stone-50); box-shadow: none; }
.card .h3 + p, .card .h3 + .muted { margin-top: 0.5rem; }
.card-icon {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem;
  border-radius: 0.5rem; background: var(--indigo-50); color: var(--indigo-700);
  box-shadow: inset 0 0 0 1px var(--indigo-100);
}
.card-icon svg { width: 1.25rem; height: 1.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 1rem; }
.tag {
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1rem;
  border-radius: 0.25rem; padding: 0.125rem 0.375rem;
  background: var(--stone-100); color: var(--stone-700);
}
.checks { display: grid; gap: 0.5rem; margin-top: 1.25rem; font-size: 0.875rem; color: var(--stone-700); }
.checks li { display: flex; gap: 0.5rem; }
.checks svg { flex: none; width: 1rem; height: 1rem; margin-top: 0.15rem; color: var(--emerald-600); }

/* Twee wegen op de homepage */
.paths { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.path {
  display: flex; flex-direction: column;
  border: 1px solid var(--stone-200); border-radius: 1rem; padding: 2rem;
  background: var(--stone-50); transition: border-color 0.15s, box-shadow 0.15s;
}
.path:hover { border-color: var(--indigo-300); box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08); }
.path { position: relative; overflow: hidden; }
.path::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--indigo-600), var(--indigo-300));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.path:hover::before { transform: scaleX(1); }
.path-url { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--stone-500); }
.path .h2 { margin-top: 0.5rem; font-size: 1.5rem; }
.path .lead { margin-top: 0.75rem; font-size: 1rem; }
.path .checks { margin-bottom: 1.5rem; }
.path-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 500; color: var(--indigo-700); }
.path:hover .path-cta .arrow { transform: translateX(2px); }
.path-cta .arrow { transition: transform 0.15s; }

/* Stappen */
.steps { counter-reset: step; }
.step-number {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: var(--ink); color: var(--indigo-200); font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500;
}
.step .h3 { margin-top: 1rem; }

/* Donkere sectie */
.section-dark { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.section-dark > .container { position: relative; }
.section-dark .eyebrow { color: var(--indigo-300); }
.section-dark .lead, .section-dark .muted { color: var(--indigo-200); }
.section-dark .h3 { color: #fff; }

/* Lagen van het platform */
.layers { display: grid; gap: 0.5rem; }
.layer {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem;
  border-radius: 0.5rem; padding: 0.875rem 1rem;
  background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}
.layer-name { font-weight: 600; font-size: 0.875rem; }
.layer-name span { display: block; font-weight: 400; color: var(--indigo-200); }
.layer-tools { display: flex; flex-wrap: wrap; gap: 0.375rem; align-content: start; }
.layer-tools .tag { background: rgb(255 255 255 / 0.1); color: var(--indigo-100); }

/* Codevoorbeeld */
.code {
  overflow: hidden; border-radius: 0.75rem;
  background: var(--stone-900); color: var(--stone-100);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.code-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem; border-bottom: 1px solid rgb(255 255 255 / 0.08);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--stone-400);
}
.code-bar .dot { width: 0.625rem; height: 0.625rem; border-radius: 999px; background: var(--stone-700); }
.code-bar .file { margin-left: 0.5rem; }
.code pre { margin: 0; padding: 1rem 1.25rem; overflow-x: auto; font-size: 0.8125rem; line-height: 1.65; }
.code .k { color: var(--indigo-300); }
.code .s { color: oklch(84.5% 0.143 164.978); }
.code .c { color: var(--stone-500); }
.flow { display: grid; gap: 0.75rem; margin-top: 1.5rem; counter-reset: flow; }
.flow li { display: flex; gap: 0.75rem; color: var(--stone-600); }
.flow li::before {
  counter-increment: flow; content: counter(flow);
  flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-top: 0.05rem;
  border-radius: 999px; background: var(--indigo-50); color: var(--indigo-700);
  font-size: 0.75rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--indigo-200);
}
.flow strong { color: var(--stone-900); font-weight: 600; }

/* Citaat */
.quote { border-left: 3px solid var(--indigo-600); padding-left: 1.25rem; }
.quote p { font-size: 1.25rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; color: var(--stone-900); text-wrap: balance; }
.quote footer { margin-top: 0.75rem; font-size: 0.875rem; color: var(--stone-500); }

/* Tijdlijn */
.timeline { display: grid; gap: 0; border-left: 1px solid var(--stone-200); margin-left: 0.375rem; }
.timeline li { position: relative; padding: 0 0 2rem 1.75rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -0.375rem; top: 0.4rem;
  width: 0.75rem; height: 0.75rem; border-radius: 999px;
  background: #fff; border: 2px solid var(--indigo-600);
}
.timeline .period { font-size: 0.875rem; color: var(--stone-500); font-variant-numeric: tabular-nums; }
.timeline .h3 { margin-top: 0.125rem; }
.timeline .org { font-size: 0.875rem; font-weight: 500; color: var(--indigo-700); }
.timeline p.muted { margin-top: 0.5rem; }

/* Profiel */
.profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.profile-photo { width: 8rem; height: 8rem; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--stone-200); }
.profile .role { margin-top: 0.25rem; color: var(--indigo-700); font-weight: 500; font-size: 0.875rem; }

/* Afsluiter */
.cta { position: relative; overflow: hidden; border-radius: 1rem; background: var(--indigo-600); color: #fff; padding: 3.5rem 1.5rem; text-align: center; }
.cta > :not(.cta-art) { position: relative; }
.cta-art { position: absolute; right: -4rem; bottom: -3rem; width: 26rem; color: rgb(255 255 255 / 0.1); pointer-events: none; }
.cta p { margin: 1rem auto 0; max-width: 36rem; color: var(--indigo-100); }
.cta .buttons { justify-content: center; margin-top: 2rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

@media (min-width: 640px) {
  .h1 { font-size: 3rem; }
  .hero .container { padding-block: 6rem; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layer { grid-template-columns: 14rem minmax(0, 1fr); align-items: center; }
  .profile { grid-template-columns: auto minmax(0, 1fr); }
  .cta { padding-inline: 3rem; }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .hero-art { display: block; }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: start; }
}
@media (max-width: 1023px) {
  .split > * + * { margin-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .draw { animation: none; stroke-dashoffset: 0; }
  .hero-art .arrow-head { animation: none; opacity: 1; transform: none; }
  .badge-dot::after { animation: none; }
  * { transition: none !important; }
}
@media (max-width: 420px) {
  .site-header .container { gap: 0.5rem; }
  .brand { gap: 0.5rem; font-size: 0.9375rem; }
  .nav-link { padding-inline: 0.5rem; }
}
