:root {
  --bg: #f8fafc;
  --bg-soft: #eef2ff;
  --dark: #0f172a;
  --dark-2: #111827;
  --text: #1e293b;
  --muted: #64748b;
  --line: rgba(15, 23, 42, .12);
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --ok: #22c55e;
  --warn: #f59e0b;
  --white: #fff;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(15, 23, 42, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 30px rgba(37, 99, 235, .35);
}
.brand-text { font-size: 20px; color: var(--dark); }
.main-nav { display: flex; align-items: center; gap: 22px; color: #334155; font-size: 15px; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--brand); }
.nav-login {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--dark); border-radius: 2px; }

.section-shell { position: relative; overflow: hidden; }
.section-shell:before {
  content: "";
  position: absolute; inset: -240px -120px auto auto;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .24), transparent 64%);
  pointer-events: none;
}
.hero { padding: 78px 0 68px; }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 6px rgba(6, 182, 212, .12); }
h1, h2, h3 { color: var(--dark); margin: 0; line-height: 1.08; letter-spacing: -.04em; }
h1 { font-size: clamp(42px, 6vw, 74px); margin-top: 18px; }
h2 { font-size: clamp(32px, 4vw, 50px); }
h3 { font-size: 22px; letter-spacing: -.03em; }
p { margin: 0; }
.hero-lead { margin-top: 24px; font-size: 20px; color: #475569; max-width: 690px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border-radius: 999px; font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 18px 40px rgba(37, 99, 235, .26); }
.btn-secondary { color: var(--dark); background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 23, 42, .06); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust-row span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .78); color: #475569; font-size: 14px; }

