/* =========================================================================
   criminalsimulatorscript.com — theme
   Brand: dark navy + money green (#e50d1f), purple accent
   ========================================================================= */

:root {
  --bg: #0c0912;
  --bg-2: #151021;
  --card: rgba(255, 255, 255, 0.035);
  --card-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --green: #e50d1f;
  --green-2: #ff5163;
  --green-dark: #9d0812;
  --purple: #a855f7;
  --info: #6ba4e3;
  --text: #e8eef7;
  --muted: #a4b3c6;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", "Segoe UI", Arial, sans-serif;
  --radius: 18px;
  --shadow-lift: 0 18px 40px rgba(0, 0, 0, 0.45);
  --transition: 0.18s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; position: relative; z-index: 1; }

img, svg { vertical-align: middle; }

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

:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; position: relative; z-index: 1; }

/* ===== Decorative background: glows + grid ===== */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at 85% -5%, rgba(229, 13, 31, 0.13), transparent 65%),
    radial-gradient(620px 480px at -10% 40%, rgba(168, 85, 247, 0.10), transparent 65%),
    radial-gradient(500px 400px at 60% 110%, rgba(229, 13, 31, 0.07), transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, auto, auto, 46px 46px, 46px 46px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
  mask-image: linear-gradient(#000 55%, transparent 100%);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 19, 0.72);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.logo { display: inline-flex; align-items: center; gap: 0.65rem; }
.logo:hover { text-decoration: none; }
.logo-img {
  height: 42px;
  width: auto;
  display: block;
}
.footer-logo { height: 46px; }
.logo-icon { width: 38px; height: 38px; filter: drop-shadow(0 4px 12px rgba(229, 13, 31, 0.35)); }
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo-text b { color: var(--green-2); font-weight: 700; }
.logo-text i { font-style: normal; color: var(--muted); font-size: 0.82em; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a { color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color var(--transition); }
.main-nav > a:hover { color: var(--text); text-decoration: none; }

/* ===== Buttons (brand styled, hover = transform + shadow) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition), border-color var(--transition), background var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 55%, var(--green-2) 110%);
  background-size: 150% 150%;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(229, 13, 31, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 18px 40px rgba(229, 13, 31, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: brightness(1.04);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255, 81, 99, 0.55); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }

.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.9rem; border-radius: 11px; }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.1rem; border-radius: 16px; }
.btn-xl { padding: 1.2rem 2.5rem; font-size: 1.22rem; border-radius: 18px; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { padding: 1.1rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.86rem; color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "\203A"; color: var(--muted); opacity: 0.7; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green-2); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.2rem;
  align-items: center;
  padding: 3.2rem 0 3.6rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--info);
  background: rgba(107, 164, 227, 0.1);
  border: 1px solid rgba(107, 164, 227, 0.35);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--info);
  box-shadow: 0 0 0 0 rgba(107, 164, 227, 0.7);
  animation: pulse 1.8s infinite;
  display: inline-block;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 164, 227, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(107, 164, 227, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 164, 227, 0); }
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(2.15rem, 4.6vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
}
h1 .accent { color: var(--green-2); display: block; }
.dl-card .accent { color: var(--green-2); }

.hero-lead { color: var(--muted); font-size: 1.08rem; max-width: 34rem; margin-bottom: 1.9rem; }
.hero-lead strong { color: var(--text); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.6rem; }

.trust-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.trust-chips li { display: flex; align-items: center; gap: 0.42rem; }
.trust-chips .check { color: var(--green-2); font-weight: 800; font-size: 1rem; }

/* ===== GUI mock (hero visual) ===== */
.hero-visual { display: flex; justify-content: center; }

.gui-mock {
  width: min(360px, 100%);
  background: linear-gradient(160deg, rgba(16, 24, 40, 0.92), rgba(10, 16, 28, 0.92));
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lift), 0 0 80px rgba(229, 13, 31, 0.16);
  overflow: hidden;
  transform: rotate(1.5deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gui-mock:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--shadow-lift), 0 0 100px rgba(229, 13, 31, 0.26); }

.gui-mock-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}
.g-dot { width: 11px; height: 11px; border-radius: 50%; }
.g-dot.r { background: #ff5f57; } .g-dot.y { background: #febc2e; } .g-dot.g { background: #28c840; }
.gui-mock-title { margin-left: auto; font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.gui-mock-body { padding: 0.9rem 1.1rem 0.4rem; }
.gui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #c7d3e2;
}
.toggle {
  width: 40px; height: 22px; border-radius: 999px;
  background: #1c2739;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  flex: none;
  transition: background 0.2s ease;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #8fa1b8;
  transition: transform 0.2s ease, background 0.2s ease;
}
.toggle.on { background: linear-gradient(90deg, var(--green-dark), var(--green)); border-color: rgba(255, 81, 99, 0.5); }
.toggle.on::after { transform: translateX(18px); background: #eafff2; }

.gui-mock-foot {
  padding: 0.65rem 1.1rem 0.85rem;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.gui-mock-foot b { color: var(--green-2); }

/* ===== Executor bar ===== */
.executor-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 0 0 0.6rem;
}
.executor-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-row li {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c3cfdf;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.chip-row li:hover { border-color: rgba(255, 81, 99, 0.5); color: var(--text); transform: translateY(-2px); }

/* ===== Sections ===== */
.section { padding: 3.4rem 0 0.4rem; }

.kicker {
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.kicker.center { text-align: center; }

h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}
.section-lead { color: var(--muted); max-width: 46rem; margin-bottom: 1.8rem; }
.section p { margin-bottom: 1rem; }

h3 { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 0.35rem; }

/* ===== Stat grid ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-top: 1.8rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.stat:hover { transform: translateY(-4px); border-color: rgba(255, 81, 99, 0.4); }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--green-2);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.stat span { color: var(--muted); font-size: 0.86rem; }

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 81, 99, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  background: var(--card-strong);
}
.f-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  border-radius: 13px;
  background: rgba(229, 13, 31, 0.12);
  border: 1px solid rgba(229, 13, 31, 0.25);
  margin-bottom: 0.95rem;
}
.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; gap: 0.9rem; max-width: 46rem; }
.steps li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  transition: transform var(--transition), border-color var(--transition);
}
.steps li:hover { border-color: rgba(255, 81, 99, 0.4); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); }
.step-num {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-dark), var(--green-2));
  box-shadow: 0 6px 16px rgba(229, 13, 31, 0.3);
}
.steps h3 { margin-bottom: 0.2rem; }
.steps p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ===== Download band ===== */
.download-band {
  text-align: center;
  background:
    radial-gradient(420px 260px at 50% 0%, rgba(229, 13, 31, 0.14), transparent 70%),
    linear-gradient(160deg, rgba(16, 24, 40, 0.75), rgba(10, 16, 28, 0.9));
  border: 1px solid rgba(229, 13, 31, 0.3);
  border-radius: 26px;
  padding: 3.2rem 1.5rem 3rem;
  box-shadow: var(--shadow-lift);
}
.band-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}
.band-lead { color: var(--muted); margin-bottom: 2rem; }
.band-lead b { color: var(--green-2); }
.band-note { color: var(--muted); font-size: 0.86rem; margin-top: 1.1rem; margin-bottom: 0; }

/* ===== Safety ===== */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.safe-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.4rem 1.35rem;
  background: var(--card);
}
.safe-item.ok h3 { color: var(--info); }
.safe-item.warn { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.05); }
.safe-item.warn h3 { color: #fbbf24; }
.safe-item p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ===== Updates ===== */
.update-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.3rem;
  max-width: 46rem;
}
.update-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.version {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green-2);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--info);
  background: rgba(107, 164, 227, 0.1);
  border: 1px solid rgba(107, 164, 227, 0.35);
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
}
.update-date { color: var(--muted); font-size: 0.88rem; margin-left: auto; }
.changelog { list-style: none; display: grid; gap: 0.55rem; }
.changelog li { color: #c2cede; font-size: 0.94rem; }
.log-date {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.8rem;
  color: var(--green-2);
  background: rgba(229, 13, 31, 0.1);
  border-radius: 7px;
  padding: 0.1rem 0.5rem;
  margin-right: 0.65rem;
}

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 0.75rem; max-width: 46rem; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
  transition: border-color var(--transition);
}
.faq-item:hover, .faq-item[open] { border-color: rgba(255, 81, 99, 0.4); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-weight: 600;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--green-2);
  transition: transform 0.2s ease;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.3rem 1.1rem; color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ===== Share buttons (single block after content) ===== */
