/* ===== "Before you enter" gate ===== */
:root {
  --bg-0: #040b1c; --bg-1: #0a1a3d;
  --navy: #0A3161; --blue: #3b6fd8; --red: #d0202f; --red-2: #b01326;
  --ink: #f5f8ff; --ink-2: #c3cde3; --muted: #8a99b8;
  --card: rgba(13, 30, 66, .72); --tile: rgba(255, 255, 255, .035); --tile-on: rgba(59, 111, 216, .14);
  --line: rgba(160, 185, 235, .16); --line-2: rgba(160, 185, 235, .28);
  --accent: #6ea1ff; --ok: #4ade80;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; min-height: 100vh; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg-0); -webkit-font-smoothing: antialiased; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
a { color: var(--accent); }

.vg-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(59, 111, 216, .28), transparent 65%),
    radial-gradient(700px 500px at 100% 100%, rgba(208, 32, 47, .16), transparent 70%),
    radial-gradient(600px 500px at 0% 80%, rgba(10, 49, 97, .55), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0)); }
.vg-bg::after { content: ""; 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: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 80%); }

.vg { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 16px 24px; }
.vg-card {
  width: 100%; max-width: 470px; padding: 30px 28px 24px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 40px 90px -30px rgba(0,0,0,.8), 0 0 120px -40px rgba(59,111,216,.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.vg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.vg-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.vg-logo img { height: 38px; width: auto; display: block; }

.vg-eyebrow { margin: 0 0 9px; text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.vg-eyebrow--accent { margin-top: 22px; color: var(--accent); }

.vg-lang { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.vg-lang__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.vg-lang__btn:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.vg-lang__btn.is-on { color: #fff; background: linear-gradient(180deg, #2a5bc0, #1b3f8f); border-color: rgba(110,161,255,.45); box-shadow: 0 8px 22px -10px rgba(59,111,216,.9); }

.vg-title { margin: 0; text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.vg-lead { margin: 10px auto 22px; max-width: 360px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.vg-lead strong { color: var(--accent); font-weight: 700; }

.vg-alert { display: flex; gap: 10px; align-items: center; padding: 11px 14px; margin-bottom: 14px; border-radius: 12px; font-size: 13.5px; color: #ffd0d4; background: rgba(208, 32, 47, .16); border: 1px solid rgba(208, 32, 47, .45); }

/* check tiles */
.vg-check, .vg-human, .vg-box { display: flex; gap: 12px; align-items: flex-start; width: 100%; margin-bottom: 12px; padding: 14px 16px; border-radius: 14px; background: var(--tile); border: 1px solid var(--line); text-align: left; transition: border-color .15s, background .15s; }
.vg-check { cursor: pointer; position: relative; }
.vg-check:hover, .vg-human:hover:not(.is-done) { border-color: var(--line-2); background: rgba(255,255,255,.05); }
.vg-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vg-check__box, .vg-human__box { position: relative; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid rgba(195, 205, 227, .5); background: rgba(0,0,0,.2); transition: background .15s, border-color .15s; display: grid; place-items: center; }
.vg-check input:checked ~ .vg-check__box { background: var(--blue); border-color: var(--blue); }
.vg-check input:checked ~ .vg-check__box::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.vg-check input:focus-visible ~ .vg-check__box, .vg-human:focus-visible .vg-human__box { outline: 3px solid rgba(110,161,255,.5); outline-offset: 2px; }
.vg-check:has(input:checked) { border-color: rgba(110,161,255,.45); background: var(--tile-on); }
.vg-check__text { display: block; min-width: 0; }
.vg-check__text strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.vg-check__text small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.vg-check__text small b { color: var(--accent); font-weight: 700; }

/* researcher type */
.vg-box { display: block; }
.vg-box__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vg-box__title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.vg-req { padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: rgba(110,161,255,.1); border: 1px solid rgba(110,161,255,.4); }
.vg-box__text { margin: 4px 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.vg-select { position: relative; }
.vg-select select { width: 100%; height: 46px; padding: 0 40px 0 14px; appearance: none; -webkit-appearance: none; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(3, 10, 26, .65); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.vg-select select:invalid, .vg-select select option[value=""] { color: var(--muted); }
.vg-select select option { color: #0f172a; background: #fff; }
.vg-select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(110,161,255,.15); }
.vg-select svg { position: absolute; right: 13px; top: 50%; margin-top: -9px; color: var(--accent); pointer-events: none; }

/* human check */
.vg-human { font: inherit; color: inherit; cursor: pointer; }
.vg-human__spin, .vg-human__tick { display: none; }
.vg-human.is-checking .vg-human__box { border-color: transparent; background: none; }
.vg-human.is-checking .vg-human__spin { display: block; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(110,161,255,.25); border-top-color: var(--accent); animation: vgspin .7s linear infinite; }
.vg-human.is-done { cursor: default; border-color: rgba(74,222,128,.45); background: rgba(74,222,128,.08); }
.vg-human.is-done .vg-human__box { background: #16a34a; border-color: #16a34a; }
.vg-human.is-done .vg-human__tick { display: block; width: 13px; height: 13px; color: #fff; stroke-width: 3.5; }
.vg-human.is-done strong { color: var(--ok); }
@keyframes vgspin { to { transform: rotate(360deg); } }

/* actions */
.vg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.vg-btn { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 13px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: filter .15s, transform .06s, opacity .2s; }
.vg-btn--enter { border: 0; color: #fff; background: linear-gradient(180deg, #e0243a, var(--red-2)); box-shadow: 0 12px 26px -12px rgba(208,32,47,.85); }
.vg-btn--enter:hover:not(:disabled) { filter: brightness(1.08); }
.vg-btn--enter:active:not(:disabled) { transform: translateY(1px); }
.vg-btn--enter:disabled { cursor: not-allowed; color: rgba(255,255,255,.45); background: rgba(208,32,47,.25); box-shadow: none; }
.vg-btn--enter.is-loading { opacity: .8; pointer-events: none; }
.vg-btn--leave { color: var(--ink); background: transparent; border: 1px solid var(--line-2); }
.vg-btn--leave:hover { background: rgba(255,255,255,.05); }
.vg-btn:focus-visible { outline: 3px solid rgba(110,161,255,.5); outline-offset: 2px; }

.vg-legal { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.vg-legal a { font-weight: 600; text-decoration: none; }
.vg-legal a:hover { text-decoration: underline; }
.vg-foot { margin: 18px 0 0; text-align: center; font-size: 12px; color: rgba(138,153,184,.7); }

@media (max-width: 480px) {
  .vg { padding: 18px 12px; justify-content: flex-start; }
  .vg-card { padding: 24px 16px 20px; border-radius: 18px; }
  .vg-title { font-size: 26px; }
  .vg-check, .vg-human, .vg-box { padding: 13px 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
