/* Polaris, publieke site.
   Diep marineblauw met witte tekst. Kleur op vaste plekken: de drie fases
   (blauw, violet, amber), een bolletje per soort gegeven, en de merkgradient
   waar de AI iets doet. */
:root {
  --bg: #060913;
  --navy: #032982;
  --blue: #3f66e7;
  --accent: #8aa2ff;
  --k1: #8aa2ff;
  --k2: #c4a1ff;
  --k3: #fcd34d;
  --text: #f3f5fa;
  --muted: #a7afc2;
  --faint: #737b8e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.035);
  --glass: rgba(11, 14, 22, 0.8);
  --paper: #f3f5fa;
  --ink: #0b0e16;
  --ink-2: #4a5163;
  --grad-brand: linear-gradient(135deg, #032982 0%, #3f66e7 45%, #a855f7 82%, #f59e0b 100%);
  --grad-ai-text: linear-gradient(100deg, #8aa2ff 0%, #a855f7 60%, #f59e0b 100%);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: rgba(138, 162, 255, 0.4); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- Lagen ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.dim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(6, 9, 19, 0.6), rgba(6, 9, 19, 0.96) 75%);
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
}
main, .nav, .footer { position: relative; z-index: 3; }

.fallback-star { display: none; }
.no-webgl body { background: radial-gradient(circle at 72% 38%, rgba(63, 102, 231, 0.18), transparent 45%), var(--bg); }
.no-webgl .fallback-star {
  display: block; position: fixed; right: 8vw; top: 22vh; width: 30vw; max-width: 420px; height: 30vw; max-height: 420px;
  color: var(--accent); opacity: 0.5; z-index: 0;
}

/* ---------- Typografie ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(44px, 5.8vw, 94px); line-height: 1; letter-spacing: -0.045em; }
h2 { font-size: clamp(36px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -0.04em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--text); }
.hero h1 em { background: var(--grad-ai-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.02em; }
.lead { max-width: 600px; margin: 28px 0 0; font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 26px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: #fff; box-shadow: 0 10px 40px -10px rgba(255, 255, 255, 0.45); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; border: 1px solid var(--line-2); }
.btn-small:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 16px; }

/* ---------- Navigatie ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 5vw; border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s;
}
.nav.scrolled { padding: 14px 5vw; background: rgba(6, 9, 19, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.logo { display: inline-flex; align-items: flex-start; gap: 2px; text-decoration: none; }
.logo span { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.logo b { font-weight: 600; color: #8ea3c6; }
.logo-star { width: 17px; height: 17px; margin-top: -6px; color: #8ea3c6; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 5vw 80px; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 9, 19, 0.88) 0%, rgba(6, 9, 19, 0.55) 45%, transparent 70%);
}
.hero-inner { position: relative; max-width: 860px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 30px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-2); border-radius: 100px; font-size: 13px; font-weight: 500; color: var(--muted);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(138, 162, 255, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(138, 162, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(138, 162, 255, 0); } }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.02em 0.1em; margin-bottom: -0.1em; perspective: 700px; }
.w > span { display: inline-block; transform-origin: 50% 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.scroll-hint {
  position: absolute; left: 5vw; bottom: 34px; display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint);
}
.scroll-hint span { position: relative; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.scroll-hint span::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Band met wat er in een polis staat ---------- */
.marquee { position: relative; overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line); background: rgba(6, 9, 19, 0.6); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 42s linear infinite; }
.marquee-track span { font-size: clamp(28px, 3.4vw, 50px); font-weight: 600; letter-spacing: -0.035em; white-space: nowrap; color: var(--mc); }
/* Vier gedempte tinten die rustig wisselen */
.marquee-track span:nth-of-type(4n+1) { --mc: #e4e8f3; }
.marquee-track span:nth-of-type(4n+2) { --mc: #a3b3de; }
.marquee-track span:nth-of-type(4n+3) { --mc: #bcb0dc; }
.marquee-track span:nth-of-type(4n) { --mc: #d6c9a3; }
.marquee-track .sep { flex: none; width: 22px; height: 22px; color: var(--faint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secties ---------- */
.section { position: relative; padding: 15vh 0; }
.wrap { width: min(1220px, 90vw); margin: 0 auto; }
.glass {
  position: relative; height: 100%; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

/* Kantelen: GSAP animeert de buitenste kaart, de muis kantelt .tilt */
.tilt {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), border-color 0.3s;
}
.tilt::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07), transparent 45%);
}
.tilt:hover { border-color: var(--line-2); }
.tilt:hover::before { opacity: 1; }

/* ---------- Wat we doen ---------- */
.manifest-text { max-width: 1080px; margin: 0; font-size: clamp(28px, 3.3vw, 50px); font-weight: 500; line-height: 1.22; letter-spacing: -0.03em; }
.manifest-text .mw { opacity: 0.14; }
.manifest-text b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -0.01em; }
.manifest-text .k1 { color: var(--k1); }
.manifest-text .k2 { color: var(--k2); }
.manifest-text .k3 { color: var(--k3); }

/* Van probleem naar oplossing. De kaarten staan eerst stil in beeld en draaien
   daarna één voor één om: loskomen, draaien met een lichtschittering, veerkrachtig
   landen. Eén gedeeld perspectief, zodat de buitenste kaarten echt van opzij te zien zijn. */
.manifest { padding-bottom: 6vh; }
.flip-stage { position: relative; display: flex; align-items: center; height: 100vh; height: 100svh; }
.flip-stage .kicker { margin-bottom: 34px; }
.flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; perspective: 1800px; perspective-origin: 50% 35%; }
.flip { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease); }
.flip-shadow {
  position: absolute; left: 10%; right: 10%; bottom: -30px; height: 44px; border-radius: 50%; pointer-events: none;
  background: rgba(0, 0, 0, 0.75); filter: blur(16px); opacity: 0.7;
}
.flip-inner { position: relative; min-height: 300px; transform-style: preserve-3d; will-change: transform; }
.flip-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; padding: 32px 30px; border-radius: 22px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.flip-front { transform: translateZ(1px); background: linear-gradient(160deg, #171d31 0%, #0c1020 100%); border: 1px solid var(--line-2); }
.flip-back { transform: rotateY(180deg) translateZ(1px); background: var(--paper); color: var(--ink); }
/* Lichtschittering die tijdens het draaien over het oppervlak trekt */
.flip-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.16) 50%, transparent 62%) -100% 0 / 250% 100% no-repeat;
}
.flip-back .flip-sheen { background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.75) 50%, transparent 62%); }
.flip-icon { position: absolute; top: 28px; right: 26px; width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flip-tag { position: relative; margin-bottom: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.flip-back .flip-tag { color: var(--blue); }
.flip h3 { position: relative; margin-top: 26px; font-size: 25px; line-height: 1.18; }
.flip-front h3 { color: #dfe3ee; }
.flip-back p { position: relative; }
.flip-back p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
/* Achterkant in een zachte tint van de fase */
.flip:nth-child(1) .flip-back { background: #e3e9ff; }
.flip:nth-child(2) .flip-back { background: #efe6ff; }
.flip:nth-child(3) .flip-back { background: #fff2d6; }
.flip:nth-child(1) .flip-back .flip-tag { color: #2f55d4; }
.flip:nth-child(2) .flip-back .flip-tag { color: #6d3fd8; }
.flip:nth-child(3) .flip-back .flip-tag { color: #a15c07; }

/* ---------- Klant en adviseur ---------- */
.sides { display: grid; grid-template-columns: 1fr 130px 1fr; gap: 24px; align-items: start; margin-top: 64px; }
.side { display: flex; flex-direction: column; }
.side-klant { --sc: var(--k1); }
.side-adviseur { --sc: var(--k2); }
.side-tag { margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sc); }
.side h3 { margin-bottom: 26px; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.03em; }
/* Lichte schermen, zoals het echte portaal */
.screen {
  overflow: hidden; border-radius: 18px; background: #f5f7fc; color: var(--ink); will-change: transform;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 50px 100px -40px rgba(0, 0, 0, 0.85), 0 30px 90px -50px var(--sc);
}
.scr-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #e8ecf6; border-bottom: 1px solid #dde2ee; }
.scr-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d0e0; }
.scr-bar span { margin-left: 8px; font-size: 11px; font-weight: 600; color: #6b7280; }
.scr-body { display: grid; gap: 12px; padding: 18px 18px 16px; font-size: 13px; line-height: 1.4; }
.scr-head { display: flex; justify-content: space-between; align-items: center; }
.scr-head b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.scr-head span { font-size: 12px; color: #6b7280; }
.scr-head .scr-count { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; }
.scr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scr-stats div { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e4e8f1; }
.scr-stats b { display: block; font-size: 20px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.scr-stats span { font-size: 11px; color: #6b7280; }
.scr-label { margin: 2px 0 -4px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8a91a3; }
.scr-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.scr-list li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e4e8f1; }
.scr-list i { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--c); }
.scr-list span { color: #4a5163; }
.scr-list b { display: block; font-weight: 700; color: var(--ink); }
.scr-rows { margin: 0; padding: 0; list-style: none; border-radius: 12px; background: #fff; border: 1px solid #e4e8f1; }
.scr-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid #eef1f6; }
.scr-rows li:last-child { border-bottom: 0; }
.scr-rows b { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.scr-ask { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-radius: 12px; background: #fff; border: 1px solid #d6ddf0; color: #8a91a3; }
.scr-ask i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--grad-brand); color: #fff; font-style: normal; font-weight: 700; }
.scr-card { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #e4e8f1; }
.scr-card-top { display: flex; align-items: center; gap: 8px; margin: 0; color: #6b7280; }
.scr-card-top b { color: var(--ink); }
.scr-card-top i { width: 16px; height: 16px; border-radius: 5px; }
.scr-card-top i.ai { background: var(--grad-brand); }
.scr-card-top i.q { background: #f59e0b; }
.scr-diff { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; }
.scr-diff span { color: #4a5163; }
.scr-diff s { color: #9aa1b1; }
.scr-diff b { color: var(--blue); font-variant-numeric: tabular-nums; }
.scr-quote { margin: 0; font-weight: 500; color: var(--ink); }
.scr-actions { display: flex; gap: 6px; }
.scr-actions span { padding: 6px 10px; border-radius: 8px; background: #eef1f6; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #4a5163; }
.scr-actions span.ok { background: var(--blue); color: #fff; }
.side-points { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.side-points li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.side-points li::before { content: ''; position: absolute; left: 0; top: 11px; width: 10px; height: 2px; background: var(--sc); }
.bridge { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 170px; text-align: center; }
.bridge::before, .bridge::after { content: ''; width: 1px; height: 80px; background: linear-gradient(transparent, var(--line-2)); }
.bridge::after { background: linear-gradient(var(--line-2), transparent); }
.bridge-star { width: 30px; height: 30px; color: var(--accent); }
.bridge span { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.5; text-transform: uppercase; color: var(--faint); }

/* ---------- Het proces ---------- */
.proces { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.proces-text { position: absolute; left: 5vw; top: 50%; transform: translateY(-50%); width: min(440px, 35vw); z-index: 2; }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 2px; }
.phases span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); transition: color 0.3s; }
.phases span:nth-child(1).on { color: var(--k1); }
.phases span:nth-child(2).on { color: var(--k2); }
.phases span:nth-child(3).on { color: var(--k3); }
.rail { display: flex; gap: 6px; margin: 0 0 34px; }
.rail-seg { flex: 1; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; border-radius: 4px; }
.rail-seg span { position: relative; display: block; width: 100%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; transition: background 0.3s; }
.rail-seg span::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--fill, 0)); transform-origin: 0 50%; }
.rail-seg:hover span { background: rgba(255, 255, 255, 0.28); }
.rail-seg:nth-child(-n+2) span::after { background: var(--k1); }
.rail-seg:nth-child(n+3):nth-child(-n+4) span::after { background: var(--k2); }
.rail-seg:nth-child(n+5) span::after { background: var(--k3); }
.psteps { display: grid; }
.pstep { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); pointer-events: none; }
.pstep.is-active { opacity: 1; transform: none; pointer-events: auto; }
.pstep-num { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--faint); }
.pstep-num b { color: var(--text); }
.pstep h3 { margin: 0 0 16px; font-size: clamp(32px, 3.2vw, 50px); line-height: 1.05; letter-spacing: -0.04em; }
.pstep p:last-child { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

.map { position: absolute; left: 43vw; right: 4vw; top: 15vh; bottom: 7vh; z-index: 1; }
.clusters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
.cluster { display: grid; gap: 8px; align-content: start; }
.cluster-title { margin: 0 0 2px 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); opacity: 0; }
.chip {
  position: relative; padding: 9px 34px 10px 13px; border-radius: 12px; opacity: 0; will-change: transform, opacity;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 13%, transparent), transparent 70%), rgba(13, 18, 33, 0.95);
  border: 1px solid color-mix(in srgb, var(--c) 22%, rgba(255, 255, 255, 0.08));
}
/* Gradientrand = de AI is ermee bezig; lichte rand = voorop gezet */
.chip::before, .oc::before {
  content: ''; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit; background: var(--grad-brand); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--read, 0);
}
.chip::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: var(--hi, 0);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9), 0 14px 40px -12px rgba(138, 162, 255, 0.6);
}
/* Kleur alleen als klein bolletje per soort */
.chip-cat { display: block; margin-bottom: 2px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.chip-cat::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--c, var(--accent)); vertical-align: 1px; }
.chip-cat .cb { display: none; color: #6ee7b7; }
.chip.is-fixed .ca { display: none; }
.chip.is-fixed .cb { display: inline; }
.chip-val { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--text); }
.chip-val s { text-decoration: none; }
.chip-val b { display: none; font-weight: 600; }
.chip.is-fixed .chip-val s { text-decoration: line-through; color: var(--faint); font-weight: 500; margin-right: 6px; }
.chip.is-fixed .chip-val b { display: inline; }
.chip-ok {
  position: absolute; top: 50%; right: 11px; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
  transform: scale(var(--ok, 0));
}
.chip-reason {
  position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); padding: 11px 13px; border-radius: 12px; pointer-events: none;
  background: var(--paper); color: var(--ink); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  font-size: 12.5px; font-weight: 500; line-height: 1.45;
  opacity: var(--hi, 0); transform: translateY(calc(var(--hi, 0) * 8px - 8px));
}
.sweep {
  position: absolute; top: -12px; left: 0; width: 2px; height: 100px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
  background: linear-gradient(transparent, #fff 18%, #fff 82%, transparent); box-shadow: 0 0 22px 3px rgba(255, 255, 255, 0.25);
}
.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.links path { fill: none; stroke: url(#linkGrad); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ask-row { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 14px; align-items: end; }
.ask-row .bubble { margin: 0; max-width: none; opacity: 0; font-size: 14px; }

/* Chatballonnen, gedeeld door het proces en de assistent */
.bubble { margin: 0; padding: 11px 14px; border-radius: 14px; line-height: 1.5; }
.bubble.me { background: #1b2130; border-radius: 14px 14px 4px 14px; color: var(--text); }
.bubble.ai { background: rgba(14, 18, 28, 0.96); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; color: #dfe3ee; }
.ai-name { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--grad-ai-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-name i { width: 14px; height: 14px; border-radius: 5px; background: var(--grad-brand); }

/* ---------- Vraag het Polaris ---------- */
.assistent { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.as-text { position: absolute; left: 5vw; top: 50%; transform: translateY(-50%); width: min(500px, 38vw); z-index: 3; }
.as-text h2 { margin-bottom: 28px; font-size: clamp(34px, 3.3vw, 52px); }
.chat-win { overflow: hidden; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.chat-head b { font-weight: 600; }
.ai-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--grad-brand); }
.as-count { margin-left: auto; font-size: 12px; color: var(--faint); }
.as-count b { color: var(--text); }
.chat-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; height: 300px; padding: 18px; }
.chat-body .bubble { font-size: 14.5px; line-height: 1.55; }
.as-q { align-self: flex-end; max-width: 85%; opacity: 0; }
.as-think { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.shimmer {
  background: linear-gradient(90deg, #8aa2ff, #c084fc, #fbbf24, #8aa2ff); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.as-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; opacity: 0; }
.as-src span { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 600; color: var(--muted); }
.as-src span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--c); vertical-align: 1px; }
.chat-input {
  display: flex; align-items: center; gap: 2px; min-height: 52px; margin: 0 14px 14px; padding: 10px 10px 10px 16px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 14.5px;
}
.as-typed { overflow: hidden; white-space: nowrap; color: var(--text); }
.as-typed:empty::before { content: 'Stel een vraag over uw polissen'; color: var(--faint); }
.caret { flex: none; width: 2px; height: 18px; background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.send { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border-radius: 10px; background: var(--grad-brand); color: #fff; font-weight: 700; }
.orbit { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; pointer-events: none; }
.oc {
  position: absolute; left: 0; top: 0; width: 220px; padding: 9px 13px 10px; border-radius: 12px; opacity: 0; will-change: transform, opacity;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 13%, transparent), transparent 70%), rgba(13, 18, 33, 0.95);
  border: 1px solid color-mix(in srgb, var(--c) 22%, rgba(255, 255, 255, 0.08));
}
.as-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.as-links path { fill: none; stroke: url(#asGrad); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cases ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.cs .glass { display: flex; flex-direction: column; padding: 30px 28px 28px; }
.cs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.cs-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.cs-kind { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.cs h3 { margin-bottom: 22px; font-size: 23px; line-height: 1.2; }
.cs-ba { display: grid; gap: 10px; margin-bottom: 24px; }
.cs-ba > div { padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line); }
.cs-ba > div.on { background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 38%, transparent); }
.cs-label { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.cs-ba .on .cs-label { color: var(--c); }
.cs-ba p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cs-ba .on p { color: var(--text); }
.cs-out { display: flex; gap: 12px; margin: auto 0 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--text); }
.cs-out::before { content: ''; flex: none; width: 18px; height: 2px; margin-top: 10px; background: var(--c); }

/* ---------- Vertrouwen ---------- */
.vertrouwen-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 36px; margin-top: 64px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pillar .icon { width: 24px; height: 24px; margin-bottom: 18px; color: var(--accent); }
.pillar h3 { margin-bottom: 8px; font-size: 19px; }
.pillar p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Contact ---------- */
.cta { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 0 14vh; }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; }
.cta h2 { font-size: clamp(44px, 6.2vw, 100px); }
.cta .lead { margin: 22px 0 40px; }

.footer { padding: 34px 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: 14px; color: var(--faint); }
.footer .logo span { font-size: 22px; }

/* ---------- Zo start u ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.st { padding-top: 22px; border-top: 1px solid var(--line-2); }
.st-num { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.st:nth-child(1) .st-num { color: var(--k1); }
.st:nth-child(2) .st-num { color: var(--k2); }
.st:nth-child(3) .st-num { color: var(--k3); }
.st h3 { margin-bottom: 8px; font-size: 22px; }
.st p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Demo aanvragen ---------- */
html.demo-open { overflow: hidden; }
.demo { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 3vh 3vw; }
.demo-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 14, 0.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.25s; }
.demo-panel {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; width: min(940px, 100%); max-height: 94vh; overflow-y: auto;
  padding: 48px; border-radius: 26px; background: #0c1120; border: 1px solid var(--line-2); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9);
  opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.demo.is-open .demo-backdrop { opacity: 1; }
.demo.is-open .demo-panel { opacity: 1; transform: none; }
.demo-close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: none; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
}
.demo-close:hover { background: rgba(255, 255, 255, 0.06); }
.demo-intro h2 { margin-bottom: 26px; font-size: clamp(30px, 3vw, 44px); }
.demo-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.demo-points li { position: relative; padding-left: 22px; color: var(--muted); }
.demo-points li::before { content: ''; position: absolute; left: 0; top: 12px; width: 10px; height: 2px; background: var(--k1); }
.demo-form { display: grid; gap: 16px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { display: grid; gap: 7px; }
.f > span, .f-chips legend { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.f i, .f-consent i { font-style: normal; color: #fda4af; }
.f input, .f select, .f textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; outline: none;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--text); font: 500 15px/1.4 var(--font);
  transition: border-color 0.2s, background 0.2s;
}
.f select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7afc2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.f select option { background: #0c1120; color: var(--text); }
.f input::placeholder, .f textarea::placeholder { color: var(--faint); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--accent); background-color: rgba(138, 162, 255, 0.06); }
.f textarea { min-height: 84px; resize: vertical; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.f-chips legend { margin-bottom: 8px; padding: 0; }
.f-chips label { cursor: pointer; }
.f-chips input { position: absolute; opacity: 0; pointer-events: none; }
.f-chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.f-chips input:checked + span { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.f-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.f-consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--blue); }
.f-error { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.35); font-size: 14px; color: #fecdd3; }
.demo-form .btn { justify-self: start; border: 0; cursor: pointer; }
.f-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--faint); }
.demo-form .btn:disabled { opacity: 0.6; cursor: not-allowed; }
.demo-done { align-self: center; }
.demo-done h3 { margin-bottom: 10px; font-size: 28px; }
.demo-done p { margin: 0; color: var(--muted); }

/* ---------- Smal ---------- */
@media (max-width: 1024px) {
  .flip h3 { font-size: 21px; }
  .case-grid { grid-template-columns: 1fr; }
  .vertrouwen-grid { grid-template-columns: 1fr; }
  .vertrouwen-space { display: none; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .hero { align-items: flex-end; padding-bottom: 110px; }
  .hero::before { background: linear-gradient(0deg, rgba(6, 9, 19, 0.92) 0%, rgba(6, 9, 19, 0.6) 55%, transparent 80%); }
  .section { padding: 12vh 0; }
  .flips { grid-template-columns: 1fr; }
  .flip-inner { min-height: 210px; }
  .flip-stage { height: auto; padding: 6vh 0 12vh; }
  .flips { gap: 40px; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .sides { grid-template-columns: 1fr; gap: 40px; }
  .steps3 { grid-template-columns: 1fr; }
  .demo { padding: 0; }
  .demo-panel { grid-template-columns: 1fr; gap: 28px; height: 100%; max-height: 100vh; padding: 64px 20px 32px; border-radius: 0; }
  .f-row { grid-template-columns: 1fr; }
  .bridge { flex-direction: row; justify-content: center; padding-top: 0; }
  .bridge::before, .bridge::after { width: 36px; height: 1px; background: var(--line-2); }
  .bridge span { max-width: 190px; }

  .proces-text {
    top: auto; bottom: 3vh; left: 4vw; right: 4vw; width: auto; transform: none; padding: 20px 20px 22px; border-radius: 20px;
    background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .proces .kicker { margin-bottom: 12px; }
  .rail { margin-bottom: 14px; }
  .pstep h3 { font-size: 26px; margin-bottom: 10px; }
  .pstep p:last-child { font-size: 14.5px; }
  .map { left: 4vw; right: 4vw; top: 10vh; bottom: auto; height: 47vh; }
  .clusters { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .cluster { gap: 6px; }
  .chip { padding: 7px 28px 8px 10px; border-radius: 11px; }
  .chip-cat { font-size: 8.5px; }
  .chip-val { font-size: 12px; }
  .chip-ok { right: 8px; }
  .chip-reason { font-size: 11.5px; padding: 8px 10px; }
  .d-only { display: none; }
  .ask-row { grid-template-columns: 1fr; gap: 8px; }
  .ask-row .bubble { font-size: 12.5px; }

  .as-text { top: auto; bottom: 3vh; left: 4vw; right: 4vw; width: auto; transform: none; }
  .as-text .kicker { margin-bottom: 10px; }
  .as-text h2 { margin-bottom: 14px; font-size: 24px; }
  .chat-body { height: 200px; padding: 14px; }
  .chat-body .bubble { font-size: 13px; }
  .oc { width: 170px; padding: 7px 10px 8px; }
  .oc .chip-val { font-size: 12px; }
}

/* ---------- Minder beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .marquee-track, .pulse, .scroll-hint span::after, .shimmer, .dots i, .caret { animation: none; }
  .tilt { transition: none; }
}
