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

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

:root {
  --bg: #050505;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --surface-3: #191919;
  --border: #1a1a1a;
  --border-hover: #2a2a2a;
  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-muted: rgba(16,185,129,0.13);
  --accent-glow: rgba(16,185,129,0.06);
  --text: #e5e5e5;
  --text-2: #a3a3a3;
  --text-3: #737373;
  --text-4: #525252;
  --red: #ef4444;
  --yellow: #eab308;
  --blue: #3b82f6;
  --purple: #a855f7;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
::selection { background: rgba(16,185,129,0.2); color: var(--accent); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
code { font-family: var(--mono); font-size: 0.8125em; background: var(--surface-3); padding: 0.15em 0.4em; border-radius: 4px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ─── Layout ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 800px; }
.page { padding-top: 6rem; padding-bottom: 4rem; flex: 1; }

/* ─── Header ─── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; border-bottom: 1px solid var(--border); background: rgba(5,5,5,0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-muted); border: 1px solid rgba(16,185,129,0.2); display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; font-size: 0.875rem; transition: background 0.2s; }
.logo:hover .logo-icon { background: rgba(16,185,129,0.2); }
.logo-text { font-weight: 600; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { padding: 0.5rem 0.75rem; font-size: 0.875rem; color: var(--text-2); border-radius: 6px; transition: color 0.15s, background 0.15s; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--accent); background: var(--accent-muted); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-2); cursor: pointer; padding: 0.5rem; }
.mobile-nav { display: none; }
.mobile-nav.open { display: flex; flex-direction: column; padding: 1rem 1.5rem; gap: 0.25rem; border-top: 1px solid var(--border); background: rgba(5,5,5,0.95); backdrop-filter: blur(16px); }
.mobile-nav a { padding: 0.625rem 0.75rem; font-size: 0.875rem; color: var(--text-2); border-radius: 6px; transition: color 0.15s, background 0.15s; }
.mobile-nav a:hover { color: var(--text); background: var(--surface-2); }

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
}

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { padding: 4rem 0; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text-3); line-height: 1.6; margin: 1rem 0; }
.footer-version { font-size: 0.75rem; color: var(--text-4); font-family: var(--mono); }
.footer h4 { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.625rem; }
.footer li a { font-size: 0.875rem; color: var(--text-3); transition: color 0.15s; }
.footer li a:hover { color: var(--accent); }
.footer-spec { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; margin-bottom: 0.5rem; }
.footer-spec .label { color: var(--text-4); }
.footer-spec .value { color: var(--text-2); font-family: var(--mono); }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.75rem; color: var(--text-4); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ─── Hero ─── */
.hero { position: relative; padding: 8rem 0 5rem; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at top, var(--accent-glow) 0%, transparent 60%); pointer-events: none; }
.hero-content { position: relative; max-width: 720px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-size: 0.75rem; color: var(--text-2); margin-bottom: 2rem; }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--accent); }
.hero p { font-size: 1.125rem; color: var(--text-2); line-height: 1.7; margin-bottom: 2.5rem; max-width: 560px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border-radius: 8px; font-size: 0.875rem; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: all 0.15s; font-family: var(--font); }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { border-color: var(--border); color: var(--text-2); background: transparent; }
.btn-outline:hover { border-color: var(--border-hover); color: var(--text); }
.btn-ghost { color: var(--accent); background: var(--accent-muted); border-color: transparent; }
.btn-ghost:hover { background: rgba(16,185,129,0.2); }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn svg, .btn img { width: 16px; height: 16px; }

/* ─── Stats Grid ─── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 5rem; }
.stat-card { border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: 1.25rem; }
.stat-card .label { font-size: 0.75rem; color: var(--text-3); margin-bottom: 0.25rem; }
.stat-card .value { font-size: 1.125rem; font-weight: 600; font-family: var(--mono); }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── Sections ─── */
.section { padding: 4rem 0; }
.section-lg { padding: 5rem 0; }
.section-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.section-sub { color: var(--text-3); max-width: 600px; margin-bottom: 2.5rem; }