.share-block {
  text-align: center;
  padding: 3.4rem 0 1rem;
}
.share-title { color: var(--muted); font-weight: 600; margin-bottom: 1.1rem; }
.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.15rem 0.6rem 0.6rem;
  border-radius: 999px;
  background: #0e1626;
  border: 1px solid var(--border);
  color: #c7d3e2;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.share-btn:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.s-badge {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
}
.s-badge.fb { background: #1877f2; }
.s-badge.tw { background: #000; border: 1px solid #333; }
.s-badge.in { background: #0a66c2; font-size: 0.62rem; }
.s-badge.pi { background: #e60023; }
.s-badge.rd { background: #ff4500; }

/* ===== Download page ===== */
.dl-main { padding-bottom: 3.5rem; }

.dl-card {
  text-align: center;
  background:
    radial-gradient(480px 300px at 50% 0%, rgba(229, 13, 31, 0.13), transparent 70%),
    linear-gradient(160deg, rgba(16, 24, 40, 0.75), rgba(10, 16, 28, 0.92));
  border: 1px solid rgba(229, 13, 31, 0.28);
  border-radius: 26px;
  padding: 3rem 1.5rem 2.6rem;
  margin-top: 1.4rem;
  box-shadow: var(--shadow-lift);
}
.dl-sub { color: var(--muted); max-width: 34rem; margin: 0 auto 2rem; }

.dl-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  max-width: 44rem;
  margin: 0 auto 2.2rem;
}
.dl-meta > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0.75rem 0.6rem;
}
.dl-meta dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; margin-bottom: 0.2rem; }
.dl-meta dd { font-weight: 700; font-size: 0.95rem; }
.dl-meta .ok-dd { color: var(--info); display: flex; align-items: center; justify-content: center; gap: 0.4rem; }

.dl-start { display: grid; justify-items: center; gap: 1rem; }
.dl-btn { width: min(100%, 480px); }
.dl-note { color: var(--muted); font-size: 0.88rem; margin: 0; }
.warn-note { color: #fbbf24; }

/* --- progress (20s timer) --- */
.dl-progress { display: grid; justify-items: center; gap: 1.1rem; max-width: 480px; margin: 0 auto; }
.dl-progress-top { display: flex; align-items: center; gap: 1.3rem; }

.spinner {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 81, 99, 0.2);
  border-top-color: var(--green-2);
  animation: spin 0.9s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dl-count-wrap { display: flex; align-items: baseline; gap: 3px; font-family: var(--font-head); }
#dl-count { font-size: 3rem; font-weight: 700; color: var(--green-2); line-height: 1; }
.dl-count-s { font-size: 1.2rem; color: var(--muted); font-weight: 700; }

.progress-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #101b2c;
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-dark), var(--green) 60%, var(--green-2));
  box-shadow: 0 0 18px rgba(255, 81, 99, 0.55);
  position: relative;
  transition: width 0.95s linear;
}
.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  animation: shine 1.4s linear infinite;
}
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.dl-msg { font-weight: 600; font-size: 1.05rem; margin: 0; }
.dl-tip { color: var(--muted); font-size: 0.85rem; margin: 0; }
.dl-fallback { margin-top: 0.4rem; }

