/* ==========================================================================
   Eduvisio
   ========================================================================== */

:root {
  --bg: #070b1a;
  --bg-2: #0b1129;
  --surface: #0f1733;
  --surface-2: #131d3f;
  --line: rgba(160, 180, 230, 0.14);
  --line-strong: rgba(160, 180, 230, 0.26);

  --text: #e8ecf8;
  --muted: #a3adc8;
  --subtle: #8590b0;

  --purple: #9b6bff;
  --purple-soft: #b597ff;
  --purple-btn: #7c4dff;      /* iets dieper paars: wit erop haalt 4.8:1 contrast */
  --purple-btn-hover: #6c3fdc;
  --green: #4ade80;
  --blue: #7dd3fc;
  --gold: #facc15;

  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --header-h: 68px;

  color-scheme: dark;
}

/* ---------- Lettertypes (zelf gehost, geen verbinding met Google) ----------
   Inter en Sora: SIL Open Font License 1.1, zie assets/fonts/OFL-*.txt */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Basis ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #bae6fd; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(155, 107, 255, 0.45); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

.accent {
  background: linear-gradient(100deg, var(--purple-soft), var(--blue) 60%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }

/* ---------- Knoppen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-btn), #6f42f0);
  color: #fff;
  box-shadow: 0 8px 30px -10px rgba(155, 107, 255, 0.75);
}
.btn-primary:hover { background: var(--purple-btn-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(155, 107, 255, 0.9); }

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { color: var(--text); border-color: var(--green); background: rgba(74, 222, 128, 0.07); }

.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(7, 11, 26, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; }

/* Woordmerk: edu (licht en dun) + visio (accentkleur) */
.brand-edu { color: var(--muted); font-weight: 300; }
.brand-visio { color: var(--purple-soft); font-weight: 600; }

.site-nav ul { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav a.nav-cta {
  color: var(--text);
  border: 1px solid rgba(155, 107, 255, 0.55);
  margin-left: 0.5rem;
}
.site-nav a.nav-cta:hover { background: rgba(155, 107, 255, 0.15); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.6);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .js .site-header.menu-open {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .js .site-header.menu-open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .js .site-nav a { display: block; padding: 0.85rem 0.75rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .js .site-nav a.nav-cta { margin: 0.5rem 0 0; text-align: center; }

  /* Zonder JavaScript: menu gewoon zichtbaar en scrollbaar */
  html:not(.js) .site-nav { overflow-x: auto; }
  html:not(.js) .brand-name { display: none; }
}

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

.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(3.5rem, 9vw, 7rem)) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42rem 28rem at 78% 30%, rgba(155, 107, 255, 0.22), transparent 70%),
    radial-gradient(30rem 22rem at 12% 85%, rgba(74, 222, 128, 0.10), transparent 70%),
    radial-gradient(26rem 18rem at 55% 0%, rgba(125, 211, 252, 0.10), transparent 70%);
}
.hero-glow::after {
  /* zacht stippenraster, als een rooster op de achtergrond */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(160, 180, 230, 0.16) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 60% at 70% 40%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  /* speler is de blikvanger: ± 42% tekst, 58% speler */
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(2rem, 3.5vw, 2.5rem);
  align-items: center;
}
@media (min-width: 901px) {
  .hero-inner { align-items: start; }
  .hero h1 { font-size: clamp(2.4rem, 3.9vw, 3.4rem); }
  .hero-actions .btn { padding-inline: 1.1rem; }
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-bottom: 1rem;
}
.eyebrow--green { color: var(--green); }

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

/* Draaiboekspeler in de hero: video + draaiboekkaartje */
.hero-player { position: relative; }
html:not(.js) .hero-player { display: none; }

.hp-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0e12;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 70px -30px rgba(155, 107, 255, 0.5);
}
.hp-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0e12;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hp-video.is-active { opacity: 1; }