/* ─── Cards ─── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .card-grid, .card-grid-4 { grid-template-columns: 1fr; } .card-grid-2 { grid-template-columns: 1fr; } }

.card { border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: 1.5rem; transition: border-color 0.2s, background 0.2s; }
.card:hover { border-color: var(--border-hover); background: var(--surface-2); }
.card-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--accent-muted); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.card p { font-size: 0.875rem; color: var(--text-3); line-height: 1.6; }

/* ─── Code Blocks ─── */
.code-block { border-radius: 8px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; position: relative; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 0.625rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.code-header span { font-size: 0.75rem; font-family: var(--mono); color: var(--text-3); }
.code-block pre { padding: 1rem; overflow-x: auto; margin: 0; }
.code-block code { background: none; padding: 0; font-size: 0.8125rem; color: var(--text-2); line-height: 1.7; white-space: pre; }
.copy-btn { position: absolute; top: 0.75rem; right: 0.75rem; background: var(--surface-3); border: 1px solid var(--border); color: var(--text-3); padding: 0.25rem; border-radius: 4px; cursor: pointer; opacity: 0; transition: opacity 0.2s, color 0.15s; font-size: 0.75rem; font-family: var(--mono); }
.code-block:hover .copy-btn { opacity: 1; }
.copy-btn:hover { color: var(--text); border-color: var(--border-hover); }
.copy-btn.copied { color: var(--accent); }
.code-block.has-header .copy-btn { top: auto; bottom: auto; }

/* ─── Page Header ─── */
.page-header { margin-bottom: 3rem; }
.page-header h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }
.page-header p { font-size: 1.125rem; color: var(--text-3); line-height: 1.6; max-width: 640px; }

