:root {
  --bg: #16171a;
  --panel: #1c1d21;
  --panel-2: #222327;
  --line: #2a2b30;
  --text: #e4e4e7;
  --muted: #8a8a92;
  --accent: #ffffff;
  --accent-2: #c9c9ce;
  --green: #6ee7a0;
  --star: #f5c542;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 16px; }

/* ---- top bar ---- */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; user-select: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 6px; display: block; }

/* ---- breadcrumb ---- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0 14px; }
.breadcrumb .crumb { color: var(--muted); }
.breadcrumb .crumb + .crumb::before { content: "/"; margin: 0 8px; color: #3a3b40; }

/* ---- hero ---- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  flex-wrap: wrap;
}
.hero-left { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; }
.hero-info { min-width: 0; }
.hero-info h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; }
.hero-info h1 .sub-label { font-weight: 400; color: var(--muted); font-size: 16px; margin-left: 8px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-meta .stars { color: var(--star); letter-spacing: 1px; }
.hero-meta .rating-num { color: var(--text); font-weight: 600; }
.dl-btn-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 18px 52px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
  animation: btn-glow 2.5s ease-in-out infinite;
}
.dl-btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(34, 197, 94, 0.5);
}
.dl-btn-hero:active { transform: translateY(0); }
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35); }
  50% { box-shadow: 0 6px 30px rgba(34, 197, 94, 0.55); }
}
.dl-btn-text { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dl-btn-sub { font-size: 12.5px; opacity: .85; margin-top: 3px; }
.hero-right { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-pw .dl-pw {
  background: transparent;
  border: none;
  padding: 0;
  justify-content: center;
}

/* ---- password + VT row ---- */
.pw-vt-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.dl-pw {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.dl-pw-label { color: var(--muted); font-size: 12.5px; }
.dl-pw-code {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  font-family: Consolas, "Courier New", monospace;
  user-select: all;
  letter-spacing: .5px;
}
.dl-pw-copy {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-size: 12px;
  transition: color .2s, border-color .2s, background .2s;
}
.dl-pw-copy:hover { color: var(--text); border-color: #45464d; background: var(--line); }
.dl-pw-copy .dl-pw-check-icon { display: none; }
.dl-pw-copy.copied { color: var(--green); border-color: rgba(110,231,160,.4); background: rgba(110,231,160,.08); }
.dl-pw-copy.copied .dl-pw-copy-icon { display: none; }
.dl-pw-copy.copied .dl-pw-check-icon { display: inline; }
.dl-pw-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.4;
}
.dl-pw-note svg { flex: none; opacity: .6; }
.vt-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}
a.vt-badge:hover { text-decoration: none; background: var(--panel-2); }
.vt-icon { width: 24px; height: 24px; flex: none; color: var(--green); }
.vt-txt { display: flex; flex-direction: column; line-height: 1.35; font-size: 12.5px; }
.vt-txt b { font-size: 13px; }
.vt-ratio { color: var(--green); font-weight: 600; }
.vt-label { color: var(--muted); font-size: 11.5px; }

/* ---- content grid ---- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  margin-top: 20px;
}
.content-main { min-width: 0; }
.content-side {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 76px;
}
.content-side h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }

/* ---- tabs ---- */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
}
.tab {
  padding: 10px 18px;
  font-size: 14px;
  color: var(--muted);
  cursor: default;
  user-select: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s;
}
.tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tab:not(.active) { cursor: pointer; }
.tab:not(.active):hover { color: var(--accent-2); }
.tab-content[hidden] { display: none; }

/* ---- description ---- */
.description h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.description p { margin: 0 0 14px; color: var(--accent-2); line-height: 1.7; }