.hp-bigplay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 0;
  background: var(--purple-btn);
  box-shadow: 0 10px 30px -8px rgba(124, 77, 255, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.hp-bigplay::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent #fff;
}
.hp-bigplay:hover { background: var(--purple-btn-hover); transform: scale(1.05); }
.hp-bigplay:focus-visible { outline-offset: 4px; }

.hp-card {
  margin-top: 0.9rem;
  padding: 1.25rem 1.4rem 0.9rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(19, 29, 63, 0.92), rgba(11, 17, 41, 0.92));
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(155, 107, 255, 0.08) inset;
}
.hp-content {
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease;
}
/* tijdbalk onderaan, zodat balk en knoppen nooit verschuiven */
.hp-content .script-time { margin-top: auto; padding-top: 0.4rem; }
.hp-content.is-fading { opacity: 0; }

.hp-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  color: var(--subtle);
  letter-spacing: 0.02em;
}
.hp-head .dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.script-row { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.script-row p { margin: 0.25rem 0 0; font-size: 0.96rem; color: var(--muted); }
.script-row .script-says { color: var(--text); font-size: 1.02rem; font-weight: 500; }
.script-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-soft);
}
.script-label--green { color: var(--green); }

.script-time {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}
.script-bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(160, 180, 230, 0.14);
  overflow: hidden;
}
.script-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.hp-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.hp-toggle {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}
.hp-toggle:hover { border-color: var(--purple-soft); }
.hp-toggle::before,
.hp-toggle::after {
  /* pauzeteken */
  content: "";
  position: absolute;
  top: 11px;
  width: 3px;
  height: 12px;
  border-radius: 1px;
  background: currentColor;
}
.hp-toggle::before { left: 12px; }
.hp-toggle::after { right: 12px; }
.hp-toggle.is-paused::before {
  /* afspeelteken */
  left: 13px;
  width: 0;
  height: 0;
  border-radius: 0;
  background: none;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}
.hp-toggle.is-paused::after { display: none; }

.hp-dots { display: flex; flex-wrap: wrap; }
.hp-dot {
  position: relative;
  width: 22px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hp-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(160, 180, 230, 0.3);
  transition: width 0.25s ease, background-color 0.25s ease;
}
.hp-dot:hover::before { background: var(--muted); }
.hp-dot[aria-current="true"]::before { width: 16px; background: var(--purple-soft); }

.hp-link {
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.hp-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  /* Mobiel: kop → video → draaiboekkaartje → introtekst → knoppen */
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-text { display: contents; }
  .hero-text .eyebrow { order: 1; }
  .hero-text h1 { order: 2; margin-bottom: 1.1rem; }
  .hero-player { order: 3; width: 100%; max-width: 40rem; margin-bottom: 2rem; }
  .hero-text .lead { order: 4; }
  .hero-text .hero-actions { order: 5; }
}
@media (max-width: 520px) {
  .hp-card { padding: 1.1rem 1.1rem 0.85rem; }
  .hp-link { margin-left: 0; }
}

/* ---------- Secties ---------- */

.section { padding: var(--section-y) 0; position: relative; }
.section--tint {
  background:
    radial-gradient(60rem 30rem at 50% 0%, rgba(155, 107, 255, 0.06), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-intro { color: var(--muted); font-size: 1.1rem; }

/* ---------- Demo's ---------- */

.demo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.demo-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(0.75rem, 1.5vw, 1rem);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -50px rgba(155, 107, 255, 0.35);
}

/* Vaste 3:2-lijst, zodat de kaarten netjes naast elkaar staan.
   Video's met een andere verhouding worden niet bijgesneden (contain);
   de achtergrondkleur valt samen met die van de animaties. */
.demo-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0e12;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
}
.demo-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0e12;
}
.badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.video-fallback { padding: 1rem; }

