/* ============================================================
   TORZON-DNM.INFO — DESIGN SYSTEM
   Minimal Modern Terminal Interface
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-0:       #0B0B0C;
  --bg-1:       #0F1115;
  --bg-2:       #15171C;
  --bg-3:       #1C1F26;
  --surface:    #1F232B;
  --surface-2:  #252932;

  --text-1:     #F5F5F5;
  --text-2:     #A1A1AA;
  --text-3:     #6B7280;

  --accent-b:   #7C9EFF;
  --accent-p:   #A78BFA;

  --border:     rgba(255,255,255,0.06);
  --border-s:   rgba(255,255,255,0.05);
  --border-m:   rgba(255,255,255,0.08);

  --shadow:     rgba(0,0,0,0.20);
  --shadow-lg:  rgba(0,0,0,0.35);

  --radius-sm:  6px;
  --radius:     8px;
  --radius-md:  10px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace;

  --transition: 160ms ease;
  --max-w:      1200px;
  --nav-h:      64px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-b); text-decoration: none; transition: color var(--transition); }
a:hover { color: #a3baff; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }
input, textarea, select { font-family: var(--font-sans); }

/* ── Layout Utilities ──────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(11,11,12,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-1);
  background: var(--surface);
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--text-2); border-radius: 2px; transition: var(--transition); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-ghost {
  color: var(--text-2);
  background: transparent;
  border-color: var(--border-m);
}
.btn-ghost:hover {
  color: var(--text-1);
  background: var(--surface);
  border-color: var(--border-m);
}
.btn-primary {
  background: var(--accent-b);
  color: #0a0a0c;
  font-weight: 600;
  border-color: transparent;
}
.btn-primary:hover {
  background: #a3baff;
  color: #08080a;
}
.btn-surface {
  background: var(--surface);
  color: var(--text-1);
  border-color: var(--border-m);
}
.btn-surface:hover {
  background: var(--surface-2);
  color: var(--text-1);
}
.btn-sm { padding: 6px 12px; font-size: 0.8125rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 96px;
  background: var(--bg-1);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-content { order: 1; }
.hero-visual { order: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-m);
  color: var(--text-2);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 5px 10px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-b);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-1);
}
.hero h1 .accent { color: var(--accent-b); }
.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-screenshot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 64px var(--shadow-lg);
}
.hero-screenshot img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ── Terminal Block ─────────────────────────────────────────── */
.terminal {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-left: 4px;
}
.terminal-body { padding: 20px 24px; font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.8; }
.t-line { display: flex; align-items: baseline; gap: 10px; }
.t-prompt { color: var(--accent-b); user-select: none; }
.t-cmd    { color: var(--text-1); }
.t-arrow  { color: var(--text-3); }
.t-out    { color: var(--text-2); padding-left: 20px; }
.t-ok     { color: #4ADE80; padding-left: 20px; }
.t-err    { color: #F87171; padding-left: 20px; }
.t-cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent-b); margin-left: 2px; animation: blink 1.1s step-end infinite; vertical-align: middle; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Section Headings ───────────────────────────────────────── */
.section-head { margin-bottom: 56px; }
.section-head.centered { text-align: center; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-b);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--accent-b);
}
h2.section-title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-1);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.7;
}
.section-head.centered .section-desc { margin: 0 auto; }

/* ── Feature Grid ───────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-s);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--border-m);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.feature-icon img { width: 28px; height: 28px; object-fit: contain; }
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }
.feature-code {
  margin-top: 14px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-s);
  padding: 24px;
}
.card-hover {
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card-hover:hover {
  border-color: var(--border-m);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

/* ── News Grid ──────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-s);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.news-card:hover { border-color: var(--border-m); transform: translateY(-2px); }
.news-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.news-card:hover .news-thumb img { transform: scale(1.03); }
.news-body { padding: 18px 20px; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-3);
}
.news-category {
  background: var(--bg-3);
  color: var(--accent-b);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.news-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1.4;
}
.news-card p { font-size: 0.8125rem; color: var(--text-2); line-height: 1.6; }

/* ── Tag / Badge ────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.tag-running { color: #4ADE80; border-color: rgba(74,222,128,0.2); background: rgba(74,222,128,0.06); }
.tag-idle    { color: var(--text-3); border-color: var(--border); background: var(--surface); }
.tag-complete{ color: var(--accent-b); border-color: rgba(124,158,255,0.2); background: rgba(124,158,255,0.06); }
.tag-warn    { color: #FBBF24; border-color: rgba(251,191,36,0.2); background: rgba(251,191,36,0.06); }

/* ── Code / Log Block ───────────────────────────────────────── */
.log-block {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.log-header-title { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-3); }
.log-body { padding: 20px; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.9; max-height: 320px; overflow-y: auto; }
.log-body::-webkit-scrollbar { width: 4px; }
.log-body::-webkit-scrollbar-track { background: transparent; }
.log-body::-webkit-scrollbar-thumb { background: var(--border-m); border-radius: 4px; }
.log-info    { color: var(--text-3); }
.log-info::before { content: '[INFO] '; color: var(--text-3); }
.log-success { color: #4ADE80; }
.log-success::before { content: '[SUCCESS] '; }
.log-warn    { color: #FBBF24; }
.log-warn::before { content: '[WARN] '; }
.log-error   { color: #F87171; }
.log-error::before { content: '[ERROR] '; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border-s);
  background: var(--surface);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-1);
  transition: background var(--transition);
  user-select: none;
  gap: 16px;
}
.faq-q:hover { background: var(--surface-2); }
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: 1.2rem;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 20px 18px; }

