/* Chain Stages — shared design system */
:root {
  --bg0: #07090f;
  --bg1: #0d1220;
  --bg2: #131a2b;
  --card: rgba(18, 24, 42, 0.78);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf6;
  --muted: #8b95ad;
  --faint: #5c6785;
  --tron: #ff4d6d;
  --tron-soft: rgba(255, 77, 109, 0.15);
  --bot: #3d9cff;
  --bot-soft: rgba(61, 156, 255, 0.15);
  --ok: #34d399;
  --warn: #fbbf24;
  --purple: #a78bfa;
  --cyan: #22d3ee;
  --orange: #fb923c;
  --green: #4ade80;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --nav-h: 64px;
  --max: 1180px;
}

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

body {
  font-family: "Noto Sans SC", "DM Sans", system-ui, sans-serif;
  background: var(--bg0);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Ambient */
.bg-orbs {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-orbs::before,
.bg-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
}
.bg-orbs::before {
  width: 480px; height: 480px; top: -100px; left: -60px;
  background: radial-gradient(circle, var(--tron) 0%, transparent 70%);
}
.bg-orbs::after {
  width: 520px; height: 520px; bottom: -120px; right: -80px;
  background: radial-gradient(circle, var(--bot) 0%, transparent 70%);
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 72%);
}

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 15, 0.78);
  border-bottom: 1px solid var(--card-border);
}
.site-nav .inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem; white-space: nowrap;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--tron), var(--bot));
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 800; color: #fff;
  box-shadow: 0 0 20px rgba(61,156,255,0.35);
}
.nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.84rem; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--card-border);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--card-border);
  align-items: center; justify-content: center;
  color: var(--muted);
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    padding: 12px; gap: 4px;
    background: rgba(10, 13, 22, 0.96);
    border-bottom: 1px solid var(--card-border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* Layout */
.wrap {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  padding: 36px 20px 80px;
}
.page-hero {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeUp .65s ease both;
}
.badge-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 16px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bot);
  box-shadow: 0 0 10px rgba(61,156,255,.5);
}
h1 {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
  margin-bottom: 12px;
}
h1 .grad {
  background: linear-gradient(105deg, var(--tron), #ff9a9e 40%, var(--bot));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead {
  max-width: 640px; margin: 0 auto;
  color: var(--muted); font-size: 1.02rem;
}
.lead strong { color: var(--text); font-weight: 600; }

section { margin-bottom: 48px; animation: fadeUp .75s ease both; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2 .num {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem; color: var(--faint);
  border: 1px solid var(--card-border);
  padding: 2px 8px; border-radius: 6px;
}
.section-head .hint { font-size: .84rem; color: var(--faint); }

/* Cards */
.card {
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }

/* Buttons */
.btn-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 22px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px;
  font-size: .9rem; font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #ff4d6d, #3d9cff);
  color: #fff;
  box-shadow: 0 8px 28px rgba(61,156,255,.3);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--card-border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-sm { padding: 7px 12px; font-size: .8rem; border-radius: 9px; }

/* Filter chips */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.chip-btn {
  padding: 7px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  transition: all .2s;
}
.chip-btn:hover { color: var(--text); border-color: rgba(255,255,255,.16); }
.chip-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,77,109,.35), rgba(61,156,255,.4));
  border-color: rgba(255,255,255,.15);
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 960px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
}