/* ---- features ---- */
.features {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.features h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.features ul { margin: 0; padding: 0; list-style: none; }
.features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* ---- specs sidebar ---- */
.specs { margin: 0; }
.specs dt {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-top: 12px;
}
.specs dt:first-of-type { margin-top: 0; }
.specs dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.hash {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  color: #6c7686;
  word-break: break-all;
  line-height: 1.5;
}

/* ---- reviews ---- */
.reviews { display: flex; flex-direction: column; gap: 12px; }
.review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.review-author { font-weight: 600; color: var(--text); }
.review-stars { color: var(--star); font-size: 12px; letter-spacing: 1px; }
.review-date { color: var(--muted); margin-left: auto; font-size: 12px; }
.review p { margin: 0; color: var(--accent-2); line-height: 1.6; font-size: 14px; }

/* ---- changelog ---- */
.changelog { display: flex; flex-direction: column; gap: 16px; }
.cl-entry {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.cl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cl-version {
  font-weight: 700;
  font-size: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 4px;
}
.cl-date { color: var(--muted); font-size: 12px; }
.cl-entry ul { margin: 0; padding: 0 0 0 18px; }
.cl-entry li { font-size: 14px; color: var(--accent-2); padding: 2px 0; }

.empty-tab { color: var(--muted); font-size: 14px; padding: 20px 0; }

/* ---- footer ---- */
.footer {
  margin-top: 40px;
  padding: 20px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- reveal ---- */
#main-content, #footer {
  transition: opacity .3s ease;
}

/* ---- error ---- */
.error {
  background: #2a1c1c;
  border: 1px solid #5c3030;
  border-radius: var(--radius);
  padding: 16px 18px;
  color: #e8b4b4;
}
.error code { color: #f0d0a0; }

/* ---- toast ---- */
.dl-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 100;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.dl-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-check {
  color: var(--green);
  font-weight: 700;
  margin-right: 4px;
}

/* ---- download button states ---- */
.dl-btn-hero.downloaded {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  animation: none;
}
.dl-btn-hero.downloaded:hover { background: linear-gradient(135deg, #20b856 0%, #15993f 100%); }

/* ---- hero icon ---- */
.hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex: none;
  object-fit: contain;
}

/* ---- social proof ---- */
.social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}
.social-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.social-proof-num { color: var(--text); font-weight: 600; }

/* ---- trust signals ---- */
.trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 12.5px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
}
.trust-check {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}
.trust-icon { width: 14px; height: 14px; color: var(--green); flex: none; }

/* ---- download modal ---- */
.dl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade-in .2s ease;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.dl-modal-overlay[hidden] { display: none; }
.dl-modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
  animation: modal-slide-in .25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
@keyframes modal-slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.dl-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}
.dl-modal-close:hover { color: var(--text); background: var(--panel-2); }
.dl-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.dl-modal-header h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.dl-modal-header p { margin: 0; font-size: 13px; color: var(--muted); }
.dl-modal-body .modal-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.dl-modal-body .modal-step:last-child { border-bottom: none; }
.modal-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.modal-step-content { flex: 1; min-width: 0; }
.modal-step-content h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.modal-step-content p { margin: 0; font-size: 13px; color: var(--accent-2); line-height: 1.5; }
.modal-dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  font: 700 15px/1 inherit;
  margin-top: 8px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.3);
}
.modal-dl-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(34, 197, 94, 0.45); }
.modal-pw-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
}
.modal-pw-code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  flex: 1;
  user-select: all;
  letter-spacing: .5px;
}
.modal-pw-copy {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  padding: 5px 12px;
  font: 12px/1 inherit;
  transition: color .2s, border-color .2s;
}
.modal-pw-copy:hover { color: var(--text); border-color: #45464d; }
.modal-pw-copy.copied { color: var(--green); border-color: rgba(110,231,160,.4); }
.modal-pw-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---- safety scan tab ---- */
.safety-scan { max-width: 620px; }
.safety-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.safety-score {
  width: 80px;
  height: 80px;
  position: relative;
  flex: none;
}
.safety-score svg { width: 80px; height: 80px; }
.safety-score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}
.safety-score-num { font-size: 26px; color: var(--green); }
.safety-score-den { font-size: 11px; color: var(--muted); margin-top: 2px; }
.safety-result h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.safety-result p { margin: 0 0 8px; font-size: 13px; color: var(--accent-2); line-height: 1.5; }
.safety-checks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.safety-checks span {
  font-size: 12.5px;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.safety-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.safety-table caption {
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  padding: 0 0 10px;
}
.safety-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: top;
}
.safety-table td:first-child { color: var(--muted); width: 130px; }
.safety-table td:last-child { color: var(--text); word-break: break-all; }
.safety-commitment {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.safety-commitment h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.safety-commitment h4 svg { color: var(--green); flex: none; }
.safety-commitment p { margin: 0; font-size: 13px; color: var(--accent-2); line-height: 1.6; }

/* ---- interactive star rating ---- */
.star-rate {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.star-rate .star {
  font-size: 20px;
  color: #3a3b40;
  transition: color .1s;
  user-select: none;
}
.star-rate .star.filled { color: var(--star); }
.star-rate .star.hover { color: var(--star); opacity: .7; }
.star-rate-label {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
  transition: color .2s;
}
.star-rate-label.rated { color: var(--green); }

/* ---- responsive ---- */
@media (max-width: 720px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-side { position: static; }
  .hero { flex-direction: column; align-items: stretch; }
  .hero-right { width: 100%; }
  .dl-btn-hero { width: 100%; }
  .pw-vt-row { flex-direction: column; }
  .dl-pw, .vt-badge, .dl-pw-note { width: 100%; }
  .trust-row { gap: 8px; }
  .trust-item { flex: 1; min-width: 120px; justify-content: center; }
  .hero-icon { width: 48px; height: 48px; border-radius: 10px; }
}
