* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a1a12;
  color: #e2e8f0;
  min-height: 100vh;
}

.container { max-width: 820px; margin: 0 auto; padding: 2rem; }

/* Nav */
nav { margin-bottom: 3rem; display: flex; gap: 1rem; flex-wrap: wrap; }
nav a {
  color: #94a3b8;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #1e3a2a;
  transition: all 0.15s;
}
nav a:hover { color: #4ade80; border-color: #4ade80; }
nav a.active { color: #4ade80; border-color: #4ade80; }

/* Hero */
.hero { text-align: center; margin-bottom: 4rem; }
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #22c55e, #4ade80, #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-size: 1.4rem;
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hero .tagline-sub {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  display: inline-block;
}
.btn-primary {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
}
.btn-primary:hover { background: linear-gradient(135deg, #15803d, #16a34a); }
.btn-outline {
  background: transparent;
  color: #4ade80;
  border: 2px solid #16a34a;
}
.btn-outline:hover { background: rgba(22, 163, 74, 0.15); }

/* Sections */
.section { margin-bottom: 3.5rem; }
.section h2 {
  font-size: 1.5rem;
  color: #86efac;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.section p {
  color: #94a3b8;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.section p em { color: #4ade80; font-style: italic; }

/* Stack diagram */
.stack-diagram {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.stack-layer {
  background: #0f2318;
  border: 1px solid #1e3a2a;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stack-layer.resolve-layer {
  border-color: #4ade80;
  background: #0f2d1a;
}
.stack-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: #e2e8f0;
}
.resolve-layer .stack-label { color: #4ade80; }
.stack-desc {
  color: #94a3b8;
  font-size: 0.9rem;
}
.stack-source {
  color: #64748b;
  font-size: 0.75rem;
  font-family: monospace;
  margin-top: 0.15rem;
}
.stack-arrow {
  color: #22c55e;
  font-size: 1.2rem;
  padding: 0.25rem 0;
  text-align: center;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.step {
  background: #0f2318;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #1e3a2a;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-num {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step-content h3 { color: #e2e8f0; font-size: 1.05rem; margin-bottom: 0.35rem; }
.step-content p { color: #94a3b8; font-size: 0.95rem; margin-bottom: 0; }

/* Response preview */
.response-preview {
  background: #06120c;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #1e3a2a;
  overflow-x: auto;
}
.response-preview pre {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
}
.response-preview code {
  color: #4ade80;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.feature {
  background: #0f2318;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #1e3a2a;
}
.feature h3 { color: #e2e8f0; font-size: 1rem; margin-bottom: 0.5rem; }
.feature p { color: #64748b; font-size: 0.9rem; line-height: 1.5; margin-bottom: 0; }

/* Integration grid */
.integration-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.integration-card {
  background: #0f2318;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #1e3a2a;
}
.integration-card h3 { color: #e2e8f0; font-size: 1rem; margin-bottom: 0.5rem; }
.integration-card p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 0.75rem; }
.integration-card code {
  display: block;
  background: #06120c;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #4ade80;
  font-family: monospace;
}

/* Cards */
.card {
  background: #0f2318;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #1e3a2a;
  margin-bottom: 1.5rem;
}
.card h2 {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Search */
.search-row { display: flex; gap: 0.5rem; }
.search-row input {
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #1e3a2a;
  background: #06120c;
  color: #e2e8f0;
  font-family: monospace;
  font-size: 0.9rem;
}
.search-row input:focus { outline: none; border-color: #4ade80; }
button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
  background: #22c55e;
  color: #0a1a12;
}
button:hover { background: #16a34a; }

/* File drop */
.or-divider {
  text-align: center;
  color: #64748b;
  margin: 1rem 0;
  font-size: 0.875rem;
}
.file-drop {
  border: 2px dashed #1e3a2a;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
}
.file-drop:hover, .file-drop.dragover { border-color: #4ade80; color: #4ade80; }
.file-drop input { display: none; }

/* Results */
.hidden { display: none; }
.result-card {
  border: 2px solid #1e3a2a;
  border-radius: 12px;
  padding: 1.5rem;
  background: #0f2318;
  margin-bottom: 1.5rem;
}
.result-card.verified { border-color: #48bb78; }
.result-card.partial { border-color: #f59e0b; }
.result-card.unknown { border-color: #64748b; }
.result-card.disputed { border-color: #f56565; }

.result-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.result-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.result-icon.verified { background: #0f2d1a; color: #48bb78; }
.result-icon.partial { background: #2d2a0f; color: #f59e0b; }
.result-icon.unknown { background: #1a2318; color: #64748b; }
.result-icon.disputed { background: #2d0f0f; color: #f56565; }
.result-title { font-size: 1.2rem; font-weight: 600; }
.result-subtitle { color: #94a3b8; font-size: 0.875rem; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.detail-item {
  background: #06120c;
  border-radius: 8px;
  padding: 0.75rem;
}
.detail-label { font-size: 0.7rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.detail-value { font-size: 0.95rem; color: #e2e8f0; margin-top: 0.25rem; }
.detail-value.mono { font-family: monospace; font-size: 0.8rem; word-break: break-all; }
.detail-item.full-width { grid-column: 1 / -1; }

/* Assertions list */
.assertion-item {
  background: #06120c;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.assertion-type {
  color: #4ade80;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: monospace;
  min-width: 120px;
}
.assertion-issuer { color: #e2e8f0; font-size: 0.9rem; }
.assertion-meta { color: #64748b; font-size: 0.75rem; margin-left: auto; }

/* Summary badges */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.summary-badge {
  background: #06120c;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}
.summary-badge-value {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.summary-badge-label {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-verified { color: #48bb78; }
.badge-partial { color: #f59e0b; }
.badge-unknown { color: #64748b; }
.badge-disputed { color: #f56565; }
.badge-high { color: #48bb78; }
.badge-medium { color: #f59e0b; }
.badge-low { color: #f56565; }
.badge-none { color: #64748b; }

/* Loading */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #1e3a2a;
  border-top-color: #4ade80;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hashing-status {
  color: #4ade80;
  font-family: monospace;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  padding: 2rem 0;
  border-top: 1px solid #1e3a2a;
}
.footer a { color: #4ade80; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links { margin-top: 0.5rem; }

/* Docs */
.endpoint-card {
  background: #0f2318;
  border: 1px solid #1e3a2a;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.endpoint-method {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 0.5rem;
}
.method-post { background: #0f2d1a; color: #48bb78; }
.method-get { background: #0f1a2d; color: #38bdf8; }
.endpoint-path {
  font-family: monospace;
  color: #4ade80;
  font-size: 0.95rem;
}
.endpoint-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}
.endpoint-code {
  background: #06120c;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.8rem;
  font-family: monospace;
  color: #4ade80;
  overflow-x: auto;
  line-height: 1.5;
}
.endpoint-auth {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #1e3a2a;
  color: #94a3b8;
  margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.1rem; }
  .features { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  nav { gap: 0.5rem; }
}