/* ── Onion Links / Copy Button ──────────────────────────────── */
.onion-card {
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: var(--radius-md);
  padding: 20px;
}
.onion-label { font-size: 0.75rem; font-family: var(--font-mono); color: var(--accent-b); margin-bottom: 8px; }
.onion-link-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.onion-url {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
  word-break: break-all;
  line-height: 1.5;
}
.copy-btn {
  flex-shrink: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.copy-btn:hover { background: var(--surface); color: var(--text-1); }
.copy-btn.copied { color: #4ADE80; border-color: rgba(74,222,128,0.3); }

/* ── Crypto / Stats ─────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}
.stat-label { font-size: 0.75rem; font-family: var(--font-mono); color: var(--text-3); margin-bottom: 8px; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.02em; }
.stat-sub   { font-size: 0.8rem; color: var(--text-3); margin-top: 4px; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead tr { background: var(--bg-3); }
th { padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
td { padding: 12px 16px; color: var(--text-2); border-bottom: 1px solid var(--border-s); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface); }

/* ── Step / Guide List ──────────────────────────────────────── */
.step-list { display: flex; flex-direction: column; gap: 24px; }
.step-item { display: flex; gap: 20px; }
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-b);
}
.step-body h4 { font-size: 0.9375rem; font-weight: 600; color: var(--text-1); margin-bottom: 6px; }
.step-body p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--text-2); }
.breadcrumb-sep { color: var(--border-m); }

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 64px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.7;
}

/* ── PGP Block ──────────────────────────────────────────────── */
.pgp-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pgp-block pre {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-2);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── Harm Reduction Callout ─────────────────────────────────── */
.callout {
  border-radius: var(--radius-md);
  border-left: 3px solid;
  padding: 16px 20px;
  background: var(--surface);
  margin-bottom: 20px;
}
.callout-warn  { border-color: #FBBF24; }
.callout-danger{ border-color: #F87171; }
.callout-info  { border-color: var(--accent-b); }
.callout-ok    { border-color: #4ADE80; }
.callout-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-1);
}
.callout p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-3); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-3); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--text-2); }
.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 640px;
}
.footer-meta { font-size: 0.75rem; font-family: var(--font-mono); color: var(--text-3); white-space: nowrap; }

/* ── Dividers ───────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 48px 0; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--surface-2); }

/* ── Prose / Article ────────────────────────────────────────── */
.prose h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-1); margin: 40px 0 16px; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.1875rem; font-weight: 600; color: var(--text-1); margin: 32px 0 12px; }
.prose h4 { font-size: 1rem; font-weight: 600; color: var(--text-2); margin: 24px 0 10px; }
.prose p  { color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }
.prose ul, .prose ol { margin: 16px 0 20px 20px; }
.prose li { color: var(--text-2); line-height: 1.7; margin-bottom: 8px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--accent-b); }
.prose strong { color: var(--text-1); font-weight: 600; }
.prose code {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 2px 6px;
  color: var(--text-2);
}
.prose pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 20px 0;
}
.prose pre code { background: none; border: none; padding: 0; font-size: 0.875rem; }
.prose blockquote {
  border-left: 3px solid var(--accent-b);
  margin: 20px 0;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p { color: var(--text-2); margin: 0; }
.prose .table-wrap { margin: 20px 0; }

/* ── Sidebar Layout ─────────────────────────────────────────── */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}
.sidebar-card h4 { font-size: 0.8125rem; font-weight: 600; color: var(--text-2); margin-bottom: 14px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.toc-link { display: block; font-size: 0.8125rem; color: var(--text-3); padding: 5px 0; border-bottom: 1px solid var(--border-s); transition: color var(--transition); }
.toc-link:last-child { border-bottom: none; }
.toc-link:hover { color: var(--text-2); }

/* ── Input / Form ───────────────────────────────────────────── */
.input {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--border-m);
  border-radius: var(--radius);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 10px 14px;
  transition: border-color var(--transition);
  outline: none;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: rgba(124,158,255,0.4); }

/* ── News Post ──────────────────────────────────────────────── */
.post-cover {
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-header { margin-bottom: 40px; }
.post-header h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; color: var(--text-1); margin-bottom: 14px; }
.post-meta { display: flex; align-items: center; gap: 16px; font-size: 0.8125rem; font-family: var(--font-mono); color: var(--text-3); flex-wrap: wrap; }
.post-meta .category { color: var(--accent-b); }

/* ── Trust Badge ────────────────────────────────────────────── */
.trust-list { display: flex; flex-direction: column; gap: 10px; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.trust-icon { font-size: 1rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .news-grid    { grid-template-columns: 1fr; }
  .stat-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr; gap: 32px; }
  .nav-links    { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-1); border-bottom: 1px solid var(--border); padding: 16px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .section  { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ── Fade-in animation (requires js-fade body class added by JS) ── */
/* Without JS: elements are always visible (no body class = no hide) */
.js-fade .fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.js-fade .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