.demo-body { padding: 0 clamp(0.25rem, 1vw, 0.75rem) clamp(0.25rem, 1vw, 0.75rem); }
.demo-title { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin-bottom: 0.4rem; }
.demo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.demo-meta .sep { color: var(--subtle); }
.demo-desc { color: var(--muted); }
.demo-method {
  font-size: 0.94rem;
  color: var(--muted);
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--green);
  background: rgba(74, 222, 128, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.demo-method strong { color: var(--text); font-weight: 600; }

/* Draaiboek (uitklapbaar) */
.draaiboek {
  margin-top: 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 26, 0.5);
}
.draaiboek summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  border-radius: var(--radius-sm);
}
.draaiboek summary::-webkit-details-marker { display: none; }
.draaiboek summary::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--purple-soft);
  border-bottom: 2px solid var(--purple-soft);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s ease;
}
.draaiboek[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.draaiboek summary:hover { background: rgba(155, 107, 255, 0.08); }

.draaiboek-intro { font-size: 0.88rem; color: var(--subtle); padding: 0 1rem; margin-bottom: 0.75rem; }

.scene-list { padding: 0 1rem 1rem; display: grid; gap: 0.75rem; }
.scene {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.scene-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.6rem; }
.scene-name { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.scene-time {
  min-height: 36px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.08);
  color: var(--blue);
  font: 500 0.82rem/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  white-space: nowrap;
}
.scene-time:hover { background: rgba(125, 211, 252, 0.16); }
.scene-body { margin: 0; display: grid; gap: 0.2rem; font-size: 0.93rem; }
.scene-body dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-top: 0.35rem;
}
.scene-body dt.dt-green { color: var(--green); }
.scene-body dd { margin: 0; color: var(--muted); }
.scene-body dd.scene-says { color: var(--text); }

.noscript-note { color: var(--muted); }

@media (min-width: 901px) {
  .demo-card.is-last-odd {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - clamp(1.5rem, 3vw, 2rem)) / 2);
  }
}

@media (max-width: 900px) {
  .demo-list { grid-template-columns: 1fr; }
}

/* Filterknoppen */
.demo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: calc(clamp(2.5rem, 5vw, 3.5rem) * -0.45) 0 clamp(1.75rem, 3vw, 2.25rem);
}
.filter-btn {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font: 500 0.95rem/1.2 var(--font-body);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { color: var(--text); border-color: rgba(155, 107, 255, 0.55); }
.filter-btn[aria-pressed="true"] {
  color: var(--text);
  background: rgba(155, 107, 255, 0.18);
  border-color: var(--purple);
}

/* ---------- Waarom ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.feature {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgba(15, 23, 51, 0.7);
  border: 1px solid var(--line);
}
.feature p { color: var(--muted); }
.feature-icon {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: var(--purple-soft);
  background: rgba(155, 107, 255, 0.12);
  border: 1px solid rgba(155, 107, 255, 0.25);
}
.feature:nth-child(2) .feature-icon { color: var(--green); background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.25); }
.feature:nth-child(3) .feature-icon { color: var(--blue); background: rgba(125, 211, 252, 0.1); border-color: rgba(125, 211, 252, 0.25); }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Stappen ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
  position: relative;
}
.steps::before {
  /* verbindingslijn tussen de stappen */
  content: "";
  position: absolute;
  top: 22px;
  left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--green));
  opacity: 0.45;
}
.step { position: relative; }
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--purple);
  box-shadow: 0 0 22px -4px rgba(155, 107, 255, 0.7);
}
.step:nth-child(3) .step-num { border-color: var(--blue); box-shadow: 0 0 22px -4px rgba(125, 211, 252, 0.6); }
.step:nth-child(4) .step-num { border-color: #6ee7b7; box-shadow: 0 0 22px -4px rgba(110, 231, 183, 0.5); }
.step:nth-child(5) .step-num { border-color: var(--green); box-shadow: 0 0 22px -4px rgba(74, 222, 128, 0.6); }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.96rem; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 40rem; }
  .steps::before {
    top: 22px; bottom: 22px;
    left: 22px; right: auto;
    width: 1px; height: auto;
    background: linear-gradient(180deg, var(--purple), var(--blue), var(--green));
  }
  .step { padding: 0 0 2rem 4.25rem; }
  .step:last-child { padding-bottom: 0; }
  .step-num { position: absolute; left: 0; top: -0.35rem; margin: 0; }
}

