/* ==============================================
   Agentrace Protocol — Live Protocol Visual System
   ============================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  --bg:         #ffffff;
  --panel:      #ffffff;
  --panel-alt:  #f6f8fa;
  --border:     #e2e5ea;
  --border-hover: rgba(0, 102, 255, 0.35);
  --accent:     #0066ff;
  --accent-dim: rgba(0, 102, 255, 0.06);
  --verified:   #16a34a;
  --warning:    #d97706;
  --danger:     #dc2626;
  --text:       #1a1a2e;
  --text-dim:   #5b6678;
  --text-muted: #8b95a5;
  --font:       'IBM Plex Mono', monospace;
  --font-body:  -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --shadow:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --radius:     6px;
  --max-width:  min(1400px, 92vw);
  --nav-height: 64px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: clamp(15px, 1.6vw, 19px);
}

.home {
  overflow-y: auto;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.4rem; color: var(--text); }
h2 { font-size: 1.3rem; color: var(--text); margin-bottom: 1rem; }
h3 { font-size: 1rem; color: var(--text); margin-bottom: 0.6rem; }

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

code {
  font-family: var(--font);
  background: #f0f3f7;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--accent);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--panel-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Full-screen snap sections (homepage only) */
.home .section,
.home .section-alt,
.home .hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
}
.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
  font-weight: 600;
}

/* --- Hero --- */
.hero {
  text-align: center;
}

.home .hero {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 32px;
}

.hero-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* --- Terminal --- */
.terminal {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 100%;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f56; }
.terminal-dot.amber  { background: #ffb800; }
.terminal-dot.green  { background: #39ff14; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.72rem;
  color: #8b949e;
}

.terminal-body {
  padding: 24px 28px;
  font-size: 0.92rem;
  line-height: 1.9;
  color: #c9d1d9;
}

.terminal-line {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.terminal-prompt { color: #58a6ff; }
.terminal-cmd   { color: #e6edf3; }
.terminal-out    { color: #8b949e; }
.terminal-out.green { color: #3fb950; }
.terminal-out.red   { color: #f85149; }
.terminal-out.amber { color: #d2991d; }

.cursor-blink::after {
  content: '█';
  color: #58a6ff;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Terminal typing animation */
.typing-line { overflow: hidden; white-space: nowrap; display: block; }
.typing-line.typing {
  animation: typeChars 1.5s steps(40, end) forwards;
  width: 0;
}

@keyframes typeChars {
  from { width: 0; }
  to   { width: 100%; }
}

/* Terminal hash generation stagger */
.hash-row {
  display: flex;
  gap: 20px;
  margin: 16px 0;
  font-size: 0.75rem;
}

.hash-col {
  flex: 1;
  padding: 12px 16px;
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 4px;
}

.hash-col .label { color: #8b949e; font-size: 0.65rem; text-transform: uppercase; margin-bottom: 4px; }
.hash-col .value { color: #e6edf3; word-break: break-all; }

.hash-col.verified {
  border-color: #3fb950;
  animation: verifiedPulse 0.6s ease-out;
}

.hash-col.verified .label { color: #3fb950; }

@keyframes verifiedPulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.4); }
  50%  { transform: scale(1.02); box-shadow: 0 0 20px 4px rgba(63, 185, 80, 0.15); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 700;
}
.btn-primary:hover {
  background: #0052cc;
  border-color: #0052cc;
  color: #ffffff;
  opacity: 1;
}

.btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* --- Cards --- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 24px; }
}

/* --- Incident Report Cards --- */
.incident-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}
.incident-card:hover { box-shadow: var(--shadow-md); }

.incident-card .incident-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.incident-card .incident-name { font-weight: 700; font-size: 0.9rem; }
.incident-card .incident-date { color: var(--text-muted); font-size: 0.72rem; }
.incident-card .incident-desc { color: var(--text-dim); font-size: 0.82rem; line-height: 1.6; margin-bottom: 10px; }
.incident-card .incident-fix { color: var(--verified); font-size: 0.76rem; font-weight: 500; }

/* --- Code Block --- */
.code-block {
  background: #1a1f2e;
  border: 1px solid #2a3040;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font);
  font-size: 0.82rem;
  color: #d6d9e0;
  line-height: 1.7;
}

.code-block .code-lang {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 60px;
  font-family: var(--font);
  font-size: 0.7rem;
  background: var(--panel);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--verified); border-color: var(--verified); }

/* --- Evidence Cards (Three Questions) --- */
.evidence-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}
.evidence-card:hover { box-shadow: var(--shadow-md); }

.evidence-card .evidence-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.evidence-card .evidence-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text);
}

.evidence-card .evidence-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 10px;
}

.evidence-card .evidence-vs {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #f8f9fb;
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-top: 8px;
}

/* --- Chain Strip --- */
.chain-strip {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.chain-item {
  padding: 12px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.chain-item:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.chain-item.partner {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  position: relative;
}
.chain-item.partner::after {
  content: '合作伙伴';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 0.55rem;
  background: var(--accent);
  color: #0a0e14;
  padding: 2px 6px;
  border-radius: var(--radius);
  font-weight: 700;
}

/* --- Security Rings --- */
.rings-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.ring-outer, .ring-middle, .ring-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: all 0.4s;
}

.ring-outer {
  width: 320px; height: 320px;
  background: rgba(220, 38, 38, 0.04);
}

.ring-middle {
  width: 220px; height: 220px;
  background: rgba(217, 119, 6, 0.04);
}

.ring-inner {
  width: 130px; height: 130px;
  background: rgba(22, 163, 74, 0.06);
  flex-direction: column;
  text-align: center;
}

.ring-label {
  font-size: 0.72rem;
  color: var(--text);
  text-align: center;
  padding: 0 10px;
  line-height: 1.4;
}

.ring-inner .ring-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--verified);
}

/* --- Pricing Table --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(0,102,255,0.08);
}

.pricing-card .plan-name { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.pricing-card .plan-price { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-card .plan-price span { font-size: 0.85rem; color: var(--text-dim); font-weight: 400; }
.pricing-card .plan-desc { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 1.5rem; line-height: 1.5; }

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.plan-features li {
  padding: 8px 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features li::before {
  content: '✓';
  color: var(--verified);
  font-weight: 700;
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .hash-row { flex-direction: column; }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
  background: var(--panel-alt);
}

.footer-cta {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.footer-info {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Docs Sidebar --- */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding-top: calc(var(--nav-height) + 40px);
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  height: fit-content;
}

