/* Sentinel portal theme — hand-written, no frameworks.
   Dark Discord-inspired: #1e1f22 / #2b2d31, blurple #5865f2,
   green #57f287, red #ed4245, yellow #fee75c. */

:root {
  --bg: #1e1f22;
  --bg-soft: #232428;
  --card: #2b2d31;
  --card-2: #313338;
  --border: #3f4147;
  --text: #dbdee1;
  --muted: #b5bac1;
  --dim: #80848e;
  --blurple: #5865f2;
  --blurple-hi: #7983f5;
  --green: #57f287;
  --red: #ed4245;
  --yellow: #fee75c;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a { color: var(--blurple-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 31, 34, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
}
.brand { font-weight: 800; font-size: 20px; color: #fff; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand .shield {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blurple), #9b59f2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(88, 101, 242, 0.35), transparent 60%),
    radial-gradient(700px 380px at 85% 20%, rgba(155, 89, 242, 0.22), transparent 60%),
    linear-gradient(180deg, #23244d 0%, var(--bg) 78%);
  border-bottom: 1px solid var(--border);
  padding: 84px 0 64px;
  text-align: center;
}
.hero h1 { font-size: 52px; margin: 0 0 12px; color: #fff; letter-spacing: -1px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--blurple-hi), #b48cf2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 9px;
  font-weight: 700; font-size: 16px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blurple); color: #fff; }
.btn-green { background: var(--green); color: #0b2b16; }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 7px; }

/* ---------- glass cards & stats ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin: 40px 0;
}
.stat {
  background: rgba(43, 45, 49, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.stat .num { font-size: 38px; font-weight: 800; color: #fff; display: block; }
.stat .num.green { color: var(--green); }
.stat .num.red { color: var(--red); }
.stat .num.yellow { color: var(--yellow); }
.stat .lbl { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin: 20px 0;
}
.card h2, .card h3 { margin-top: 0; color: #fff; }
.card.glass {
  background: rgba(43, 45, 49, 0.66);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; position: relative;
}
.step .n {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blurple), #9b59f2);
  color: #fff; font-weight: 800; display: flex;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; color: #fff; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- pills ---------- */
.pill {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}
.pill-high { background: rgba(237, 66, 69, 0.18); color: var(--red); border: 1px solid var(--red); }
.pill-watch { background: rgba(254, 231, 92, 0.14); color: var(--yellow); border: 1px solid var(--yellow); }
.pill-low { background: rgba(87, 242, 135, 0.14); color: var(--green); border: 1px solid var(--green); }
.pill-info { background: rgba(88, 101, 242, 0.16); color: var(--blurple-hi); border: 1px solid var(--blurple); }
.pill-dim { background: rgba(128, 132, 142, 0.16); color: var(--muted); border: 1px solid var(--dim); }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 1px; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
td { padding: 11px 12px; border-bottom: 1px solid #26272b; vertical-align: top; }
tr:last-child td { border-bottom: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--muted); word-break: break-all; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.tabs a {
  padding: 10px 18px; color: var(--muted); font-weight: 600; font-size: 15px;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.tabs a:hover { color: #fff; text-decoration: none; }
.tabs a.active { color: #fff; border-bottom-color: var(--blurple); }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; margin: 16px 0 6px; color: var(--text); }
input[type="text"], input[type="number"], select, textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 15px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blurple); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--blurple); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { color: var(--dim); font-size: 13px; margin-top: 4px; }

/* ---------- alerts / notes ---------- */
.note {
  border: 1px solid var(--border); border-left: 4px solid var(--blurple);
  background: rgba(88, 101, 242, 0.08); border-radius: 8px;
  padding: 14px 18px; margin: 18px 0; font-size: 14.5px;
}
.note.green { border-left-color: var(--green); background: rgba(87, 242, 135, 0.07); }
.note.red { border-left-color: var(--red); background: rgba(237, 66, 69, 0.07); }
.note.yellow { border-left-color: var(--yellow); background: rgba(254, 231, 92, 0.06); }

/* ---------- progress ---------- */
.progress { background: var(--bg); border-radius: 999px; height: 14px; overflow: hidden; border: 1px solid var(--border); }
.progress > div {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blurple), #9b59f2);
  transition: width 0.4s ease;
}

/* ---------- gate / verify ---------- */
.center-col { max-width: 680px; margin: 0 auto; }
.big-icon { font-size: 54px; margin-bottom: 8px; }
.check-list { list-style: none; padding: 0; margin: 18px 0; }
.check-list li { padding: 9px 0 9px 34px; position: relative; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 6px; color: var(--green); font-weight: 800; }
.check-list li.no::before { content: "✕"; color: var(--red); }
.spinner {
  width: 46px; height: 46px; border-radius: 50%; margin: 18px auto;
  border: 4px solid var(--border); border-top-color: var(--blurple);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#verdict { margin-top: 18px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 28px 0 40px; color: var(--dim); font-size: 13.5px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }

/* ---------- misc ---------- */
h1, h2, h3 { color: #fff; }
.page-head { padding: 40px 0 8px; }
.page-head h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: -0.5px; }
.page-head p { color: var(--muted); margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mt { margin-top: 24px; }
.small { font-size: 13px; color: var(--dim); }
.invite-box {
  background: var(--bg); border: 1px dashed var(--green); border-radius: var(--radius);
  padding: 26px; text-align: center; margin-top: 18px;
}

@media (max-width: 720px) {
  .hero h1 { font-size: 36px; }
  .form-row, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13.5px; }
  td, th { padding: 8px; font-size: 13px; }
}
