:root {
  --bg: #0b0f14;
  --panel: #141a21;
  --accent: #4fb0ff;
  --text: #e6f2ff;
  --muted: #9db6cc;
  --ok: #38ef7d;
  --warn: #ffd93d;
  --down: #ff5f5f;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  --menu-bg: var(--surface, #0c0c0c);
  --menu-border: var(--border, #2a2a2a);
  --menu-hover: rgba(255,255,255,.06);
  --menu-active: rgba(124,92,255,.14); /* accent wash */
  --menu-text: var(--text, #eaeaea); 
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

.bg .decor {
  position: fixed;
  border-radius: 9999px;
  filter: blur(100px);
  opacity: 0.15;
  z-index: 0;
}
.bg .decor-1 { width: 420px; height: 420px; background: #caa463; top: -100px; left: -80px; }
.bg .decor-2 { width: 380px; height: 380px; background: #704214; bottom: -100px; right: -60px; }

.container {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 80px auto;
  padding: 0 20px;
}

.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.header h1 { font-weight: 700; letter-spacing: 0.5px; color: var(--text); }
.header .accent { color: var(--accent); }

/* NAV */
.site-header { position: sticky; top: 0; backdrop-filter: saturate(120%) blur(6px); background: rgba(13,13,13,0.6); border-bottom: 1px solid var(--border); z-index: 5; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.logo-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.logo-text { letter-spacing: .5px; }
.nav { display: none; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); }
@media (min-width: 820px){ .nav{ display:flex; } }

/* HERO */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
@media (max-width: 880px){ .hero{ grid-template-columns: 1fr; } }
.hero-left h1 { margin: 14px 0 8px; font-size: clamp(28px, 5vw, 42px); line-height: 1.1; }
.hero .accent { color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); padding: 8px 12px; border-radius: 999px; font-size: 14px; }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.sub { margin-top: 0; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 4px; }

/* BUTTONS */
.btn { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border); color: var(--text); padding: 10px 14px; border-radius: 12px; cursor: pointer; transition: all 0.2s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.12); }
.btn.primary { background: linear-gradient(90deg, var(--accent), #f1d09c); color: #1a1207; border-color: transparent; }
.btn.ghost { background: rgba(255,255,255,.04); }

/* CARDS / GENERIC */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .items { grid-template-columns: 1fr; } }
.item { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 14px; padding: 16px; transition: transform 0.2s ease, border-color 0.2s ease; }
.item:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.12); }
.item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.item h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--accent); }
.badge { font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); font-weight: 500; }
.badge.ok { background: rgba(52, 211, 153, 0.15); border-color: rgba(52, 211, 153, 0.35); color: #9bf2ca; }
.badge.warn { background: rgba(250, 204, 21, 0.18); border-color: rgba(250, 204, 21, 0.35); color: #fff1b8; }
.badge.down { background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.35); color: #ffc4c4; }
.meta { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 12px 0 4px; }
.tags li { font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--border); color: var(--muted); }

/* SECTION */
.section { padding-top: 24px; }
.section-head { margin-bottom: 16px; }
.section h2 { margin: 0 0 6px; font-size: clamp(22px, 3.5vw, 30px); }

/* HERO CARD */
.hero-card-title { margin: 0 0 6px; }
.footer { display: flex; align-items: center; gap: 14px; margin-top: 22px; justify-content: space-between; }
.timer { display: flex; align-items: center; gap: 10px; width: 100%; }
.bar { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #f1d09c); transition: width 0.3s ease; }
.time { font-variant-numeric: tabular-nums; color: var(--muted); }

/* STACK GRID */
.stack-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 980px){ .stack-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .stack-grid { grid-template-columns: 1fr; } }
.stack-card h3 { margin: 0 0 8px; color: var(--accent); }

/* FORM */
.contact-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px){ .contact-form .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; color: var(--muted); }
input, textarea { background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 10px 12px; outline: none; }
input:focus, textarea:focus { border-color: rgba(255, 255, 255, 0.2); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 10px; }

/* SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  overflow: hidden;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #f1d09c);
  transition: width .12s linear;
}

/* optioneel: mini “glow” tijdens klik */
body.is-scrolling .scroll-progress span {
  box-shadow: 0 0 12px var(--accent);
}

/* SOCIAL CARDS */
.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width:720px){ .socials { grid-template-columns: 1fr; } }

/* SOCIAL CARDS */
.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width:720px){ .socials { grid-template-columns: 1fr; } }

.social-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.social-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.social-card .icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #f1d09c);
  color: #1a1207;
}
.social-card.discord .icon { background: linear-gradient(135deg, #5865f2, #8ea1f2); color: #fff; }
.social-card.github .icon { background: linear-gradient(135deg, #24292e, #57606a); color: #fff; }
.social-card .info { display: grid; }
.social-card .info strong { color: var(--text); line-height: 1.1; }
.social-card .info span { color: var(--muted); font-size: 14px; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 60;
  font-weight: 600;
}
.toast.ok { border-color: rgba(52, 211, 153, 0.35); }
.toast.err { border-color: rgba(239, 68, 68, 0.35); }

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: .75rem;
}

/* knop zelf */
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border: 1px solid var(--menu-border);
  border-radius: .8rem;
  background: var(--card, #111);
  color: var(--menu-text);
  cursor: pointer;
  transition: box-shadow .2s ease, transform .08s ease;
}
.lang-trigger:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lang-switch.open .lang-trigger{
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
}

/* dropdown */
.lang-menu{
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  min-width: 230px;
  margin: 0;
  padding: .35rem;
  list-style: none;
  border: 1px solid var(--menu-border);
  border-radius: .9rem;
  background: var(--menu-bg);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  display: none;
  z-index: 50;

  /* open anim */
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease;
  backdrop-filter: blur(6px); /* glossy */
}
.lang-switch.open .lang-menu{
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* items als 'buttons' */
.lang-menu li{
  border-radius: .6rem;
}
.lang-menu a{
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .7rem;
  border-radius: .6rem;
  color: var(--menu-text);
  text-decoration: none;     /* <- weg met underline/paars */
  outline: none;
}
.lang-menu a:focus-visible{
  box-shadow: inset 0 0 0 2px var(--accent);
}

/* hover / active */
.lang-menu li:hover{
  background: var(--menu-hover);
}
.lang-menu li[aria-selected="true"]{
  background: var(--menu-active);
}

/* checkmark bij geselecteerde taal */
.lang-menu li[aria-selected="true"] a::after{
  content: "✓";
  margin-left: auto;
  font-size: .95rem;
  opacity: .9;
}

/* subtiele divider (optioneel) */
/*
.lang-menu li + li{
  margin-top: .15rem;
}
*/

/* compacte variant op mobiel */
@media (max-width: 640px){
  .lang-menu{ min-width: 180px; }
  .lang-trigger{ padding: .5rem .75rem; }
}

/* respecteer reduced motion */
@media (prefers-reduced-motion: reduce){
  .lang-menu,
  .lang-trigger{
    transition: none !important;
  }
}

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; max-width: 980px; margin: 0 auto; }
.footer-inner .links { display: flex; gap: 14px; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
