:root {
  --bg: #050914; --navy: #0B1736; --navy-2: #0D1B44; --ink: #F3F6FC; --muted: #9FB0D3; --line: rgba(160, 185, 235, .16);
  --accent: #EE7A12; --accent-2: #ff805b; --ok: #3ddc97; --risk: #ff6b6b;
  --glass: rgba(10, 20, 46, .52); --f-display: "Sora", "Segoe UI", system-ui, sans-serif; --f-body: "Figtree", system-ui, sans-serif; --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(1200px 700px at 70% 45%, #13234D 0%, #0B1736 38%, #050914 78%); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-gl { background: radial-gradient(520px 520px at 72% 46%, rgba(238,122,18,.38), rgba(238,122,18,0) 70%), radial-gradient(1200px 700px at 70% 45%, #13234D 0%, #0B1736 38%, #050914 78%); }
#core { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .06; background-image: radial-gradient(rgba(255,255,255,.7) .6px, transparent .6px); background-size: 3px 3px; }
.scanline { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 0%, rgba(255,128,91,.05) 50%, transparent 100%); height: 30vh; animation: scan 7s linear infinite; }
@keyframes scan { from { transform: translateY(-30vh); } to { transform: translateY(130vh); } }

.shell { position: relative; z-index: 2; min-height: calc(100vh - 56px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 460px); gap: 48px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 48px 32px 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.brand img { border-radius: 12px; background: #fff; padding: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px rgba(238,122,18,.25); }
.brand b { display: block; font: 600 16px var(--f-display); letter-spacing: -.2px; }
.brand small { color: var(--muted); font-size: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #ffb38f; margin: 0 0 18px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(255,128,91,.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255,128,91,0); } }
.headline { font: 700 clamp(38px, 5.2vw, 72px)/1.02 var(--f-display); letter-spacing: -2.5px; margin: 0; max-width: 12ch; }
.headline span { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(18px); animation: reveal .9s cubic-bezier(.2,.7,.2,1) forwards; }
.headline span:nth-child(2) { animation-delay: .18s; } .headline span:nth-child(3) { animation-delay: .36s; }
.headline .accent { background: linear-gradient(92deg, #ffd0a8, var(--accent-2) 40%, var(--accent) 70%, #ffb38f); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: reveal .9s cubic-bezier(.2,.7,.2,1) .36s forwards, sheen 6s linear 1.4s infinite; }
@keyframes reveal { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes sheen { to { background-position: -200% 0; } }
.lede { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 22px 0 26px; opacity: 0; animation: reveal .8s .6s forwards; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 28px; opacity: 0; animation: reveal .8s .75s forwards; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); font-size: 13px; color: #d8e1f5; backdrop-filter: blur(6px); }
.chips svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ticker { font: 400 11px var(--f-mono); color: #6f84b3; letter-spacing: .06em; min-height: 18px; }
.ticker span::after { content: "▍"; color: var(--accent-2); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.card { position: relative; border-radius: 24px; padding: 30px 30px 26px; background: var(--glass); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); opacity: 0; transform: translateY(16px) scale(.985); animation: reveal 1s .25s cubic-bezier(.2,.7,.2,1) forwards; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(255,128,91,.9) 80%, rgba(238,122,18,.2) 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 6s linear infinite; pointer-events: none; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --a: 360deg; } }
.card-glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -120px; top: -140px; background: radial-gradient(circle, rgba(238,122,18,.28), transparent 70%); pointer-events: none; }
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 26px; position: relative; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #6f84b3; padding-top: 10px; border-top: 2px solid rgba(255,255,255,.1); transition: color .3s, border-color .3s; }
.steps li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); font-size: 10px; }
.steps li.on { color: #ffd6bd; border-color: var(--accent-2); }
.steps li.on span { background: var(--accent); border-color: var(--accent); color: #1b1206; }
.steps li.done { color: var(--muted); border-color: rgba(255,128,91,.5); }

.step { display: none; flex-direction: column; gap: 14px; }
.step.is-active { display: flex; animation: stepIn .5s cubic-bezier(.2,.7,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.step h2 { font: 700 28px/1.15 var(--f-display); letter-spacing: -.8px; margin: 0; }
.step h2 em, .headline em { color: var(--accent-2); font-style: normal; }
.sub { color: var(--muted); margin: -6px 0 6px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child { font-size: 12.5px; color: #c6d2ec; font-weight: 500; }
input { width: 100%; font: 500 15px var(--f-body); color: var(--ink); background: rgba(3, 8, 22, .55); border: 1px solid rgba(160,185,235,.22); border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(255,128,91,.16); background: rgba(3,8,22,.75); }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px; }
.reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.reveal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.reveal[aria-pressed="true"] { color: var(--accent-2); }
.go { position: relative; margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 0; border-radius: 14px; padding: 15px 18px; font: 600 15px var(--f-display); color: #1b1206; cursor: pointer; background: linear-gradient(100deg, #ffb38f, var(--accent-2) 35%, var(--accent)); box-shadow: 0 12px 30px rgba(238,122,18,.32), inset 0 1px 0 rgba(255,255,255,.45); overflow: hidden; transition: transform .15s, box-shadow .2s, filter .2s; }
.go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.go:hover::after { transform: translateX(120%); }
.go:hover { box-shadow: 0 16px 40px rgba(238,122,18,.45), inset 0 1px 0 rgba(255,255,255,.45); }
.go:active { transform: scale(.985); }
.go .arrow { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #1b1206; stroke: #ffb38f; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.go:hover .arrow { transform: translateX(3px); }
.go .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(27,18,6,.25); border-top-color: #1b1206; animation: spin .7s linear infinite; }
.go.busy .spin { display: block; } .go.busy .arrow { display: none; } .go.busy { cursor: progress; filter: saturate(.8); }
@keyframes spin { to { transform: rotate(360deg); } }
.hint, .mini { font-size: 12.5px; color: #7f93bf; margin: 0; }
.link { background: none; border: 0; color: var(--muted); font: 500 13px var(--f-body); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; align-self: center; }
.link:hover { color: var(--ink); }
.msg { min-height: 20px; margin: 14px 0 0; font-size: 13.5px; color: #ffb4a8; }
.msg.ok { color: var(--ok); }

.digits-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.digits-set legend { font-size: 12.5px; color: #c6d2ec; font-weight: 500; margin-bottom: 8px; padding: 0; }
.digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.digits input { text-align: center; font: 600 24px var(--f-mono); padding: 12px 0; border-radius: 12px; caret-color: var(--accent-2); }
.digits input:nth-child(3) { margin-right: 8px; }
.digits.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97); }
.digits.shake input { border-color: var(--risk); box-shadow: 0 0 0 4px rgba(255,107,107,.15); }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
.digits.good input { border-color: var(--ok); box-shadow: 0 0 0 4px rgba(61,220,151,.15); }
.timer { height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.timer span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 100%; transform-origin: left; }

.qr-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.qr-frame { position: relative; width: 156px; height: 156px; border-radius: 14px; background: #fff; padding: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 14px 40px rgba(238,122,18,.25); overflow: hidden; }
.qr-frame canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.qr-scan { position: absolute; left: 0; right: 0; height: 28%; top: -30%; background: linear-gradient(180deg, transparent, rgba(255,128,91,.35), transparent); animation: qrscan 2.6s ease-in-out infinite; }
@keyframes qrscan { 0% { top: -30%; } 60%, 100% { top: 105%; } }
.qr-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.secret { font: 500 13px/1.7 var(--f-mono); color: #ffd6bd; background: rgba(3,8,22,.55); border: 1px dashed rgba(255,128,91,.4); border-radius: 10px; padding: 8px 10px; word-break: break-all; letter-spacing: .05em; }
.ghost { display: inline-flex; justify-content: center; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--ink); border-radius: 10px; padding: 8px 10px; font: 500 12.5px var(--f-body); cursor: pointer; text-decoration: none; }
.ghost:hover { border-color: var(--accent-2); }
.meter { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: -4px; }
.meter span { display: block; height: 100%; width: 0; background: var(--risk); transition: width .3s, background .3s; }
.granted { display: grid; place-items: center; margin: 8px 0 4px; }
.granted svg { width: 88px; height: 88px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 18px rgba(61,220,151,.45)); }
.granted circle { stroke-dasharray: 176; stroke-dashoffset: 176; animation: draw .8s ease forwards; }
.granted path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
#step-done { align-items: center; text-align: center; }
body.leaving .card { animation: leave .7s cubic-bezier(.6,0,.4,1) forwards; }
body.leaving .intro { transition: opacity .6s, filter .6s; opacity: 0; filter: blur(10px); }
@keyframes leave { to { opacity: 0; transform: scale(1.06); filter: blur(12px); } }

.foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; padding: 14px 32px 20px; font-size: 12px; color: #6f84b3; }
.mono { font-family: var(--f-mono); letter-spacing: .04em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

@media (max-width: 920px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 28px 18px 16px; }
  .brand { margin-bottom: 22px; }
  .intro { padding-top: 36vh; }
  .headline { font-size: clamp(34px, 9vw, 52px); letter-spacing: -1.5px; }
  .lede { font-size: 15px; margin: 14px 0 18px; }
  .ticker { display: none; }
}
@media (max-width: 480px) {
  .intro { padding-top: 27vh; }
  .lede, .chips { display: none; }
  .headline { font-size: 34px; }
  .eyebrow { margin-bottom: 10px; font-size: 10px; }
  .card { padding: 22px 16px 18px; border-radius: 20px; }
  .steps li { font-size: 9.5px; gap: 5px; }
  .digits { gap: 5px; } .digits input { font-size: 20px; padding: 10px 0; } .digits input:nth-child(3) { margin-right: 4px; }
  .qr-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .qr-side { width: 100%; }
  .step h2 { font-size: 24px; }
  .chips li { font-size: 12px; padding: 7px 10px; }
  .foot { padding: 12px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .scanline { display: none; }
}

/* eenvoudige meldingspagina's (403/404) */
body.plain { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.plain-card { max-width: 440px; background: var(--glass); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 28px; }
.plain-card h1 { font: 700 26px var(--f-display); margin: 0 0 8px; }
.plain-card a { color: var(--accent-2); }

[hidden] { display: none !important; }

/* herstelcodes, wachtwoord vergeten en admin-ingang */
.codes { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font: 500 14px/1.6 var(--f-mono); color: #ffd6bd; background: rgba(3,8,22,.55); border: 1px dashed rgba(255,128,91,.4); border-radius: 10px; letter-spacing: .06em; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #c6d2ec; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent-2); }
.recover { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.03); }
.hint a { color: inherit; text-underline-offset: 3px; }
.hint a:hover { color: var(--ink); }
.admin-badge { align-self: flex-start; margin: 0 0 -4px; padding: 3px 10px; border-radius: 999px; font: 600 11.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #ffd6bd; border: 1px solid rgba(255,128,91,.45); background: rgba(255,128,91,.08); }
@media (max-width: 420px) { .codes { grid-template-columns: 1fr; } }
.recover[hidden] { display: none; }

/* rustig: geen scanlijn of korrel, zachtere achtergrond */
.scanline, .grain { display: none !important; }
#core { opacity: .7; }

/* ---------- agent-netwerk (vervangt de wereldbol) ---------- */
body.no-gl { background: radial-gradient(1100px 700px at 30% 40%, #0b2340, #050b18 70%); }
.agent-net { margin: 6px 0 22px; opacity: 0; animation: reveal .9s .5s forwards; }
.net-frame { position: relative; height: 340px; border: 1px solid rgba(247,140,20,.55); border-radius: 18px; background: linear-gradient(180deg, rgba(10,30,52,.85), rgba(6,18,34,.9)); overflow: hidden; box-shadow: 0 30px 80px -30px #000c, inset 0 0 0 1px rgba(120,190,255,.06); }
.net-frame::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(120,190,255,.12) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; }
.net-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid rgba(120,190,255,.14); font: 500 10.5px var(--f-mono); letter-spacing: .14em; color: #8fb3d9; }
.net-bar .dots { display: flex; gap: 6px; } .net-bar .dots i { width: 7px; height: 7px; border-radius: 50%; background: #3fb6e8; } .net-bar .dots i:first-child { background: var(--accent); } .net-bar .dots i:last-child { background: #5b7fa6; }
.net-tag { color: var(--accent-2); }
.net-lines { position: absolute; inset: 37px 0 0 0; width: 100%; height: calc(100% - 37px); z-index: 1; }
.net-lines .l { fill: none; stroke-width: 1.4; stroke-dasharray: 6 6; animation: flow 1.6s linear infinite; }
.net-lines .b { stroke: rgba(63,182,232,.75); } .net-lines .o { stroke: rgba(247,140,20,.8); animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.core { position: absolute; z-index: 2; left: 50%; top: calc(50% + 18px); width: 126px; height: 126px; translate: -50% -50%; display: grid; place-items: center; }
.core .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(247,140,20,.85); box-shadow: 0 0 34px rgba(247,140,20,.35), inset 0 0 26px rgba(63,182,232,.25); }
.core .r2 { inset: -18px; border: 1px dashed rgba(63,182,232,.45); box-shadow: none; animation: spin 24s linear infinite; }
.core-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100px; height: 100px; justify-content: center; border-radius: 50%; background: radial-gradient(circle, #10314f, #071a2e 70%); }
.core-in img { border-radius: 12px; filter: drop-shadow(0 0 12px rgba(247,140,20,.45)); }
.core-in small { font: 600 8.5px var(--f-mono); letter-spacing: .12em; color: #cfe2f7; }
@keyframes spin { to { rotate: 360deg; } }
.agent { position: absolute; z-index: 2; width: 168px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(120,190,255,.32); background: linear-gradient(180deg, rgba(15,42,68,.95), rgba(9,26,44,.95)); box-shadow: 0 10px 26px -12px #000; animation: float 6s ease-in-out infinite; }
.agent small { display: block; font: 600 8.5px var(--f-mono); letter-spacing: .12em; color: #69b7dd; margin-bottom: 6px; }
.agent b { display: flex; align-items: center; gap: 7px; font: 600 13px var(--f-display); color: #f3f6fc; }
.agent b svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.agent span { display: block; font-size: 11.5px; color: #9fb3d3; margin-top: 4px; }
.a1 { left: 3%; top: 64px; } .a5 { left: 3%; bottom: 22px; animation-delay: -3s; }
.a2 { right: 3%; top: 56px; animation-delay: -1.5s; } .a3 { right: 3%; top: 150px; animation-delay: -4s; } .a4 { right: 3%; bottom: 14px; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-5px); } }
.intro .headline { font-size: clamp(32px, 3.6vw, 52px); }
@media (max-width: 1100px) { .agent { width: 146px; } .agent span { display: none; } }
@media (max-width: 920px) { .agent-net { display: none; } .intro { padding-top: 0 !important; } }
@media (prefers-reduced-motion: reduce) { .net-lines .l, .core .r2, .agent { animation: none; } }
