/* HighFaive: gedeelde stijl voor alle pagina's. Tailwind komt via de CDN, dit bestand bevat de rest. */
:root { --lime: #C1FF47; --coral: #FF5B2E; --deep: #12082E; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'DM Sans', sans-serif; background: #FAFAF8; color: #12082E; }
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }
img { max-width: 100%; }

/* ── Nav ── */
.nav-scrolled { background: rgba(18,8,46,0.97) !important; backdrop-filter: blur(12px); }
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--lime); transition: width .2s; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #FAFAF8 !important; }
.nav-link.active::after { width: 100%; }

/* ── Reveal bij scroll (alleen met JS, zodat de pagina zonder JS gewoon leesbaar is) ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero-animate { animation: fadeUp .6s ease-out both; }
.hero-animate-2 { animation: fadeUp .6s .15s ease-out both; }
.hero-animate-3 { animation: fadeUp .6s .3s ease-out both; }
.hero-animate-4 { animation: fadeUp .6s .45s ease-out both; }

/* ── Kaarten ── */
.card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(18,8,46,0.10); }
.card-dark { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.card-dark:hover { transform: translateY(-4px); border-color: rgba(193,255,71,.45); background: rgba(255,255,255,.07); }
.cta-card { background: linear-gradient(145deg, #FF5B2E 0%, #D94218 100%); box-shadow: 0 24px 60px rgba(255,91,46,.25); }

/* ── Hero ── */
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); will-change: transform; }
.orb-coral { width: 560px; height: 480px; top: -200px; right: -80px; background: rgba(255,91,46,.42); animation: orbDrift 14s ease-in-out infinite alternate; }
.orb-lime { width: 380px; height: 320px; bottom: -140px; left: -80px; background: rgba(193,255,71,.18); animation: orbDrift 18s ease-in-out infinite alternate-reverse; }
.orb-deep { width: 300px; height: 280px; top: 60%; left: 55%; background: rgba(30,18,72,.6); animation: orbDrift 20s ease-in-out infinite alternate; }
@keyframes orbDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(24px,18px) scale(1.1); } }
.glow { position: absolute; border-radius: 9999px; filter: blur(90px); opacity: .35; pointer-events: none; }

/* ── Geanimeerd woord in de hero ── */
.animated-word-wrap { position: relative; display: block; width: 100%; height: 2.6em; overflow: hidden; line-height: 1.25; }
@media (min-width: 768px) { .animated-word-wrap { height: 1.3em; } }
.animated-word { position: absolute; top: 0; left: 0; right: 0; text-align: center; color: #FF5B2E; opacity: 0; transform: translateY(110%);
  transition: opacity .45s cubic-bezier(.22,.68,0,1.2), transform .45s cubic-bezier(.22,.68,0,1.2); will-change: transform, opacity; pointer-events: none; line-height: 1.25; }
.animated-word.active { opacity: 1; transform: translateY(0); }
.animated-word.exit { opacity: 0; transform: translateY(-110%); transition: opacity .3s ease-in, transform .3s ease-in; }