/* ─── Tables ─── */
.table-wrap { border-radius: 12px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead tr { border-bottom: 1px solid var(--border); }
th { text-align: left; padding: 0.75rem 1rem; color: var(--text-3); font-weight: 500; }
td { padding: 0.625rem 1rem; border-top: 1px solid var(--border); }
td.mono { font-family: var(--mono); font-size: 0.75rem; }
td.accent { color: var(--accent); }

@media (max-width: 640px) {
  .table-wrap { overflow-x: auto; }
  table { min-width: 500px; }
}

/* ─── Steps ─── */
.steps { display: flex; flex-direction: column; gap: 1.5rem; }
.step { display: flex; gap: 1rem; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-muted); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.step-body { flex: 1; }
.step-body h3 { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.step-body p { font-size: 0.8125rem; color: var(--text-3); margin-bottom: 0.75rem; }

/* ─── Info Box ─── */
.info-box { border-radius: 8px; border: 1px solid; padding: 1rem; display: flex; gap: 0.75rem; margin: 1rem 0; }
.info-box.warn { border-color: rgba(234,179,8,0.2); background: rgba(234,179,8,0.05); }
.info-box.info { border-color: rgba(59,130,246,0.2); background: rgba(59,130,246,0.05); }
.info-box.security { border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.05); }
.info-box .icon { flex-shrink: 0; font-size: 1.125rem; }
.info-box.warn .icon { color: var(--yellow); }
.info-box.info .icon { color: var(--blue); }
.info-box.security .icon { color: var(--accent); }
.info-box strong { display: block; font-size: 0.875rem; margin-bottom: 0.25rem; }
.info-box p, .info-box div { font-size: 0.875rem; color: var(--text-3); line-height: 1.6; }

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item { border-radius: 8px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: none; border: none; color: var(--text); font-size: 0.875rem; font-weight: 500; font-family: var(--font); cursor: pointer; text-align: left; transition: background 0.15s; }
.faq-q:hover { background: var(--surface-2); }
.faq-q .arrow { color: var(--text-3); transition: transform 0.2s; font-size: 0.75rem; flex-shrink: 0; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { padding: 0 1.25rem 1rem; font-size: 0.875rem; color: var(--text-3); line-height: 1.6; display: none; }
.faq-item.open .faq-a { display: block; }

/* ─── Download Cards ─── */
.dl-card { border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: 1.5rem; transition: border-color 0.2s; }
.dl-card:hover { border-color: var(--border-hover); }
.dl-card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.dl-card-head .info { display: flex; align-items: center; gap: 0.75rem; }
.dl-card-head .icon { width: 40px; height: 40px; border-radius: 8px; background: var(--accent-muted); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.dl-card-head h3 { font-weight: 500; }
.dl-card-head .arch { font-size: 0.75rem; color: var(--text-3); font-family: var(--mono); }
.dl-card-head .size { font-size: 0.75rem; color: var(--text-4); font-family: var(--mono); }
.dl-meta { margin-bottom: 1.25rem; }
.dl-meta .label { font-size: 0.75rem; color: var(--text-4); margin-bottom: 0.125rem; }
.dl-meta .val { font-size: 0.75rem; font-family: var(--mono); color: var(--text-3); word-break: break-all; }
.dl-meta + .dl-meta { margin-top: 0.75rem; }

/* ─── Layer Stack ─── */
.layer-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.layer { border-radius: 8px; padding: 1rem; display: flex; justify-content: space-between; align-items: center; }
.layer-name { font-size: 0.875rem; font-weight: 500; }
.layer-desc { font-size: 0.75rem; font-family: var(--mono); color: var(--text-3); }
.layer-arrow { text-align: center; color: var(--text-4); font-size: 0.75rem; margin: -0.25rem 0; }

/* ─── CTA ─── */
.cta-box { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); padding: 3rem; text-align: center; }
.cta-box h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.cta-box p { color: var(--text-3); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ─── Link Arrow ─── */
.link-arrow { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--accent); transition: color 0.15s; }
.link-arrow:hover { color: var(--accent-hover); }

/* ─── Spec Grid ─── */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.spec-grid .item .label { font-size: 0.75rem; color: var(--text-4); margin-bottom: 0.25rem; }
.spec-grid .item .value { font-size: 0.875rem; font-family: var(--mono); color: var(--text-2); }
@media (max-width: 640px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── Req Cards ─── */
.req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.req-card { border-radius: 12px; padding: 1.25rem; }
.req-card.min { border: 1px solid var(--border); background: var(--surface); }
.req-card.rec { border: 1px solid rgba(16,185,129,0.2); background: var(--accent-glow); }
.req-card .tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.req-card.min .tag { color: var(--text-3); }
.req-card.rec .tag { color: var(--accent); }
.req-row { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.5rem; }
.req-row .val { font-family: var(--mono); color: var(--text-3); font-size: 0.8125rem; }
@media (max-width: 640px) { .req-grid { grid-template-columns: 1fr; } }

/* ─── Distribution Box ─── */
.dist-box { border-radius: 12px; border: 1px solid rgba(16,185,129,0.2); background: var(--accent-glow); padding: 2rem; }
.dist-box h3 { font-size: 1rem; font-weight: 500; margin-bottom: 1.5rem; }
.dist-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.dist-nums .num { font-size: 1.75rem; font-weight: 700; color: var(--accent); }
.dist-nums .desc { font-size: 0.875rem; color: var(--text-3); }
.dist-box > p { font-size: 0.875rem; color: var(--text-3); line-height: 1.6; margin-top: 1.5rem; }

/* ─── Bullet List ─── */
.bullet-list { list-style: none; }
.bullet-list li { display: flex; gap: 0.75rem; font-size: 0.875rem; color: var(--text-3); margin-bottom: 0.625rem; line-height: 1.5; }
.bullet-list li::before { content: '-'; color: var(--accent); flex-shrink: 0; }
.bullet-list.warn li::before { content: '!'; color: var(--yellow); }

/* ─── Misc ─── */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.gap-4 { display: flex; gap: 1rem; flex-wrap: wrap; }
.text-sm { font-size: 0.875rem; } .text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-3); }
.text-accent { color: var(--accent); }
.mono { font-family: var(--mono); }
.leading { line-height: 1.7; }
.max-w-3 { max-width: 800px; }
