/* Groepial — hi-fi shared stylesheet
   Donker navy + glassmorphism + gradient accenten
   Syne (headers) + DM Sans (body) */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* core palette */
  --bg-0:        #070b18;
  --bg-1:        #0b1024;
  --bg-2:        #0f1530;
  --surface:     rgba(255,255,255,0.04);
  --surface-2:   rgba(255,255,255,0.06);
  --surface-3:   rgba(255,255,255,0.08);
  --border:      rgba(255,255,255,0.10);
  --border-2:    rgba(255,255,255,0.18);
  --text:        #eef1ff;
  --text-2:      #b5bdd9;
  --text-3:      #7d87a8;

  /* accents */
  --blue:        #5b8cff;
  --blue-2:      #6aa1ff;
  --purple:      #9b6bff;
  --pink:        #d56bff;
  --grad-1:      linear-gradient(135deg, #5b8cff 0%, #9b6bff 60%, #d56bff 100%);
  --grad-2:      linear-gradient(135deg, #6aa1ff 0%, #9b6bff 100%);
  --grad-soft:   linear-gradient(135deg, rgba(91,140,255,0.15) 0%, rgba(155,107,255,0.15) 100%);
  --glow-blue:   0 0 60px rgba(91,140,255,0.35);
  --glow-purple: 0 0 80px rgba(155,107,255,0.30);

  /* type */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body {
  background:
    radial-gradient(ellipse 90% 50% at 20% 0%, rgba(91,140,255,0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 30%, rgba(155,107,255,0.18), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(213,107,255,0.10), transparent 70%),
    var(--bg-0);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(155,107,255,0.4); color: white; }

/* ---------------- Type system ---------------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
h1.h-display { font-size: clamp(48px, 6vw, 92px); }
h2.h-display { font-size: clamp(36px, 4vw, 60px); }
h3.h-display { font-size: clamp(24px, 2.4vw, 36px); }
h4.h-display { font-size: 22px; font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-1);
  box-shadow: 0 0 8px rgba(155,107,255,0.6);
  animation: dotPulse 2.8s ease-in-out infinite;
}

.lead { font-size: 18px; color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-3); }
.grad-text {
  background: var(--grad-1);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradMove 5s ease infinite;
}

/* ---------------- Glass surfaces ---------------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.glass-2 {
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

/* ---------------- Card shimmer (opt-in) ---------------- */
.glass-shine { position: relative; overflow: hidden; }
.glass-shine::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.14) 50%, transparent 80%);
  transform: translateX(-110%) skewX(-12deg);
  pointer-events: none; border-radius: inherit; z-index: 1;
}
.glass-shine:hover::before {
  animation: cardShine 0.65s ease forwards;
}
.glass-strong {
  background:
    linear-gradient(135deg, rgba(91,140,255,0.10), rgba(155,107,255,0.05)),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(155,107,255,0.30);
  border-radius: var(--r-lg);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 30px 60px -30px rgba(91,140,255,0.30);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  backdrop-filter: blur(14px);
}
.btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-1);
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 12px 32px -8px rgba(155,107,255,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
  animation: glowPulse 3.5s ease-in-out infinite;
}
.btn-primary:hover {
  box-shadow: 0 16px 40px -8px rgba(155,107,255,0.7), inset 0 1px 0 rgba(255,255,255,0.30);
  transform: translateY(-2px);
  animation-play-state: paused;
}
.btn-ghost { background: transparent; }
.btn-sm { font-size: 13px; padding: 9px 16px; }
.btn-lg { font-size: 16px; padding: 16px 28px; }

/* arrow inside primary */
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------------- Tags / pills ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.tag-grad {
  background: var(--grad-soft);
  border: 1px solid rgba(155,107,255,0.35);
  color: var(--text);
}

/* ---------------- Nav ---------------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 40px;
  display: flex; align-items: center; gap: 32px;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(7,11,24,0.65);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}
/* backdrop-filter creëert een containing block voor position:fixed kinderen.
   Zet het uit wanneer het overlay open is zodat het overlay het volledige scherm dekt. */
.site-nav:has(.nav-links.open) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 9999 !important;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad-1);
  box-shadow: var(--glow-purple);
  position: relative;
  animation: brandPulse 4s ease-in-out infinite;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 5px;
  background: var(--bg-0);
  opacity: 0.6;
}
.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: auto; }

