/* torzonmarket.fyi — Deep-Dive Knowledge Center */
/* Investigative, authoritative, slightly offbeat */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Courier+Prime:wght@400;700&family=Work+Sans:wght@300;400;600;800&family=Merriweather:wght@400;700&display=swap');

:root {
  --bg-primary: #3d4451;
  --bg-secondary: #e8e9ed;
  --bg-card: #ffffff;
  --bg-emphasis: #d4f4dd;
  --text-primary: #3d4451;
  --text-secondary: #6b7280;
  --text-inverse: #ffffff;
  --text-muted: #9ca3af;
  --brand-primary: #00bcd4;
  --brand-secondary: #5c4d7d;
  --status-success: #4caf50;
  --status-warning: #ffa726;
  --status-error: #ef5350;
  --status-success-light: #d4f4dd;
  --accent-danger: #e71d1d;
  --accent-danger-light: #ffe5e5;
  --border-default: #d1d5db;
  --border-dashed: #9ca3af;
  --border-alert: #ffcdd2;
  --btn-primary: #5c4d7d;
  --btn-hover: #4a3d65;
  --btn-text: #ffffff;
}

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

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  background: var(--bg-primary);
  padding: 1rem 2rem 0.8rem;
  border-bottom: 2px solid var(--brand-secondary);
}
.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.site-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.site-logo img { height: 40px; width: auto; border-radius: 7px; }
.site-logo span {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-inverse);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.main-nav { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-inverse);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.32rem 0.75rem;
  border-radius: 5px;
  transition: background 0.2s;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { background: var(--brand-secondary); }

/* ONION HERO */
.onion-hero {
  background: linear-gradient(160deg, #3d4451 50%, var(--brand-secondary) 100%);
  padding: 2.1rem 1.5rem 1.5rem;
  text-align: center;
}
.onion-hero h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--brand-primary);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.url-box {
  background: rgba(255,255,255,0.06);
  border: 2px dashed var(--brand-primary);
  border-radius: 11px;
  padding: 1.1rem 1rem;
  max-width: 720px;
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.blink-dot {
  width: 13px; height: 13px;
  background: var(--status-success);
  border-radius: 50%;
  display: inline-block;
  animation: blinker 1.4s ease-in-out infinite;
  flex-shrink: 0;
  box-shadow: 0 0 7px var(--status-success);
}
@keyframes blinker {
  0%, 100% { opacity: 1; box-shadow: 0 0 7px var(--status-success); }
  50% { opacity: 0.3; box-shadow: 0 0 2px var(--status-success); }
}
.onion-url {
  font-family: 'Courier Prime', monospace;
  color: var(--text-inverse);
  font-size: 1.02rem;
  word-break: break-all;
  overflow-wrap: anywhere;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
}
.onion-url a { color: var(--brand-primary); text-decoration: none; }
.onion-url a:hover { text-decoration: underline; }
.copy-btn {
  background: var(--btn-primary);
  color: var(--btn-text);
  border: none;
  padding: 0.48rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.91rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  transition: background 0.18s;
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--btn-hover); }
.copy-btn.copied { background: var(--status-success); }
.clearnet-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }
.clearnet-note a { color: var(--brand-primary); }

/* BREADCRUMBS */
.breadcrumbs {
  max-width: 1060px;
  margin: 0.8rem auto 0;
  padding: 0 2rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--brand-primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 0.35rem; }

/* MAIN */
.content-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.7rem 2rem 2.5rem;
}
.page-card {
  background: var(--bg-card);
  border-radius: 13px;
  padding: 2.1rem 2rem;
  margin-bottom: 1.7rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.page-card.quirk-left { border-left: 5px solid var(--brand-primary); margin-left: -6px; }
.page-card.quirk-right { border-right: 4px solid var(--brand-secondary); margin-right: -10px; }
.page-card.quirk-top { border-top: 4px dashed var(--status-warning); }
.page-card.quirk-purple { border-left: 5px solid var(--brand-secondary); background: linear-gradient(90deg, #f0ecf5 0%, var(--bg-card) 15%); }

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
  line-height: 1.18;
  letter-spacing: -0.8px;
}
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.38rem;
  color: var(--brand-secondary);
  margin: 1.4rem 0 0.5rem;
  letter-spacing: -0.2px;
}
h3 {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 1.1rem 0 0.35rem;
  font-weight: 600;
}
p { margin-bottom: 1rem; }
a { color: var(--brand-primary); }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.3rem;
  font-size: 0.95rem;
}
.info-table th, .info-table td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
}
.info-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}
.info-table tr:hover td { background: #f7f8fa; }

.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li {
  padding: 0.48rem 0 0.48rem 2rem;
  position: relative;
  border-bottom: 1px dashed var(--border-dashed);
  font-size: 0.96rem;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0.3rem;
  color: var(--status-success);
  font-weight: 700;
  font-size: 1.1rem;
}

.warning-box {
  background: var(--accent-danger-light);
  border: 2px solid var(--border-alert);
  border-radius: 9px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  color: var(--accent-danger);
  font-weight: 500;
  font-size: 0.95rem;
}
.warning-box strong { display: block; margin-bottom: 0.2rem; }

.faq-block { margin: 1.4rem 0; }
.faq-q {
  font-weight: 700;
  color: var(--brand-secondary);
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
  font-family: 'Space Grotesk', sans-serif;
}
.faq-a {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--bg-emphasis);
}

