:root {
  --bg-main: #060e1a;
  --bg-surface: #0c192e;
  --bg-surface-2: #122440;
  --border-subtle: rgba(125, 211, 252, 0.16);
  --text-main: #eef4fb;
  --text-muted: #9fb3c8;
  --accent: #38bdf8;
  --accent-strong: #0284c7;
  --accent-soft: rgba(56, 189, 248, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

code {
  font-family: Consolas, monospace;
  color: var(--accent);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 14, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--accent-soft);
}

.nav-link.is-active {
  color: #fff;
  background: var(--accent-soft);
  border-color: rgba(56, 189, 248, 0.4);
}

.footer-link {
  display: inline-block;
  padding: 4px 8px;
}

.site-main {
  flex: 1 0 auto;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 44px;
}

.site-main > h1:first-child {
  margin: 0 0 8px;
}

.lead-note {
  color: var(--text-muted);
  margin-top: 0;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(105deg, rgba(6, 14, 26, 0.92) 0%, rgba(10, 25, 47, 0.78) 55%, rgba(6, 14, 26, 0.88) 100%),
    url("images/hero-bg.jpg") center / cover no-repeat,
    linear-gradient(135deg, #071324, #102a4c);
  padding: 36px 32px;
  margin-bottom: 20px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-banner h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.2;
}

.hero-banner p {
  margin: 0 0 20px;
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.03rem;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  border-color: rgba(125, 211, 252, 0.35);
}

.btn-primary:hover {
  background: #0369a1;
}

.btn-secondary {
  background: var(--bg-surface-2);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 22px;
}

.card h2, .card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.card p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.screen-card {
  margin: 0;
}

.shot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}

.shot-trigger img {
  display: block;
  width: 100%;
  height: 205px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.shot-trigger:hover img {
  transform: scale(1.02);
  opacity: 0.96;
}

.shot-caption {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.shot-caption strong {
  color: var(--text-main);
}

.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 10, 20, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.shot-lightbox[hidden] {
  display: none;
}

.shot-lightbox-inner {
  max-width: 1360px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shot-lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
  font-weight: 600;
}

.shot-lightbox-close,
.shot-lightbox-nav {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
}

.shot-lightbox-close:hover,
.shot-lightbox-nav:hover {
  border-color: var(--accent);
  background: var(--bg-surface-2);
}

.shot-lightbox-close {
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
}

.shot-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.shot-lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.shot-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 54px;
  font-size: 28px;
  line-height: 1;
}

.shot-lightbox-nav.prev {
  left: 10px;
}

.shot-lightbox-nav.next {
  right: 10px;
}

.shot-lightbox-caption {
  color: var(--text-main);
  font-size: 0.95rem;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 8px;
}

.table-compare-pro {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 680px;
}

.table-compare-pro th,
.table-compare-pro td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.table-compare-pro th {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  background: rgba(18, 36, 64, 0.55);
}

.table-compare-pro td:first-child {
  color: var(--text-main);
  font-weight: 600;
  width: 20%;
}

.table-compare-pro td:nth-child(2) {
  color: #f8fafc;
  width: 34%;
}

.table-compare-pro td:nth-child(3),
.table-compare-pro td:nth-child(4) {
  color: var(--text-muted);
  width: 23%;
}

.table-compare-pro tr:last-child td {
  border-bottom: none;
}

.version-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
}

.version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.badge-latest {
  font-size: 0.8rem;
  font-weight: 700;
  color: #062238;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
}

.meta-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sha-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  font-family: Consolas, monospace;
  font-size: 0.84rem;
  color: var(--text-muted);
  word-break: break-all;
}

.search-box {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 18px;
}

.search-box:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.help-topic {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
}

.help-topic h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.steps-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--text-main);
}

.steps-list li {
  margin-bottom: 6px;
}

.path-chip {
  font-weight: 600;
  color: var(--accent);
}

.empty-help {
  display: none;
  text-align: center;
  padding: 28px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}