/* EXCAVATOR — shared base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; background: #fff; color: #495057; min-height: 100vh; line-height: 1.5; }
a { color: #343a40; text-decoration: none; }
a:hover { color: #23272b; text-decoration: underline; }
h1, h2, h3, h4 { color: #2d343a; }
code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; color: #2d343a; background: #f1f3f5; padding: 2px 6px; border-radius: 4px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 32px 15px 80px; }

/* Brand */
.brand { text-align: center; }
.brand-link { display: inline-block; color: inherit; text-decoration: none; }
.brand-link:hover { text-decoration: none; color: inherit; }
.brand-logo { display: block; margin: 0 auto; width: 232px; height: auto; }
.brand-name { display: block; font-size: 46px; letter-spacing: 3px; color: #2d343a; font-weight: 400; margin-top: 6px; line-height: 1.1; }
.brand-name strong { font-weight: 700; }
.brand-tagline { font-size: 17px; color: #6c757d; margin-top: 10px; line-height: 1.4; }
.brand-compact .brand-logo { width: 110px; }
.brand-compact .brand-name { font-size: 28px; letter-spacing: 2px; margin-top: 2px; }

/* Search panel */
.search-panel { display: block; width: 100%; margin-top: 46px; border: 1px solid #dee2e6; border-radius: 6px; padding: 24px; background: #fff; }
.search-box { display: flex; align-items: stretch; }
.search-input { flex: 1 1 auto; min-width: 0; height: 58px; font-size: 20px; padding: 0 18px; border: 1px solid #ced4da; border-right: none; border-radius: 4px 0 0 4px; color: #495057; outline: none; background: #fff; font-family: inherit; }
.search-input::placeholder { color: #6c757d; opacity: 1; }
.search-input:focus { border-color: #adb5bd; }
.search-btn { flex: 0 0 auto; height: 58px; padding: 0 30px; background: #343a40; color: #fff; border: 1px solid #343a40; border-radius: 0 4px 4px 0; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; font-family: inherit; white-space: nowrap; }
.search-btn:hover { background: #23272b; border-color: #23272b; }

/* Buttons & cards */
.btn { display: inline-block; padding: 14px 30px; background: #343a40; color: #fff; border: 1px solid #343a40; border-radius: 4px; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; font-family: inherit; }
.btn:hover { background: #23272b; border-color: #23272b; color: #fff; text-decoration: none; }
.btn-secondary { background: #fff; color: #343a40; }
.btn-secondary:hover { background: #f8f9fa; color: #23272b; }
.card { border: 1px solid #dee2e6; border-radius: 6px; padding: 24px; background: #fff; }

/* Footer */
.rule { margin: 64px 0 0; border: 0; border-top: 1px solid #e6e8ea; }
.footer { text-align: center; margin-top: 58px; }
.footer-links { font-size: 22px; color: #6c757d; font-weight: 700; line-height: 1.3; text-transform: uppercase; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: #343a40; }
.copyright { font-size: 15px; color: #6c757d; margin-top: 18px; }
.footer-onion { font-size: 13px; color: #6c757d; margin-top: 10px; word-break: break-all; }
.footer-onion code { font-size: 12px; background: none; padding: 0; color: #6c757d; }

@media (max-width: 600px) {
  .brand-logo { width: 170px; }
  .brand-name { font-size: 36px; }
  .search-panel { padding: 14px; margin-top: 32px; }
  .search-input { height: 50px; font-size: 17px; padding: 0 14px; }
  .search-btn { height: 50px; padding: 0 18px; font-size: 15px; }
  .footer-links { font-size: 17px; }
  .rule { margin-top: 48px; }
  .footer { margin-top: 40px; }
}

body { line-height: 1.75; }
strong { color: #2d343a; }

/* Hero */
.hero { text-align: center; margin-top: 48px; padding-bottom: 40px; border-bottom: 1px solid #e6e8ea; }
.hero h1 { font-size: 34px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; line-height: 1.2; }
.hero h1 span { color: #2d343a; }
.hero-sub { color: #6c757d; font-size: 17px; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.hero-tags { display: flex; justify-content: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-tag { padding: 5px 14px; border: 1px solid #dee2e6; border-radius: 4px; font-size: 12px; color: #6c757d; letter-spacing: 1px; text-transform: uppercase; }

/* TOC */
.toc { margin: 36px 0 0; padding: 20px 24px; border: 1px solid #dee2e6; border-radius: 6px; }
.toc-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: #6c757d; margin-bottom: 10px; font-weight: 700; }
.toc-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.toc-links a { font-size: 15px; color: #2d343a; font-weight: 700; }

/* Content */
.content { max-width: 820px; margin: 0 auto; }

/* Sections */
.section { margin-top: 56px; }
.section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid #e6e8ea; }
.section-icon { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #dee2e6; border-radius: 6px; }
.section-header h2 { font-size: 22px; letter-spacing: 1px; text-transform: uppercase; }
.section p { margin-bottom: 16px; font-size: 16px; }
.lead-text { font-size: 18px; color: #2d343a; margin-bottom: 20px; padding-left: 16px; border-left: 3px solid #343a40; line-height: 1.6; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 24px 0; }
.card { border: 1px solid #dee2e6; border-radius: 6px; padding: 24px; }
.card-icon { margin-bottom: 14px; }
.card h3 { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.card p { font-size: 14px; color: #6c757d; margin-bottom: 0; line-height: 1.6; }

/* Stat strip */
.stat-strip { display: flex; gap: 12px; margin: 28px 0 8px; flex-wrap: wrap; }
.stat-strip-item { flex: 1; min-width: 120px; text-align: center; padding: 16px 12px; border: 1px solid #dee2e6; border-radius: 6px; }
.stat-strip-num { display: block; font-size: 26px; font-weight: 700; color: #2d343a; }
.stat-strip-label { display: block; font-size: 11px; color: #6c757d; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* Orgs */
.orgs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 24px 0; }
.org-card { border: 1px solid #dee2e6; border-radius: 6px; padding: 16px; }
.org-type { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #6c757d; font-weight: 700; margin-bottom: 6px; }
.org-names { color: #2d343a; font-size: 15px; }

/* Steps */
.steps { margin: 24px 0; }
.step { display: flex; gap: 18px; margin-bottom: 24px; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #343a40; color: #fff; font-weight: 700; font-size: 17px; border-radius: 50%; }
.step-content { flex: 1; padding-top: 4px; }
.step-content h4 { font-size: 17px; margin-bottom: 4px; }
.step-content p { font-size: 15px; color: #495057; margin-bottom: 0; }

/* Warning / info boxes */
.warning { display: flex; align-items: flex-start; gap: 14px; border: 1px solid #343a40; border-radius: 6px; padding: 18px 22px; margin-top: 28px; color: #495057; font-size: 15px; line-height: 1.6; }
.warning-icon { flex-shrink: 0; color: #2d343a; margin-top: 2px; }
.warning strong { color: #2d343a; }
.info-box { border: 1px solid #dee2e6; border-radius: 6px; padding: 18px 22px; margin: 16px 0; font-size: 15px; color: #495057; line-height: 1.6; background: #f8f9fa; }

/* Safety */
.safety-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 24px 0; }
.safety-card { border: 1px solid #dee2e6; border-radius: 6px; padding: 22px; }
.safety-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; border: 1px solid #343a40; }
.safety-do-not .safety-badge { background: #343a40; color: #fff; }
.safety-do .safety-badge { background: #fff; color: #2d343a; }
.safety-card h3 { font-size: 16px; margin-bottom: 8px; }
.safety-card p { font-size: 14px; color: #6c757d; margin-bottom: 0; line-height: 1.6; }

/* Relay chain */
.relay-chain { display: flex; align-items: center; justify-content: center; margin: 32px 0; padding: 28px 16px; border: 1px solid #dee2e6; border-radius: 6px; overflow-x: auto; }
.relay-node { text-align: center; flex-shrink: 0; min-width: 80px; }
.relay-dot { width: 14px; height: 14px; border-radius: 50%; margin: 0 auto 8px; background: #343a40; }
.relay-you .relay-dot, .relay-exit .relay-dot { background: #fff; border: 2px solid #343a40; }
.relay-label { font-size: 14px; font-weight: 700; color: #2d343a; margin-bottom: 3px; }
.relay-desc { font-size: 11px; color: #6c757d; max-width: 110px; margin: 0 auto; }
.relay-arrow { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 6px; flex-shrink: 0; }
.relay-arrow-line { width: 32px; height: 1px; background: #343a40; }
.relay-encrypt { font-size: 9px; color: #6c757d; text-transform: uppercase; letter-spacing: 1px; }

/* FAQ */
.faq-list { margin: 20px 0; }
.faq-item { padding: 20px 0; border-bottom: 1px solid #e6e8ea; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 17px; font-weight: 700; color: #2d343a; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.faq-q::before { content: 'Q'; flex-shrink: 0; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: #343a40; color: #fff; font-size: 12px; font-weight: 700; border-radius: 4px; }
.faq-a { font-size: 15px; color: #495057; padding-left: 36px; line-height: 1.7; }

/* CTA */
.cta { text-align: center; padding: 48px 24px; margin-top: 56px; border: 1px solid #dee2e6; border-radius: 6px; }
.cta h2 { font-size: 22px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.cta p { color: #6c757d; margin-bottom: 24px; font-size: 16px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-btn { display: inline-block; padding: 14px 30px; border-radius: 4px; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; border: 1px solid #343a40; }
.cta-btn:hover { text-decoration: none; }
.cta-btn-primary { background: #343a40; color: #fff; }
.cta-btn-primary:hover { background: #23272b; color: #fff; }
.cta-btn-secondary { background: #fff; color: #343a40; }
.cta-btn-secondary:hover { background: #f8f9fa; }
.cta-onion { margin-top: 24px; font-size: 13px; color: #6c757d; }
.cta-onion-label { display: block; margin-bottom: 4px; }
.cta-onion code { font-size: 12px; word-break: break-all; }

@media (max-width: 640px) {
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 16px; }
  .cards, .safety-grid { grid-template-columns: 1fr; }
  .orgs-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); }
  .section-header h2 { font-size: 18px; }
  .relay-chain { flex-wrap: wrap; gap: 8px; }
  .relay-arrow { transform: rotate(90deg); padding: 4px 0; }
  .relay-arrow-line { width: 20px; }
  .step-num { width: 34px; height: 34px; font-size: 15px; }
  .cta { padding: 36px 20px; }
}
@media (max-width: 400px) {
  .orgs-grid { grid-template-columns: 1fr; }
}
