:root {
  --bg-canvas: #090d16;
  --bg-surface: #101726;
  --bg-elevated: #151f33;
  --bg-hover: #1b2842;

  --border-subtle: #1e2b42;
  --border-default: #293b59;
  --border-strong: #3b557e;

  --text-strong: #f2f6fc;
  --text-primary: #cad6e8;
  --text-muted: #8a9db8;
  --text-faint: #617490;

  --accent: #4d9fff;
  --accent-bright: #78b9ff;
  --accent-deep: #1e72d8;
  --accent-soft: rgba(77, 159, 255, 0.13);
  --accent-border: rgba(108, 178, 255, 0.36);

  --mirror-glow: rgba(154, 126, 255, 0.14);

  --gold: #eab354;
  --gold-bright: #f7cc78;
  --gold-soft: rgba(234, 179, 84, 0.12);
  --gold-border: rgba(234, 179, 84, 0.36);

  --emerald: #34d399;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --header-h: 66px;
  --container-max: 1060px;
  --gutter: clamp(18px, 3.5vw, 38px);

  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  color-scheme: dark;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.72;
  background:
    radial-gradient(920px 460px at 16% -6%, rgba(65, 138, 245, 0.15), transparent 68%),
    radial-gradient(760px 420px at 52% 4%, var(--mirror-glow), transparent 66%),
    radial-gradient(760px 380px at 88% 0%, rgba(234, 179, 84, 0.09), transparent 65%),
    var(--bg-canvas);
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

:is(a, button):focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: rgba(77, 159, 255, 0.32);
  color: var(--text-strong);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-strong);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

code {
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: #8cc8ff;
  background: rgba(77, 159, 255, 0.12);
  border: 1px solid rgba(108, 178, 255, 0.24);
  border-radius: 5px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 15, 26, 0.84);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(56, 82, 118, 0.42);
  box-shadow: 0 8px 28px rgba(3, 7, 14, 0.34);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container-max);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-strong);
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--gold-border);
  box-shadow: 0 0 18px rgba(234, 179, 84, 0.2);
  object-fit: cover;
}

.brand strong {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.header-sep {
  width: 1px;
  height: 18px;
  background: var(--border-default);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  color: var(--text-muted);
  background: rgba(23, 35, 56, 0.76);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.75);
}

.header-meta {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

/* Main Layout */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 46px) var(--gutter) 44px;
}

/* Hero Banner */
.hero {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: 26px;
  padding: clamp(24px, 3.2vw, 36px);
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(139, 114, 248, 0.14), transparent 70%),
    radial-gradient(460px 240px at 100% 0%, rgba(234, 179, 84, 0.13), transparent 72%),
    linear-gradient(165deg, #131d31 0%, #0d1524 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 42px rgba(3, 8, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-icon-wrap {
  flex: none;
  padding: 6px;
  background: radial-gradient(circle at 50% 35%, rgba(234, 179, 84, 0.22), rgba(15, 23, 38, 0.9));
  border: 1px solid var(--gold-border);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 28px rgba(234, 179, 84, 0.14);
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  object-fit: cover;
}

.hero-copy {
  min-width: 0;
  flex: 1;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold-bright);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-desc {
  margin-top: 8px;
  max-width: 680px;
  color: var(--text-primary);
  font-size: clamp(14.5px, 1.5vw, 16px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  color: var(--text-primary);
  background: rgba(25, 38, 62, 0.78);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
}

/* Primary Action Cards (Download & Purchase) */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.action-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 36px rgba(3, 8, 18, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.action-card.is-download {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(77, 159, 255, 0.18), transparent 72%),
    linear-gradient(165deg, #132036 0%, #0f1828 100%);
  border: 1px solid rgba(88, 148, 218, 0.38);
}

.action-card.is-purchase {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(234, 179, 84, 0.2), transparent 72%),
    linear-gradient(165deg, #211d1c 0%, #131825 100%);
  border: 1px solid var(--gold-border);
}

.action-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.is-download .action-badge {
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.is-purchase .action-badge {
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
}

.action-head h2 {
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 750;
}

.action-head p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
}

.cta-button svg {
  flex: none;
}

.cta-button.is-blue {
  color: #ffffff;
  background: linear-gradient(180deg, #3494fa 0%, #1c73d6 100%);
  border: 1px solid #63b2ff;
  box-shadow: 0 8px 20px rgba(28, 115, 214, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.cta-button.is-blue:hover {
  background: linear-gradient(180deg, #449fff 0%, #247fe5 100%);
  border-color: #8bc6ff;
  transform: translateY(-1px);
}

.cta-button.is-gold {
  color: #1c1305;
  background: linear-gradient(180deg, #f6cc76 0%, #e1a53e 100%);
  border: 1px solid #fbe0a2;
  box-shadow: 0 8px 20px rgba(225, 165, 62, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cta-button.is-gold:hover {
  background: linear-gradient(180deg, #fad689 0%, #eab04b 100%);
  border-color: #fff0c7;
  transform: translateY(-1px);
}

/* Feature Grid */
.section-card {
  margin-bottom: 22px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(3, 8, 16, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 18px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 7px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-item {
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.feature-item:hover {
  background: #18253d;
  border-color: var(--border-default);
}

.feature-item h3 {
  margin-bottom: 6px;
  font-size: 15.5px;
  font-weight: 700;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.62;
}

/* Quick Tips List */
.tips {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tips li {
  position: relative;
  padding: 12px 16px 12px 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 14px;
}

.tips li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 15px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(77, 159, 255, 0.18);
}

.tips strong {
  color: var(--text-strong);
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
}

.footer a {
  padding: 5px 12px;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 12.5px;
}

.footer a:hover {
  color: var(--text-strong);
  border-color: var(--border-strong);
}

/* Responsive */
@media (max-width: 860px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 16px;
  }

  .header-sep,
  .header-meta {
    display: none;
  }

  .brand-group {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-icon {
    width: 72px;
    height: 72px;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
