:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e5e7eb;
  --accent:#2563eb;      /* blue */
  --accent2:#16a34a;     /* green */
  --chip:#f1f5f9;
  --shadow: 0 14px 40px rgba(2,6,23,.08);
  --radius: 18px;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background: var(--bg);
  background-repeat: no-repeat;
}
a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
.wrap{max-width:1120px; margin:0 auto; padding:28px 18px 80px}
.topbar{
  position:sticky; top:0; z-index:20;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{max-width:1120px; margin:0 auto; padding:12px 18px; display:flex; align-items:center; gap:14px}
.brand{display:flex; align-items:center; gap:10px; min-width: 280px;}
.mark{
  width:38px; height:38px; border-radius:14px;
  background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(22,163,74,.85));
  display:grid; place-items:center;
  font-weight:800; color:white;
  letter-spacing:.5px;
  box-shadow: 0 10px 24px rgba(37,99,235,.18);
}
.brand b{font-size:14px}
.brand span{display:block; font-size:12px; color:var(--muted); margin-top:2px}
.nav{display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:flex-end; width:100%}
.nav a{
  font-size:13px; color:var(--muted);
  padding:8px 10px; border-radius:12px;
}
.nav a:hover{background:var(--chip); color:var(--text)}
.hero{
  margin-top:22px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 920px){ .hero{grid-template-columns:1fr} .brand{min-width:unset} }
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-inner{padding:26px}
.kicker{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:12px}
.pill{
  font-family:var(--mono);
  font-size:12px;
  color:var(--muted);
  background: var(--chip);
  padding:7px 10px;
  border-radius:999px;
  border:1px solid #e8eef7;
}
h1{margin: 6px 0 10px; font-size: 30px; line-height:1.15; letter-spacing: -.2px}
.subhead{
  margin:0 0 14px;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
}
.cta-row{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.btn{
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background:#fff;
  color: var(--text);
  font-size: 13px;
  display:inline-flex; gap:8px; align-items:center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover{transform: translateY(-1px); box-shadow: 0 10px 22px rgba(2,6,23,.06)}
.btn.primary{
  background: var(--accent);
  border-color: transparent;
  color:#fff;
  font-weight:700;
}
.btn.ghost{
  background: var(--chip);
  border-color: transparent;
}
.section{margin-top:22px}
.section h2{margin:0 0 12px; font-size:16px; letter-spacing:.1px}
.grid{display:grid; grid-template-columns: repeat(12, 1fr); gap:12px}
.col-6{grid-column: span 6}
.col-4{grid-column: span 4}
.col-12{grid-column: span 12}
@media (max-width: 920px){ .col-6,.col-4{grid-column: span 12} }
.mini{
  padding:16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(2,6,23,.05);
}
.mini h3{margin:0 0 8px; font-size:14px}
.mini p{margin:0; color:var(--muted); font-size:13px; line-height:1.6}
.tags{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.tag{
  font-family:var(--mono);
  font-size:11px;
  color:var(--muted);
  padding:6px 8px;
  border-radius:999px;
  background: var(--chip);
  border:1px solid #e8eef7;
}
.profile{
  display:flex; flex-direction:column; gap:12px;
  padding:18px;
}
.profile .photo{
  width:100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow:hidden;
  background:#fff;
}
.profile img{width:100%; height:auto; display:block}
.profile .name{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.profile .name b{font-size:16px}
.profile .name span{font-size:12px; color:var(--muted)}
.profile .meta{font-size:13px; color:var(--muted); line-height:1.6}
.timeline{display:flex; flex-direction:column; gap:12px}
.t-item{
  padding:16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(2,6,23,.05);
}
.t-head{display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between}
.t-title{font-weight:800; font-size:14px}
.t-meta{font-family:var(--mono); font-size:12px; color:var(--muted)}
.t-bullets{margin:10px 0 0 18px; color:var(--muted); font-size:13px; line-height:1.6}
.t-bullets li{margin:6px 0}
details.case{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 14px 10px;
  box-shadow: 0 10px 24px rgba(2,6,23,.05);
}
details.case summary{
  cursor:pointer;
  list-style:none;
  display:flex; gap:10px; align-items:flex-start; justify-content:space-between;
}
details.case summary::-webkit-details-marker{display:none}
.case-title{font-weight:800; font-size:14px}
.case-sub{font-size:12.5px; color:var(--muted); margin-top:2px}
.badge{
  font-family:var(--mono);
  font-size:11px;
  padding:6px 8px;
  border-radius:999px;
  background: var(--chip);
  border:1px solid #e8eef7;
  color:var(--muted);
  white-space:nowrap;
}
.case-body{
  margin-top:10px;
  padding-top:12px;
  border-top:1px dashed #dbe3ef;
  color:var(--muted);
  font-size:13px;
  line-height:1.7;
}
.case-body h4{margin:12px 0 6px; font-size:13px; color:var(--text)}
.kv{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:8px 12px;
  padding:10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e8eef7;
  margin:10px 0;
}
.kv b{font-family:var(--mono); font-size:12px; color:#334155}
.kv span{font-size:13px}
.terminal{
  margin-top:12px;
  background: #0b1220;
  color:#e5e7eb;
  border-radius: 18px;
  padding:14px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 40px rgba(2,6,23,.18);
}
.term-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px}
.lights{display:flex; gap:7px}
.light{width:10px; height:10px; border-radius:50%}
.light.red{background:#ff6b6b}
.light.yellow{background:#ffcc66}
.light.green{background:#7dffa7}
.term-title{font-family:var(--mono); font-size:12px; color:#9ca3af}
.term-line{font-family:var(--mono); font-size:12.5px; line-height:1.7; white-space:pre-wrap}
.prompt{color:#60a5fa}
.ok{color:#86efac}
.footer{
  margin-top:26px;
  padding:16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12.5px;
  display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between;
}
.small-links{display:flex; gap:10px; flex-wrap:wrap}
.small-links a{color:var(--muted)}
.small-links a:hover{color:var(--text)}
section{scroll-margin-top: 74px}
.input{
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  outline:none;
}
.input:focus{border-color: rgba(37,99,235,.35); box-shadow: 0 0 0 4px rgba(37,99,235,.10)}