.hero-panel {
  position: relative;
  border-radius: 32px;
  padding: 24px;
  background: linear-gradient(180deg, #0f172a, #111827);
  color: #e2e8f0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel:before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, .28), transparent 35%), radial-gradient(circle at 5% 90%, rgba(37, 99, 235, .28), transparent 40%);
  pointer-events: none;
}
.hero-panel > * { position: relative; }
.status-card, .node-card, .terminal-card {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  border-radius: 22px;
}
.status-card-main { display: flex; align-items: center; justify-content: space-between; padding: 22px; margin-bottom: 18px; }
.status-card strong { display: block; color: #fff; font-size: 24px; letter-spacing: -.03em; }
.status-label { color: #94a3b8; font-size: 14px; }
.pulse { width: 15px; height: 15px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 10px rgba(34, 197, 94, .15); }
.node-list { display: grid; gap: 14px; }
.node-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.node-card strong { color: #fff; display: block; }
.node-card small { color: #94a3b8; }
.node-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: rgba(37, 99, 235, .22); color: #bfdbfe; font-weight: 900; }
.node-card.success .node-icon { background: rgba(34, 197, 94, .18); color: #bbf7d0; }
.node-card.warning .node-icon { background: rgba(245, 158, 11, .18); color: #fde68a; }
.terminal-card { margin-top: 18px; padding: 18px; font-size: 14px; color: #cbd5e1; overflow: hidden; }
.terminal-dots { display: flex; gap: 6px; margin-bottom: 12px; }
.terminal-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: normal; }

.strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; }
.stats-grid div { display: grid; gap: 2px; }
.stats-grid strong { font-size: 34px; color: var(--dark); letter-spacing: -.04em; }
.stats-grid span { color: var(--muted); }

.section { padding: 92px 0; }
.section-head { max-width: 820px; margin-bottom: 38px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.card-grid { display: grid; gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature-card, .security-card, .step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .05);
}
.feature-card p, .security-card p, .step p { color: var(--muted); margin-top: 12px; }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 15px; background: var(--bg-soft); color: var(--brand); font-weight: 900; }

.section-dark { background: var(--dark); color: #cbd5e1; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #cbd5e1; }
.split-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 54px; }
.check-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li:before { content: "✓"; position: absolute; left: 0; color: #67e8f9; font-weight: 900; }
.dashboard-preview { border-radius: 30px; padding: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow); }
.preview-top { height: 34px; display: flex; align-items: center; gap: 7px; padding-left: 8px; }
.preview-top span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .32); }
.preview-content { min-height: 340px; border-radius: 20px; background: #f8fafc; display: grid; grid-template-columns: 150px 1fr; padding: 16px; gap: 16px; }
.preview-sidebar { border-radius: 16px; background: linear-gradient(180deg, #e0e7ff, #dbeafe); }
.preview-main { display: grid; gap: 16px; align-content: start; }
.preview-line { height: 28px; border-radius: 999px; background: #dbeafe; }
.preview-line.wide { width: 78%; }
.preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.preview-cards i { height: 82px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; }
.preview-table { display: grid; gap: 10px; }
.preview-table b { height: 38px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; }

.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.section-muted { background: #eef2ff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step span { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 900; }

.final-cta { padding-top: 76px; }
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 38px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a, #0f172a 55%, #155e75);
  box-shadow: var(--shadow);
}
.cta-card h2 { color: #fff; margin-top: 12px; max-width: 790px; }
.cta-card p { margin-top: 12px; color: #cbd5e1; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-card .btn-secondary { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: none; }

.site-footer { padding: 34px 0; background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner p { color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; gap: 18px; color: #475569; }
.footer-links a:hover { color: var(--brand); }

@media (max-width: 980px) {
  .hero-grid, .split-grid { grid-template-columns: 1fr; }
  .card-grid.three, .security-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 54px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 76px 14px auto 14px;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; border-radius: 22px; background: #fff; box-shadow: var(--shadow);
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 14px; }
  .main-nav a:hover { background: #f1f5f9; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .card-grid.three, .security-grid, .steps, .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  .hero-panel { padding: 18px; border-radius: 26px; }
  .preview-content { grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }
  .preview-cards { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; align-items: stretch; padding: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
}

.free-note { margin: 22px 0 0; padding: 14px 16px; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 18px; color: #1e3a8a; }
.free-section { background: #f8fafc; }
.free-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: 0 14px 30px rgba(15,23,42,.05); }
.check-list.light li:before { color: var(--brand); }
.legal-main { padding-top: 76px; }
.legal-hero { padding: 60px 0 38px; background: linear-gradient(135deg, #eff6ff, #f8fafc); }
.legal-content-section { padding: 42px 0 74px; }
.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; }
.legal-nav { position: sticky; top: 96px; display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 14px 30px rgba(15,23,42,.04); }
.legal-nav a { padding: 10px 12px; border-radius: 14px; color: #475569; }
.legal-nav a:hover { color: var(--brand); background: #eff6ff; }
.legal-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px; box-shadow: 0 14px 30px rgba(15,23,42,.04); color: #334155; }
.legal-card h2 { margin-top: 28px; font-size: 24px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { line-height: 1.72; }
.legal-card ul { margin: 14px 0 0; padding-left: 22px; }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.doc-card { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #f8fafc; color: #334155; }
.doc-card:hover { border-color: var(--brand); background: #eff6ff; }
.doc-card strong { color: #0f172a; }
.doc-card span { color: var(--muted); line-height: 1.5; }
.notice-box { margin-top: 22px; padding: 16px 18px; border-radius: 18px; border: 1px solid #fde68a; background: #fffbeb; color: #713f12; line-height: 1.6; }
.cookie-banner { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 980px; margin: 0 auto; padding: 16px 18px; border-radius: 20px; background: #0f172a; color: #e2e8f0; box-shadow: 0 20px 60px rgba(15,23,42,.32); }
.cookie-banner a { color: #93c5fd; }
.cookie-banner[hidden] { display: none; }
.cookie-banner .btn { width: auto; min-width: 120px; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
  .doc-grid { grid-template-columns: 1fr; }
  .legal-card { padding: 24px; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner .btn { width: 100%; }
}


.overview-links-section { background: #fff; }
.feature-page-card h3 { margin-top: 0; }
.feature-choice-grid .doc-card { min-height: 150px; }
.feature-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.feature-detail-grid section { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #f8fafc; }
.feature-detail-grid h3 { font-size: 21px; }
.feature-detail-grid ul, .feature-list { margin: 14px 0 0; padding-left: 22px; }
.feature-detail-grid li, .feature-list li { margin: 8px 0; line-height: 1.62; }
.version-tabs-static { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 30px; }
.version-tabs-static a { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: #eff6ff; color: #1e3a8a; font-weight: 800; }
.timeline { display: grid; gap: 14px; margin: 22px 0 34px; }
.timeline article { position: relative; padding: 20px 22px 20px 84px; border: 1px solid var(--line); border-radius: 22px; background: #f8fafc; }
.timeline time { position: absolute; left: 18px; top: 22px; display: inline-grid; place-items: center; min-width: 48px; min-height: 32px; padding: 5px 8px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 900; font-size: 12px; }
.timeline h3 { font-size: 21px; margin: 0; }
.timeline p { margin-top: 8px; color: var(--muted); }
@media (max-width: 760px) {
  .feature-detail-grid { grid-template-columns: 1fr; }
  .timeline article { padding: 72px 18px 18px; }
  .timeline time { left: 18px; top: 18px; }
}

.download-release-card { margin: 22px 0; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, #ffffff, #f8fafc); box-shadow: 0 18px 45px rgba(15, 23, 42, .08); }
.release-loading { color: var(--muted); font-weight: 700; }
.release-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.release-summary h3 { margin: 6px 0 6px; font-size: 28px; }
.release-summary p { margin: 0; color: var(--muted); }
.release-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.release-meta div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; min-width: 0; }
.release-meta dt { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.release-meta dd { margin: 6px 0 0; overflow-wrap: anywhere; font-weight: 800; color: #0f172a; }
.release-meta code { font-size: 12px; white-space: normal; }
.release-notes { margin-top: 18px; line-height: 1.68; color: #334155; }
.release-notes h1, .release-notes h2, .release-notes h3 { margin: 14px 0 8px; }
.release-notes ul, .release-notes ol { padding-left: 24px; }
.release-notes table { width: 100%; border-collapse: collapse; margin: 12px 0; overflow-wrap: anywhere; }
.release-notes th, .release-notes td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.download-extra-grid { margin-top: 20px; }
.release-history-item .release-notes { margin-top: 10px; }
.release-history-meta { color: var(--muted); font-weight: 800; }
.release-history-item .btn { margin-top: 10px; width: auto; display: inline-flex; }
@media (max-width: 760px) {
  .release-summary { align-items: stretch; flex-direction: column; }
  .release-meta { grid-template-columns: 1fr; }
  .release-history-item .btn { width: 100%; }
}
