:root {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --card: #141926;
  --border: #2a3450;
  --text: #e6e9f0;
  --muted: #b3bac9;
  --accent: #4fd1c5;
  --accent-soft: rgba(79, 209, 197, 0.12);
  --warn: #f0b429;
  --ok: #68d391;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
.brand-mark { color: var(--accent); margin-right: 6px; }
.nav nav a { color: var(--muted); text-decoration: none; margin-left: 24px; font-size: 0.95rem; }
.nav nav a:hover, .nav nav a.active { color: var(--accent); }
.nav nav a.active { font-weight: 650; text-decoration: underline; text-underline-offset: 6px; }

/* dark scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3450; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3d4a6b; }

/* hero */
.hero { padding: 80px 0 56px; background:
  radial-gradient(ellipse 60% 50% at 70% 10%, var(--accent-soft), transparent); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.86rem; font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.14; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 20px; }
.accent { color: var(--accent); }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 600px; margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 26px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 0.98rem; transition: transform 0.1s ease, background 0.2s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #06231f; }
.btn.primary:hover { background: #6ee7dc; }
.btn.ghost { border: 1px solid #55648c; background: rgba(255,255,255,0.03); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); }
.section h2 { font-size: 1.8rem; font-weight: 750; letter-spacing: -0.01em; margin-bottom: 14px; }
.section .sub { color: var(--muted); max-width: 660px; margin-bottom: 36px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px 22px; transition: border-color 0.2s, transform 0.15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-icon { font-size: 1.6rem; margin-bottom: 14px; }
.card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card a.more { display: inline-block; margin-top: 12px; color: var(--accent);
  text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.card a.more:hover { text-decoration: underline; }

/* stats strip */
.stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.stat { flex: 1; min-width: 180px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 22px; }
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--accent); }
.stat .lbl { color: var(--muted); font-size: 0.9rem; }

/* method steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 26px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  align-items: start; }
.steps li::before { content: counter(step, decimal-leading-zero);
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
  border: 1px solid var(--accent); border-radius: 10px; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 0.96rem; }
.steps .artifact { display: inline-block; margin-top: 6px; font-size: 0.85rem;
  color: var(--accent); text-decoration: none; border: 1px dashed var(--accent);
  padding: 2px 10px; border-radius: 6px; }

/* research list */
table.research { width: 100%; border-collapse: collapse; font-size: 0.95rem;
  font-variant-numeric: tabular-nums; }
table.research th { text-align: left; color: #c7cdda; font-weight: 700;
  border-bottom: 2px solid var(--border); padding: 10px 12px; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em; }
table.research th:first-child, table.research td:first-child { padding-left: 0; }
table.research th:nth-child(1) { width: 88px; }
table.research th:nth-child(3) { width: 150px; }
table.research th:nth-child(4) { width: 132px; }
table.research td { border-bottom: 1px solid var(--border); padding: 14px 12px;
  vertical-align: top; }
table.research tr:hover td { background: var(--card); }
table.research a { color: var(--accent); text-decoration: none; }
table.research a:hover { text-decoration: underline; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.badge.review { background: rgba(240, 180, 41, 0.15); color: var(--warn);
  border: 1px solid var(--warn); }
.badge.progress { background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent); }
.badge.published { background: rgba(104, 211, 145, 0.15); color: var(--ok);
  border: 1px solid var(--ok); }

/* article */
.post { max-width: 720px; }
.post-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; }
.post h1 { font-size: 2rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.post h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.post p { color: #c6ccda; margin-bottom: 16px; }
.post ul, .post ol { color: #c6ccda; margin: 0 0 16px 24px; }
.post li { margin-bottom: 6px; }
.post code { background: var(--card); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px; font-size: 0.88em; }
.post pre { background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px; overflow-x: auto; margin-bottom: 16px; }
.post pre code { background: none; border: none; padding: 0; }
.post table { width: 100%; border-collapse: collapse; margin-bottom: 20px;
  font-size: 0.92rem; }
.post th, .post td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.post th { color: var(--muted); }
.note { border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin-bottom: 20px;
  color: var(--text); font-size: 0.95rem; }
.note strong { color: var(--accent); }

/* contact */
.contact-box { background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 30px; max-width: 640px; }
.contact-box .mail { color: var(--accent); font-size: 1.35rem; font-weight: 700;
  text-decoration: none; }
.contact-box .mail:hover { text-decoration: underline; }
.contact-box ul { color: var(--muted); margin: 14px 0 0 20px; }
.contact-box li { margin-bottom: 6px; }

/* disclosure timeline */
.timeline { list-style: none; display: grid; gap: 0; max-width: 640px; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  padding-bottom: 22px; position: relative; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); margin-top: 7px; margin-left: 9px; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 13px; top: 20px;
  bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1rem; }
.timeline p { color: var(--muted); font-size: 0.92rem; }

.small { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; color: var(--muted);
  font-size: 0.9rem; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.footer a:hover { color: var(--accent); }
.trust { color: var(--accent); font-size: 0.85rem; }

@media (max-width: 640px) {
  .hero { padding: 64px 0 52px; }
  .section { padding: 52px 0; }
  .nav nav a { margin-left: 14px; }
  table.research thead { display: none; }
  table.research tr { display: block; margin-bottom: 18px; border: 1px solid var(--border);
    border-radius: 10px; padding: 8px; }
  table.research td { display: block; border: none; padding: 6px 8px; }
}
