/* Lettertypen lokaal (geen verzoeken naar Google). Variabele fonts: één bestand voor alle gewichten. */
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #090b0e;
  --bg-2: #0d1014;
  --panel: #11151a;
  --panel-2: #161b22;
  --line: #232a33;
  --line-2: #323b47;
  --text: #e9edf2;
  --muted: #8d98a6;
  --accent: #d4ff3a;
  --accent-ink: #0c0f06;
  --insitu: #49b6c9;
  --bearing: #ff8a3d;
  --danger: #ff6b5e;
  --radius: 14px;
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }

/* Navigatie */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav--wide .wrap { width: calc(100% - 40px); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.08em; font-size: 15px; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.brand span span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: var(--accent-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-stage { position: absolute; inset: 0; }
.hero-stage canvas { width: 100% !important; height: 100% !important; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 4%, transparent 46%),
    linear-gradient(to right, color-mix(in srgb, var(--bg) 94%, transparent), color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 72%);
}
.hero-copy { position: relative; z-index: 2; padding: calc(var(--nav-h) + 48px) 0 72px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { font-size: clamp(44px, 7.4vw, 104px); max-width: 11ch; margin: 22px 0 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { max-width: 46ch; color: #b9c2ce; font-size: clamp(16px, 1.4vw, 19px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-hint {
  position: absolute; right: 24px; bottom: 28px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* Kengetallenstrook */
.specs { border-block: 1px solid var(--line); background: var(--bg-2); }
.specs .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { padding: 30px 24px; border-left: 1px solid var(--line); }
.spec:first-child { border-left: 0; padding-left: 0; }
.spec b { display: block; font-family: var(--mono); font-size: clamp(24px, 3vw, 38px); font-weight: 500; letter-spacing: -0.03em; }
.spec b small { font-size: 0.5em; color: var(--accent); margin-left: 4px; }
.spec span { font-size: 13px; color: var(--muted); }

/* Secties */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 58px); }
.section-head p { color: var(--muted); font-size: 18px; max-width: 58ch; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg); padding: 36px; display: grid; gap: 14px; align-content: start; transition: background 0.25s; }
.card:hover { background: var(--panel); }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { font-size: 24px; }
.card p { color: var(--muted); }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.card li { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: #b9c2ce; }

/* Brugselector-teaser */
.teaser { background: var(--bg-2); border-block: 1px solid var(--line); }
.teaser .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.teaser h2 { font-size: clamp(32px, 4.4vw, 58px); margin: 18px 0 20px; }
.teaser p { color: var(--muted); font-size: 18px; }
.steps { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li::before { content: '0' counter(s); font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 15px; }
.teaser-frame {
  position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  background: var(--bg);
}
.teaser-frame canvas { width: 100% !important; height: 100% !important; }
.teaser-frame .tag {
  position: absolute; left: 16px; top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid var(--line-2); color: var(--muted);
}
.teaser-frame .tag i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; box-shadow: 0 0 10px var(--accent); }

/* Werkwijze */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flow > div { border-top: 1px solid var(--line-2); padding-top: 22px; display: grid; gap: 10px; align-content: start; position: relative; }
.flow > div::before { content: ''; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--accent); }
.flow .num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.flow h3 { font-size: 21px; }
.flow p { color: var(--muted); font-size: 15px; }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; }
.contact h2 { font-size: clamp(36px, 5.6vw, 76px); margin-top: 18px; }
.contact-list { display: grid; gap: 0; }
.contact-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 19px; transition: color 0.2s, padding 0.2s; }
.contact-list a:last-child { border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--accent); padding-left: 8px; }
.contact-list small { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .specs .wrap { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(3) { border-left: 0; padding-left: 0; }
  .spec:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .teaser .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .hero-hint { display: none; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .card { padding: 26px; }
  .flow { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(to top, var(--bg) 30%, color-mix(in srgb, var(--bg) 55%, transparent) 70%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