.docs-sidebar nav a {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--radius);
  margin-bottom: 2px;
  transition: all 0.2s;
}
.docs-sidebar nav a:hover,
.docs-sidebar nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
}
.docs-sidebar .sidebar-group {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 16px 12px 6px;
}

.docs-content h2 { margin-top: 2rem; }
.docs-content h2:first-child { margin-top: 0; }

@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; margin-bottom: 24px; }
  .docs-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-sidebar .sidebar-group { display: none; }
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-q {
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: '+';
  color: var(--accent);
  font-size: 1.1rem;
}
.faq-a {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-top: 8px;
  display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q::after { content: '−'; }

/* --- Trust Policy Tags --- */
.policy-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid;
  margin: 2px;
}
.policy-tag.conservative { color: var(--warning); border-color: var(--warning); }
.policy-tag.standard     { color: var(--accent); border-color: var(--accent); }
.policy-tag.open         { color: var(--verified); border-color: var(--verified); }

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

th {
  text-align: left;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text);
}

tr:hover td { background: rgba(0,102,255,0.03); }

/* --- Step indicator --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.step-num.done {
  background: var(--verified);
  color: #0a0e14;
  border-color: var(--verified);
}

/* --- Agent Cards (Market) --- */
.agent-card-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}
.agent-card-card:hover { box-shadow: var(--shadow-md); }

.agent-card-card h3 {
  font-family: var(--font);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.agent-card-card .agent-name { color: var(--text); font-weight: 700; }
.agent-card-card .agent-did-sub { color: var(--text-muted); font-size: 0.72rem; margin-bottom: 4px; word-break: break-all; }
.agent-card-card .agent-desc { color: var(--text-dim); font-size: 0.86rem; margin: 8px 0; line-height: 1.6; }
.agent-card-card .meta { color: var(--text-muted); font-size: 0.76rem; margin-bottom: 8px; }
.agent-card-card .skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.agent-card-card .endpoints { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; }
.agent-card-card .endpoints code { color: var(--text-dim); }

.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--verified); margin-right: 6px; }
.offline-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-right: 6px; }

.score-badge {
  display: inline-block;
  background: rgba(217,119,6,0.1);
  color: var(--warning);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.skill-tag {
  display: inline-block;
  background: rgba(0,102,255,0.08);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
}
.skill-tag.model-tag { background: rgba(192,132,252,0.1); color: #c084fc; }
.skill-tag.price-tag { background: rgba(57,255,20,0.08); color: var(--verified); }
.skill-tag.market-tag { background: rgba(255,184,0,0.08); color: var(--warning); }

.policy-detail { font-size: 0.76rem; color: var(--text-dim); margin-top: 8px; }
.policy-detail summary { color: var(--accent); cursor: pointer; font-size: 0.78rem; font-weight: 600; }
.policy-detail summary:hover { opacity: 0.8; }
.policy-json {
  font-size: 0.72rem;
  background: #f6f8fa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  margin-top: 6px;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-dim);
  max-height: 200px;
  overflow-y: auto;
}

.loading { color: var(--text-muted); font-style: italic; font-size: 0.9rem; }
.error-text { color: var(--danger); }

@media (max-width: 768px) {
  .agent-card-card { padding: 16px; }
}

/* --- Tablet --- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; margin-bottom: 24px; }
  .docs-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-sidebar .sidebar-group { display: none; }
  .nav-links a { font-size: 0.72rem; padding: 5px 8px; }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  html { font-size: 15px; }

  .container { padding: 0 20px; }

  /* Disable full-screen snap on mobile */
  .home { scroll-snap-type: none; }
  .home .section,
  .home .section-alt,
  .home .hero {
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    padding: 50px 20px;
  }

  .hero h1 { font-size: 1.8rem; }

  .nav {
    height: auto;
    padding: 8px 0;
  }
  .nav-inner { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .nav-links a { font-size: 0.7rem; padding: 4px 8px; }
  .nav-brand { font-size: 0.82rem; }

  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }

  .hash-row { flex-direction: column; gap: 10px; }

  .terminal-body { padding: 14px; font-size: 0.75rem; }
  .terminal { margin: 0 -8px; }

  .ring-outer { width: 260px; height: 260px; }
  .ring-middle { width: 180px; height: 180px; }
  .ring-inner { width: 110px; height: 110px; }

  .chain-strip { gap: 10px; }
  .chain-item { padding: 8px 14px; font-size: 0.75rem; }

  .btn { padding: 10px 20px; font-size: 0.82rem; }
  .btn-group { flex-direction: column; align-items: center; }

  .code-block pre { padding: 14px; font-size: 0.72rem; }
}
