/* Qtopia B.V. — site stylesheet.
   Tokens first; everything else derives from them so Claude Design can retune the look in one place. */

:root {
    /* Brand (sampled from the Qtopia logo) */
    --navy: #00265e;
    --geel: #ffc20e;

    /* Surface & text (dark theme: the three.js background needs depth behind it) */
    --bg: #06132e;
    --bg-2: #0b1f47;
    --vlak: rgba(255, 255, 255, 0.04);
    --vlak-rand: rgba(255, 255, 255, 0.10);
    --tekst: #e8edf6;
    --tekst-zacht: #a8b4cc;
    --wit: #ffffff;

    /* Type & layout */
    --font: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    --font-mono: ui-monospace, 'Cascadia Code', 'Fira Code', Consolas, monospace;
    --maat: 1120px;
    --gutter: 1.25rem;
    --radius: 12px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--tekst);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ─── three.js background canvas ────────────────────────────── */
#bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* Soft vignette so text stays readable over the animation */
#bg-shade {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(6, 19, 46, 0.15) 0%, rgba(6, 19, 46, 0.75) 70%, rgba(6, 19, 46, 0.95) 100%);
}

/* Everything else sits above the canvas */
header, main, footer { position: relative; z-index: 2; }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.15; color: var(--wit); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { max-width: 68ch; }
p + p { margin-top: 1rem; }
a { color: var(--geel); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--wit); }
.lead { font-size: 1.2rem; color: var(--tekst-zacht); }
.eyebrow { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--geel); margin-bottom: 0.75rem; }
.zacht { color: var(--tekst-zacht); }
.todo { color: var(--geel); font-family: var(--font-mono); font-size: 0.85rem; }

/* ─── Layout ────────────────────────────────────────────────── */
.wrap { max-width: var(--maat); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 5rem 0; }
.section + .section { border-top: 1px solid var(--vlak-rand); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.kaart {
    background: var(--vlak);
    border: 1px solid var(--vlak-rand);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.kaart h3 { margin-top: 0; }
.kaart .bewijs { display: block; margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--tekst-zacht); }

.tabel { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.tabel th, .tabel td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--vlak-rand); vertical-align: top; }
.tabel th { color: var(--wit); font-weight: 600; }

/* Certification logos are dark artwork made for white pages, so each sits on a white tile */
.certs { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.certs li { background: var(--wit); border-radius: 8px; padding: 0.75rem 1rem; display: flex; align-items: center; }
.certs img { height: 52px; width: auto; display: block; }

dl.qa dt { color: var(--wit); font-weight: 600; margin-top: 1.5rem; }
dl.qa dd { margin-top: 0.35rem; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--geel); color: var(--navy); }
.btn-primary:hover { background: #ffd04a; }
.btn-ghost { border-color: var(--vlak-rand); color: var(--wit); }
.btn-ghost:hover { border-color: var(--geel); }
.acties { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ─── Header / nav ──────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(6, 19, 46, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--vlak-rand);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.logo img { height: 34px; width: auto; display: block; }
.logo { display: inline-flex; align-items: center; }

.nav-toggle { display: none; background: none; border: 1px solid var(--vlak-rand); color: var(--wit); border-radius: 8px; padding: 0.5rem 0.75rem; font: inherit; cursor: pointer; }

.nav ul { list-style: none; display: flex; gap: 1.75rem; align-items: center; }
.nav a { color: var(--tekst); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--geel); border-radius: 2px; transform: scaleX(0); transition: transform 0.2s; }
.nav a:hover { text-decoration: none; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.relax { font-family: var(--font-mono); font-size: 0.8rem; color: var(--geel); letter-spacing: 0.06em; }
.nav a.cta { background: var(--geel); color: var(--navy); padding: 0.5rem 1rem; border-radius: 999px; }
.nav a.cta::after { display: none; }

@media (max-width: 820px) {
    .nav-toggle { display: inline-block; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg-2); border-bottom: 1px solid var(--vlak-rand); padding: 1rem var(--gutter) 1.5rem; }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero { padding: 7rem 0 5rem; min-height: 70vh; display: flex; align-items: center; }
.hero p.lead { margin-top: 1.25rem; max-width: 60ch; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--vlak-rand); padding: 3rem 0; color: var(--tekst-zacht); font-size: 0.9rem; background: rgba(6, 19, 46, 0.85); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--tekst); }

/* ─── Arcade (relax page) ───────────────────────────────────── */
.arcade { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .arcade { grid-template-columns: 280px minmax(0, 1fr); } }
.arcade-menu { display: grid; gap: 0.75rem; align-content: start; }
.arcade-menu button {
    text-align: left; font: inherit; cursor: pointer;
    background: var(--vlak); border: 1px solid var(--vlak-rand); color: var(--tekst);
    padding: 1rem; border-radius: var(--radius);
}
.arcade-menu button[aria-pressed="true"] { border-color: var(--geel); color: var(--wit); }
.arcade-menu small { display: block; color: var(--tekst-zacht); }
.arcade-stage { display: grid; gap: 0.75rem; justify-items: center; }
.arcade-stage canvas {
    width: 100%; max-width: 640px; aspect-ratio: 1 / 1;
    background: #000; border: 1px solid var(--vlak-rand); border-radius: var(--radius);
    image-rendering: pixelated; touch-action: none;
}
.arcade-hud { display: flex; gap: 1.5rem; font-family: var(--font-mono); font-size: 0.9rem; color: var(--tekst-zacht); flex-wrap: wrap; justify-content: center; }
.arcade-hud b { color: var(--geel); }
.arcade-help { font-size: 0.85rem; color: var(--tekst-zacht); text-align: center; max-width: 60ch; }

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .nav a::after { transition: none; }
}
