:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --text: #16181d;
  --muted: #686d78;
  --line: rgba(24, 29, 40, 0.1);
  --soft: #eef0f4;
  --blue: #4b75ee;
  --blue-soft: #e9efff;
  --violet: #8b5cf6;
  --violet-soft: #f0eaff;
  --green: #23885a;
  --danger: #b3261e;
  --shadow: 0 24px 70px rgba(25, 32, 48, 0.09);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { min-width: 320px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% -10%, rgba(75, 117, 238, 0.11), transparent 36%),
    radial-gradient(circle at 92% 4%, rgba(139, 92, 246, 0.09), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 720; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-solid);
  box-shadow: 0 8px 22px rgba(30, 36, 50, 0.08);
}
.brand-mark svg { width: 22px; height: 22px; }
.header-link { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.header-link:hover { color: var(--text); }

.catalog-main { padding: 74px 0 76px; }
.catalog-hero { max-width: 760px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 740;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.catalog-hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 760;
}
.catalog-hero p {
  margin: 22px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 62px; }
.product-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  backdrop-filter: blur(18px);
  transition: transform 260ms cubic-bezier(.2,.75,.2,1), border-color 220ms ease, box-shadow 220ms ease;
}
.product-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  top: -130px;
  border-radius: 50%;
  background: var(--card-glow, rgba(75, 117, 238, 0.14));
  filter: blur(2px);
  pointer-events: none;
}
.product-card:hover { transform: translateY(-5px); border-color: rgba(75, 117, 238, 0.25); box-shadow: 0 30px 80px rgba(25, 32, 48, 0.14); }
.product-card:active { transform: translateY(-1px) scale(0.992); }
.product-card.violet { --card-glow: rgba(139, 92, 246, 0.17); }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.product-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface-solid);
  box-shadow: 0 13px 30px rgba(25, 32, 48, 0.1);
}
.product-icon svg { width: 44px; height: 44px; }
.product-version {
  position: relative;
  z-index: 1;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 680;
}
.product-card h2 { margin: 28px 0 8px; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.product-platform { margin: 0; color: var(--blue); font-size: 13px; font-weight: 690; }
.product-card.violet .product-platform { color: var(--violet); }
.product-summary { margin: 14px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.product-cta { position: absolute; left: 30px; right: 30px; bottom: 28px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 690; }
.product-cta svg { width: 18px; height: 18px; transition: transform 180ms ease; }
.product-card:hover .product-cta svg { transform: translateX(4px); }
.catalog-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); text-align: center; }

.detail-main { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 72px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 620; text-decoration: none; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 17px; height: 17px; }
.detail-hero { display: flex; align-items: center; gap: 20px; margin-top: 42px; }
.detail-icon { width: 82px; height: 82px; border-radius: 22px; }
.detail-icon svg { width: 56px; height: 56px; }
.detail-copy { min-width: 0; }
.detail-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-title-row h1 { margin: 0; font-size: clamp(29px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.035em; }
.status-badge { border: 1px solid rgba(75, 117, 238, 0.2); border-radius: 999px; background: var(--blue-soft); color: var(--blue); padding: 3px 10px; font-size: 12px; font-weight: 700; }
.status-badge.violet { border-color: rgba(139, 92, 246, 0.22); background: var(--violet-soft); color: var(--violet); }
.tagline { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.version-line { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.version-line.error { color: var(--danger); }

.primary-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: 30px;
  border: 0;
  border-radius: 15px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 15px 32px -14px rgba(75, 117, 238, 0.72);
  font-size: 16px;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}
.primary-download.violet { background: linear-gradient(135deg, #7951eb, #9a65ff); box-shadow: 0 15px 34px -14px rgba(139, 92, 246, 0.8); }
.primary-download:hover { filter: brightness(1.04); }
.primary-download:active { transform: scale(0.987); }
.primary-download[aria-disabled="true"] { opacity: 0.45; pointer-events: none; box-shadow: none; }
.primary-download svg { width: 21px; height: 21px; }
.download-hint { margin: 11px 0 0; text-align: center; color: var(--muted); font-size: 13px; }

.detail-section { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.detail-section h2 { margin: 0 0 17px; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-item { min-height: 116px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.feature-item b { display: block; font-size: 14px; }
.feature-item p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 38px; padding: 1px 0 18px 47px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 760; }
.steps.violet li::before { background: var(--violet-soft); color: var(--violet); }
.steps b { color: var(--text); }
.note-list { margin: 0; padding-left: 21px; color: var(--muted); }
.note-list li { padding: 3px 0; font-size: 14px; line-height: 1.7; }
.notice { margin-top: 20px; padding: 16px 17px; border: 1px solid rgba(139, 92, 246, 0.2); border-radius: 15px; background: var(--violet-soft); color: var(--muted); font-size: 13px; line-height: 1.7; }
.notice b { color: var(--text); }

.meta-card { margin-top: 42px; padding: 8px 19px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.meta-row { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.meta-row:last-child { border-bottom: 0; }
.meta-key { flex: 0 0 auto; color: var(--muted); }
.meta-value { min-width: 0; text-align: right; overflow-wrap: anywhere; font-weight: 560; }
.meta-value code { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 11px; word-break: break-all; }
.copy-button { margin-left: 7px; padding: 4px 9px; border: 0; border-radius: 7px; background: var(--soft); color: var(--blue); cursor: pointer; font: inherit; font-size: 12px; font-weight: 690; }

.site-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 560px); }
  .site-header { min-height: 64px; }
  .header-link { font-size: 13px; }
  .catalog-main { padding: 52px 0 52px; }
  .catalog-hero h1 { font-size: clamp(39px, 13vw, 58px); }
  .product-grid { grid-template-columns: 1fr; margin-top: 40px; gap: 16px; }
  .product-card { min-height: 304px; padding: 24px; border-radius: 22px; }
  .product-card h2 { margin-top: 23px; font-size: 23px; }
  .product-cta { left: 24px; right: 24px; bottom: 23px; }
  .detail-main { width: min(100% - 28px, 620px); padding-top: 30px; }
  .detail-hero { align-items: flex-start; margin-top: 32px; gap: 15px; }
  .detail-icon { width: 67px; height: 67px; border-radius: 18px; }
  .detail-icon svg { width: 46px; height: 46px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-item { min-height: 0; }
  .meta-row { gap: 14px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1014;
    --surface: rgba(24, 27, 34, 0.9);
    --surface-solid: #181b22;
    --text: #f1f2f5;
    --muted: #a6aab4;
    --line: rgba(238, 241, 249, 0.12);
    --soft: #252932;
    --blue: #86a6ff;
    --blue-soft: rgba(91, 128, 238, 0.17);
    --violet: #b99aff;
    --violet-soft: rgba(139, 92, 246, 0.16);
    --green: #6bd39c;
    --shadow: none;
  }
  body { background: radial-gradient(circle at 18% -12%, rgba(75, 117, 238, 0.13), transparent 34%), radial-gradient(circle at 95% 0%, rgba(139, 92, 246, 0.1), transparent 32%), var(--bg); }
  .product-card:hover { box-shadow: none; }
  .primary-download { color: #0d255e; box-shadow: none; }
  .primary-download.violet { color: #fff; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
