:root {
  --bg:        #ffffff;
  --bg-1:      #f8f7ff;
  --bg-2:      #f0eeff;
  --bg-3:      #e8e4ff;
  --border:    #e2dff5;
  --border-hi: #c4bef0;
  --text:      #1a1523;
  --text-2:    #4a4560;
  --text-3:    #8b85a8;
  --accent:    #7c3aed;
  --accent-dim:#5b21b6;
  --accent-glow: rgba(124, 58, 237, 0.1);
  --green:     #059669;
  --green-dim: rgba(5, 150, 105, 0.1);
  --amber:     #d97706;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --sans:      'Space Grotesk', system-ui, sans-serif;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --max-w: 1100px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: clamp(0.9375rem, 2vw, 1rem); line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease, opacity .15s ease; }
a:hover { opacity: .8; }
ul { list-style: none; }
code, pre { font-family: var(--mono); font-size: .875em; }
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 2rem); }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav { display: flex; align-items: center; gap: 1rem; height: 60px; }
.nav-logo { display: flex; align-items: center; gap: .5rem; color: var(--text); font-size: 1.0625rem; font-weight: 500; text-decoration: none; flex-shrink: 0; }
.nav-logo:hover { opacity: 1; color: var(--text); }
.logo-img { height: 36px; width: auto; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-link { color: var(--text-2); font-size: .9rem; font-weight: 500; padding: .375rem .75rem; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-2); }
.nav-link.active { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: all .25s ease; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1.25rem; border-radius: var(--radius-sm); font-family: var(--sans); font-size: .875rem; font-weight: 600; line-height: 1; cursor: pointer; border: none; transition: all .15s ease; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-dim); opacity: 1; color: #ffffff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--border-hi); }
.btn-outline:hover { background: var(--accent-glow); border-color: var(--accent); opacity: 1; }
.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600; font-family: var(--mono); letter-spacing: .02em; }
.badge-green { background: var(--green-dim); color: var(--green); border: 1px solid rgba(5,150,105,.2); }
.badge-blue { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(124,58,237,.2); }
.hero { padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(124,58,237,.06) 0%, transparent 70%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.hero-label { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .75rem; color: var(--text-3); margin-bottom: 1.25rem; letter-spacing: .04em; }
.hero-label::before { content: ''; width: 20px; height: 1px; background: var(--text-3); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; color: var(--text); margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: clamp(.9375rem, 2vw, 1.0625rem); color: var(--text-2); max-width: 44ch; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.status-panel { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; font-family: var(--mono); }
.status-panel-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-panel-title { font-size: .75rem; color: var(--text-3); letter-spacing: .04em; }
.status-rows { display: flex; flex-direction: column; gap: .625rem; }
.status-row { display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; padding: .375rem 0; border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: none; }
.status-row .label { color: var(--text-3); }
.status-row .value { color: var(--text); font-weight: 500; }
.status-row .value.green { color: var(--green); }
.status-row .value.accent { color: var(--accent); }
.section { padding: clamp(3rem, 8vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-label { font-family: var(--mono); font-size: .75rem; color: var(--text-3); letter-spacing: .06em; margin-bottom: .75rem; }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; letter-spacing: -.025em; color: var(--text); margin-bottom: .75rem; line-height: 1.2; }
.section-desc { font-size: 1rem; color: var(--text-2); max-width: 52ch; line-height: 1.7; }
.card-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 2.5rem; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg-1); padding: 1.75rem; transition: background .15s; }
.card:hover { background: var(--bg-2); }
.card-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-glow); border: 1px solid rgba(124,58,237,.15); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--accent); font-size: 1.125rem; }
.card-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; letter-spacing: -.01em; }
.card-body { font-size: .875rem; color: var(--text-2); line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: .375rem; margin-top: 1rem; font-size: .8125rem; font-weight: 600; color: var(--accent); }
.access-section { background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(3rem, 8vw, 5rem) 0; }
.access-card { max-width: 680px; margin-inline: auto; text-align: center; }
.access-badge { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .75rem; color: var(--green); background: var(--green-dim); border: 1px solid rgba(5,150,105,.2); padding: .3rem .875rem; border-radius: 999px; margin-bottom: 1.5rem; letter-spacing: .02em; }
.badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.access-title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: .75rem; }
.access-sub { color: var(--text-2); margin-bottom: 2rem; max-width: 46ch; margin-inline: auto; }
.onion-display { display: flex; align-items: stretch; border: 1px solid var(--border-hi); border-radius: var(--radius); overflow: hidden; background: var(--bg); margin-bottom: 1.75rem; max-width: 600px; margin-inline: auto; }
.onion-address { flex: 1; padding: .875rem 1rem; font-family: var(--mono); font-size: clamp(.7rem, 1.8vw, .8125rem); color: var(--accent); word-break: break-all; text-align: left; line-height: 1.5; user-select: all; background: transparent; display: block; }
.copy-btn { display: flex; align-items: center; gap: .4rem; padding: .875rem 1.125rem; background: var(--bg-2); border: none; border-left: 1px solid var(--border-hi); color: var(--text-2); cursor: pointer; font-family: var(--sans); font-size: .8125rem; font-weight: 600; transition: all .15s; white-space: nowrap; flex-shrink: 0; }
.copy-btn:hover { background: var(--bg-3); color: var(--text); }
.copy-btn.copied { color: var(--green); }
.access-steps { display: flex; flex-direction: column; gap: .5rem; text-align: left; max-width: 480px; margin-inline: auto; margin-bottom: 1.5rem; counter-reset: steps; }
.access-steps li { counter-increment: steps; display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; color: var(--text-2); padding: .5rem 0; border-bottom: 1px solid var(--border); }
.access-steps li:last-child { border-bottom: none; }
.access-steps li::before { content: counter(steps); font-family: var(--mono); font-size: .75rem; font-weight: 700; color: var(--accent); background: var(--accent-glow); border: 1px solid rgba(124,58,237,.15); border-radius: var(--radius-sm); width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.access-disclaimer { font-size: .75rem; color: var(--text-3); max-width: 48ch; margin-inline: auto; line-height: 1.6; }
.access-card--teaser .access-badge { color: var(--accent); background: var(--accent-glow); border-color: rgba(124,58,237,.2); }
.access-card--teaser .badge-dot { background: var(--accent); }
.teaser-hint { display: inline-flex; align-items: center; gap: .625rem; font-size: .875rem; color: var(--text-3); background: var(--bg-2); border: 1px dashed var(--border-hi); border-radius: var(--radius); padding: .875rem 1.25rem; margin-top: 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; margin-top: 1.5rem; }
.data-table th { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .06em; color: var(--text-3); text-align: left; padding: .625rem 1rem; border-bottom: 1px solid var(--border); }
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.data-table td:first-child { color: var(--text); font-weight: 500; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-2); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin: 2.5rem 0 .75rem; }
.prose h3 { font-size: 1.0625rem; font-weight: 600; color: var(--text); margin: 1.75rem 0 .5rem; }
.prose p { color: var(--text-2); margin-bottom: 1rem; line-height: 1.75; }
.prose ul { list-style: none; margin-bottom: 1rem; }
.prose ul li { color: var(--text-2); padding: .25rem 0 .25rem 1.25rem; position: relative; line-height: 1.65; }
.prose ul li::before { content: '-'; position: absolute; left: 0; color: var(--accent); }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(124,58,237,.3); }
.repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 2rem; }
.repo-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .625rem; transition: border-color .15s, background .15s; text-decoration: none; color: inherit; }
.repo-card:hover { border-color: var(--border-hi); background: var(--bg-2); opacity: 1; }
.repo-card-top { display: flex; align-items: flex-start; gap: .625rem; }
.repo-icon { color: var(--text-3); flex-shrink: 0; }
.repo-name { font-weight: 600; font-size: .9375rem; color: var(--accent); line-height: 1.3; }
.repo-desc { font-size: .8125rem; color: var(--text-2); line-height: 1.6; flex: 1; }
.repo-meta { display: flex; gap: .875rem; align-items: center; font-family: var(--mono); font-size: .7rem; color: var(--text-3); }
.repo-lang::before { content: '●'; margin-right: .3rem; color: var(--accent); }
.breadcrumb { padding: .875rem 0; border-bottom: 1px solid var(--border); background: var(--bg-1); }
.breadcrumb-list { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--text-3); font-family: var(--mono); }
.breadcrumb-list a { color: var(--text-3); }
.breadcrumb-list a:hover { color: var(--text); opacity: 1; }
.breadcrumb-list li:last-child { color: var(--text-2); }
.breadcrumb-sep { color: var(--border-hi); }
.site-footer { background: var(--bg-1); border-top: 1px solid var(--border); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gap); margin-bottom: 2.5rem; }
.footer-tagline { font-size: .8125rem; color: var(--text-3); margin-top: .875rem; line-height: 1.6; max-width: 32ch; }
.footer-nav-title { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--text-3); margin-bottom: .875rem; }
.footer-nav ul li + li { margin-top: .375rem; }
.footer-nav a { font-size: .875rem; color: var(--text-3); }
.footer-nav a:hover { color: var(--text); opacity: 1; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .375rem; }
.footer-bottom p { font-size: .75rem; color: var(--text-3); }
.footer-disclaimer { max-width: 72ch; }
.page-hero { padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: .625rem; }
.page-hero .lead { font-size: 1.0625rem; color: var(--text-2); max-width: 52ch; line-height: 1.65; }
.nav-cta { padding: .4rem 1rem; font-size: .8125rem; background: var(--accent); color: #ffffff; border-radius: var(--radius-sm); font-weight: 700; margin-left: .5rem; }
.nav-cta:hover { background: var(--accent-dim); opacity: 1; color: #ffffff; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-1); border-bottom: 1px solid var(--border); padding: 1rem; gap: .25rem; margin-left: 0; }
  .nav-menu.open { display: flex; }
  .nav-link { padding: .625rem .875rem; font-size: 1rem; }
  .nav-cta { text-align: center; padding: .75rem; font-size: .9375rem; margin-left: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .status-panel { display: none; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .onion-display { flex-direction: column; }
  .copy-btn { border-left: none; border-top: 1px solid var(--border-hi); justify-content: center; padding: .75rem; }
  .data-table { display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
}
.faq-item { border-bottom: 1px solid var(--border); padding: 1.75rem 0; }
.faq-item:first-child { padding-top: 0; }
.faq-q { font-size: 1.0625rem; font-weight: 700; color: var(--text); margin-bottom: .875rem; letter-spacing: -.01em; cursor: default; }
.faq-a p { color: var(--text-2); font-size: .9375rem; line-height: 1.75; margin-bottom: .75rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-steps { list-style: none; counter-reset: faq-steps; display: flex; flex-direction: column; gap: .5rem; margin: .875rem 0; }
.faq-steps li { counter-increment: faq-steps; display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.faq-steps li::before { content: counter(faq-steps); font-family: var(--mono); font-size: .7rem; font-weight: 700; color: var(--accent); background: var(--accent-glow); border: 1px solid rgba(124,58,237,.15); border-radius: var(--radius-sm); min-width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.faq-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin: .875rem 0; }
.faq-list li { font-size: .9rem; color: var(--text-2); padding-left: 1.25rem; position: relative; line-height: 1.65; }
.faq-list li::before { content: '–'; position: absolute; left: 0; color: var(--accent); }
.screenshots-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.screenshot-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.screenshot-img-wrap { background: #f0f0f0; border-bottom: 1px solid var(--border); overflow: hidden; }
.screenshot-img-wrap img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.screenshot-card:hover .screenshot-img-wrap img { transform: scale(1.02); }
.screenshot-caption { padding: 1.5rem; }
.screenshot-num { font-family: var(--mono); font-size: .7rem; color: var(--text-3); letter-spacing: .06em; }
.screenshot-title { font-size: 1.0625rem; font-weight: 700; color: var(--text); margin: .375rem 0 .75rem; letter-spacing: -.01em; }
.screenshot-desc { font-size: .875rem; color: var(--text-2); line-height: 1.7; }
/* Mobile fixes */
@media (max-width: 768px) {
  .data-table { font-size: .75rem; }
  .data-table th, .data-table td { padding: .5rem .625rem; }
  .data-table td:nth-child(4) { display: none; }
  .data-table th:nth-child(4) { display: none; }
  [style*="grid-template-columns:2fr 1fr"] { display: block !important; }
  [style*="grid-template-columns:2fr 1fr"] > div:last-child { margin-top: 2rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero .lead { font-size: .9375rem; }
}
/* Access slideshow */
.access-slideshow { position: absolute; inset: 0; overflow: hidden; z-index: 0; border-radius: inherit; }
.access-section { position: relative; }
.access-section .container { position: relative; z-index: 1; }
.access-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; filter: blur(8px) brightness(0.15) saturate(0.5); transform: scale(1.05); transition: opacity 1.5s ease; }
.access-slide.active { opacity: 1; }
/* About grid */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > div:last-child { margin-top: 0; }
}
/* Table wrap */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
.table-wrap .data-table { min-width: 540px; }
/* Slideshow fix */
.access-section { overflow: hidden; }
.access-slideshow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.access-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; filter: blur(6px) brightness(0.55) saturate(0.6); transform: scale(1.08); transition: opacity 1.5s ease; }
.access-slide.active { opacity: 1; }
/* Slideshow strict containment */
.access-section { contain: layout; }
.access-slideshow { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; overflow: hidden; }
