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

:root {
  --bg-primary: #0e0e0e;
  --bg-secondary: #141414;
  --bg-card: #181818;
  --bg-card-hover: #1f1f1f;
  --border-subtle: rgba(156, 163, 175, 0.06);
  --border-hover: rgba(156, 163, 175, 0.15);
  --text-primary: #e8edf5;
  --text-secondary: #8892a8;
  --text-muted: #4a5468;
  --accent-gray: #9ca3af;
  --accent-gradient: linear-gradient(135deg, #9ca3af, #9ca3af);
  --glow-gray: 0 0 20px rgba(156, 163, 175, 0.15);
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 15% 25%, rgba(156, 163, 175, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 75%, rgba(156, 163, 175, 0.025) 0%, transparent 50%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(156, 163, 175, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 163, 175, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

::selection { background: rgba(156, 163, 175, 0.2); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(156, 163, 175, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(156, 163, 175, 0.2); }

a { color: var(--accent-gray); text-decoration: none; transition: all 0.2s; }
a:hover { color: #d1d5db; text-shadow: 0 0 12px rgba(156, 163, 175, 0.3); }
a:focus-visible { outline: 2px solid var(--accent-gray); outline-offset: 2px; border-radius: 2px; }

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 10, 20, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(156, 163, 175, 0.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav-brand {
  font-size: 22px; font-weight: 900; letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-sans);
}
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav-links a {
  color: var(--text-muted); padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; transition: all 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text-secondary); background: rgba(156, 163, 175, 0.04); }
.nav-links a[aria-current="page"] { color: var(--accent-gray); background: rgba(156, 163, 175, 0.05); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent-gray);
  border-radius: 1px;
  box-shadow: var(--glow-gray);
}
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.nav-dropdown-content a:hover { background: rgba(156, 163, 175, 0.04); color: var(--accent-gray); }

.mobile-nav-toggle { display: none; background: none; border: none; color: var(--text-secondary); font-size: 24px; cursor: pointer; padding: 4px; }

.page-frame { max-width: 1280px; margin: 0 auto; padding: 40px 24px 60px; }
.page-frame-narrow { max-width: 860px; margin: 0 auto; padding: 40px 24px 60px; }

h1 {
  font-size: clamp(30px, 3.5vw, 52px); font-weight: 900;
  color: var(--text-primary); margin-bottom: 16px; line-height: 1.1;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(22px, 2vw, 32px); font-weight: 700;
  color: var(--accent-gray); margin: 48px 0 16px; letter-spacing: -0.02em;
}
h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gray), var(--accent-gray), transparent);
  margin-top: 8px;
  border-radius: 2px;
  box-shadow: var(--glow-gray);
}
h3 {
  font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 24px 0 8px;
}
h4 { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin: 16px 0 6px; }
p { margin-bottom: 16px; color: var(--text-secondary); line-height: 1.8; }
ul, ol { margin: 12px 0 20px 24px; color: var(--text-secondary); }
li { margin-bottom: 6px; }
strong { color: var(--text-primary); font-weight: 600; }
code {
  background: rgba(156, 163, 175, 0.06); padding: 2px 8px; border-radius: 4px;
  color: var(--accent-gray); font-size: 0.9em; font-family: var(--font-mono);
}

.section-divider {
  width: 100%; height: 1px; margin: 48px 0;
  background: linear-gradient(90deg, transparent, rgba(156, 163, 175, 0.08), rgba(156, 163, 175, 0.12), rgba(156, 163, 175, 0.08), transparent);
}

.hero {
  text-align: center; padding: 72px 20px 52px; position: relative;
}
.hero h1 { margin-bottom: 12px; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p {
  font-size: 18px; color: var(--text-muted); max-width: 680px;
  margin: 0 auto 28px; line-height: 1.7;
}
.hero-decor {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 163, 175, 0.04), transparent 70%);
  top: -60px;
  right: -40px;
  pointer-events: none;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  background: rgba(156, 163, 175, 0.04); color: var(--text-secondary);
  text-decoration: none; border: 1px solid rgba(156, 163, 175, 0.08);
  font-family: var(--font-sans); position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.08), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.btn:hover { border-color: rgba(156, 163, 175, 0.2); color: var(--text-primary); text-decoration: none; box-shadow: var(--glow-gray); }
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-gray), var(--accent-gray));
  color: var(--bg-primary); border: none; font-weight: 700;
}
.btn-primary::before { display: none; }
.btn-primary:hover {
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(156, 163, 175, 0.25);
}
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

