:root {
  --bg-top: #120d29;
  --bg-bottom: #050a17;
  --cyan: #73e0ff;
  --pink: #ff6ba8;
  --violet: #ad8cff;
  --amber: #ffc259;
  --lime: #8cffad;
  --soft: #d9e0f2;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .6);
  --faint: rgba(255, 255, 255, .42);
  --glass: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .08);
  --radius: 24px;
  --accent: var(--cyan);
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- achtergrond ---------- */
.bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(40px); will-change: transform; }
.b1 {
  width: 70vmax; height: 70vmax; left: -28vmax; top: -32vmax;
  background: radial-gradient(circle, rgba(77, 204, 255, .38), transparent 62%);
  animation: drift1 28s ease-in-out infinite alternate;
}
.b2 {
  width: 60vmax; height: 60vmax; right: -30vmax; top: 18vh;
  background: radial-gradient(circle, rgba(255, 90, 160, .28), transparent 62%);
  animation: drift2 34s ease-in-out infinite alternate;
}
.b3 {
  width: 75vmax; height: 75vmax; left: -10vmax; bottom: -45vmax;
  background: radial-gradient(circle, rgba(140, 100, 255, .30), transparent 62%);
  animation: drift3 40s ease-in-out infinite alternate;
}
.gridlines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-10vw, 10vh) scale(1.12); } }
@keyframes drift3 { to { transform: translate(12vw, -8vh) scale(1.05); } }

/* ---------- layout ---------- */
.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 64px 20px 72px; }

.eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--cyan);
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 72px); line-height: 1; letter-spacing: -.035em; font-weight: 800;
  background: linear-gradient(95deg, #fff 35%, var(--cyan) 70%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 640px; margin: 0 0 36px; color: var(--muted); font-size: 16.5px; line-height: 1.6; }

.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 70px -36px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* ---------- hero ---------- */
.hero { display: flex; align-items: center; gap: 32px; padding: 28px 32px; margin-bottom: 18px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.ring { position: relative; flex: 0 0 140px; width: 140px; height: 140px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: rgba(255, 255, 255, .08); }
.ring .progress {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 70%, transparent));
}
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font-size: 36px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-label span { margin-top: 4px; font-size: 12px; color: var(--muted); }

.hero-text { min-width: 0; position: relative; z-index: 1; }
.hero-text p { margin: 0; }
.ip { margin: 6px 0 4px !important; font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; letter-spacing: -.02em; word-break: break-all; }
.place { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.chip {
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
}
.chip:first-child { background: color-mix(in srgb, var(--pink) 18%, transparent); border-color: color-mix(in srgb, var(--pink) 40%, transparent); }
.status { font-size: 13px; color: var(--accent); }
.status.busy { animation: pulse 1.2s ease-in-out infinite; }

/* ---------- kaarten ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .grid .wide { grid-column: 1 / -1; }
}
.card { padding: 20px 22px 12px; }
.card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.dot {
  flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 18px var(--accent);
}
.card h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.card .sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.rows { display: flex; flex-direction: column; }
.wide .rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 28px; }
.row {
  padding: 10px 10px; margin: 0 -10px; border-radius: 12px; cursor: pointer;
  border-bottom: 1px solid var(--line); transition: background .15s ease;
}
.row:last-child { border-bottom: 0; }
.row:hover, .row:focus-visible { background: rgba(255, 255, 255, .05); outline: none; }
.row.static { cursor: default; }
.row.static:hover { background: none; }
.row.full { grid-column: 1 / -1; }
.k { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.v { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.v.mono { font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, .9); }
.v.loading { color: var(--muted); animation: pulse 1.2s ease-in-out infinite; }
.v.warn { color: var(--amber); }
.v.prose { color: rgba(255, 255, 255, .78); font-size: 14px; }

/* ---------- knop, noot, toast ---------- */
.actions { display: flex; justify-content: center; margin: 40px 0 18px; }
.pill {
  appearance: none; border: 0; cursor: pointer;
  padding: 16px 34px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 700; color: #0a0f1f;
  background: linear-gradient(135deg, #8beaff, var(--cyan));
  box-shadow: 0 0 0 5px rgba(115, 224, 255, .18), 0 14px 40px -12px rgba(115, 224, 255, .6);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 0 0 7px rgba(115, 224, 255, .2), 0 18px 48px -12px rgba(115, 224, 255, .7); }
.pill:active { transform: translateY(0); }
.pill:disabled { opacity: .55; cursor: progress; }
.note { max-width: 560px; margin: 0 auto; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--faint); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 10;
  padding: 11px 20px; border-radius: 999px;
  background: rgba(225, 245, 255, .96); color: #0a0f1f; font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- animaties ---------- */
.reveal { opacity: 0; transform: translateY(26px); animation: up .75s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- mobiel ---------- */
@media (max-width: 640px) {
  .wrap { padding: 40px 16px 56px; }
  .hero { flex-direction: column; text-align: center; padding: 26px 20px; gap: 20px; }
  .chips { justify-content: center; }
  .card { padding: 18px 18px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .reveal, .status.busy, .v.loading { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ring .progress { transition: none; }
}
