/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #0a0a0f;
  color: #e0e0e8;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: #00d4ff; text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: 'JetBrains Mono', monospace; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }

/* === Hero === */
#hero {
  text-align: center;
  padding: 6rem 0 4rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(147,51,234,0.06) 0%, transparent 50%);
}
.badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #00d4ff;
  margin-bottom: 2rem;
  background: rgba(0,212,255,0.05);
}
#hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.accent { color: #00d4ff; }
.subtitle { font-size: 1.3rem; color: #9ca3af; margin-bottom: 0.3rem; }
.tagline { font-size: 1.1rem; color: #6b7280; margin-bottom: 2.5rem; }
.tagline strong { color: #e0e0e8; }

/* Stats */
.stats {
  display: flex; justify-content: center; gap: 3rem;
  margin-bottom: 2.5rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value { display: block; font-size: 2rem; font-weight: 700; color: #00d4ff; font-family: 'JetBrains Mono', monospace; }
.stat-label { font-size: 0.85rem; color: #6b7280; }

/* CTA */
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.75rem 2rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, #00d4ff, #9333ea);
  color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.btn-secondary {
  background: transparent; border: 1px solid rgba(0,212,255,0.4);
  color: #00d4ff;
}
.btn-secondary:hover { background: rgba(0,212,255,0.08); text-decoration: none; }

/* === Sections === */
section { padding: 4rem 0; }
section:nth-child(even) { background: rgba(255,255,255,0.02); }
h2 { font-size: 2rem; margin-bottom: 2rem; text-align: center; }

/* === How It Works === */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.step {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 2rem; text-align: center;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #9333ea);
  color: #fff; font-weight: 700; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 1rem; font-size: 1.1rem;
}
.step h3 { margin-bottom: 0.5rem; color: #fff; }
.step code { display: block; margin-top: 0.8rem; font-size: 0.8rem; color: #00d4ff; word-break: break-all; }

/* Code Example */
.code-example {
  background: #111118; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 2rem; overflow-x: auto;
}
.code-example h3 { text-align: left; margin-bottom: 1rem; font-size: 1.1rem; }
.code-example pre { font-size: 0.85rem; line-height: 1.8; color: #c9d1d9; }
.code-example .comment { color: #6b7280; }

/* === Forms === */
form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.95rem; }
.form-group .hint { color: #6b7280; font-weight: 400; font-size: 0.85rem; }
input, textarea, select {
  width: 100%; padding: 0.7rem 1rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1); background: #111118;
  color: #e0e0e8; font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #00d4ff; }
form .btn { width: 100%; margin-top: 0.5rem; }

/* Result Panel */
.result-panel {
  max-width: 600px; margin: 2rem auto 0;
  background: #111118; border: 1px solid rgba(0,212,255,0.2);
  border-radius: 12px; padding: 2rem;
}
.result-panel h3 { margin-bottom: 1rem; }
.warning-box {
  background: rgba(255,180,0,0.1); border: 1px solid rgba(255,180,0,0.3);
  color: #ffb400; padding: 0.8rem; border-radius: 8px; margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.result-field { margin-bottom: 1rem; }
.result-field label { display: block; font-size: 0.85rem; color: #6b7280; margin-bottom: 0.3rem; }
.result-field code {
  display: block; padding: 0.6rem 1rem; background: #0a0a0f;
  border-radius: 6px; font-size: 0.85rem; word-break: break-all;
  color: #00d4ff; border: 1px solid rgba(255,255,255,0.06);
}
.result-field code.secret { color: #ff6b6b; }
details { margin-top: 1rem; }
details summary { cursor: pointer; color: #6b7280; font-size: 0.9rem; }
details pre { margin-top: 0.5rem; font-size: 0.8rem; overflow-x: auto; color: #9ca3af; max-height: 300px; overflow-y: auto; }

/* === Verify === */
.checks { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.check-item { padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.9rem; }
.check-pass { background: rgba(0,255,100,0.1); color: #00ff64; border: 1px solid rgba(0,255,100,0.2); }
.check-fail { background: rgba(255,80,80,0.1); color: #ff5050; border: 1px solid rgba(255,80,80,0.2); }
#verify-errors { color: #ff5050; font-size: 0.9rem; }

/* === Directory === */
.search-bar { display: flex; gap: 1rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.search-bar input { flex: 1; }
.search-bar select { width: 200px; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.agent-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 1.5rem; transition: border-color 0.2s;
}
.agent-card:hover { border-color: rgba(0,212,255,0.3); }
.agent-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.agent-card .did { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #00d4ff; word-break: break-all; margin-bottom: 0.5rem; }
.agent-card .desc { font-size: 0.9rem; color: #9ca3af; margin-bottom: 0.8rem; }
.agent-card .caps { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.cap-tag {
  padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem;
  background: rgba(147,51,234,0.15); color: #c084fc; border: 1px solid rgba(147,51,234,0.2);
}
.cred-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }
.cred-tag {
  padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem;
  background: rgba(0,212,255,0.1); color: #00d4ff; border: 1px solid rgba(0,212,255,0.2);
}
.empty-state { text-align: center; padding: 3rem; color: #6b7280; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination button {
  padding: 0.4rem 0.8rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: #e0e0e8; cursor: pointer;
}
.pagination button.active { background: #00d4ff; color: #0a0a0f; border-color: #00d4ff; }

/* === Credential Types === */
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.type-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 2rem; text-align: center;
}
.type-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.type-card h3 { font-family: 'JetBrains Mono', monospace; color: #00d4ff; margin-bottom: 0.5rem; font-size: 1rem; }
.type-card p { font-size: 0.9rem; color: #9ca3af; }

/* === Footer === */
footer {
  padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center; font-size: 0.9rem; color: #6b7280;
}
.footer-content { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.footer-brand strong { color: #e0e0e8; }
.footer-links { display: flex; gap: 2rem; }
.footer-powered a { color: #9333ea; }

/* === Responsive === */
@media (max-width: 768px) {
  #hero { padding: 4rem 0 3rem; }
  .stats { gap: 1.5rem; }
  .search-bar { flex-direction: column; }
  .search-bar select { width: 100%; }
  .steps { grid-template-columns: 1fr; }
}