.proj-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-align: left;
  width: 100%;
  display: block;
}
.proj-card:hover {
  border-color: rgba(255,255,255,.16);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.proj-card.active-card {
  border-color: rgba(61,156,255,.45);
  box-shadow: 0 0 0 1px rgba(61,156,255,.25), 0 12px 40px rgba(0,0,0,.35);
}
.proj-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.proj-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .72rem;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.proj-top h3 { font-size: .98rem; font-weight: 700; line-height: 1.25; }
.proj-top .sub { font-size: .75rem; color: var(--muted); }
.proj-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.tag {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.06);
}
.tag.era { color: #7cbcff; background: var(--bot-soft); border-color: rgba(61,156,255,.25); }
.tag.stage { color: #ff8a9b; background: var(--tron-soft); border-color: rgba(255,77,109,.25); }
.tag.ok { color: var(--ok); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.25); }
.proj-blurb {
  font-size: .84rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Detail panel */
.detail-panel {
  margin-top: 20px;
  display: none;
  animation: fadeUp .4s ease both;
}
.detail-panel.open { display: block; }
.detail-inner {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.detail-inner::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--tron), var(--bot));
}
.detail-head {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: flex-start; justify-content: space-between;
  margin-bottom: 18px;
}
.detail-head h3 {
  font-size: 1.35rem; font-weight: 700;
  display: flex; align-items: center; gap: 12px;
}
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
@media (max-width: 800px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.detail-block h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--faint); margin-bottom: 10px;
}
.tl-mini { list-style: none; }
.tl-mini li {
  position: relative;
  padding: 0 0 14px 18px;
  font-size: .88rem; color: var(--muted);
  border-left: 2px solid rgba(255,255,255,.08);
}
.tl-mini li:last-child { padding-bottom: 0; }
.tl-mini li::before {
  content: "";
  position: absolute; left: -5px; top: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bot);
  box-shadow: 0 0 0 3px rgba(61,156,255,.2);
}
.tl-mini strong { color: var(--text); font-weight: 600; display: block; font-size: .9rem; }
.tl-mini .when {
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem; color: var(--faint);
}
.fact-list { list-style: none; }
.fact-list li {
  font-size: .88rem; color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; gap: 10px;
}
.fact-list li:last-child { border-bottom: none; }
.fact-list .k {
  color: var(--faint); min-width: 72px; flex-shrink: 0; font-size: .8rem;
}
.stage-bar {
  margin-top: 16px;
  height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.stage-bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--tron), var(--bot));
  width: 0;
  transition: width 1s cubic-bezier(.22,1,.36,1);
}
.stage-caption {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--faint); margin-top: 6px;
}

/* Home feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px;
  transition: border-color .2s, transform .2s;
}
.feature:hover {
  border-color: rgba(255,255,255,.14);
  transform: translateY(-2px);
}
.feature .ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  background: rgba(255,255,255,.05);
  font-size: 1.1rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }

/* Framework steps */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.step .n {
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem; color: var(--bot);
  margin-bottom: 6px;
}
.step h4 { font-size: .82rem; margin-bottom: 4px; }
.step p { font-size: .72rem; color: var(--faint); line-height: 1.35; }