.card {
  background: var(--bg-card);
  border-radius: 16px; padding: 28px;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gray), var(--accent-gray), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 0; }
.card-lg { padding: 36px; }
.card-compact { padding: 20px; }

.bento { display: grid; gap: 20px; }
.bento-2 { grid-template-columns: 1fr 1fr; }
.bento-3 { grid-template-columns: 1fr 1fr 1fr; }
.bento-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.bento-wide { grid-template-columns: 2fr 1fr; }
.bento-narrow { grid-template-columns: 1fr 2fr; }
@media (max-width: 1024px) {
  .bento-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .bento-3 { grid-template-columns: 1fr 1fr; }
  .bento-wide, .bento-narrow { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento-2, .bento-3, .bento-4 { grid-template-columns: 1fr; }
}

.post-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}
.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--bg-secondary);
}
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.post-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.post-card h3 a { color: var(--text-primary); }
.post-card h3 a:hover { color: var(--accent-gray); }
.post-card p { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; flex: 1; }
.post-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.mirror-card {
  background: var(--bg-card); border-radius: 16px; padding: 28px;
  border: 1px solid var(--border-subtle);
  text-align: center; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.mirror-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--accent-gray), var(--accent-gray), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.mirror-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
}
.mirror-card:hover::before { opacity: 1; }
.mirror-card.primary { padding: 36px; }
.mirror-card.primary::before { opacity: 1; }
.mirror-status {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  margin-bottom: 12px; letter-spacing: 0.8px;
}
.mirror-status.online {
  background: rgba(156, 163, 175, 0.06); color: var(--accent-gray);
  border: 1px solid rgba(156, 163, 175, 0.12);
  box-shadow: 0 0 12px rgba(156, 163, 175, 0.05);
}
.mirror-status.offline {
  background: rgba(156, 163, 175, 0.06); color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.12);
}
.mirror-url {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--text-muted);
  word-break: break-all; margin: 10px 0 18px; letter-spacing: 0.3px;
  background: rgba(0,0,0,0.3); padding: 8px 12px; border-radius: 8px;
  display: inline-block;
}
.primary .mirror-url { font-size: 15px; color: var(--accent-gray); }
.mirror-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mirror-label { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.primary .mirror-label { font-size: 18px; }

.stat-item {
  text-align: center; padding: 32px 20px;
  background: var(--bg-card); border-radius: 16px;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.stat-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--accent-gray), var(--accent-gray), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.stat-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
}
.stat-item:hover::before { opacity: 1; }
.stat-icon { font-size: 32px; margin-bottom: 10px; display: block; }
.stat-value {
  font-size: 32px; font-weight: 900; color: var(--accent-gray);
  letter-spacing: -0.03em;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

.step-block {
  padding: 28px 28px 28px 36px; margin-bottom: 0;
  background: var(--bg-card); border-radius: 16px;
  position: relative; overflow: hidden;
  transition: all 0.3s;
  border: 1px solid var(--border-subtle);
}
.step-block:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
}
.step-block::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent-gray), var(--accent-gray), transparent);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.1), rgba(156, 163, 175, 0.08));
  color: var(--accent-gray);
  font-size: 14px; font-weight: 800; margin-bottom: 8px;
}
.step-block h3 { margin-top: 4px; margin-bottom: 10px; font-size: 19px; }
.step-block + .step-block { margin-top: 16px; }

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-question {
  font-size: 17px; font-weight: 600; color: var(--text-primary);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent-gray); }