/* ---------------- Layout helpers ---------------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; }
.grid { display: grid; gap: 28px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 24px; }

/* ---------------- Particles ---------------- */
.particles {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,107,255,0.6), rgba(155,107,255,0));
  animation: floatY linear infinite;
  opacity: 0.5;
}
.particle.b { background: radial-gradient(circle, rgba(91,140,255,0.6), rgba(91,140,255,0)); }
@keyframes floatY {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.4; }
  100% { transform: translate(var(--tx, 20px), -120vh); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes orbFloat {
  0%   { transform: scale(1)    translate(0,     0);    }
  33%  { transform: scale(1.06) translate(12px, -18px); }
  66%  { transform: scale(0.97) translate(-8px,  14px); }
  100% { transform: scale(1)    translate(0,     0);    }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: var(--glow-purple); }
  50%       { box-shadow: var(--glow-purple), var(--glow-blue); }
}
@keyframes brandPulse {
  0%, 100% { box-shadow: var(--glow-purple); transform: scale(1); }
  50%       { box-shadow: var(--glow-purple), var(--glow-blue); transform: scale(1.06); }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%       { transform: scale(1.5); opacity: 0.7; }
}
@keyframes cardShine {
  from { transform: translateX(-110%) skewX(-12deg); }
  to   { transform: translateX(210%)  skewX(-12deg); }
}
/* ---------------- Reveal animation ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }

/* ---------------- Footer ---------------- */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  position: relative; z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-grid h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-2); font-size: 14px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
}

/* ---------------- Service card primitive ---------------- */
.service-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.service-card .num {
  font-family: var(--font-display);
  font-size: 14px; color: var(--text-3);
  letter-spacing: 0.16em;
}
.service-card .icon-blob {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid rgba(155,107,255,0.25);
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}

/* ---------------- Counter ---------------- */
.counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 5vw, 72px);
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
}

/* ---------------- Glow orbs (decorative) ---------------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 10s ease-in-out infinite;
}
.orb:nth-child(2) { animation-delay: -3.5s; }
.orb:nth-child(3) { animation-delay: -6.8s; }
.orb-blue   { background: radial-gradient(circle, rgba(91,140,255,0.35), transparent 70%); }
.orb-purple { background: radial-gradient(circle, rgba(155,107,255,0.35), transparent 70%); }
.orb-pink   { background: radial-gradient(circle, rgba(213,107,255,0.30), transparent 70%); }

/* ---------------- Image / placeholder ---------------- */
.img-ph {
  background:
    linear-gradient(135deg, rgba(91,140,255,0.10), rgba(155,107,255,0.10)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 8px, transparent 8px 16px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

/* ---------------- Hamburger / nav-toggle (hidden on desktop) ---------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 202;
  flex-shrink: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
/* Toggle → ✕ when menu is open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .g-3, .g-4 { grid-template-columns: 1fr; }
  .g-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .site-nav { padding: 14px 20px; }

  /* Verberg desktop nav-links en CTA-knop */
  .nav-links { display: none; }
  .site-nav .nav-cta { display: none !important; }
  .nav-mobile-cta { display: none; }

  /* Toon nav-toggle hamburger */
  .nav-toggle { display: flex; }

  /* Verhoog z-index van de hele nav zodat het overlay echt alles afdekt */
  .site-nav.nav-is-open { z-index: 9999; }

  /* Mobiel overlay-menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: rgba(7, 11, 24, 0.97);
    animation: fadeUp 0.22s ease both;
    padding: 80px 24px 48px;
    overflow-y: auto;
  }
  .nav-links.open a {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--r-pill);
    width: 100%;
    max-width: 360px;
    text-align: center;
    color: rgba(238, 241, 255, 0.85);
    border-bottom: none;
    background: transparent;
    transition: background 0.18s ease, color 0.18s ease;
  }
  .nav-links.open a:hover { background: rgba(255,255,255,0.08); color: #eef1ff; }
  .nav-links.open a.active { color: #eef1ff; background: rgba(255,255,255,0.10); }
  .nav-links.open .nav-mobile-cta {
    display: inline-flex !important;
    width: auto !important;
    max-width: none !important;
    padding: 13px 28px !important;
    border-radius: var(--r-pill) !important;
    background: var(--grad-1) !important;
    color: white !important;
    margin-top: 8px;
    font-size: 15px !important;
  }

  /* Kruisje-knop bovenin het overlay */
  .nav-close { display: none; }
  .nav-links.open .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(238, 241, 255, 0.90);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
    z-index: 1;
  }
  .nav-links.open .nav-close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.08);
  }
}

@media (max-width: 480px) {
  .container  { padding: 0 16px; }
  .section    { padding: 40px 0; }
  .section-sm { padding: 36px 0; }
  .lead { font-size: 15px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-grid a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .btn-lg { font-size: 15px; padding: 14px 22px; }

  .nav-links.open a { font-size: 17px; }

  h1.h-display { font-size: clamp(36px, 9vw, 56px); }
  h2.h-display { font-size: clamp(28px, 7vw, 40px); }
  h3.h-display { font-size: clamp(22px, 5vw, 30px); }
}
