: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 (removed) ---- */

/* ---- 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 overlay ---- */
.dl-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlay-in .3s ease;
}
.dl-overlay[hidden] { display: none; }
.dl-overlay.closing {
  animation: overlay-out .5s ease forwards;
}
@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes overlay-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-40px); }
}
.dl-overlay-content {
  text-align: center;
  animation: overlay-content-in .4s ease .1s both;
}
@keyframes overlay-content-in {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.dl-overlay-check {
  width: 72px;
  height: 72px;
  color: var(--green);
  margin-bottom: 16px;
}
.dl-overlay-check circle {
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: check-circle .6s ease .2s forwards;
}
.dl-overlay-check path {
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  animation: check-mark .4s ease .6s forwards;
}
@keyframes check-circle {
  to { stroke-dashoffset: 0; }
}
@keyframes check-mark {
  to { stroke-dashoffset: 0; }
}
.dl-overlay h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.dl-overlay-bar {
  width: 240px;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}
.dl-overlay-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 3px;
  animation: overlay-progress 1.8s ease-out forwards;
}
@keyframes overlay-progress {
  0% { width: 0%; }
  60% { width: 80%; }
  100% { width: 100%; }
}

/* ---- post-download banner ---- */
.post-dl-banner {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  animation: post-dl-slide .3s ease;
}
.post-dl-banner[hidden] { display: none; }
@keyframes post-dl-slide {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}
.post-dl-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.post-dl-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.post-dl-check { color: var(--green); flex: none; }
.post-dl-progress {
  flex: 1;
  max-width: 340px;
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.post-dl-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 4px;
  transition: width .3s ease;
  animation: progress-anim 3s ease-out forwards;
}
@keyframes progress-anim {
  0% { width: 0%; }
  30% { width: 60%; }
  70% { width: 85%; }
  100% { width: 100%; }
}
.post-dl-relaunch {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  padding: 8px 16px;
  font: 13px/1 inherit;
  font-weight: 500;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.post-dl-relaunch:hover { background: var(--line); border-color: #45464d; }

/* ---- post-download accordion sections ---- */
.post-dl-sections { margin: 20px 0; }
.post-dl-sections[hidden] { display: none; }
.post-dl-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 700px;
}
.accordion-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.accordion-header:hover { background: var(--panel-2); }
.accordion-header h3 { margin: 0; font-size: 15px; font-weight: 600; }
.accordion-arrow {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform .2s ease;
  flex: none;
}
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--accent-2);
  line-height: 1.7;
  display: none;
}
.accordion-item.open .accordion-body { display: block; }
.accordion-pw-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
}
.accordion-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;
}
.accordion-pw-copy {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 14px;
  font: 13px/1 inherit;
  transition: color .2s, border-color .2s;
}
.accordion-pw-copy:hover { color: var(--text); border-color: #45464d; }
.accordion-pw-copy.copied { color: var(--green); border-color: rgba(110,231,160,.4); }
.accordion-steps {
  margin: 10px 0 0;
  padding: 0 0 0 20px;
}
.accordion-steps li {
  padding: 4px 0;
  color: var(--accent-2);
}

/* ---- 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; }
}
