/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #D32F2F;      /* Peak Rood */
  --primary-dark: #b71c1c;
  --text-main: #111827;    /* Zwart */
  --text-muted: #6b7280;   /* Grijs */
  --bg-body: #FAFAFA;      /* Licht */
  --border: rgba(0,0,0,0.08);
  --radius: 8px;
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 10px 30px rgba(0,0,0,0.06);
  --button-bg: #111827;
  --button-bg-hover: #0b1220;
}


body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(211,47,47,0.06), transparent 60%), radial-gradient(900px 500px at 80% 10%, rgba(17,24,39,0.05), transparent 55%), #FAFAFA;
  line-height: 1.6;
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; line-height: 1.1; color: var(--text-main); }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; max-width: 65ch; color: var(--text-muted); }
strong { color: var(--text-main); }

.subtitle {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; }
.section { padding: 4rem 0; }
.section-alt { background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid-3 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* HEADER & NAV */
header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0.75rem 0;
}

/* Backwards compatible: sommige pagina's gebruiken .nav-container/.logo, andere .nav-inner/.nav-logo */
.nav-container,
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 1.25rem;
}

.logo img,
.nav-logo img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .logo img,
  .nav-logo img { height: 36px; }
}

/* DESKTOP MENU */
.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu a:hover { color: var(--primary); }
.nav-cta {
  background: var(--text-main);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  transition: background .2s;
  width: auto;
}
.nav-cta:hover { background: var(--primary); }

/* MOBILE NAV */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--text-main); margin-bottom: 5px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    gap: 1.5rem;
    align-items: flex-start;
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { width: 100%; border-bottom: 1px solid var(--bg-body); padding-bottom: 0.5rem; }
  .nav-cta { width: 100%; text-align: center; }
}

/* CARDS */
.card { 
  background: #ffffff; 
  border: 1px solid rgba(0,0,0,0.08); 
  padding: 2rem; 
  border-radius: 16px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(0,0,0,0.10); }

