:root {
  --bg: #020817;
  --bg-2: #07111f;
  --surface: rgba(15, 23, 42, .78);
  --surface-2: rgba(2, 8, 23, .72);
  --line: rgba(148, 163, 184, .22);
  --text: #f8fafc;
  --muted: #a6b3c4;
  --muted-2: #64748b;
  --brand: #8b5cf6;
  --brand-2: #22d3ee;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 28px 80px rgba(0,0,0,.45);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(139, 92, 246, .26), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(34, 211, 238, .20), transparent 28%),
    linear-gradient(180deg, #020817 0%, #07111f 48%, #020817 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,0));
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, pre { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; }
pre {
  margin: 0;
  padding: 18px;
  background: rgba(2,8,23,.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow-x: auto;
  color: #dbeafe;
}
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 12px;
}
.skip-link:focus { top: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(2, 8, 23, .72);
  border-bottom: 1px solid rgba(148, 163, 184, .14);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.02em; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #020817;
  font-weight: 1000;
  box-shadow: 0 16px 48px rgba(34,211,238,.18);
}
.logo-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 650; letter-spacing: .02em; margin-top: -4px; }
.nav-links { display: flex; gap: 20px; align-items: center; color: #cbd5e1; font-size: 14px; }
.nav-links a { opacity: .9; }
.nav-links a:hover { color: #fff; opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(15,23,42,.58);
  border-radius: 999px;
}
.lang-switch button {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
.lang-switch button.active { color: #020817; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.mobile-menu { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15,23,42,.68);
  font-weight: 850;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(34,211,238,.48); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #020817; border: 0; box-shadow: 0 18px 50px rgba(34,211,238,.18); }
.btn-ghost { background: transparent; }
.btn-small { padding: 9px 13px; font-size: 13px; }

.hero { padding: 82px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 48px;
  align-items: center;
}
.eyebrow { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 999px;
  background: rgba(15,23,42,.55);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 750;
}
.pill.ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px rgba(34,197,94,.12); }
.hero h1, .page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
  letter-spacing: -.06em;
}
.gradient-text { background: linear-gradient(135deg, #f8fafc 15%, #c4b5fd 48%, #67e8f9 84%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead, .page-lead {
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: clamp(18px, 2vw, 21px);
  max-width: 760px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.metric {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(15,23,42,.54);
  border-radius: 20px;
}
.metric strong { display: block; font-size: 24px; letter-spacing: -.04em; }
.metric span { color: var(--muted); font-size: 13px; }

.hero-card {
  position: relative;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(15,23,42,.88), rgba(2,8,23,.82));
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -60px -80px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(34,211,238,.22), transparent 70%);
}
.window-bar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.dashboard {
  position: relative;
  background: #07111f;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 24px;
  padding: 20px;
}
.status { display: flex; align-items: center; gap: 10px; color: #bbf7d0; font-weight: 800; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 7px rgba(34,197,94,.14); }
.gateway-box { margin-top: 18px; padding: 16px; border-radius: 18px; background: #0f172a; border: 1px solid var(--line); }
.gateway-box span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.gateway-box code { color: #bae6fd; font-size: 15px; word-break: break-all; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.mini-card { padding: 14px; border-radius: 16px; background: rgba(15,23,42,.7); border: 1px solid rgba(148,163,184,.16); }
.mini-card strong { display: block; font-size: 27px; }
.mini-card span { color: var(--muted); font-size: 12px; }
.call-list { margin-top: 14px; display: grid; gap: 9px; }
.call-item { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(148,163,184,.14); border-radius: 14px; background: rgba(2,8,23,.54); color: #cbd5e1; font-size: 13px; }
.call-item i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: 0 0 auto; }
.call-item.warn i { background: var(--warn); }
.call-item.danger i { background: var(--danger); }

.trust-strip { padding: 16px 0 56px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust-item { border: 1px solid var(--line); background: rgba(15,23,42,.42); border-radius: 18px; padding: 16px; color: #cbd5e1; font-weight: 800; text-align: center; }

section { padding: 76px 0; }
.section-head { display: grid; grid-template-columns: .88fr 1.12fr; gap: 28px; align-items: end; margin-bottom: 30px; }
.kicker { color: #67e8f9; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; margin-bottom: 10px; }
h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.04; letter-spacing: -.045em; }
.section-head p, .section-copy { color: var(--muted); font-size: 17px; margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  border: 1px solid rgba(148,163,184,.18);
  background: linear-gradient(180deg, rgba(15,23,42,.68), rgba(2,8,23,.52));
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
}
.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); }
.card .num { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(34,211,238,.12); color: #67e8f9; font-weight: 900; }
.icon { width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(135deg, rgba(139,92,246,.26), rgba(34,211,238,.20)); border: 1px solid rgba(148,163,184,.18); }

.problem-solution { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.list { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 12px; }
.list li { display: flex; gap: 10px; align-items: flex-start; color: #cbd5e1; }
.list li::before { content: "✓"; color: #67e8f9; font-weight: 900; flex: 0 0 auto; }
.list.warn li::before { content: "!"; color: var(--warn); }

.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.diagram { padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: rgba(15,23,42,.45); }
.diagram-flow { display: grid; gap: 12px; }
.node { padding: 16px; border: 1px solid rgba(148,163,184,.20); border-radius: 16px; background: rgba(2,8,23,.58); }
.node strong { display: block; }
.node span { color: var(--muted); font-size: 13px; }
.arrow { text-align: center; color: var(--brand-2); font-weight: 900; }

.screens-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tab-btn { border: 1px solid var(--line); color: var(--muted); background: rgba(15,23,42,.52); padding: 10px 13px; border-radius: 999px; cursor: pointer; font-weight: 850; }
.tab-btn.active { color: #020817; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; }
.screen-panel { display: none; grid-template-columns: .72fr 1.28fr; gap: 18px; align-items: center; }
.screen-panel.active { display: grid; }
.screen-panel img { border-radius: 28px; border: 1px solid rgba(148,163,184,.20); box-shadow: var(--shadow); }

.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.download-grid-main { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: stretch; }
.platform-grid { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.download-card { position: relative; overflow: hidden; }
.download-card-featured { border-color: rgba(34,211,238,.32); box-shadow: 0 24px 70px rgba(34,211,238,.10); }
.download-card .os { font-size: 24px; font-weight: 950; letter-spacing: -.035em; }
.download-badge { display: inline-flex; margin-bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(34,211,238,.12); color: #a5f3fc; border: 1px solid rgba(34,211,238,.24); font-size: 12px; font-weight: 900; }
.download-meta { margin: 14px 0 20px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.hash-box { margin-top: 16px; padding: 12px; border-radius: 14px; background: rgba(2,8,23,.66); border: 1px dashed rgba(148,163,184,.26); color: #94a3b8; font-size: 12px; word-break: break-all; }
.support-panel { display: grid; gap: 16px; }
.stats-card, .rating-card { height: 100%; }
.stats-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgba(139,92,246,.32), rgba(34,211,238,.24)); border: 1px solid rgba(148,163,184,.20); margin-bottom: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
.stats-grid div { padding: 14px; border-radius: 16px; background: rgba(2,8,23,.46); border: 1px solid rgba(148,163,184,.14); }
.stats-grid strong { display: block; font-size: 26px; letter-spacing: -.035em; }
.stats-grid span, .muted { color: var(--muted); font-size: 13px; }
.stars { display: flex; gap: 7px; margin-top: 16px; }
.stars button { border: 1px solid rgba(148,163,184,.22); background: rgba(2,8,23,.46); color: #64748b; width: 42px; height: 42px; border-radius: 13px; cursor: pointer; font-size: 22px; line-height: 1; transition: transform .16s ease, color .16s ease, border-color .16s ease, background .16s ease; }
.stars button:hover, .stars button.active { color: #facc15; border-color: rgba(250,204,21,.42); background: rgba(250,204,21,.10); transform: translateY(-2px); }
.rating-message { min-height: 22px; color: var(--muted); font-size: 13px; margin-top: 12px; }
.download-card.unavailable { opacity: .78; }
.download-card.unavailable::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, transparent, rgba(148,163,184,.04)); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.faq { display: grid; gap: 12px; }
details { border: 1px solid var(--line); background: rgba(15,23,42,.48); border-radius: 18px; padding: 18px 20px; }
summary { cursor: pointer; font-weight: 900; }
details p { color: var(--muted); margin: 12px 0 0; }

.cta-panel { border: 1px solid rgba(34,211,238,.25); background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(34,211,238,.13)); border-radius: 34px; padding: 38px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.cta-panel p { color: #dbeafe; margin: 10px 0 0; max-width: 680px; }

.footer { padding: 44px 0; border-top: 1px solid rgba(148,163,184,.16); background: rgba(2,8,23,.54); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, .6fr); gap: 24px; }
.footer h4 { margin: 0 0 12px; }
.footer a, .footer p { color: var(--muted); margin: 0; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(148,163,184,.12); display: flex; justify-content: space-between; gap: 12px; color: var(--muted-2); font-size: 13px; }

.page-hero { padding: 72px 0 34px; }
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: start; padding: 30px 0 80px; }
.doc-sidebar { position: sticky; top: 100px; border: 1px solid var(--line); background: rgba(15,23,42,.45); border-radius: 22px; padding: 18px; }
.doc-sidebar a { display: block; color: var(--muted); padding: 9px 10px; border-radius: 10px; }
.doc-sidebar a:hover { background: rgba(148,163,184,.10); color: var(--text); }
.doc-content { display: grid; gap: 18px; }
.doc-section { border: 1px solid var(--line); background: rgba(15,23,42,.44); border-radius: 24px; padding: 26px; }
.doc-section h2 { font-size: 30px; }
.doc-section h3 { margin-top: 24px; }
.notice { border: 1px solid rgba(245,158,11,.32); background: rgba(245,158,11,.08); color: #fde68a; border-radius: 16px; padding: 14px 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(148,163,184,.16); }
th { color: #e2e8f0; background: rgba(15,23,42,.66); }
td { color: #cbd5e1; }

@media (max-width: 980px) {
  .hero-grid, .section-head, .arch-grid, .screen-panel, .problem-solution, .doc-layout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-menu { display: inline-flex; }
  .card-grid, .download-grid, .trust-grid, .download-grid-main, .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-sidebar { position: static; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero { padding-top: 54px; }
  .metric-row, .mini-grid, .card-grid, .download-grid, .download-grid-main, .platform-grid, .trust-grid, .footer-grid, .stats-grid { grid-template-columns: 1fr; }
  .cta-panel { display: block; padding: 26px; }
  .cta-panel .btn { margin-top: 18px; width: 100%; }
  .nav-actions .btn { display: none; }
  .hero-actions .btn { width: 100%; }
  .footer-bottom { display: block; }
}

/* Visible community stats / rating additions */
.topbar-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .20);
  background: rgba(15, 23, 42, .78);
  color: #e2e8f0;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-stats strong { color: #67e8f9; font-weight: 950; }
.topbar-stats em { color: #facc15; font-style: normal; font-weight: 850; }
.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin: 20px 0 18px;
}
.hero-social-main,
.hero-rating-pill {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: linear-gradient(135deg, rgba(15, 23, 42, .78), rgba(2, 8, 23, .62));
  box-shadow: 0 18px 44px rgba(2, 8, 23, .22);
}
.hero-social-main span,
.hero-rating-pill small { color: var(--muted); font-size: 12px; font-weight: 750; }
.hero-social-main strong { display: block; color: #f8fafc; font-size: 28px; letter-spacing: -.04em; }
.hero-social-main small { color: var(--muted); font-size: 13px; letter-spacing: 0; }
.hero-rating-pill { text-decoration: none; min-width: 160px; }
.rating-stars-static { color: #facc15; letter-spacing: 2px; font-size: 18px; line-height: 1; }
.hero-rating-pill b { color: #f8fafc; font-size: 20px; }
.download-inline-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}
.download-inline-stats span {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(2, 8, 23, .42);
}
.download-inline-stats b { display: block; color: #e0f2fe; font-size: 20px; margin-bottom: 2px; }
.download-inline-stats em { color: var(--muted); font-size: 12px; font-style: normal; }
.rating-card-visible {
  border-color: rgba(250, 204, 21, .32);
  box-shadow: 0 24px 70px rgba(250, 204, 21, .07);
}
.rating-count-line { color: var(--muted); font-size: 13px; margin-top: 10px; }
.rating-count-line span:first-child { color: #facc15; font-weight: 900; }
@media (max-width: 980px) {
  .topbar-stats { display: none; }
  .download-inline-stats { grid-template-columns: 1fr; }
}