/* ---------- Voor wie ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.audience {
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15, 23, 51, 0.6);
  border-top: 2px solid var(--blue);
}
.audience:nth-child(2) { border-top-color: var(--purple); }
.audience:nth-child(3) { border-top-color: var(--green); }
.audience:nth-child(4) { border-top-color: var(--purple-soft); }
.audience p { color: var(--muted); font-size: 0.97rem; }

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

/* ---------- Pilot ---------- */

.pilot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: 56rem;
  margin-inline: auto;
  padding: clamp(2.25rem, 6vw, 4rem);
  border-radius: calc(var(--radius) + 8px);
  text-align: center;
  background: linear-gradient(150deg, #141c45, #0b1129 60%);
  border: 1px solid rgba(155, 107, 255, 0.35);
}
.pilot-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(30rem 16rem at 50% -10%, rgba(155, 107, 255, 0.35), transparent 70%),
    radial-gradient(22rem 14rem at 100% 110%, rgba(74, 222, 128, 0.16), transparent 70%);
}
.pilot h2 { max-width: 34rem; margin: 0 auto 1.75rem; }
.pilot-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  margin-bottom: 2.25rem;
  color: var(--muted);
  font-size: 0.97rem;
}
.pilot-points li { display: inline-flex; align-items: center; gap: 0.5rem; }
.pilot-points li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
@media (max-width: 600px) {
  .pilot { text-align: left; }
  .pilot-points { flex-direction: column; align-items: flex-start; }
  .pilot .btn { width: 100%; }
}

/* ---------- Over mij ---------- */

/* Kop links, tekst rechts; op smalle schermen onder elkaar */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-head h2 { margin-bottom: 0; }
.about-text p { color: var(--muted); font-size: 1.1rem; max-width: 46rem; }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-intro p { color: var(--muted); }
.contact-alt { margin-top: 1.5rem; }

.form-wrap {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--subtle); opacity: 1; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(155, 107, 255, 0.3);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #f87171; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-privacy { font-size: 0.86rem; color: var(--subtle); margin: 0.25rem 0 1.25rem; }
.form-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  font-size: 0.95rem;
}
.form-error a { color: #fecaca; }

.form-thanks { text-align: center; padding: 2rem 1rem; outline: none; }
.form-thanks svg { width: 56px; height: 56px; margin: 0 auto 1.25rem; color: var(--green); }
.form-thanks p { color: var(--muted); }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form .btn { width: 100%; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  color: var(--subtle);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.footer-inner p { margin: 0; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer-mark { width: 24px; height: 24px; }
.footer-tagline { margin-top: 0.45rem !important; font-size: 0.86rem; color: var(--subtle); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Subpagina's (privacy, 404, bedankt) ---------- */

.page {
  min-height: calc(100vh - var(--header-h));
  padding: clamp(3rem, 8vw, 6rem) 0 var(--section-y);
  position: relative;
}
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.page p, .page li { color: var(--muted); }
.page ul.bullets { list-style: disc; padding-left: 1.25rem; margin-bottom: 1em; }
.page ul.bullets li { margin-bottom: 0.35rem; }
.page strong { color: var(--text); font-weight: 600; }
.page-meta { font-size: 0.9rem; color: var(--subtle); }

.page--center {
  display: grid;
  place-items: center;
  text-align: center;
}
.page--center .container { max-width: 560px; }
.page--center .btn { margin-top: 1.5rem; }
.page--center > .container { position: relative; }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.92rem; }
.big-code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}

/* ---------- Scroll-animaties ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .feature-grid .reveal:nth-child(2),
  .js .audience-grid .reveal:nth-child(2),
  .js .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .feature-grid .reveal:nth-child(3),
  .js .audience-grid .reveal:nth-child(3),
  .js .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js .audience-grid .reveal:nth-child(4),
  .js .steps .reveal:nth-child(4) { transition-delay: 0.24s; }
  .js .steps .reveal:nth-child(5) { transition-delay: 0.32s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