/* BUTTONS */
.btn { 
  display: inline-block; 
  background: var(--button-bg); 
  color: #ffffff; 
  padding: 14px 28px; 
  border-radius: var(--radius); 
  font-weight: 700; 
  text-decoration: none; 
  border: 1px solid rgba(0,0,0,0.10); 
  cursor: pointer; 
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  width: 100%; 
  text-align: center;
  box-shadow: 0 6px 18px rgba(17,24,39,0.10);
}
.btn:hover { background: var(--button-bg-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(17,24,39,0.14); }
.btn-secondary { background: #ffffff; color: var(--text-main); border: 1px solid rgba(0,0,0,0.10); box-shadow: 0 6px 18px rgba(17,24,39,0.06); }
.btn-secondary:hover { background: #f3f4f6; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(17,24,39,0.10); }
.btn-full-mobile { width: auto; }
@media (max-width: 600px) { .btn-full-mobile { width: 100%; } }

/* --- FORM WIZARD STYLING (FIXED FOR 6.0 HTML) --- */
.form-section { background: var(--bg-body); }

/* De container fungeert nu als de 'card' */
.form-container { 
  background: #ffffff; 
  border-radius: 12px;
  box-shadow: var(--shadow-card); 
  padding: 3rem; 
  max-width: 600px !important; /* Force center width */
  margin: 0 auto;
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); font-size: 0.95rem; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%; 
  padding: 0.85rem; 
  border: 1px solid #d1d5db; 
  border-radius: 6px; 
  font-size: 1rem; 
  font-family: inherit; 
  color: var(--text-main);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none; 
  border-color: var(--primary); 
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Radio groups (Aangepast op 6.0 HTML structuur) */
.radio-group { display: flex; flex-direction: column; gap: 0.75rem; }
.radio-group label { 
  font-weight: 400; 
  display: flex; 
  align-items: center; 
  gap: 0.75rem; 
  cursor: pointer;
  margin: 0;
}
.radio-group input[type="radio"] { 
  accent-color: var(--primary); 
  width: 1.2em; 
  height: 1.2em; 
  margin: 0; 
}

/* Form Rows (2 columns) */
.form-row { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 1rem; 
  margin-top: 1rem;
}
@media(max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-submit { margin-top: 2rem; }

/* Form Help Text */
.form-help {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 3rem 0; margin-top: 0; font-size: 0.9rem; background: white; }
.footer-links a { margin-right: 1.5rem; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 2000;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}
.cookie-banner.visible { display: flex; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cookie-btn--primary {
  background: var(--text-main);
  color: white;
  border: 1px solid var(--text-main);
}
.cookie-btn--primary:hover { background: var(--primary); border-color: var(--primary); }
.cookie-btn--ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}
.cookie-btn--ghost:hover { border-color: var(--text-main); }

body { position: relative; }
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.reveal{opacity:0; transform:translateY(30px); transition:all 0.8s ease;}
.reveal.active{opacity:1; transform:translateY(0);}


/* Engine section */
.engine-section { padding: 90px 0; }
.engine-header { text-align: center; margin-bottom: 70px; }
.engine-header h2 {
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px 0;
  background: linear-gradient(180deg, #111827 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.engine-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.engine-workflow {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr auto 1fr;
  align-items: center;
  gap: 20px;
  position: relative;
}

.engine-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 2;
}

.engine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(0,0,0,0.15);
}

.engine-card-header {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: block;
}

.engine-stack { display: flex; flex-direction: column; gap: 12px; }

.engine-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  color: #374151;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.engine-item:last-child { border-bottom: none; }

.engine-icon {
  width: 32px;
  height: 32px;
  background: #F3F4F6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  flex: 0 0 auto;
}

.engine-item.is-highlight { color: #111827; }
.engine-item.is-highlight .engine-icon { background: #FEF2F2; color: #D93025; }

.engine-core {
  background: linear-gradient(145deg, #1a1a1a, #000000);
  border-radius: 24px;
  padding: 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 40px -10px rgba(217, 48, 37, 0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

.engine-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.engine-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  position: relative;
}

.engine-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #e5e5e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  position: relative;
}

.engine-badge {
  background: rgba(217, 48, 37, 0.2);
  border: 1px solid rgba(217, 48, 37, 0.5);
  color: #ff8f8f;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 16px;
  font-weight: 500;
  position: relative;
}

.engine-connector {
  position: relative;
  height: 2px;
  background: #E5E7EB;
  width: 60px;
}

.engine-connector::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  background: #D93025;
  border-radius: 50%;
  box-shadow: 0 0 10px #D93025;
  animation: engine-flow 2s infinite linear;
}

@keyframes engine-flow {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (max-width: 900px) {
  .engine-workflow { grid-template-columns: 1fr; gap: 40px; }
  .engine-connector { width: 2px; height: 60px; margin: 0 auto; }
  .engine-connector::after {
    top: 0;
    left: -3px;
    animation: engine-flow-vertical 2s infinite linear;
  }
  @keyframes engine-flow-vertical {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
}


/* NAV LOGO SAFETY */
.nav-logo img, .logo img{height:32px; width:auto; max-width:none; display:block;}


/* Navbar: voorkom woord-afbreking en rare wraps */
.nav-menu { flex-wrap: nowrap; }
.nav-menu a { white-space: nowrap; word-break: keep-all; }

/* CTA: houdt ruimte voor menu items */
.nav-cta { min-width: 220px; }

/* Logo: vangnet voor SVG's die te groot renderen */
.nav-logo img { max-width: 180px; height: 32px; }




/* ENGINE (Hoe het werkt) */
.engine-section { overflow: hidden; }
.engine-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}
.engine-header h2 {
  margin: 0 0 14px;
}
.engine-header p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

.workflow-wrapper{
  display: grid;
  grid-template-columns: 1fr auto 1.4fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.glass-card{
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  z-index: 2;
}
.glass-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10), 0 10px 10px -5px rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.15);
}

.card-header{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 22px;
  display: block;
}

.stack-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-item{
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  color: #374151;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.stack-item:last-child{ border-bottom: none; }

.icon-box{
  width: 32px;
  height: 32px;
  background: #F3F4F6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex: 0 0 auto;
}
.stack-item.highlight{ color: var(--text-main); }
.stack-item.highlight .icon-box{
  background: #FEF2F2;
  color: var(--primary);
}

.peak-engine{
  background: linear-gradient(145deg, #1a1a1a, #000000);
  border-radius: 24px;
  padding: 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 40px -10px rgba(211,47,47,0.35);
  border: 1px solid rgba(255,255,255,0.10);
}

.engine-grid{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.30;
}

.peak-logo-text{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  margin-bottom: 12px;
  position: relative;
}

.peak-main-title{
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #e5e5e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  position: relative;
}

.peak-badge{
  background: rgba(211, 47, 47, 0.18);
  border: 1px solid rgba(211, 47, 47, 0.45);
  color: #ffb3b3;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-top: 16px;
  font-weight: 600;
  position: relative;
}

.connector{
  position: relative;
  height: 2px;
  background: #E5E7EB;
  width: 60px;
}

.connector::after{
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(211,47,47,0.9);
  animation: flow 2s infinite linear;
}

@keyframes flow {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (max-width: 900px){
  .workflow-wrapper{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .connector{
    width: 2px;
    height: 60px;
    margin: 0 auto;
  }
  .connector::after{
    top: 0;
    left: -3px;
    animation: flowVertical 2s infinite linear;
  }
  @keyframes flowVertical {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
}