/* Learn page */
.learn-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 800px) {
  .learn-layout { grid-template-columns: 1fr; }
}
.learn-side {
  position: sticky; top: calc(var(--nav-h) + 16px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px;
}
@media (max-width: 800px) {
  .learn-side { position: static; }
}
.learn-side h3 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--faint); padding: 6px 10px 10px;
}
.learn-side a {
  display: block;
  padding: 9px 12px; border-radius: 10px;
  font-size: .86rem; color: var(--muted);
  transition: all .15s;
}
.learn-side a:hover,
.learn-side a.active {
  background: rgba(255,255,255,.05);
  color: var(--text);
}
.learn-content .block {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.learn-content .block h2 {
  font-size: 1.2rem; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.learn-content .block h2 .num {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem; color: var(--faint);
  border: 1px solid var(--card-border);
  padding: 2px 8px; border-radius: 6px;
}
.learn-content p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.learn-content p strong { color: var(--text); }
.learn-content ul, .learn-content ol {
  margin: 10px 0 10px 1.2em;
  color: var(--muted); font-size: .9rem;
}
.learn-content li { margin-bottom: 6px; }
.learn-content h3 {
  font-size: .98rem; margin: 16px 0 8px; color: var(--text);
}
.callout {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(61,156,255,.08);
  border: 1px solid rgba(61,156,255,.2);
  font-size: .88rem; color: var(--muted);
}
.callout.warn {
  background: rgba(251,191,36,.08);
  border-color: rgba(251,191,36,.25);
}
.glossary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .glossary { grid-template-columns: 1fr; }
}
.g-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.g-item dt {
  font-weight: 700; font-size: .9rem; margin-bottom: 4px;
}
.g-item dd { font-size: .82rem; color: var(--muted); }

/* TRON/BOT specific leftovers */
.verdict {
  margin: 0 0 40px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,77,109,.08), rgba(61,156,255,.1));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px; align-items: center;
}
@media (max-width: 720px) {
  .verdict { grid-template-columns: 1fr; text-align: center; }
  .verdict .vs { transform: rotate(90deg); margin: 4px 0; }
}
.verdict .side h3 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 6px;
}
.verdict .side p { font-size: 1.1rem; font-weight: 600; }
.verdict .side.tron p { color: #ff8a9b; }
.verdict .side.bot p { color: #7cbcff; }
.verdict .vs {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: .8rem;
  background: var(--bg1); border: 1px solid var(--card-border);
  color: var(--muted); font-family: "JetBrains Mono", monospace;
}
.verdict-note {
  grid-column: 1 / -1; text-align: center;
  font-size: .92rem; color: var(--muted);
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 2px;
}
.verdict-note em { font-style: normal; color: var(--warn); font-weight: 600; }

.timeline-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 800px) {
  .timeline-grid { grid-template-columns: 1fr; }
}
.timeline-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 20px 18px 8px;
  position: relative; overflow: hidden;
}
.timeline-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.timeline-card.tron::before { background: linear-gradient(90deg, var(--tron), transparent); }
.timeline-card.bot::before { background: linear-gradient(90deg, var(--bot), transparent); }
.timeline-card .brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.brand-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .72rem;
}
.tron .brand-icon {
  background: var(--tron-soft); color: var(--tron);
  border: 1px solid rgba(255,77,109,.3);
}
.bot .brand-icon {
  background: var(--bot-soft); color: var(--bot);
  border: 1px solid rgba(61,156,255,.3);
}
.brand h3 { font-size: 1rem; font-weight: 700; }
.brand span { font-size: .78rem; color: var(--muted); }
.tl-item {
  display: grid; grid-template-columns: 14px 1fr; gap: 12px;
  padding-bottom: 18px; position: relative;
}
.tl-item:not(:last-child) .tl-rail::after {
  content: ""; position: absolute; left: 6px; top: 16px; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, rgba(255,255,255,.12), transparent);
}
.tl-rail { position: relative; padding-top: 5px; }
.tl-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid; background: var(--bg1); position: relative; z-index: 1;
}
.tron .tl-dot { border-color: var(--tron); }
.bot .tl-dot { border-color: var(--bot); }
.tl-item.now .tl-dot {
  box-shadow: 0 0 0 4px rgba(61,156,255,.2), 0 0 16px rgba(61,156,255,.45);
  background: var(--bot); border-color: #fff;
}
.tl-item.peak .tl-dot {
  background: var(--tron); border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,77,109,.2);
}
.tl-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.tl-date { font-family: "JetBrains Mono", monospace; font-size: .7rem; color: var(--faint); }
.tl-tag {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: 2px 7px; border-radius: 999px;
}
.tl-tag.now {
  background: var(--bot-soft); color: var(--bot);
  border: 1px solid rgba(61,156,255,.35);
}
.tl-tag.match {
  background: var(--tron-soft); color: #ff8a9b;
  border: 1px solid rgba(255,77,109,.35);
}
.tl-title { font-weight: 600; font-size: .92rem; }
.tl-desc { font-size: .8rem; color: var(--muted); margin-top: 2px; }