.trust-badges { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.1rem 0; }
.trust-badge {
  background: var(--bg-emphasis);
  border-radius: 7px;
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.trust-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--status-success);
  display: inline-block;
}

/* RISK SCORE */
.risk-score {
  display: inline-block;
  background: var(--bg-emphasis);
  border: 2px solid var(--status-success);
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--status-success);
  margin: 0.5rem 0 1rem;
}

.content-img {
  max-width: 100%;
  height: auto;
  border-radius: 9px;
  margin: 1.1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.img-float-right { float: right; max-width: 270px; margin: 0 0 1rem 1.4rem; }
.img-float-left { float: left; max-width: 250px; margin: 0 1.4rem 1rem 0; }

.pillar-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.3rem; margin: 1.4rem 0; }
.pillar-link {
  display: block;
  background: var(--bg-secondary);
  border-radius: 11px;
  padding: 1.3rem 1.2rem;
  text-decoration: none;
  color: var(--text-primary);
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pillar-link:hover { border-color: var(--brand-primary); box-shadow: 0 3px 14px rgba(0,188,212,0.12); }
.pillar-link h3 { color: var(--brand-secondary); margin-top: 0; }
.pillar-link p { color: var(--text-secondary); font-size: 0.92rem; margin: 0; }

.status-indicator {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-indicator.online { background: var(--status-success); animation: blinker 1.4s ease-in-out infinite; }

/* FLOWCHART STEPS */
.flow-step {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 0.7rem 0;
  border-left: 4px solid var(--brand-primary);
}
.flow-step strong { color: var(--brand-secondary); }

.site-footer {
  background: #2b2f38;
  color: var(--text-muted);
  padding: 2rem 2rem 1.2rem;
  margin-top: 2rem;
  font-size: 0.87rem;
  border-top: 3px solid var(--brand-secondary);
}
.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.3rem;
}
.footer-col { flex: 1 1 190px; min-width: 170px; }
.footer-col h4 {
  color: var(--brand-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  margin-bottom: 0.55rem;
}
.footer-col a { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 0.3rem; }
.footer-col a:hover { color: var(--brand-primary); }
.footer-pgp {
  font-family: 'Courier Prime', monospace;
  font-size: 0.77rem;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.5;
  background: rgba(255,255,255,0.04);
  padding: 0.5rem;
  border-radius: 5px;
  margin-top: 0.4rem;
}
.footer-quote {
  text-align: center;
  width: 100%;
  padding-top: 1.1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.84rem;
}

@media (max-width: 700px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav { width: 100%; justify-content: flex-start; }
  .content-wrap { padding: 1rem 0.8rem; }
  .page-card { padding: 1.3rem 1rem; margin-left: 0 !important; margin-right: 0 !important; }
  h1 { font-size: 1.45rem; }
  .url-box { flex-direction: column; text-align: center; }
  .onion-url { text-align: center; font-size: 0.9rem; }
  .img-float-right, .img-float-left { float: none; max-width: 100%; margin: 1rem 0; }
  .footer-inner { flex-direction: column; gap: 1.4rem; }
  .trust-badges { flex-direction: column; }
  .info-table { font-size: 0.84rem; }
  .info-table th, .info-table td { padding: 0.42rem 0.5rem; }
  .pillar-cards { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  body { font-size: 15px; }
  .site-header { padding: 0.8rem 1rem 0.6rem; }
  h1 { font-size: 1.25rem; }
}
