/* ---------- Design tokens ---------- */
:root {
  --bg: #050b1a;
  --bg-2: #081230;
  --panel: #0c1a3d;
  --text: #ffffff;
  --muted: #a9b7d4;
  --blue: #2f7bff;
  --blue-deep: #1747d6;
  --cyan: #3cc8ff;
  --line: rgba(120, 160, 255, 0.18);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --step-2: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.5rem, 1.6rem + 2.8vw, 3.7rem);

  --radius: 16px;
  --gutter: 16px;
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
/* Anker bovenaan de pagina, zodat "Terug naar boven" en #top werken (de header is vast). */
.page-top { display: block; height: 0; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; color: var(--muted); }
figure { margin: 0; }
code { font-size: 0.9em; background: rgba(120, 160, 255, 0.12); padding: 0.1em 0.35em; border-radius: 4px; color: var(--text); }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--white, #fff); color: var(--bg); padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn-primary {
  color: var(--text);
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 10px 30px -10px rgba(47, 123, 255, 0.7);
}
.btn-primary:hover { color: var(--text); box-shadow: 0 14px 36px -8px rgba(47, 123, 255, 0.9); }
.btn-outline { border-color: rgba(169, 183, 212, 0.45); color: var(--text); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-small {
  min-height: 42px; padding: 0 18px; font-size: 0.95rem; white-space: nowrap;
  color: var(--text);
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.btn-small:hover { color: var(--text); box-shadow: 0 8px 24px -8px rgba(47, 123, 255, 0.9); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(5, 11, 26, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 84px; transition: min-height .3s;
}
.site-header.is-scrolled .header-inner { min-height: 68px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { height: 58px; width: auto; transition: height .3s; }
.site-header.is-scrolled .brand img { height: 48px; }

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.97rem;
  padding: 6px 0; position: relative; opacity: 0.88;
}
.site-nav a:hover { opacity: 1; color: var(--cyan); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--cyan); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; padding: 150px 0 0;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(60% 70% at 85% 35%, rgba(47, 123, 255, 0.28) 0%, transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(23, 71, 214, 0.25) 0%, transparent 70%),
    var(--bg);
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 70% 40%, rgba(60, 200, 255, 0.12), transparent 45%);
}
.hero-grid {
  display: grid; align-items: center; gap: 40px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  flex: 1;
  padding-bottom: 48px;
}
.hero-eyebrow {
  color: var(--cyan); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 22px;
}
.hero-title { font-size: var(--step-3); max-width: 16ch; }
.hero-title .accent { color: var(--cyan); }
.hero-sub { font-size: var(--step-1); max-width: 44ch; margin-top: 22px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Device frame with glowing edge; swap images/hero.jpg for a blue-toned image if you have one */
.hero-device {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(120, 180, 255, 0.35);
  box-shadow: 0 30px 80px -20px rgba(47, 123, 255, 0.55), 0 0 0 6px rgba(47, 123, 255, 0.06);
  aspect-ratio: 16 / 10;
  background: var(--panel);
}
.hero-device img { width: 100%; height: 100%; object-fit: cover; }
.hero-device { isolation: isolate; }
.hero-device::after { z-index: 1; border-radius: inherit; }

/* Feature strip */
.feature-strip {
  list-style: none; padding: 0; margin: 0 auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.feature-strip li {
  display: flex; align-items: center; gap: 14px;
  padding: 28px 24px; font-weight: 600; font-size: 0.98rem; color: var(--text);
}
.feature-strip li + li { border-left: 1px solid var(--line); }
.feature-strip svg {
  width: 30px; height: 30px; flex: none;
  fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.feature-strip li:nth-child(3) svg { stroke: var(--cyan); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; background: var(--bg); }
.section-title { font-size: var(--step-2); margin-bottom: 26px; color: var(--text); }
.lead { font-size: var(--step-1); color: var(--muted); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--blue); }
.service { padding: 30px 30px 0 0; }
.service + .service { padding-left: 30px; border-left: 1px solid var(--line); }
.service svg {
  width: 30px; height: 30px; margin-bottom: 18px;
  fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.service h3 { font-size: var(--step-1); margin-bottom: 12px; color: var(--text); }
.service p { margin: 0; }

/* Bands with image */
.band {
  position: relative; min-height: clamp(340px, 56vh, 600px);
  display: flex; align-items: center; color: var(--text);
  overflow: hidden; isolation: isolate;
}
.band-media, .cta-media {
  position: absolute; inset: 0;
  background-color: var(--bg-2);
  background-size: cover; background-position: center;
}
.band-media { inset: -12% 0; will-change: transform; background-image: linear-gradient(120deg, #0c1a3d 0%, #1747d6 100%); }
.band-2 .band-media { background-image: linear-gradient(120deg, #050b1a 0%, #2f7bff 100%); }
.cta-media { background-image: linear-gradient(135deg, #0c1a3d 0%, #1747d6 100%); }
.band-media.is-loaded { background-image: var(--bg-url); }
.cta-media.is-loaded { background-image: var(--bg-url); }
.band-shade, .cta-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 26, 0.55) 0%, rgba(5, 11, 26, 0.9) 100%);
}
/* Blauwe kleurlaag: maakt warme foto's passend bij de blauwe palet */
.band-shade::before, .hero-device::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--blue-deep); mix-blend-mode: color; opacity: 0.55;
}
.band-content { position: relative; }
.band-quote {
  font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2; max-width: 24ch; margin: 0; color: var(--text);
}

/* Catalogus */
.catalogus { background: var(--bg-2); }
.product-list {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr);
}
.product {
  background: var(--panel); border-radius: var(--radius);
  padding: 30px; border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
}
.product:nth-child(2) { border-top-color: var(--cyan); }
.product:nth-child(3) { border-top-color: #8fb8ff; }
.product h3 { font-size: var(--step-1); margin-bottom: 10px; color: var(--text); }
.product p { margin: 0; }

/* Peppol */
.peppol { background: var(--bg); }
.peppol-grid {
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: 1fr 1fr;
}
.peppol-grid .section-title { margin-bottom: 20px; }
.peppol-grid .btn { margin-top: 10px; }
.peppol-figure {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(47, 123, 255, 0.5);
  aspect-ratio: 4 / 3; background: var(--panel);
}
.peppol-figure img { width: 100%; height: 100%; object-fit: cover; }

/* About */
.about { background: var(--bg-2); }
.about-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1.4fr; align-items: start; }
.about-grid .section-title { margin: 0; }
.about-text p { font-size: var(--step-1); }
.about-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.about-list li {
  padding: 16px 18px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: 0.95rem; line-height: 1.35;
}
@media (max-width: 760px) {
  .about-list { grid-template-columns: 1fr; }
}

/* CTA */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(96px, 12vw, 150px) 0; background: var(--bg);
}
.cta-title { font-size: var(--step-2); margin-bottom: 14px; color: var(--text); }
.cta-content p { color: var(--muted); }
.cta-content .btn { margin: 10px 0 22px; }
.cta-small { font-size: 0.95rem; }
.cta-small a { color: var(--text); }
.cta-content { position: relative; }

/* Footer */
.site-footer {
  background: #030714; border-top: 1px solid var(--line);
  padding: 52px 0; font-size: 0.95rem; color: var(--muted);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-inner p { margin: 0 0 6px; max-width: none; }
.footer-inner a { color: var(--text); }
.brand-footer { margin-bottom: 14px !important; }
.brand-footer img { height: 72px; width: auto; }
.footer-meta { text-align: right; }

/* ---------- Footer: gecentreerd, tekst in een gloeiend ovaal ---------- */
.site-footer {
  background: var(--bg); padding: 64px 0 48px; text-align: center; border-top: 0;
}
.site-footer .footer-inner {
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.site-footer .footer-inner > div:first-child {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.site-footer .brand-footer { margin: 0 !important; }
.site-footer .brand-footer img { height: 76px; width: auto; }
.site-footer .footer-inner > div:first-child > p:not(.brand-footer) {
  margin: 0; max-width: none; padding: 16px 34px; border-radius: 999px;
  color: var(--text); font-size: 1.02rem; font-weight: 500;
  background: linear-gradient(180deg, rgba(47, 123, 255, 0.12), rgba(47, 123, 255, 0.04));
  border: 1.5px solid rgba(60, 200, 255, 0.85);
  box-shadow: 0 0 22px rgba(47, 123, 255, 0.55), inset 0 0 22px rgba(47, 123, 255, 0.22);
}
.site-footer .footer-meta { text-align: center; color: var(--muted); }
.site-footer .footer-meta p { margin: 4px 0; max-width: none; }

/* ---------- Motion: one orchestrated moment ---------- */
.hero-content > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-content > *:nth-child(2) { animation-delay: .08s; }
.hero-content > *:nth-child(3) { animation-delay: .16s; }
.hero-content > *:nth-child(4) { animation-delay: .24s; }
.hero-device { animation: rise 1.1s .2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Mobile menu toggle ---------- */
.nav-toggle {
  display: none; position: relative; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text);
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .25s, opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ---------- Legal pages ---------- */
.page-hero-short { padding-bottom: 48px; }
.legal { max-width: 760px; }
.legal h2 { font-size: var(--step-1); margin: 36px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { max-width: none; }
.legal-links { font-size: 0.9rem; }

/* ---------- Language switch ---------- */
.lang { display: flex; gap: 4px; font-size: 0.85rem; font-weight: 700; }
.lang a {
  color: var(--text); text-decoration: none; padding: 6px 8px; border-radius: 8px; opacity: 0.7;
}
.lang a:hover { opacity: 1; color: var(--cyan); }
.lang a[aria-current="page"] { opacity: 1; background: rgba(47, 123, 255, 0.22); }

/* ---------- Product links & detail pages ---------- */
.product-link {
  display: inline-block; margin-top: 18px; color: var(--cyan);
  font-weight: 700; text-decoration: none;
}
.product-link:hover { color: var(--text); }

.page-hero {
  position: relative; padding: 150px 0 72px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(47, 123, 255, 0.25) 0%, transparent 60%),
    var(--bg);
}
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); max-width: 22ch; }
.page-hero .lead { font-size: var(--step-1); margin-top: 18px; max-width: 58ch; }
.page-hero .btn { margin-top: 28px; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--cyan); }

.content-section { padding: clamp(56px, 8vw, 96px) 0; }
.content-section.alt { background: var(--bg-2); }
.content-section h2 { font-size: var(--step-2); margin-bottom: 24px; }

.detail-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail-list li {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.detail-list h3 { font-size: var(--step-1); margin-bottom: 8px; }
.detail-list p { margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; display: flex; gap: 18px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.steps li::before {
  content: counter(step); flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; color: var(--text);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.steps h3 { font-size: var(--step-1); margin-bottom: 6px; }
.steps p { margin: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--text); font-size: var(--step-1);
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; max-width: 64ch; }

.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inline p { margin: 0; color: var(--text); font-size: var(--step-1); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .site-nav { gap: 20px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-strip li:nth-child(3) { border-left: 0; }
  .feature-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-device { order: 2; }
  .service-grid, .product-list { grid-template-columns: 1fr; }
  .service { padding: 24px 0; }
  .service + .service { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .peppol-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .hero { padding-top: 120px; }
  .brand img, .site-header.is-scrolled .brand img { height: 44px; }
  .hero-grid > * { min-width: 0; }
  .hero-title { font-size: 2.3rem; }
  .hero-eyebrow { letter-spacing: 0.2em; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .feature-strip { width: 100%; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip li + li { border-left: 0; border-top: 1px solid var(--line); }
  .feature-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-actions .btn { flex: 1 1 100%; }
  .header-inner .btn-small { display: none; }
  .header-inner { gap: 14px; }
  .lang a { padding: 6px 6px; }
  .detail-list { grid-template-columns: 1fr; }
  .page-hero { padding-top: 124px; }
  .cta-inline { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .btn-small { padding: 0 12px; font-size: 0.86rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .band-media { transform: none !important; }
}