.faq-question::after {
  content: '+'; font-size: 20px; color: var(--accent-gray);
  transition: transform 0.3s; flex-shrink: 0; margin-left: 12px;
  width: 28px; height: 28px; display: flex; align-items: center;
  justify-content: center; border-radius: 6px;
  background: rgba(156, 163, 175, 0.04);
}
.faq-item.open .faq-question::after {
  content: '−'; transform: rotate(180deg);
}
.faq-answer { margin-top: 12px; color: var(--text-muted); display: none; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

.warning-box {
  background: rgba(156, 163, 175, 0.03);
  border: 1px solid rgba(156, 163, 175, 0.08);
  border-left: 3px solid #9ca3af;
  padding: 20px 24px; border-radius: 12px;
  margin: 20px 0;
}
.warning-box strong { color: #9ca3af; }

.pgp-block {
  background: #141414; border-radius: 12px; padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.6;
  color: var(--text-muted); overflow-x: auto; white-space: pre-wrap;
  word-break: break-all; margin: 16px 0;
  border: 1px solid var(--border-subtle);
}

.checklist { list-style: none; margin-left: 0; }
.checklist li {
  padding: 8px 0 8px 32px; position: relative;
  color: var(--text-secondary);
}
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 18px; height: 18px; border-radius: 4px;
  border: 2px solid rgba(156, 163, 175, 0.12);
  transition: border-color 0.2s;
}
.checklist li:hover::before { border-color: rgba(156, 163, 175, 0.25); }

.ext-refs {
  background: rgba(156, 163, 175, 0.015);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid rgba(156, 163, 175, 0.12);
  padding: 20px 24px; border-radius: 12px;
  margin: 20px 0;
}

.info-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0; border-radius: 12px; overflow: hidden; }
.info-table th, .info-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.info-table th {
  background: rgba(156, 163, 175, 0.03); color: var(--accent-gray);
  font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:hover td { background: rgba(156, 163, 175, 0.015); }

.subtitle { font-size: 17px; color: var(--text-muted); margin-bottom: 36px; }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  background: rgba(156, 163, 175, 0.04); color: var(--accent-gray);
  border: 1px solid rgba(156, 163, 175, 0.08);
}
.tag-green, .tag-purple { background: rgba(156, 163, 175, 0.04); color: var(--accent-gray); border-color: rgba(156, 163, 175, 0.08); }
.tag-gray { background: rgba(156, 163, 175, 0.04); color: var(--accent-gray); border-color: rgba(156, 163, 175, 0.08); }

.section-alt {
  background: rgba(156, 163, 175, 0.01);
  padding: 32px 0; margin: 48px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-section {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  margin: 48px 0;
}
.cta-section h2 { margin-top: 0; }
.cta-section h2::after { margin-left: auto; margin-right: auto; }
.cta-section p { max-width: 560px; margin: 0 auto 24px; }

.page-header {
  margin-bottom: 40px;
}
.page-header h1 { margin-bottom: 8px; }
.page-header .meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header .meta a { color: var(--text-muted); }
.page-header .meta a:hover { color: var(--accent-gray); }

.content-plan {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 32px;
  margin: 32px 0;
}
.content-plan h3 { margin-top: 0; margin-bottom: 16px; color: var(--accent-gray); }
.content-plan table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.content-plan th, .content-plan td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.content-plan th { color: var(--accent-gray); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.content-plan td { color: var(--text-secondary); }
.content-plan tr:hover td { background: rgba(156, 163, 175, 0.01); }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-gray); }
.breadcrumbs span { color: var(--text-muted); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.pagination a:hover {
  border-color: var(--border-hover);
  color: var(--accent-gray);
  box-shadow: var(--glow-gray);
}
.pagination .active {
  background: linear-gradient(135deg, var(--accent-gray), var(--accent-gray));
  color: var(--bg-primary);
  border: none;
}

.article-content h2 { margin-top: 40px; }
.article-content h3 { margin-top: 28px; }
.article-content ul, .article-content ol { margin: 16px 0 20px 28px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 3px solid var(--accent-gray);
  padding: 16px 20px;
  margin: 20px 0;
  background: rgba(156, 163, 175, 0.02);
  border-radius: 0 12px 12px 0;
  color: var(--text-muted);
}
.article-content blockquote strong { color: var(--text-primary); }
.article-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
}

footer {
  text-align: center; padding: 40px 24px;
  color: var(--text-muted); font-size: 13px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 60px;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent-gray); }
