:root {
  --bg: #0b0d12;
  --surface: #151923;
  --border: #252b3a;
  --text: #e8ebf2;
  --muted: #8a93a8;
  --accent: #5b8cff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(11, 13, 18, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.site-header nav a { color: var(--muted); text-decoration: none; margin-left: 1.5rem; }
.site-header nav a:hover { color: var(--text); }

.hero { text-align: center; padding: 6rem 1.5rem 4rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.15; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--muted); margin: 1rem 0 2rem; font-size: 1.1rem; }

.btn {
  display: inline-block; padding: .75rem 1.5rem;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 8px; text-decoration: none; cursor: pointer; font: inherit;
}
.btn:hover { filter: brightness(1.1); }

.container { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.container h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.about p { color: var(--muted); max-width: 650px; }
.muted { color: var(--muted); }

.controls { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
#search {
  flex: 1 1 220px; padding: .7rem 1rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; font: inherit;
}
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  padding: .5rem 1rem; background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font: inherit;
}
.filter-btn.active, .filter-btn:hover { color: var(--text); border-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; cursor: pointer; text-align: left; color: inherit; font: inherit;
  transition: transform .15s, border-color .15s;
}
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: var(--accent); outline: none; }
.card .icon { font-size: 2.5rem; margin-bottom: .75rem; }
.icon img { display: block; width: 100%; max-width: 160px; height: auto; margin: 0 auto; }
.modal-icon { font-size: 3rem; }
.modal-icon img { max-width: 220px; }
.card h3 { margin-bottom: .25rem; }
.card .tag { color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.card p { color: var(--muted); margin-top: .5rem; font-size: .95rem; }

dialog {
  margin: auto; width: min(560px, 92vw); padding: 2rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 16px;
}
dialog::backdrop { background: rgba(0, 0, 0, .65); }
.modal-close {
  position: absolute; top: .75rem; right: 1rem;
  background: none; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer;
}
#modal-content h3 { font-size: 1.6rem; margin: .25rem 0 .75rem; }
#modal-content ul { margin: 1rem 0 1.5rem 1.2rem; color: var(--muted); }
.specs { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.specs td { padding: .5rem 0; border-top: 1px solid var(--border); }
.specs td:first-child { color: var(--muted); width: 40%; }

.site-footer { text-align: center; padding: 2rem; color: var(--muted); border-top: 1px solid var(--border); }

.manual .intro { margin-bottom: 1.5rem; }
.manual details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: .75rem; max-width: 800px; }
.manual summary { cursor: pointer; font-weight: 600; }
.manual details[open] summary { margin-bottom: .75rem; color: var(--accent); }
.manual p, .manual li { color: var(--muted); margin-bottom: .5rem; }
.manual ul, .manual ol { margin: 0 0 .5rem 1.2rem; }
.manual b { color: var(--text); }
.manual .note { font-size: .9rem; }

.examples-title { margin-top: 1.5rem; }
.table-wrap { overflow-x: auto; }
.examples th { text-align: left; font-size: .8rem; color: var(--muted); padding: .5rem .5rem .5rem 0; }
.examples td:first-child { width: auto; color: var(--text); }
.examples td { padding-right: .5rem; font-size: .9rem; }
.examples-note { font-size: .8rem; margin-top: .5rem; }

.manual-btn { margin-top: 1.5rem; }
.manual-back { text-decoration: none; }

.defaults { max-width: 520px; margin-bottom: 1rem; }
.defaults td:last-child { color: var(--text); }

html[lang="nl"] [data-l="en"], html[lang="en"] [data-l="nl"] { display: none; }
.lang-switch { margin-left: 1.5rem; display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.lang-btn { background: none; border: 0; color: var(--muted); padding: .25rem .75rem; cursor: pointer; font: inherit; font-size: .85rem; }
.lang-btn.active { background: var(--accent); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-item { padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; transition: border-color .15s; }
.gallery-item:hover, .gallery-item:focus-visible { border-color: var(--accent); outline: none; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lightbox { width: min(1000px, 94vw); }
.lightbox img { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: 8px; }
.lightbox p { text-align: center; margin-top: .75rem; }