/* --- download page extras --- */
.mini-steps { margin-top: 1.6rem; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.req-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  transition: transform var(--transition), border-color var(--transition);
}
.req-card:hover { transform: translateY(-4px); border-color: rgba(255, 81, 99, 0.4); }
.req-card h3 { font-size: 1.05rem; }
.req-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.plain-list { list-style: none; display: grid; gap: 0.6rem; color: #c2cede; max-width: 46rem; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 14, 0.7);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 2.5rem;
  padding: 2.6rem 0 2rem;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; max-width: 22rem; }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--green-2); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.2rem 0; }
.footer-bottom p { color: var(--muted); font-size: 0.8rem; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 2.6rem; padding-top: 2.4rem; }
  .hero-visual { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .main-nav > a:not(.nav-cta) { display: none; }
  .logo-img { height: 34px; }
  .footer-logo { height: 38px; }
  .section { padding-top: 2.6rem; }
  .btn-xl { padding: 1.05rem 1.6rem; font-size: 1.05rem; }
  .btn-lg { padding: 0.95rem 1.4rem; font-size: 1rem; }
  .download-band { padding: 2.4rem 1.2rem 2.2rem; }
  .dl-card { padding: 2.2rem 1rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .update-date { margin-left: 0; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   v1.1.8 — новые блоки: TOC, app-table, pros/cons, vs, community, comments
   ========================================================================= */

/* ===== Sub H3 ===== */
.sub-h3 {
  font-family: var(--font-head);
  font-size: 1.18rem;
  margin: 1.9rem 0 0.6rem;
}

/* ===== GUI mock (в разделе What is) ===== */
.mock-wrap { max-width: 370px; margin: 2rem auto 0.4rem; }

/* ===== TOC + app info ===== */
.toc-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.2rem; align-items: start; }

.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
.toc-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.toc-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1.2rem; }
.toc-list a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color var(--transition); }
.toc-list a:hover { color: var(--green-2); text-decoration: none; }

