:root {
  --bg: #0F1218;
  --bg-2: #141820;
  --surface: #191E27;
  --panel: rgba(20, 24, 32, 0.86);
  --control: #242C38;
  --line: #2A3341;
  --line-2: #3B4757;
  --text: #EDF1F5;
  --muted: #B0BACA;
  --dim: #7F8C9F;
  --accent: #A7C6ED;
  --accent-ink: #15243A;
  --cyan: #3BD6E0;
  --hp: #53B681;
  --shield: #4A82B0;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

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

html { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
b { font-weight: 600; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 10px 18px;
  font: 500 15px/1.2 var(--font); color: var(--text); text-decoration: none; white-space: nowrap;
  background: var(--control); border: 1px solid var(--line-2); border-radius: 6px;
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.btn:hover { border-color: #AAC5E8; }
.btn:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: #B9D3F3; border-color: #fff; }
.btn-lg { min-height: 50px; padding: 13px 24px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  display: flex; align-items: center; gap: 32px; padding: 0 28px;
  border-bottom: 1px solid transparent; transition: background-color .2s, border-color .2s;
}
.topbar.scrolled { background: rgba(15, 18, 24, 0.94); border-color: var(--line); backdrop-filter: blur(8px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: .02em; }
.topnav { display: flex; gap: 26px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.topnav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 920px; overflow: hidden; background: #0B0E13; }
#sim { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,14,19,.95) 0%, rgba(11,14,19,.82) 30%, rgba(11,14,19,.25) 52%, rgba(11,14,19,0) 64%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15,18,24,0) 18%);
}
.hero-copy { position: absolute; left: max(28px, calc((100vw - 1160px) / 2 + 28px)); top: 50%; transform: translateY(-54%); width: min(560px, calc(100% - 56px)); }
.eyebrow { font-size: 14px; color: var(--cyan); letter-spacing: .04em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.06; font-weight: 600; letter-spacing: -.02em; margin-bottom: 22px; }
.hero h1 span { color: var(--muted); font-weight: 400; }
.lead { font-size: 18px; color: var(--muted); max-width: 46ch; margin-bottom: 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.cta-note { font-size: 14px; color: var(--dim); }
.cta-note a { color: var(--accent); }

/* HUD panels — copy of client look */
.hud { position: absolute; right: 24px; display: flex; flex-direction: column; gap: 8px; width: 248px; pointer-events: none; }
.hud-top { top: 84px; }
.hud-bottom { bottom: 96px; }
.panel { background: var(--panel); border: 1px solid #2B3240; border-radius: 4px; padding: 8px 10px; font-size: 12.5px; }
.panel-title { color: var(--dim); font-size: 11px; margin-bottom: 4px; }
.panel-name { color: var(--text); margin-bottom: 5px; }
.row { display: flex; justify-content: space-between; gap: 10px; line-height: 1.6; color: var(--muted); }
.row b { color: var(--text); font-weight: 400; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 15px; background: #272B36; margin-top: 3px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; }
.bar-hp i { background: var(--hp); }
.bar-sh i { background: var(--shield); }
.bar span { position: relative; display: block; text-align: center; font-size: 10.5px; line-height: 15px; color: #fff; font-variant-numeric: tabular-nums; }

/* mode switch */
.modebar {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--panel); border: 1px solid #2B3240; border-radius: 8px; max-width: calc(100% - 32px); overflow-x: auto;
}
.modebar-label { font-size: 12px; color: var(--dim); padding: 0 10px 0 8px; white-space: nowrap; }
.modebar-label::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--hp); margin-right: 8px; vertical-align: 1px; }
.modebar button {
  font: 500 14px var(--font); color: var(--muted); background: transparent; border: 1px solid transparent;
  border-radius: 5px; padding: 8px 14px; cursor: pointer; white-space: nowrap;
}
.modebar button:hover { color: var(--text); background: var(--control); }
.modebar button.active { color: var(--accent-ink); background: var(--accent); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 14px; color: var(--cyan); letter-spacing: .04em; margin-bottom: 12px; }
.h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -.015em; margin-bottom: 56px; }

/* features: alternating rows */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature-flip { grid-template-columns: 7fr 5fr; }
.feature-flip .feature-text { order: 2; }
.feature-num { display: block; font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.feature h3 { font-size: 26px; font-weight: 600; line-height: 1.2; margin-bottom: 14px; }
.feature p { font-size: 17px; color: var(--muted); max-width: 42ch; }
.shot { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 48px rgba(0,0,0,.4); }
.shot img { width: 100%; cursor: zoom-in; }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.step { padding: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 24px; }
.step + .step { border-left: 1px solid var(--line); }
/* Identical visual frame in every step: same size, same top line */
.step-visual {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 8px; background: #191E27;
}
.step-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; cursor: zoom-in; }
.step-body { display: flex; flex-direction: column; gap: 10px; padding: 0 4px 8px; }
.step-num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: var(--control); border: 1px solid var(--line-2); color: var(--accent); font-weight: 600; font-size: 14px; }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { color: var(--muted); font-size: 15.5px; }
.step-link { color: var(--accent); font-size: 15px; text-decoration: none; }
.step-link:hover { text-decoration: underline; }

/* Step 1: Explorer-like view of the archive contents */
.folder { display: flex; flex-direction: column; text-decoration: none; font-size: 13px; color: var(--text); transition: border-color .15s; }
.folder:hover { border-color: #AAC5E8; }
.folder-bar { padding: 10px 14px; background: #11151C; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-head, .folder-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 0 14px; align-items: center; }
.folder-head { height: 32px; color: var(--dim); font-size: 12px; border-bottom: 1px solid var(--line); }
.folder-row { height: 40px; color: var(--muted); }
.folder-row > span:last-child, .folder-head > span:last-child { min-width: 92px; }
.folder-row.is-selected { background: rgba(167, 198, 237, 0.13); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.folder-name { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-name img { flex: none; width: 20px; height: 20px; }
.folder-status { margin-top: auto; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.txt-icon { flex: none; width: 16px; height: 20px; margin: 0 2px; border: 1px solid var(--dim); border-radius: 2px; background: repeating-linear-gradient(180deg, transparent 0 4px, var(--dim) 4px 5px) content-box; padding: 4px 3px; }

/* key */
.key { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.key .h2 { margin-bottom: 32px; }
.key-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.key-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 16.5px; }
.key-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 2px; background: var(--cyan); }
.key-list b { color: var(--text); }
.tg-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 40px 36px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.tg-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tg-label { color: var(--muted); font-size: 15px; }
.tg-handle { font-size: clamp(30px, 3.2vw, 40px); font-weight: 600; color: var(--accent); letter-spacing: -.01em; }
.tg-arrow { position: absolute; right: 32px; bottom: 36px; font-size: 28px; color: var(--accent); }

/* faq */
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; color: var(--dim); font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); font-size: 16px; max-width: 68ch; }

/* footer */
.footer { padding: 32px 0; }
.footer-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-note { color: var(--dim); font-size: 14px; margin-right: auto; }
.footer a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer .brand { font-size: 17px; color: var(--text); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 32px; background: rgba(8,10,14,.94); }
.lightbox.open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 88vh; border: 1px solid var(--line-2); border-radius: 8px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; font-size: 30px; line-height: 1; color: var(--text); background: var(--control); border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .panel-stats, .panel-hero { display: none; } }
@media (max-width: 960px) {
  .topnav { display: none; }
  .topbar .btn { margin-left: auto; }
  .hud { display: none; }
  .hero { height: auto; min-height: 0; max-height: none; padding: 120px 0 120px; }
  .hero-copy { position: relative; left: auto; top: auto; transform: none; margin: 0 28px; width: auto; max-width: 560px; }
  .hero-scrim { background: linear-gradient(0deg, rgba(11,14,19,.92) 0%, rgba(11,14,19,.78) 55%, rgba(11,14,19,.55) 100%); }
  .modebar { bottom: 24px; }
  .feature, .key { grid-template-columns: 1fr; gap: 28px; }
  .feature-flip { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .modebar-label { display: none; }
  .lead { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