.matrix-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.4fr 0.75fr;
  gap: 12px; align-items: center;
  padding: 13px 15px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  margin-bottom: 10px;
}
.matrix-head {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.4fr 0.75fr;
  gap: 12px; padding: 0 14px 6px;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--faint); font-weight: 600;
}
@media (max-width: 800px) {
  .matrix-head { display: none; }
  .matrix-row {
    grid-template-columns: 1fr; gap: 8px;
  }
  .matrix-row .t::before { content: "波场 · "; color: var(--tron); font-weight: 600; }
  .matrix-row .b::before { content: "BOT · "; color: var(--bot); font-weight: 600; }
}
.matrix-row .dim { font-weight: 600; font-size: .9rem; }
.matrix-row .t, .matrix-row .b { font-size: .84rem; color: var(--muted); }
.chip {
  display: inline-flex; font-size: .7rem; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.chip.bot-early {
  background: var(--bot-soft); color: #7cbcff;
  border: 1px solid rgba(61,156,255,.3);
}
.chip.similar {
  background: rgba(251,191,36,.12); color: var(--warn);
  border: 1px solid rgba(251,191,36,.3);
}

.pill {
  font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.pill.done { background: rgba(52,211,153,.15); color: var(--ok); }
.pill.wip { background: rgba(61,156,255,.15); color: #7cbcff; }
.pill.no { background: rgba(255,255,255,.05); color: var(--faint); }
.pill.past { background: rgba(255,77,109,.12); color: #ff8a9b; }

.check-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 900px) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .check-grid { grid-template-columns: 1fr; } }
.check-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 15px;
}
.check-card .phase {
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem; color: var(--faint); margin-bottom: 5px;
}
.check-card h4 { font-size: .9rem; margin-bottom: 12px; min-height: 2.5em; }
.status-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .76rem; padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.status-row .name { color: var(--muted); }

.life-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 14px;
  align-items: center; margin-bottom: 18px;
}
@media (max-width: 560px) {
  .life-row { grid-template-columns: 1fr; gap: 8px; }
}
.life-label { font-weight: 600; font-size: .9rem; }
.life-label small { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; }
.track {
  position: relative; height: 42px;
  background: rgba(255,255,255,.04); border-radius: 12px;
  border: 1px solid var(--card-border); overflow: hidden; display: flex;
}
.stage-seg {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 600; color: var(--faint);
  border-right: 1px solid rgba(255,255,255,.05);
  position: relative; z-index: 1; text-align: center; line-height: 1.15; padding: 0 2px;
}
.stage-seg:last-child { border-right: none; }
.fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 11px; z-index: 0;
  transition: width 1.2s cubic-bezier(.22,1,.36,1); width: 0;
}
.fill.tron {
  background: linear-gradient(90deg, rgba(255,77,109,.55), rgba(255,77,109,.2));
}
.fill.bot {
  background: linear-gradient(90deg, rgba(61,156,255,.55), rgba(61,156,255,.2));
}
.life-legend {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  margin-top: 6px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.life-legend span { font-size: .76rem; color: var(--muted); }
.life-legend i {
  font-style: normal; font-family: "JetBrains Mono", monospace;
  font-size: .68rem; color: var(--faint); margin-right: 4px;
}

.diff-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (max-width: 700px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 20px;
}
.diff-card h3 {
  font-size: .98rem; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.diff-card p { font-size: .86rem; color: var(--muted); }
.diff-card ul { margin-top: 10px; list-style: none; }
.diff-card li {
  font-size: .82rem; color: var(--muted);
  padding: 6px 0 6px 14px; position: relative;
  border-top: 1px solid rgba(255,255,255,.04);
}
.diff-card li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--bot);
}
.diff-card.risk li::before { background: var(--warn); }

/* Contact (home) */
.contact-section { margin-bottom: 24px; }
.contact-card {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 22px;
  align-items: stretch;
  padding: 26px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,77,109,.07), rgba(61,156,255,.1)),
    var(--card);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--tron), var(--bot));
}
@media (max-width: 800px) {
  .contact-card { grid-template-columns: 1fr; padding: 20px; }
}
.contact-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bot);
  margin-bottom: 8px;
}
.contact-intro h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-intro p {
  font-size: .9rem;
  color: var(--muted);
  max-width: 36em;
}
.contact-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) {
  .contact-channels {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(7, 9, 15, .45);
  border: 1px solid var(--card-border);
  transition: border-color .2s, transform .15s, background .2s;
  text-align: left;
  width: 100%;
}
a.contact-item:hover {
  border-color: rgba(61,156,255,.35);
  background: rgba(61,156,255,.08);
  transform: translateY(-1px);
}
.contact-item-static { cursor: default; }
.contact-ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: .95rem; font-weight: 700;
  flex-shrink: 0;
}
.contact-ico-x {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}
.contact-ico-mail {
  background: var(--bot-soft);
  color: #7cbcff;
  border: 1px solid rgba(61,156,255,.3);
}
.contact-ico-wx {
  background: rgba(7,193,96,.12);
  color: #4ade80;
  border: 1px solid rgba(7,193,96,.3);
  font-size: .78rem;
}
.contact-ico-qq {
  background: rgba(18,183,245,.12);
  color: #38bdf8;
  border: 1px solid rgba(18,183,245,.3);
  font-size: .72rem;
  font-weight: 800;
}
.contact-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.contact-label {
  font-size: .72rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.contact-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}
