:root {
  --bg: #ffffff;
  --bg-alt: #f7f5fa;
  --surface: #ffffff;
  --border: #e7e3ee;
  --text: #1c1228;
  --muted: #645b73;
  --accent: #6a2b83;        /* logo-paars */
  --accent-2: #9b39c4;      /* lichter paars accent */
  --shadow-sm: 0 1px 2px rgba(28,18,40,0.05);
  --shadow: 0 4px 6px rgba(28,18,40,0.04), 0 12px 28px rgba(28,18,40,0.06);
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Subtiele achtergrond-toon bovenaan */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 620px;
  background: radial-gradient(ellipse at top, rgba(106,43,131,0.07), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { display: block; height: 56px; width: auto; }
footer .brand img { height: 44px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(106,43,131,0.25);
}
.btn-primary:hover { transform: translateY(-2px); background: #5a2370; box-shadow: 0 10px 26px rgba(106,43,131,0.32); }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 720px) { .nav-links { display: none; } }

/* Hero */
.hero { padding: 120px 0 104px; text-align: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
/* witte sluier zodat de tekst leesbaar blijft (sterker in het midden) */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 78% at 50% 46%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.5) 58%, rgba(255,255,255,0.22) 100%);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  background: rgba(106,43,131,0.07);
  border: 1px solid rgba(106,43,131,0.18);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: #342c4a;
  font-weight: 500;
  max-width: 640px;
  margin: 0 auto 36px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.7);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Features grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(106,43,131,0.35); }
.card .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(106,43,131,0.08);
  border: 1px solid rgba(106,43,131,0.16);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card .step-no {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* Besparing / rekentool */
.calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  max-width: 880px;
  margin: 0 auto;
}
.calc-slider { margin-bottom: 28px; }
.calc-slider-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.calc-slider-top label { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.calc-budget { font-weight: 800; font-size: 1.35rem; color: var(--accent); letter-spacing: -0.02em; }
#budget { width: 100%; accent-color: var(--accent); height: 6px; cursor: pointer; }
.calc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
@media (max-width: 620px) { .calc-compare { grid-template-columns: 1fr; } }
.calc-col { border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.calc-col.highlight { border-color: rgba(106,43,131,0.4); background: rgba(106,43,131,0.04); }
.calc-tag { display: inline-block; font-size: 0.76rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.calc-tag.trad { background: #efedf2; color: #645b73; }
.calc-tag.slim { background: rgba(106,43,131,0.12); color: var(--accent); }
.calc-amount { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.calc-col.highlight .calc-amount { color: var(--accent); }
.calc-list { list-style: none; display: grid; gap: 8px; }
.calc-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.92rem; }
.calc-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.calc-result {
  text-align: center;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-result-label { font-size: 0.8rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.05em; }
.calc-save { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.calc-pct { font-weight: 600; }
.calc-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 18px; }

/* Portfolio / Werk */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(106,43,131,0.35); }
.work-cover {
  height: 168px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.work-cover .tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.work-body { padding: 20px 22px; }
.work-body h3 { font-size: 1.12rem; margin-bottom: 6px; font-weight: 700; }
.work-body p { color: var(--muted); font-size: 0.92rem; }
.work-note { text-align: center; color: var(--muted); font-size: 0.86rem; margin-top: 28px; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 28px;
}
.stat .num {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .label { color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta-band {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-band p { color: var(--muted); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Contact form */
.form {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
}
.form input::placeholder, .form textarea::placeholder { color: #9990a5; }
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(106,43,131,0.14);
}
.form textarea { resize: vertical; min-height: 120px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-note { text-align: center; color: var(--accent); font-weight: 600; min-height: 24px; }

/* WhatsApp in contactsectie */
.contact-or {
  max-width: 520px;
  margin: 18px auto 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
}
.contact-or::before, .contact-or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border);
}
.contact-or::before { left: 0; }
.contact-or::after { right: 0; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37,211,102,0.3);
}
.btn-wa svg { width: 20px; height: 20px; }
.btn-wa:hover { transform: translateY(-2px); background: #20bd5a; box-shadow: 0 10px 26px rgba(37,211,102,0.38); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
footer .brand { justify-content: center; margin-bottom: 14px; }
footer .credo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* Scroll-voortgangsbalk */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .08s linear;
}

/* Parallax-elementen bewegen via transform (gezet in JS) */
.parallax { will-change: transform; }

/* Subtiele decoratieve vlakken achter de hero */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.16;
  z-index: -1;
  pointer-events: none;
}
.blob-1 { width: 300px; height: 300px; background: var(--accent); top: 40px; left: -60px; }
.blob-2 { width: 260px; height: 260px; background: var(--accent-2); top: 120px; right: -50px; }

/* Terug-naar-boven knop */
.to-top {
  position: fixed;
  right: 24px; bottom: 86px;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(106,43,131,0.3);
  opacity: 0;
  transform: translateY(20px) scale(.8);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  z-index: 60;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #5a2370; }

/* Bucky — AI-chat widget */
.bucky-launch {
  position: fixed;
  right: 24px; bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px 12px 16px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(106,43,131,0.32);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  z-index: 70;
}
.bucky-launch svg { width: 20px; height: 20px; }
.bucky-launch:hover { transform: translateY(-3px); background: #5a2370; box-shadow: 0 12px 30px rgba(106,43,131,0.42); }
.bucky-launch.hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

.bucky-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,18,40,0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 70;
}
.bucky-overlay.open { opacity: 1; pointer-events: auto; }

.bucky-panel {
  position: fixed;
  left: 50%; top: 50%;
  width: min(820px, 94vw);
  height: min(86vh, 860px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(28,18,40,0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.96);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 71;
}
.bucky-panel.open { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }

.bucky-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
}
.bucky-id { display: flex; align-items: center; gap: 12px; }
.bucky-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.2);
  font-weight: 800;
}
.bucky-id strong { display: block; font-size: 1rem; line-height: 1.2; }
.bucky-sub { font-size: 0.78rem; opacity: 0.9; }
.bucky-close {
  background: none; border: none; color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  opacity: 0.85; padding: 0 4px;
}
.bucky-close:hover { opacity: 1; }

.bucky-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #F1EFFb;
}

@media (max-width: 600px) {
  .bucky-panel {
    width: 100vw;
    height: 100dvh;
    left: 0; top: 0;
    border-radius: 0;
    border: none;
    transform: translateY(100%);
  }
  .bucky-panel.open { transform: none; }
}

/* Zwevende WhatsApp-knop */
.wa-float {
  position: fixed;
  left: 24px; bottom: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  z-index: 60;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(37,211,102,0.45); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .parallax { transform: none !important; }
}