.app-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.app-table caption { text-align: left; padding: 1.35rem 1.5rem 0; }
.app-table th, .app-table td {
  text-align: left;
  padding: 0.72rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  vertical-align: middle;
}
.app-table tr:last-child th, .app-table tr:last-child td { border-bottom: none; }
.app-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.app-table td { color: var(--text); font-weight: 600; }
.app-table .status-badge { margin-left: 0.4rem; }

/* ===== Pros & cons ===== */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.proscons > div {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.5rem 1.3rem;
  background: var(--card);
}
.proscons .pros { border-color: rgba(229, 13, 31, 0.35); }
.proscons .cons { border-color: rgba(251, 191, 36, 0.3); }
.proscons h3 { margin-bottom: 0.7rem; }
.proscons .pros h3 { color: var(--info); }
.proscons .cons h3 { color: #fbbf24; }
.proscons ul { list-style: none; display: grid; gap: 0.5rem; }
.proscons li { color: #c2cede; font-size: 0.95rem; padding-left: 1.35rem; position: relative; }
.proscons li::before { position: absolute; left: 0; font-weight: 800; }
.proscons .pros li::before { content: "\2713"; color: var(--info); }
.proscons .cons li::before { content: "\2013"; color: #fbbf24; }

/* ===== Vs table ===== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.vs-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.vs-table th, .vs-table td { padding: 0.8rem 1rem; font-size: 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.vs-table thead th {
  font-family: var(--font-head);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.vs-table thead th:nth-child(2) { color: var(--green-2); }
.vs-table tbody tr:last-child td { border-bottom: none; }
.vs-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.vs-table td:first-child { color: var(--muted); font-weight: 600; }
.vs-table .yes { color: #86b8f0; font-weight: 700; }
.vs-table .no { color: #8a7f95; }
.vs-table td { color: #c2cede; }

/* ===== Safety scan buttons ===== */
.safety-links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.scan-btn { color: var(--text); }
.scan-btn:hover { border-color: rgba(255, 81, 99, 0.55); }

/* ===== Community feedback ===== */
.community { display: grid; grid-template-columns: 300px 1fr; gap: 1.1rem; align-items: start; margin-bottom: 1.6rem; }

.review-summary {
  background:
    radial-gradient(240px 160px at 50% 0%, rgba(229, 13, 31, 0.12), transparent 70%),
    linear-gradient(160deg, rgba(16, 24, 40, 0.75), rgba(10, 16, 28, 0.9));
  border: 1px solid rgba(229, 13, 31, 0.28);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  position: sticky;
  top: 90px;
}
.score-row { display: flex; align-items: center; gap: 1rem; }
.score-big {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green-2);
}
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 1.05rem; }
.score-count { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 0.2rem; }

.bars { display: grid; gap: 0.4rem; width: 100%; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 26px; align-items: center; gap: 0.6rem; }
.bar-label { color: var(--muted); font-size: 0.8rem; }
.bar-track { height: 8px; border-radius: 999px; background: #101b2c; border: 1px solid var(--border); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-dark), var(--green-2)); }
.bar-num { color: var(--muted); font-size: 0.8rem; text-align: right; }

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--info);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.review-grid.three { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.2rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-4px); border-color: rgba(255, 81, 99, 0.4); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }
.review-card blockquote { margin: 0; color: #c7d3e2; font-size: 0.93rem; line-height: 1.55; }
.review-author { display: flex; align-items: center; gap: 0.7rem; }
.review-author b { display: block; font-size: 0.93rem; }
.review-author .role { display: block; color: var(--muted); font-size: 0.78rem; }
.avatar {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.82rem;
  color: #ffffff;
}
.av-g { background: linear-gradient(135deg, #ff5163, #9d0812); }
.av-p { background: linear-gradient(135deg, #c4b5fd, #8b5cf6); color: #12082a; }
.av-b { background: linear-gradient(135deg, #93c5fd, #3b82f6); color: #081627; }
.av-y { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #271603; }
.av-r { background: linear-gradient(135deg, #fda4af, #f43f5e); color: #29060d; }

/* ===== Rate it yourself (radio stars) ===== */
.rate-form { margin-top: 0.4rem; }
.rate-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.4rem 1.5rem 1.3rem;
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.rate-form legend {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  font-size: 1.02rem;
  padding: 0 0.5rem;
}
.star-picker { display: inline-flex; flex-direction: row-reverse; gap: 0.25rem; }
.sr-star { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.star-label {
  font-size: 2rem;
  line-height: 1;
  color: #4a6076;
  cursor: pointer;
  transition: color 0.12s ease, transform 0.12s ease, text-shadow 0.12s ease;
}
.star-label:hover, .star-label.active { color: #fbbf24; text-shadow: 0 0 14px rgba(251, 191, 36, 0.45); }
.star-label:hover { transform: scale(1.15); }
.sr-star:focus-visible + .star-label { outline: 2px solid var(--green-2); outline-offset: 3px; border-radius: 4px; }
.rate-msg { color: var(--green-2); font-weight: 600; font-size: 0.92rem; margin: 0; }

.developer-credit { color: var(--muted); font-size: 0.9rem; margin-top: 1.4rem; }
.developer-credit a { font-weight: 600; }

/* ===== Leave a comment ===== */
.comment-section { padding: 2.6rem 0 1rem; }
.comment-form { display: grid; gap: 0.75rem; max-width: 560px; margin-bottom: 1.4rem; }
.comment-form input, .comment-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.comment-form input::placeholder, .comment-form textarea::placeholder { color: #5d7085; }
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: rgba(255, 81, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(229, 13, 31, 0.15);
}
.comment-form .btn { justify-self: start; }
.comment-list { display: grid; gap: 0.9rem; max-width: 560px; }
.comment-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}
.comment-item .review-author { margin-bottom: 0.45rem; }
.comment-item p { margin: 0; color: #c2cede; font-size: 0.93rem; }
.comment-note { color: var(--muted); font-size: 0.8rem; margin-top: 1.2rem; }

/* ===== Download backlinks ===== */
.dl-backlinks p { color: var(--muted); font-size: 0.95rem; }

/* =========================================================================
   Центрированный лейаут + широкий hero-скриншот + фикс [hidden]
   ========================================================================= */

/* display:grid на .dl-progress/.dl-start перебивал атрибут hidden —
   из-за этого таймер был виден до клика. Важно держать это правило. */
[hidden] { display: none !important; }

/* Hero: одна колонка — текст по центру, широкий скриншот ниже */
.hero {
  grid-template-columns: 1fr;
  gap: 2.6rem;
  padding-top: 2.6rem;
  padding-bottom: 2.8rem;
}
.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}
.hero-visual {
  width: 100%;
  margin: 0 auto;
}

/* ===== Hero screenshot (первый экран) — строго 16:9, во всю ширину ===== */
.hero-shot { margin: 0; }
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift), 0 0 80px rgba(229, 13, 31, 0.14);
  transform: rotate(0deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-shot img:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift), 0 0 100px rgba(229, 13, 31, 0.24);
}

/* Центрирование контента секций */
.section, .toc-section { text-align: center; }
.section-lead { margin-left: auto; margin-right: auto; }
.steps, .faq-list, .proscons, .update-card, .plain-list,
.comment-form, .comment-list { margin-inline: auto; }
.cta-row, .trust-chips, .safety-links, .share-buttons { justify-content: center; }
.executor-bar { justify-content: center; }

.app-table th, .app-table td,
.vs-table th, .vs-table td { text-align: center; }

.feature-card { text-align: center; }
.f-icon { margin-inline: auto; }
.safe-item { text-align: center; }

.steps li {
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

/* FAQ: вопрос по центру, «+» прижат вправо */
.faq-item summary {
  justify-content: center;
  position: relative;
  padding-right: 3.2rem;
}
.faq-item summary::after {
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

/* Community-блок по центру */
.review-card { text-align: center; }
.review-card .review-author { justify-content: center; }
.review-summary { text-align: center; justify-items: center; }
.review-summary .score-row { justify-content: center; }
.rate-form fieldset { justify-items: center; }
.developer-credit { text-align: center; }
.comment-section { text-align: center; }

/* GUI-мок внутри центрированной секции остаётся сам собой */
.gui-mock { text-align: left; }
.gui-row span:first-child { text-align: left; }

/* ===== Responsive for new blocks ===== */
@media (max-width: 940px) {
  .toc-section { grid-template-columns: 1fr; }
  .community { grid-template-columns: 1fr; }
  .review-summary { position: static; }
}
@media (max-width: 640px) {
  .proscons { grid-template-columns: 1fr; }
  .toc-list { grid-template-columns: 1fr; }
  .app-table th, .app-table td { padding: 0.6rem 0.85rem; }
}