.contact-go {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}
a.contact-item:hover .contact-go { color: var(--bot); }
.contact-copy {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--card-border);
  transition: background .15s, color .15s;
}
.contact-copy:hover {
  background: rgba(74,222,128,.15);
  color: #4ade80;
  border-color: rgba(74,222,128,.3);
}
.contact-copy.copied {
  background: rgba(52,211,153,.18);
  color: var(--ok);
  border-color: rgba(52,211,153,.35);
}

/* Footer */
.site-footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 24px 20px 40px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--faint); font-size: .78rem;
}
.site-footer strong { color: var(--muted); font-weight: 500; }
.site-footer .footer-contact {
  margin-top: 8px;
  color: var(--faint);
}
.site-footer .footer-contact a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-footer .footer-contact a:hover {
  color: var(--bot);
  border-bottom-color: rgba(61,156,255,.4);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Color helpers for project icons */
.c-btc { background: rgba(247,147,26,.15); color: #f7931a; border: 1px solid rgba(247,147,26,.3); }
.c-eth { background: rgba(98,126,234,.15); color: #8b9cf7; border: 1px solid rgba(98,126,234,.3); }
.c-bnb { background: rgba(243,186,47,.15); color: #f3ba2f; border: 1px solid rgba(243,186,47,.3); }
.c-sol { background: rgba(20,241,149,.12); color: #14f195; border: 1px solid rgba(20,241,149,.3); }
.c-avax { background: rgba(232,65,66,.15); color: #e84142; border: 1px solid rgba(232,65,66,.3); }
.c-dot { background: rgba(230,0,122,.12); color: #e6007a; border: 1px solid rgba(230,0,122,.3); }
.c-atom { background: rgba(46,49,72,.8); color: #6f7cff; border: 1px solid rgba(111,124,255,.35); }
.c-matic { background: rgba(130,71,229,.15); color: #a78bfa; border: 1px solid rgba(130,71,229,.3); }
.c-ada { background: rgba(0,51,173,.2); color: #5b8def; border: 1px solid rgba(91,141,239,.3); }
.c-near { background: rgba(255,255,255,.08); color: #e8ecf6; border: 1px solid rgba(255,255,255,.15); }
.c-apt { background: rgba(0,208,132,.12); color: #00d084; border: 1px solid rgba(0,208,132,.3); }
.c-sui { background: rgba(76,162,255,.15); color: #4ca2ff; border: 1px solid rgba(76,162,255,.3); }
.c-eos { background: rgba(255,255,255,.06); color: #cfd5e6; border: 1px solid rgba(255,255,255,.12); }
.c-trx { background: var(--tron-soft); color: var(--tron); border: 1px solid rgba(255,77,109,.3); }
.c-bot { background: var(--bot-soft); color: var(--bot); border: 1px solid rgba(61,156,255,.3); }
.c-akt { background: rgba(237,28,80,.12); color: #ff6b8a; border: 1px solid rgba(237,28,80,.3); }
.c-io { background: rgba(0,200,255,.12); color: #22d3ee; border: 1px solid rgba(0,200,255,.3); }
.c-tao { background: rgba(255,255,255,.08); color: #ddd; border: 1px solid rgba(255,255,255,.15); }
.c-arb { background: rgba(40,160,240,.12); color: #28a0f0; border: 1px solid rgba(40,160,240,.3); }
.c-op { background: rgba(255,4,32,.12); color: #ff6b7a; border: 1px solid rgba(255,4,32,.3); }