/* ── Agent-pipeline ── */
.pipeline { display: flex; flex-direction: column; align-items: stretch; gap: 0; max-width: 100%; }
.pipe-node { display: grid; grid-template-columns: 3.25rem 1fr; grid-template-rows: auto auto; column-gap: .9rem; align-items: center; text-align: left; }
.pipe-dot { grid-row: 1 / span 2; width: 3.25rem; height: 3.25rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); animation: pipeLit 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1s); }
.pipe-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .95rem; color: #FAFAF8; align-self: end; }
.pipe-sub { font-size: .75rem; color: #9B8FAB; line-height: 1.35; align-self: start; }
.pipe-link { position: relative; display: block; width: 2px; height: 1.6rem; margin-left: calc(1.625rem - 1px); background: rgba(255,255,255,.14); }
.pipe-link i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); opacity: 0; animation: pipeFlowY 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1s + .35s); }
.pipe-node-last .pipe-dot { animation-name: pipeLitLast; }
@keyframes pipeLit {
  0%, 22%, 100% { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); transform: scale(1); box-shadow: none; }
  6% { background: rgba(193,255,71,.22); border-color: var(--lime); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(193,255,71,.10); }
}
@keyframes pipeLitLast {
  0%, 22%, 100% { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); transform: scale(1); box-shadow: none; }
  6% { background: rgba(255,91,46,.30); border-color: var(--coral); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255,91,46,.14); }
}
@keyframes pipeFlowY { 0% { top: 0; opacity: 0; } 4% { opacity: 1; } 12% { top: calc(100% - 8px); opacity: 1; } 15%, 100% { top: calc(100% - 8px); opacity: 0; } }
@keyframes pipeFlowX { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 12% { left: calc(100% - 8px); opacity: 1; } 15%, 100% { left: calc(100% - 8px); opacity: 0; } }
@media (min-width: 768px) {
  .pipeline { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .pipe-node { display: flex; flex-direction: column; align-items: center; text-align: center; width: 7rem; flex: 0 0 auto; gap: .5rem; }
  .pipe-dot { width: 3.5rem; height: 3.5rem; }
  .pipe-name { align-self: auto; }
  .pipe-sub { align-self: auto; }
  .pipe-link { flex: 1 1 0; width: auto; height: 2px; margin: 1.75rem 0 0; min-width: 1rem; }
  .pipe-link i { left: 0; top: -3px; animation-name: pipeFlowX; }
}
@media (prefers-reduced-motion: reduce) {
  .pipe-dot, .pipe-node-last .pipe-dot { animation: none; background: rgba(193,255,71,.14); border-color: rgba(193,255,71,.5); }
  .pipe-node-last .pipe-dot { background: rgba(255,91,46,.2); border-color: rgba(255,91,46,.6); }
  .pipe-link i { animation: none; opacity: 0; }
}

/* ── Spectrum ── */
.spectrum { position: relative; }
.spectrum-line { display: none; }
@media (min-width: 768px) {
  .spectrum-line { display: block; position: absolute; left: 6%; right: 6%; top: 1.15rem; height: 2px; background: linear-gradient(90deg, #E8E3F0, #FF5B2E 50%, #E8E3F0); }
}
.spec-dot { width: 2.3rem; height: 2.3rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: 'Syne', sans-serif; font-size: .8rem; position: relative; z-index: 1; }

/* ── Logo rail ── */
.logo-rail { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.logo-rail-track { display: flex; align-items: center; width: max-content; animation: logo-rail-scroll 26s linear infinite; }
.logo-rail-track:hover { animation-play-state: paused; }
.logo-rail-item { flex: 0 0 auto; width: 230px; display: flex; align-items: center; justify-content: center; padding: 0 28px; }
.logo-rail-item img { max-height: 32px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .4; transition: opacity .2s; }
.logo-rail-item img:hover { opacity: .75; }
.logo-rail-item img.logo-tall { max-height: 52px; }
.logo-rail-dark .logo-rail-item img { filter: grayscale(1) invert(1); opacity: .45; }
.logo-rail-dark .logo-rail-item img:hover { opacity: .8; }
@keyframes logo-rail-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .logo-rail-item { width: 160px; padding: 0 18px; } }

/* ── FAQ ── */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .2s; display: inline-block; }

/* ── Team ── */
.avatar { position: relative; border-radius: 9999px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(135deg, #2a1a63, #1E1248); border: 1px solid rgba(255,255,255,.12); font-family: 'Syne', sans-serif; font-weight: 800; color: var(--lime); }
.avatar-lg { width: 96px; height: 96px; font-size: 1.6rem; }
.avatar-sm { width: 44px; height: 44px; font-size: .85rem; margin-left: -10px; border: 2px solid var(--deep); }
.avatar-sm:first-child { margin-left: 0; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.avatar.has-photo .avatar-initials { visibility: hidden; }
.chip { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 9999px; background: rgba(193,255,71,.12); color: var(--lime); }

/* ── Modal ── */
#cta-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 0; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
#cta-modal.open { opacity: 1; pointer-events: all; visibility: visible; }
#cta-modal-backdrop { position: absolute; inset: 0; background: rgba(18,8,46,.6); backdrop-filter: blur(6px); }
#cta-modal-card { position: relative; z-index: 1; background: #FF5B2E; width: 100%; height: 100%; display: flex; flex-direction: column; overflow-y: auto; transform: scale(.96); opacity: 0; transition: transform .35s cubic-bezier(.22,.68,0,1.2), opacity .3s ease; }
@media (min-width: 768px) {
  #cta-modal-card { width: min(960px, 94vw); height: min(640px, 92vh); border-radius: 24px; flex-direction: row; overflow: hidden; }
  #cta-modal { padding: 24px; }
}
#cta-modal.open #cta-modal-card { transform: scale(1); opacity: 1; }
.modal-left { flex: 1; padding: 40px 36px; display: flex; flex-direction: column; gap: 20px; background: linear-gradient(145deg, #FF5B2E 0%, #D94218 100%); color: white; }
@media (min-width: 768px) { .modal-left { overflow-y: auto; } }
.modal-right { flex: 1; padding: 32px 28px; display: flex; align-items: center; justify-content: center; background: rgba(18,8,46,.55); backdrop-filter: blur(8px); }
@media (min-width: 768px) { .modal-right { overflow-y: auto; } }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 10; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.15); color: white; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; transition: background .15s; }
.modal-close:hover { background: rgba(255,255,255,.28); }
.modal-form input, .modal-form textarea { width: 100%; padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: white !important; -webkit-text-fill-color: white !important; font-family: 'DM Sans', sans-serif; font-size: .875rem; transition: border-color .15s, box-shadow .15s; }
.modal-form input:focus, .modal-form textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(193,255,71,.2); }
.modal-form input::placeholder, .modal-form textarea::placeholder { color: rgba(255,255,255,.35); }
#modal-success { display: none; }

/* ── Formuliervelden (donker) ── */
input, textarea { background: rgba(255,255,255,.06) !important; color: #FAFAF8 !important; -webkit-text-fill-color: #FAFAF8 !important; border: 1px solid rgba(255,255,255,.14) !important; }
input::placeholder, textarea::placeholder { color: #9B8FAB; }
input:-webkit-autofill, textarea:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px rgba(18,8,46,.95) inset !important; -webkit-text-fill-color: #FAFAF8 !important; }
input:focus, textarea:focus { outline: none; border-color: #FF5B2E !important; box-shadow: 0 0 0 3px rgba(255,91,46,.15); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ── Beweging beperken ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-animate, .hero-animate-2, .hero-animate-3, .hero-animate-4 { animation: none; }
  .orb { animation: none; }
  .logo-rail-track { animation: none; }
  .animated-word { transition: none; }
  .card-hover, .card-dark { transition: none; }
  .card-hover:hover, .card-dark:hover { transform: none; }
  #cta-modal, #cta-modal-card { transition: none; }
}

/* hero: tweede regel kleiner zodat de hele zin op één regel past (desktop) */
.hero-sub-words { font-size: .8em; }
@media (min-width: 768px) { .hero-sub-words .animated-word { white-space: nowrap; } }

/* mobiel: 16px in invoervelden voorkomt automatisch inzoomen op iPhone */
@media (max-width: 767px) {
  input:not([type=hidden]):not([type=checkbox]):not([type=radio]), textarea, select { font-size: 16px !important; }
}

/* contrast (WCAG AA): labels en coral-links op lichte vlakken */
.bg-warm-white [data-i18n$="label"], .bg-warm-off [data-i18n$="label"], .bg-white [data-i18n$="label"] { color: #6B5C80; }
.bg-warm-white a.text-coral, .bg-warm-off a.text-coral { color: #C23A12; }
/* reduced motion: rail wordt een statisch, gecentreerd raster */
@media (prefers-reduced-motion: reduce) {
  .logo-rail-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .logo-rail-item[aria-hidden="true"] { display: none; }
}
/* lichtere orbs op mobiel */
@media (max-width: 767px) { .orb { animation: none; filter: blur(60px); } }
/* skip-link */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #C1FF47; color: #12082E; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* Paginakoppen op smalle schermen: lange woorden (Administratiewerk, productpagina's) mogen niet buiten beeld vallen */

/* Lange woorden in koppen breken liever af dan dat ze buiten beeld vallen (320px-schermen) */
h1, h2, h3 { overflow-wrap: anywhere; }

/* Koppen op subpagina's: rustiger en leesbaarder (minder zwaar, niet afbreken met koppelteken) */
header h1 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; hyphens: manual; overflow-wrap: break-word; font-size: clamp(1.7rem, 3.6vw, 3.1rem) !important; }
@media (max-width: 639px) { header h1 { font-size: clamp(1.5rem, 7vw, 2rem) !important; overflow-wrap: anywhere; } }
header h1 { max-width: 100% !important; }
@media (min-width: 1024px) { header h1 { font-size: clamp(2rem, 3.2vw, 3rem) !important; } }
/* Koppen op subpagina's in DM Sans: Syne is op die grootte te breed om prettig te lezen */
header h1 { font-family: 'DM Sans', sans-serif !important; font-weight: 700 !important; letter-spacing: -0.005em !important; line-height: 1.18 !important; }

/* Tussenkoppen: kleiner en rustiger; de lange belofte-kop nog iets compacter */
main h2 { font-size: clamp(1.55rem, 3vw, 2.6rem) !important; line-height: 1.15 !important; letter-spacing: -0.01em; }
#belofte h2 { font-size: clamp(1.45rem, 2.5vw, 2.1rem) !important; line-height: 1.25 !important; }
