:root {
  --ink: #111827;
  --muted: #697386;
  --line: #e4e8ef;
  --soft: #f4f6f9;
  --panel: #ffffff;
  --brand: #6157e7;
  --brand-dark: #4940c7;
  --green: #129a61;
  --shadow: 0 18px 50px rgba(25, 31, 45, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.hidden { display: none !important; }
iframe.hidden { width: 0; height: 0; border: 0; position: absolute; left: -9999px; }
.muted { color: var(--muted); font-size: 14px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}
nav { display: flex; gap: 26px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
nav a:hover { color: var(--ink); }

.catalog-hero {
  padding: 105px 0 80px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -30%, rgba(97, 87, 231, .18), transparent 52%),
    linear-gradient(#fbfbfe, #fff);
}
.hero-copy { max-width: 780px; }
.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
.catalog-hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.catalog-hero p { max-width: 600px; margin: 0 auto 34px; color: var(--muted); font-size: 18px; }
.search {
  max-width: 540px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.search span { color: var(--muted); font-size: 24px; line-height: 1; }
.search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }

.catalog, .related { padding: 76px 0 96px; }
.section-heading { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading h2 { margin: 6px 0 0; font-size: 28px; letter-spacing: -.035em; }
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.app-card {
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.app-card:hover { transform: translateY(-4px); border-color: #d3d7e2; box-shadow: var(--shadow); }
.app-top { display: flex; align-items: center; gap: 13px; }
.app-icon, .product-icon {
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
  background: var(--icon-color);
}
.app-icon { width: 48px; height: 48px; border-radius: 13px; }
.app-icon img, .product-icon img { width: 100%; height: 100%; padding: 6px; object-fit: contain; background: #fff; }
.app-icon.fallback-icon img, .product-icon.fallback-icon img {
  padding: 3px;
  background: linear-gradient(145deg, #eef8ff, #d8efff);
}
.app-name { overflow: hidden; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.app-category { color: var(--muted); font-size: 12px; }
.card-badges { min-height: 24px; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-badges span { padding: 3px 7px; border: 1px solid #c9eadb; border-radius: 6px; color: #08784a; background: #effbf5; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.app-card > p { min-height: 66px; margin: 12px 0 18px; color: var(--muted); font-size: 13px; }
.app-action { display: flex; justify-content: space-between; align-items: center; color: var(--brand); font-size: 13px; font-weight: 700; }
.app-action span:last-child { font-size: 18px; }

.about { padding: 80px 0; background: var(--soft); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about h2 { margin: 8px 0 0; font-size: 38px; line-height: 1.15; letter-spacing: -.045em; }
.about p { margin: 0; color: var(--muted); }

.product-hero { padding: 70px 0 54px; background: linear-gradient(150deg, #f8f8fd, #fff); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 8px; margin-bottom: 38px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--brand); }
.product-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.product-icon { width: 92px; height: 92px; border-radius: 22px; font-size: 34px; box-shadow: var(--shadow); }
.product-kicker { display: flex; gap: 8px; margin-bottom: 7px; }
.product-kicker span { padding: 4px 9px; border-radius: 7px; color: var(--muted); background: #eceef4; font-size: 11px; font-weight: 700; }
.product-title h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -.045em; }
.edition-badges { margin: 12px 0 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.edition-badges span { padding: 5px 9px; border: 1px solid #bfe5d4; border-radius: 8px; color: #08784a; background: #edf9f3; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.product-title p { max-width: 650px; margin: 0; color: var(--muted); }
.download-button {
  min-width: 238px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #19ae6e, #0c8b59);
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(18, 154, 97, .24), inset 0 1px rgba(255, 255, 255, .15);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.download-button:hover { transform: translateY(-2px); filter: brightness(1.03); box-shadow: 0 19px 38px rgba(18, 154, 97, .3), inset 0 1px rgba(255, 255, 255, .15); }
.download-button:active { transform: translateY(0) scale(.985); }
.download-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .14); }
.download-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.download-copy strong { font-size: 16px; }
.download-copy small { margin-top: 3px; opacity: .75; font-size: 10px; font-weight: 500; }
.download-arrow { opacity: .75; font-size: 20px; transition: transform .18s ease; }
.download-button:hover .download-arrow { transform: translateX(3px); }

.trust-strip { border-bottom: 1px solid var(--line); }
.trust-grid { padding-block: 24px; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { padding-inline: 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.trust-grid div:first-child { padding-left: 0; }
.trust-grid div:last-child { border: 0; }
.trust-grid strong { font-size: 14px; }
.trust-grid span { color: var(--muted); font-size: 12px; }

.password-wrap { padding-top: 28px; }
.password-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #d9d4ff;
  border-radius: 18px;
  background: linear-gradient(110deg, #f7f5ff, #fff 64%);
  box-shadow: 0 12px 32px rgba(97, 87, 231, .1);
}
.password-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -110px;
  border-radius: 50%;
  background: rgba(97, 87, 231, .08);
  pointer-events: none;
}
.password-lock { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #8177ff, #5046d2); font-size: 25px; font-weight: 800; }
.password-copy { display: flex; flex-direction: column; }
.password-copy span { color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.password-copy strong { margin-top: 2px; font-size: 14px; }
.password-card code { padding: 10px 16px; border: 1px solid #d6d0ff; border-radius: 11px; color: #3c338f; background: #fff; font: 800 18px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .07em; }
.password-card button { z-index: 1; padding: 10px 15px; border: 0; border-radius: 10px; color: #fff; background: var(--brand); cursor: pointer; font-size: 12px; font-weight: 700; }
.password-card button:hover { background: var(--brand-dark); }

.product-layout { padding: 64px 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 46px; align-items: start; }
.content-card h2, .spec-card h2 { margin-bottom: 16px; font-size: 22px; letter-spacing: -.025em; }
.tab-panel > p { color: var(--muted); }
.tabs { margin-bottom: 34px; display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 0 0 12px; border: 0; color: var(--muted); background: none; font-weight: 600; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--brand); border-bottom: 2px solid var(--brand); }
.tab-panel[hidden] { display: none; }
.feature-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about-note { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.about-note.hidden { display: none; }
.feature-grid div { padding: 20px; border-radius: 14px; background: var(--soft); }
.feature-grid span { color: var(--brand); font-size: 11px; font-weight: 800; }
.feature-grid h3 { margin: 8px 0 5px; font-size: 14px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 12px; }
.notes-list { margin: 0; padding-left: 22px; color: var(--muted); }
.notes-list li { margin: 12px 0; padding-left: 5px; }
.notes-list strong { color: var(--ink); }
.download-steps { margin: 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.download-steps li { padding: 16px; display: grid; grid-template-columns: 34px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.download-steps li > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--brand); font-size: 13px; font-weight: 800; }
.download-steps strong { font-size: 14px; }
.download-steps p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.download-steps code { padding: 2px 5px; border-radius: 5px; color: #3c338f; background: #ebe8ff; font-weight: 700; }
.spec-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.spec-card dl { margin: 0; }
.spec-card dl div { padding: 12px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.spec-card dl div:last-child { border: 0; }
.spec-card dt { color: var(--muted); font-size: 13px; }
.spec-card dd { margin: 0; text-align: right; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.notice { margin-top: 28px; padding: 15px 18px; border-radius: 12px; color: #675018; background: #fff6d9; border: 1px solid #f0dea4; font-size: 13px; }

.download-page-hero { padding: 34px 0 18px; border-bottom: 1px solid var(--line); }
.download-page-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 18px; }
.download-page-head h1 { margin: 0 0 10px; font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -.04em; }
.download-page-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-pill { padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.trust-pill-green { color: #08784a; background: #edf9f3; border: 1px solid #bfe5d4; }
.trust-pill-blue { color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; }

.download-page-layout { padding: 28px 0 18px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.download-started-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.download-started-banner { padding: 14px 16px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #19ae6e, #0c8b59); font-size: 16px; font-weight: 800; text-align: center; }
.download-progress { height: 6px; margin: 10px 0 16px; border-radius: 999px; background: #e8f7ef; overflow: hidden; }
.download-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #19ae6e, #0c8b59); transition: width .35s ease; }
.download-progress span.done { width: 100%; }
.verified-strip { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; color: #08784a; background: #edf9f3; border: 1px solid #bfe5d4; font-size: 13px; font-weight: 700; }
.download-password-panel { padding: 16px; border-radius: 14px; background: #f4f8ff; border: 1px solid #dbeafe; }
.download-password-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: #1d4ed8; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.download-password-head small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.download-password-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.download-password-row code { padding: 12px 14px; border: 1px solid #bfdbfe; border-radius: 10px; background: #fff; color: #1e3a8a; font: 800 18px/1.2 ui-monospace, Consolas, monospace; }
.download-password-row button { padding: 11px 14px; border: 0; border-radius: 10px; color: #fff; background: #2563eb; font-size: 12px; font-weight: 700; cursor: pointer; }
.download-password-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.download-manual { margin: 16px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.download-manual a, .link-button { color: #2563eb; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
.download-aside { display: grid; gap: 14px; }
.safety-card, .social-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.safety-ring { width: 92px; height: 92px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; color: #08784a; background: #edf9f3; border: 4px solid #bfe5d4; font-size: 28px; font-weight: 800; }
.safety-ring span { font-size: 16px; font-weight: 700; }
.safety-card p { margin: 0 0 10px; font-weight: 700; }
.safety-card ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.safety-card li { margin: 6px 0; }
.social-card strong { display: block; margin-bottom: 6px; }
.social-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.download-info-box { margin-bottom: 48px; padding: 20px 22px; border-radius: 16px; background: #f4f8ff; border: 1px solid #dbeafe; }
.download-info-box h2 { margin: 0 0 12px; font-size: 18px; }
.download-info-box ul { margin: 0; padding-left: 20px; color: var(--muted); }
.download-info-box li { margin: 8px 0; }

footer { padding: 42px 0; color: #c8ceda; background: #111827; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.footer-inner strong { color: #fff; font-size: 18px; }
.footer-inner p { margin: 5px 0 0; font-size: 12px; }

@media (max-width: 900px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-head { grid-template-columns: auto 1fr; }
  .download-button { grid-column: 1 / -1; width: 100%; }
  .password-card { grid-template-columns: 48px 1fr auto; }
  .password-card button { grid-column: 2 / -1; }
  .product-layout { grid-template-columns: 1fr; }
  .download-page-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1160px); }
  .topbar nav { display: none; }
  .catalog-hero { padding: 70px 0 55px; }
  .app-grid { grid-template-columns: 1fr; }
  .about-grid, .feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-head { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .trust-grid div { padding: 0; border: 0; }
  .password-card { grid-template-columns: 1fr; text-align: center; }
  .password-lock { margin: 0 auto; }
  .password-card code { width: 100%; }
  .password-card button { grid-column: auto; width: 100%; }
  .footer-inner { align-items: start; flex-direction: column; }
}