footer .footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 12px 0; }
footer .footer-links a { font-size: 13px; }

.newsletter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.newsletter-box h3 { margin-top: 0; }
.newsletter-box p { font-size: 14px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 16px auto 0;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--accent-gray); box-shadow: var(--glow-gray); }
.newsletter-form input::placeholder { color: var(--text-muted); }

@media (max-width: 768px) {
  .nav-inner { padding: 12px 16px; }
  .nav-links { gap: 1px; }
  .nav-links a { padding: 6px 10px; font-size: 12px; }
  .mobile-nav-toggle { display: block; }
  .nav-links.mobile-hidden { display: none; }
  .hero { padding: 40px 16px 32px; }
  .hero h1 { font-size: 28px; }
  .page-frame { padding: 24px 16px 40px; }
  .page-frame-narrow { padding: 24px 16px 40px; }
  .card { padding: 20px; }
  .card-lg { padding: 24px; }
  .step-block { padding: 20px 20px 20px 24px; }
  .newsletter-form { flex-direction: column; }
  .post-card-image { height: 180px; }
  .content-plan { padding: 20px; }
  .content-plan table { font-size: 12px; }
  .content-plan th, .content-plan td { padding: 8px 10px; }
}
@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .hero p { font-size: 16px; }
  .stat-item { padding: 24px 16px; }
  .stat-value { font-size: 26px; }
}
@media print {
  nav, .newsletter-box, .cta-section, .sidebar, .modal-backdrop { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}

/* ── Hub layout (shared with index.html inline block) ── */
:root{
  --hub-black:#000000;
  --hub-panel:#0b0b0c;
  --hub-panel2:#121214;
  --hub-gray:#9ca3af;
  --hub-gray-light:#d1d5db;
  --hub-gray-dark:#4b5563;
  --hub-border:rgba(156,163,175,.14);
  --hub-radius:14px;
}
.content-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:28px;
  align-items:start;
  max-width:1280px;
  margin:0 auto;
  padding:32px 24px 56px;
}
@media(max-width:960px){.content-layout{grid-template-columns:1fr}}
.hero-hub{
  max-width:1280px;margin:0 auto;padding:56px 24px 8px;
  text-align:center;
  animation:fadeIn .7s ease both;
}
.hero-hub p{max-width:760px;margin:0 auto 22px;color:var(--text-secondary,#9aa3b2)}
.hero-badges{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.hero-badges span{
  font-size:12px;color:var(--hub-gray-light);
  border:1px solid var(--hub-border);border-radius:999px;
  padding:6px 12px;background:var(--hub-panel);
}
.hero-visual{margin:26px auto 0;max-width:860px}
.hero-visual img{width:100%;height:auto;border-radius:var(--hub-radius);border:1px solid var(--hub-border);display:block}
.btn-hub{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 22px;border-radius:10px;
  background:#161618;color:var(--hub-gray-light);
  border:1px solid var(--hub-border);
  font-weight:600;font-size:14px;cursor:pointer;
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
  text-decoration:none;
}
.btn-hub:hover{transform:scale(1.04);background:#1e1e21;border-color:rgba(209,213,219,.35);color:#fff}
.btn-hub:active{transform:scale(.98)}
.btn-hub.primary{background:#e5e7eb;color:#000;border-color:#e5e7eb}
.btn-hub.primary:hover{background:#fff;transform:scale(1.05)}
.tabs{margin-top:28px;background:var(--hub-panel);border:1px solid var(--hub-border);border-radius:var(--hub-radius);overflow:hidden;animation:fadeIn .6s ease both}
.tabs-nav{display:flex;gap:6px;padding:10px;background:#080809;border-bottom:1px solid var(--hub-border);flex-wrap:wrap}
.tabs-nav label{
  padding:10px 18px;border-radius:9px;font-size:13px;font-weight:600;
  color:var(--hub-gray);cursor:pointer;border:1px solid transparent;
  transition:all .2s ease;user-select:none;
}
.tabs-nav label:hover{background:rgba(156,163,175,.1);color:#fff;transform:translateY(-1px)}
.tab-input{position:absolute;opacity:0;pointer-events:none}
.tab-panels{padding:24px}
.tab-panel{display:none;animation:fadeIn .45s ease both}
#tab-overview:checked ~ .tab-panels #panel-overview,
#tab-mechanics:checked ~ .tab-panels #panel-mechanics,
#tab-edge:checked ~ .tab-panels #panel-edge{display:block}
#tab-overview:checked ~ .tabs-nav label[for="tab-overview"],
#tab-mechanics:checked ~ .tabs-nav label[for="tab-mechanics"],
#tab-edge:checked ~ .tabs-nav label[for="tab-edge"]{background:#1c1c1f;color:#fff;border-color:var(--hub-border)}
.hub-card{background:var(--hub-panel);border:1px solid var(--hub-border);border-radius:var(--hub-radius);padding:24px;margin-top:22px;animation:fadeIn .6s ease both}
.hub-card h2{margin-top:0}
.article-meta{font-size:13px;color:var(--hub-gray);margin-bottom:12px}
.article-img{width:100%;height:auto;border-radius:10px;border:1px solid var(--hub-border);margin:14px 0}
.recent-list{margin:12px 0 0 18px;color:#9aa3b2}
.ext-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
@media(max-width:640px){.ext-grid{grid-template-columns:1fr}}
.ext-item{border:1px solid var(--hub-border);border-radius:10px;padding:14px;background:var(--hub-panel2)}
.ext-item a{color:var(--hub-gray-light);font-weight:600}
.ext-item p{margin:6px 0 0;font-size:13px}
.source-note{font-size:14px;color:#9aa3b2}
.source-caption{font-size:12px;color:var(--hub-gray-dark);margin-top:10px}
.source-link{font-weight:700;color:var(--hub-gray-light);word-break:break-word}
.hub-card blockquote{
  border-left:3px solid var(--hub-gray);
  padding:14px 18px;margin:18px 0;
  background:rgba(156,163,175,.05);
  border-radius:0 10px 10px 0;color:var(--hub-gray-light);
  font-style:italic;
}
.tag-list{list-style:none;margin:12px 0 0;padding:0;display:flex;gap:8px;flex-wrap:wrap}
.tag-list li{margin:0}
.tag-list a{
  display:inline-block;padding:6px 12px;border-radius:999px;font-size:13px;
  border:1px solid var(--hub-border);color:var(--hub-gray-light);background:#141416;
  transition:transform .18s ease,border-color .18s ease;
}
.tag-list a:hover{transform:scale(1.05);border-color:rgba(209,213,219,.4);color:#fff}
.logo-img{
  width:32px;height:32px;border-radius:8px;margin-right:10px;
  vertical-align:middle;flex-shrink:0;
  border:1px solid var(--hub-border);
  background:#000;
}
.nav-brand{display:inline-flex;align-items:center}
.subtitle{font-size:17px;color:var(--hub-gray)}
.sidebar{display:flex;flex-direction:column;gap:18px;position:sticky;top:76px}
@media(max-width:960px){.sidebar{position:static}}
.widget{background:var(--hub-panel);border:1px solid var(--hub-border);border-radius:var(--hub-radius);padding:20px}
.widget h3{margin:0 0 12px;font-size:15px;color:#fff}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{margin-bottom:10px}
.widget a{color:var(--hub-gray);font-size:14px}
.widget a:hover{color:#fff}
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.7);display:none;align-items:center;justify-content:center;z-index:500;padding:20px}
.modal-backdrop.open{display:flex}
.modal{background:#111114;border:1px solid var(--hub-border);border-radius:14px;max-width:440px;width:100%;padding:26px;animation:fadeIn .25s ease both}
.modal h3{margin:0 0 10px;color:#fff}
.modal p{font-size:14px;color:#9aa3b2}
.modal-actions{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
footer.hub-footer{border-top:1px solid var(--hub-border);padding:28px 24px;text-align:center;color:var(--hub-gray);font-size:13px;background:#050506}
footer.hub-footer a{color:var(--hub-gray);margin:0 10px}
footer.hub-footer a:hover{color:#fff}
.noscript-box{max-width:1280px;margin:0 auto 20px;padding:14px 20px;border:1px solid #444;background:#111;color:#ddd;border-radius:10px;font-size:14px}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
