/* TorZon Market Contact – Shared Styles */
:root {
  --bg: #3d4451;
  --bg-light: #e8e9ed;
  --card: #ffffff;
  --text: #3d4451;
  --text-inv: #ffffff;
  --text-muted: #6b7280;
  --text-secondary: #6b7280;
  --cyan: #00bcd4;
  --purple: #5c4d7d;
  --purple-dark: #4a3d65;
  --green: #4caf50;
  --green-light: #d4f4dd;
  --red: #e71d1d;
  --red-light: #ffe5e5;
  --border: #d1d5db;
  --border-dashed: #9ca3af;
  --warn-border: #ffcdd2;
  --bg-dark: #272c36;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--cyan); }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ─── HEADER ─────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--cyan);
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-inv);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.site-logo img { height: 34px; width: auto; border-radius: 4px; }
.site-logo:hover { text-decoration: none; color: var(--cyan); }

nav.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--cyan);
  border-color: var(--cyan);
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-inv);
  border-radius: 2px;
  transition: .2s;
}

/* ─── LIVE STATUS / URL BANNER ─────────────────────────── */
.url-banner {
  background: linear-gradient(140deg, #2a2f3a 0%, var(--bg) 100%);
  padding: 30px 24px 26px;
  text-align: center;
  border-bottom: 1px solid rgba(0,188,212,.25);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-light);
  color: #1b5e1f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 0 0 3px rgba(76,175,80,.18);
}
.live-dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76,175,80,.5); }
  50%       { opacity: .35; box-shadow: 0 0 0 4px rgba(76,175,80,.0); }
}

.url-label {
  color: rgba(255,255,255,.55);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}

.onion-url-wrap { margin: 0 auto 10px; max-width: 720px; }
.onion-url {
  display: block;
  color: var(--cyan);
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(.76rem, 2.3vw, 1rem);
  word-break: break-all;
  text-decoration: none;
  padding: 11px 18px;
  border: 1px solid rgba(0,188,212,.3);
  border-radius: 7px;
  background: rgba(0,188,212,.05);
  transition: background .2s;
  line-height: 1.5;
}
.onion-url:hover {
  background: rgba(0,188,212,.12);
  text-decoration: none;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  font-size: 0.875rem;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s;
}
.copy-btn:hover { background: var(--purple-dark); }
.copy-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.mirror-links {
  margin-top: 15px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.55);
}
.mirror-links a {
  color: rgba(0,188,212,.85);
  text-decoration: none;
  margin: 0 7px;
}
.mirror-links a:hover { color: var(--cyan); text-decoration: underline; }

/* ─── LAYOUT ─────────────────────────────────────────── */
.content-wrap { background: var(--bg-light); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

/* ─── BREADCRUMB ─────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--bg-dark);
  padding: 9px 28px;
  font-size: 0.8rem;
}
.breadcrumb-bar a { color: var(--cyan); text-decoration: none; }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar .sep { color: rgba(255,255,255,.35); margin: 0 6px; }
.breadcrumb-bar .crumb-current { color: rgba(255,255,255,.75); }

/* ─── CARDS / FEATURE GRID ───────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.feature-card {
  background: var(--card);
  border-radius: 9px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.feature-icon { font-size: 1.7rem; margin-bottom: 11px; }
.feature-card h3 { font-size: .97rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.feature-card p  { font-size: .855rem; color: var(--text-muted); line-height: 1.55; }

/* ─── STEPS ──────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  padding: 18px 20px;
  border-radius: 9px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.step-num {
  min-width: 36px;
  height: 36px;
  background: var(--cyan);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.step-content h3 { font-size: .97rem; font-weight: 600; margin-bottom: 4px; }
.step-content p  { font-size: .855rem; color: var(--text-muted); line-height: 1.55; }

/* ─── PILLAR PAGE CARDS ──────────────────────────────── */
.pillar-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.pillar-card {
  background: var(--bg);
  border-radius: 11px;
  padding: 26px 22px;
  text-decoration: none;
  display: block;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(0,188,212,.15);
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.3); text-decoration: none; }
.pillar-card .card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.pillar-card h3 { color: var(--cyan); font-size: 1.05rem; font-weight: 700; margin-bottom: 9px; }
.pillar-card p  { color: rgba(255,255,255,.68); font-size: .86rem; line-height: 1.6; }
.pillar-card .arrow { display: inline-block; color: var(--cyan); margin-top: 14px; font-size: .82rem; font-weight: 600; }

