:root {
  --bg: #080d1c;
  --bg-2: #0d1428;
  --card: #131c33;
  --card-2: #18233f;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-cyan: #06b6d4;
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --warn: #f59e0b;
  --text: #e9eefb;
  --muted: #9aa7c7;
  --line: rgba(255, 255, 255, 0.09);
  --line-glow: rgba(37, 99, 235, 0.35);
  --radius: 16px;
  --radius-sm: 8px;
  --max-w: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --page-pad: 32px;
}

*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fff;
}

.wrap {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  padding-left: max(var(--page-pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-pad), env(safe-area-inset-right, 0px));
}

/* Nav Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 13, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17.5px;
  color: #fff;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover, .nav-links a.is-on {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 980px;
  background: linear-gradient(135deg, var(--brand), var(--brand-cyan));
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.btn-sm {
  min-height: 34px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-line {
  background: var(--card);
  color: var(--text) !important;
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-line:hover {
  background: var(--card-2);
  border-color: var(--brand);
}

/* Hero Section */
.hero {
  padding: 68px 0 44px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 900;
  color: #fff;
  margin: 0 auto 16px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* 4 Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 52px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 13.5px;
  color: var(--text);
}

.trust-badge svg {
  color: var(--accent);
}

.trust-badge strong {
  color: var(--accent);
}

/* Sections */
.section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  text-align: center;
}

.section-lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Download Area (4-Card Grid) */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.platform-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.platform-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-glow);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.platform-card.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--card-2), var(--card));
}

.platform-header {
  margin-bottom: 16px;
}

.platform-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.platform-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #fff;
}

.platform-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.platform-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.platform-meta-list li strong {
  color: var(--text);
}

.platform-card .btn {
  width: 100%;
}

/* SHA256 Box */
.sha-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sha-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sha-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}

.sha-code {
  background: #040711;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: monospace;
  font-size: 13.5px;
  color: var(--accent);
  word-break: break-all;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th {
  background: var(--card-2);
  color: #fff;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

td strong {
  color: #fff;
}

/* 6 Grid (Features) */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  background: var(--card-2);
  border-color: var(--line-glow);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #fff;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* 2-Column Cards (Security & Privacy) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.security-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.security-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #fff;
}

.security-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
}

/* 4 Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: left;
}

.step-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 4px 10px;
  border-radius: 980px;
  display: inline-block;
  margin-bottom: 14px;
}

.step-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #fff;
}

.step-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* Changelog Box */
.changelog-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
}

.changelog-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.changelog-badge {
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 980px;
}

.changelog-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
}

/* Pricing 2-Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--card-2), var(--card));
}

.pricing-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #fff;
}

.pricing-price {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  margin: 14px 0 20px;
}

.pricing-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card ul {
  margin: 0 0 24px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  flex-grow: 1;
}

/* FAQ Details */
.faq-category {
  margin-bottom: 32px;
}

.faq-cat-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 14px;
  border-left: 4px solid var(--brand-cyan);
  padding-left: 12px;
}

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 16px 20px;
  transition: all 0.2s ease;
}

details[open] {
  border-color: var(--brand);
  background: var(--card-2);
}

summary {
  font-weight: 700;
  font-size: 15.5px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand-cyan);
}

details[open] summary::after {
  content: "–";
}

details ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

details li {
  margin-bottom: 6px;
}

/* Download Page Specific Cards */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0 48px;
}

.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dl-card:hover {
  border-color: var(--brand);
}

.dl-card.highlight {
  border: 2px solid var(--brand);
}

.dl-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #fff;
}

.dl-card-meta {
  font-size: 12.5px;
  color: var(--brand-cyan);
  margin-bottom: 14px;
}

.dl-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}

.dl-card .btn {
  width: 100%;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 68px;
  font-size: 13.5px;
  color: var(--muted);
  background: #040711;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .platforms-grid, .grid-6, .grid-2, .steps-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
}
