:root{
  --bg:#070A12;
  --panel:#0E1424;
  --panel2:#0B1020;
  --text:#EAF0FF;
  --muted:#B8C2E0;
  --muted2:#93A0C7;
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.14);
  --shadow: 0 16px 40px rgba(0,0,0,.45);
  --r:18px;
  --r2:24px;
  --max:1040px;
  --accent:#5D7CFF;
  --accent2:#8EA0FF;
  --ok:#41D18B;
  --warn:#FFB84D;
  --bad:#FF5D7A;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 15% 0%, rgba(93,124,255,.14), transparent 60%),
              radial-gradient(900px 700px at 85% 15%, rgba(142,160,255,.10), transparent 60%),
              var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ max-width:var(--max); margin:0 auto; padding:22px; }
hr{ border:0; border-top:1px solid var(--line); margin:18px 0; }

.top{
  position:sticky; top:0; z-index:20;
  background: rgba(7,10,18,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.top .wrap{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.brand{
  display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px;
}
.dot{
  width:12px; height:12px; border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 24px rgba(93,124,255,.55);
}
.nav{ display:flex; gap:14px; align-items:center; }
.nav a{ color:var(--muted); font-size:14px; padding:8px 10px; border-radius:12px; }
.nav a:hover{ background:rgba(255,255,255,.06); color:var(--text); }

.hero{
  padding:26px 0 12px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:14px;
}
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
}
.heroCard{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--r2);
  padding:18px;
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.heroCard:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(520px 220px at 15% 0%, rgba(93,124,255,.25), transparent 60%),
              radial-gradient(520px 220px at 85% 0%, rgba(142,160,255,.18), transparent 60%);
  pointer-events:none;
  mask: linear-gradient(#000, transparent 70%);
}
.hero h1{ margin:0 0 10px; font-size:44px; line-height:1.05; }
@media (max-width: 520px){ .hero h1{ font-size:36px; } }
.hero p{ margin:0 0 14px; color:var(--muted); font-size:16px; line-height:1.55; }
.pills{ display:flex; gap:10px; flex-wrap:wrap; }
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  font-size:13px;
}

.btn{
  appearance:none; border:0; cursor:pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#0a0f1f;
  font-weight:800;
  padding:12px 14px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(93,124,255,.22);
}
.btn:hover{ filter:brightness(1.05); }
.btn.secondary{
  background: rgba(255,255,255,.06);
  color:var(--text);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:none;
}
.btn.small{ padding:10px 12px; border-radius:12px; font-weight:700; }
.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin: 14px 0 22px;
}
@media (max-width: 920px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .grid{ grid-template-columns: 1fr; } }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--r2);
  padding:16px;
  box-shadow: var(--shadow);
}
.card h2{ margin:0 0 8px; font-size:22px; }
.card h3{ margin:0 0 8px; font-size:18px; }
.muted{ color:var(--muted); }
.small{ font-size:13px; color:var(--muted2); line-height:1.5; }

.tile{
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.10);
  background: radial-gradient(800px 300px at 20% -10%, rgba(93,124,255,.14), transparent 60%),
              rgba(255,255,255,.03);
  padding:16px;
  position:relative;
  overflow:hidden;
}
.tile:after{
  content:"";
  position:absolute; right:-60px; top:-60px;
  width:160px; height:160px; border-radius:999px;
  background: rgba(142,160,255,.10);
  filter: blur(0px);
}
.tile h3{ margin:0 0 8px; font-size:18px; }
.tile p{ margin:0 0 12px; color:var(--muted); font-size:14px; line-height:1.5; }
.tile .meta{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.badge{
  font-size:12px; color:var(--muted);
  padding:6px 8px; border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

.hidden{ display:none !important; }

.q{ margin: 14px 0 18px; }
.q h4{ margin:0 0 10px; font-size:16px; }
.opt{
  display:flex; align-items:flex-start; gap:10px;
  padding:12px; border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.10);
  cursor:pointer;
}
.opt:hover{ border-color: rgba(255,255,255,.20); background: rgba(0,0,0,.18); }
.opt input{ margin-top:3px; }

.kicker{
  display:flex; justify-content:space-between; gap:10px; align-items:flex-start; flex-wrap:wrap;
  margin-bottom:12px;
}
.kicker .crumbs{ color:var(--muted2); font-size:13px; }
.kicker .crumbs a{ color:var(--muted2); }
.kicker .crumbs a:hover{ color:var(--text); }

.resultTitle{ font-size:26px; margin:0 0 10px; }
.callout{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(93,124,255,.10);
  padding:12px; border-radius: 16px;
}
.footer{ padding:22px 0 40px; color:var(--muted2); font-size:13px; }
.footer a{ color:var(--muted); }
.footer a:hover{ color:var(--text); }


/* Quiz accessibility + UX */
.q{ border:0; padding:0; }
.q legend{ font-weight:800; margin:0 0 10px; padding:0; }
.inline-msg{
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 14px;
}
.q-missing{
  outline: 2px solid rgba(255,184,77,.75);
  outline-offset: 6px;
  border-radius: 16px;
}

/* Text Decoder */
.replyList{ display:flex; flex-direction:column; gap:10px; }
.replyItem{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background: rgba(255,255,255,.04);
}


/* SEO longform blocks */
.seo h2{ margin:0 0 10px; }
.seo h3{ margin:0 0 8px; font-size:16px; }
.seo p{ color:var(--muted); line-height:1.7; }
.seo ul{ color:var(--muted); line-height:1.7; padding-left:18px; }
.grid2{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; margin:12px 0; }
.mini{ background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:14px; }
details{ border:1px solid rgba(255,255,255,.10); border-radius:14px; padding:10px 12px; margin:10px 0; background:rgba(255,255,255,.03); }
details summary{ cursor:pointer; font-weight:700; }
.inline-msg{ margin:10px 0 0; padding:10px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); color:var(--text); }
.q-missing{ outline:2px solid rgba(255,255,255,.25); border-radius:14px; }


/* Prose content (SEO-friendly longform) */
.prose p{ max-width:72ch; }
.prose ul,.prose ol{ max-width:72ch; }
.prose h2{ margin-top:0; }
.prose h3{ margin-top:18px; }
.faq details{ border:1px solid var(--line); border-radius:14px; padding:10px 12px; margin:10px 0; background:rgba(255,255,255,.02); }
.faq summary{ cursor:pointer; font-weight:700; }
.faq p{ margin:8px 0 0; color:var(--muted); }