/* ─── FAQ ─────────────────────────────────────────────── */
.faq-list { margin-top: 24px; display: flex; flex-direction: column; gap: 11px; }
.faq-item {
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-q {
  padding: 15px 20px;
  font-weight: 600;
  font-size: .925rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  user-select: none;
  list-style: none;
  transition: background .15s;
}
.faq-q:hover { background: #f9fafb; }
.faq-toggle { font-size: 1.3rem; color: var(--cyan); line-height: 1; flex-shrink: 0; margin-left: 12px; transition: transform .2s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  padding: 0 20px 16px;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ─── TABLES ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-top: 18px; border-radius: 8px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  background: var(--bg);
  color: var(--text-inv);
  padding: 11px 15px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
tbody td { padding: 10px 15px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: #f7f8fa; }
tbody tr:hover td { background: #f0f2f5; }

.status-dot-green { width: 8px; height: 8px; background: var(--green); border-radius: 50%; display: inline-block; margin-right: 5px; }
.status-online { color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 5px; }

/* ─── ALERTS / CALLOUTS ──────────────────────────────── */
.alert-danger {
  background: var(--red-light);
  border: 1px solid var(--warn-border);
  border-left: 4px solid var(--red);
  border-radius: 7px;
  padding: 14px 18px;
  font-size: .875rem;
  color: var(--text);
  margin: 20px 0;
}
.alert-success {
  background: var(--green-light);
  border: 1px solid #a8d5b5;
  border-left: 4px solid var(--green);
  border-radius: 7px;
  padding: 14px 18px;
  font-size: .875rem;
  color: var(--text);
  margin: 20px 0;
}
.alert-info {
  background: #e3f6fc;
  border: 1px solid #b2dff0;
  border-left: 4px solid var(--cyan);
  border-radius: 7px;
  padding: 14px 18px;
  font-size: .875rem;
  color: var(--text);
  margin: 20px 0;
}
.alert-danger strong, .alert-success strong, .alert-info strong { display: block; margin-bottom: 5px; }

/* ─── CHECKLISTS ─────────────────────────────────────── */
.checklist { list-style: none; padding: 0; margin-top: 14px; }
.checklist li {
  padding: 9px 0 9px 32px;
  position: relative;
  font-size: .9rem;
  border-bottom: 1px dashed var(--border-dashed);
  color: var(--text);
  line-height: 1.55;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 9px;
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}

/* ─── TWO-COLUMN ─────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.two-col-asym { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; align-items: start; }

/* ─── PROSE BODY TEXT ─────────────────────────────────── */
.prose { font-size: .9rem; color: var(--text); line-height: 1.75; }
.prose p { margin-bottom: 14px; }
.prose h2 { font-size: 1.3rem; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.prose h3 { font-size: 1.07rem; font-weight: 600; margin: 22px 0 8px; color: var(--text); }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose ul li { margin-bottom: 6px; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--cyan); }

/* ─── SECTION IMAGE ──────────────────────────────────── */
.section-img {
  border-radius: 9px;
  box-shadow: var(--shadow-md);
  margin: 22px 0;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ─── EXPERT QUOTE / ASIDE ───────────────────────────── */
.expert-aside {
  background: var(--bg);
  border-left: 4px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  line-height: 1.65;
}
.expert-aside .expert-name {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: .04em;
}

/* ─── BADGE PILL ─────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-green  { background: var(--green-light); color: #1b5e1f; }
.badge-cyan   { background: rgba(0,188,212,.12); color: var(--cyan); border: 1px solid rgba(0,188,212,.3); }
.badge-purple { background: rgba(92,77,125,.15);  color: var(--purple); }

/* ─── STAT BOX ───────────────────────────────────────── */
.stat-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.stat-box {
  flex: 1;
  min-width: 140px;
  background: var(--card);
  border-radius: 9px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-box .stat-num { font-size: 1.6rem; font-weight: 800; color: var(--cyan); line-height: 1.1; }
.stat-box .stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: .04em; }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 52px 28px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 34px;
  max-width: 1100px;
  margin: 0 auto 38px;
}
.footer-col h4 {
  color: var(--cyan);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 15px;
}
.footer-col p {
  font-size: .8rem;
  line-height: 1.75;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: .8rem;
  color: rgba(255,255,255,.58);
  text-decoration: none;
  display: block;
  line-height: 1.9;
  transition: color .18s;
}
.footer-col a:hover { color: var(--cyan); text-decoration: none; }

.pgp-snippet {
  font-family: 'Courier New', Courier, monospace;
  font-size: .68rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  padding: 9px 11px;
  margin-top: 10px;
  line-height: 1.65;
  word-break: break-all;
  color: rgba(255,255,255,.45);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.footer-bottom p {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  line-height: 1.65;
}
.wisdom-quote {
  font-style: italic;
  font-size: .78rem;
  color: rgba(255,255,255,.38);
  max-width: 400px;
  line-height: 1.6;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  nav.main-nav { display: none; }
  nav.main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 18px 24px;
    gap: 16px;
    z-index: 200;
    border-bottom: 1px solid var(--cyan);
  }
  .hamburger { display: flex; }
  .two-col, .two-col-asym { grid-template-columns: 1fr; }
  .pillar-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .section { padding: 38px 0; }
  .stat-row { gap: 12px; }
  .site-header { padding: 12px 18px; }
  footer { padding: 40px 18px 20px; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .stat-box .stat-num { font-size: 1.3rem; }
  .section-title { font-size: 1.25rem; }
}
