
:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --bg-elevated: rgba(255,255,255,.82);
  --surface: #fff;
  --surface-soft: #eef0f4;
  --text: #121419;
  --muted: #6f7580;
  --line: rgba(18,20,25,.1);
  --shadow: 0 24px 80px rgba(31,37,50,.1);
  --accent: #286df0;
  --radius: 28px;
  --max: 1240px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1014;
  --bg-elevated: rgba(23,25,31,.84);
  --surface: #181b21;
  --surface-soft: #22262e;
  --text: #f5f7fb;
  --muted: #9ca2ad;
  --line: rgba(255,255,255,.1);
  --shadow: 0 28px 90px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); min-width: 320px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  width: min(calc(100% - 40px), var(--max)); margin: 16px auto 0; padding: 12px 14px 12px 16px;
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(22px) saturate(150%); box-shadow: 0 8px 32px rgba(16,20,30,.07);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; display: grid; place-content: center; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 3px; background: var(--text); }
.brand-mark i { width: 8px; height: 8px; border-radius: 3px; background: var(--bg); display: block; }
.brand-mark i:first-child { grid-row: span 2; height: 19px; background: #4e8cff; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 15px; letter-spacing: -.01em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.quiet-link { color: var(--muted); padding: 9px 12px; font-size: 13px; border-radius: 11px; transition: .2s ease; }
.quiet-link:hover { color: var(--text); background: var(--surface-soft); }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; background: var(--surface-soft); border: 0; border-radius: 12px; cursor: pointer; }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.hero { position: relative; width: min(calc(100% - 40px), var(--max)); margin: 32px auto 0; min-height: 650px; padding: 78px 70px; border: 1px solid var(--line); border-radius: 40px; overflow: hidden; background: var(--surface); display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); gap: 68px; align-items: center; box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) .7px, transparent .7px); background-size: 18px 18px; mask-image: linear-gradient(to right, black, transparent 55%); opacity: .34; pointer-events: none; }
.hero-glow { position: absolute; width: 400px; height: 400px; border-radius: 50%; filter: blur(90px); opacity: .22; pointer-events: none; }
.glow-one { background: #3478f6; right: 14%; top: -20%; }
.glow-two { background: #a855f7; right: -16%; bottom: -26%; }
.hero-copy, .hero-showcase { position: relative; z-index: 2; }
.kicker, .section-kicker { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 9px; }
.kicker span { width: 7px; height: 7px; border-radius: 50%; background: #31c46c; box-shadow: 0 0 0 5px rgba(49,196,108,.13); }
.hero h1 { margin: 25px 0 22px; font-size: clamp(52px, 5.3vw, 82px); line-height: .98; letter-spacing: -.065em; font-weight: 730; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, #2878f5 0%, #7a5af8 72%); background-clip: text; -webkit-background-clip: text; }
.hero-description { max-width: 540px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.search { margin-top: 34px; max-width: 530px; height: 58px; padding: 0 13px 0 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--bg); display: flex; align-items: center; gap: 12px; transition: .2s; }
.search:focus-within { border-color: rgba(40,109,240,.6); box-shadow: 0 0 0 4px rgba(40,109,240,.1); background: var(--surface); }
.search svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search kbd { padding: 5px 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; color: var(--muted); background: var(--surface); font-family: inherit; font-size: 11px; }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats strong { font-size: 22px; letter-spacing: -.04em; }
.hero-stats span { color: var(--muted); font-size: 12px; }

.hero-showcase { min-width: 0; }
.featured-card { position: relative; padding: 26px; min-height: 450px; border-radius: 32px; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 36px 80px color-mix(in srgb, var(--card-accent) 25%, transparent); isolation: isolate; }
.featured-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 82%, #10131a), #11141b 78%); }
.featured-card::after { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -90px; top: -90px; border-radius: 50%; background: color-mix(in srgb, var(--card-accent) 65%, white); filter: blur(8px); opacity: .5; }
.featured-top { display: flex; justify-content: space-between; align-items: flex-start; }
.featured-label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; backdrop-filter: blur(10px); font-size: 11px; font-weight: 650; }
.featured-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.featured-version { color: rgba(255,255,255,.66); font-size: 12px; }
.featured-icon { margin: 36px 0 24px; width: 116px; height: 116px; border-radius: 28px; display: grid; place-items: center; background: rgba(255,255,255,.94); color: var(--card-accent); font-size: 46px; font-weight: 760; box-shadow: 0 25px 45px rgba(0,0,0,.22); transform: rotate(-4deg); }
.featured-card h2 { margin: 0; font-size: 36px; letter-spacing: -.045em; }
.featured-card p { margin: 9px 0 24px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.65; max-width: 340px; }
.featured-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.platform-row { display: flex; flex-wrap: wrap; gap: 6px; }
.featured-card .platform-pill { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); }
.featured-action { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 15px; border: 0; border-radius: 13px; background: #fff; color: #11141b; font-weight: 700; font-size: 13px; cursor: pointer; }
.showcase-placeholder { min-height: 450px; border-radius: 32px; }

.catalog-section { width: min(calc(100% - 40px), var(--max)); margin: 72px auto 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading h2, .trust-heading h2 { margin: 10px 0 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.052em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.catalog-tools { display: grid; justify-items: end; gap: 9px; }
.catalog-tools > p { margin: 0; color: var(--muted); font-size: 12px; }
.catalog-search { width: min(380px, 40vw); height: 48px; padding: 0 11px 0 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; align-items: center; gap: 10px; transition: .2s; }
.catalog-search:focus-within { border-color: rgba(40,109,240,.6); box-shadow: 0 0 0 4px rgba(40,109,240,.1); }
.catalog-search svg { width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.catalog-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.catalog-search input::placeholder { color: var(--muted); }
.catalog-search kbd { padding: 4px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; color: var(--muted); background: var(--bg); font-family: inherit; font-size: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 26px; }
.filter { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; transition: .18s ease; }
.filter:hover { color: var(--text); background: var(--surface-soft); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.app-card { position: relative; min-width: 0; padding: 25px; min-height: 330px; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; overflow: hidden; }
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--card-accent) 35%, var(--line)); }
.card-top { display: flex; justify-content: space-between; gap: 16px; }
.app-icon { flex: none; width: 68px; height: 68px; border-radius: 19px; display: grid; place-items: center; color: #fff; font-size: 27px; font-weight: 750; background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 70%, white), var(--card-accent)); box-shadow: 0 16px 32px color-mix(in srgb, var(--card-accent) 20%, transparent); overflow: hidden; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.version-badge { height: fit-content; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; font-weight: 650; }
.app-card .eyebrow { margin: 24px 0 7px; color: var(--card-accent); font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.app-card h3 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.app-card .summary { margin: 10px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.card-bottom { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.platform-pill { display: inline-flex; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--bg); font-size: 10px; }
.details-button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--surface-soft); cursor: pointer; font-size: 19px; transition: .18s; }
.details-button:hover { background: var(--card-accent); color: white; transform: translateX(2px); }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state span { font-size: 42px; color: var(--muted); }
.empty-state h3 { margin: 12px 0 6px; }
.empty-state p { margin: 0; color: var(--muted); }

.trust-section { width: min(calc(100% - 40px), var(--max)); margin: 120px auto 0; padding: 58px; border-radius: 34px; background: var(--text); color: var(--bg); }
.trust-heading { max-width: 620px; }
.trust-section .section-kicker { color: color-mix(in srgb, var(--bg) 55%, transparent); }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; margin-top: 55px; }
.trust-grid article { padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); }
.trust-grid span { font-size: 11px; color: color-mix(in srgb, var(--bg) 50%, transparent); }
.trust-grid h3 { margin: 22px 0 9px; font-size: 20px; }
.trust-grid p { margin: 0; color: color-mix(in srgb, var(--bg) 60%, transparent); line-height: 1.7; font-size: 13px; }

footer { width: min(calc(100% - 40px), var(--max)); margin: 34px auto 0; padding: 45px 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 11px; transform: scale(.84); }
footer > a { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #31c46c; box-shadow: 0 0 0 4px rgba(49,196,108,.12); }

.app-dialog { width: min(680px, calc(100% - 28px)); max-height: min(86vh, 820px); padding: 0; border: 1px solid var(--line); border-radius: 30px; color: var(--text); background: var(--surface); box-shadow: 0 50px 140px rgba(0,0,0,.32); overflow: auto; }
.app-dialog::backdrop { background: rgba(8,10,14,.62); backdrop-filter: blur(10px); }
.dialog-close { position: sticky; z-index: 4; top: 16px; float: right; margin: 16px 16px -55px 0; width: 37px; height: 37px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface-soft) 88%, transparent); color: var(--text); font-size: 22px; cursor: pointer; backdrop-filter: blur(12px); }
.dialog-hero { padding: 42px 42px 32px; background: linear-gradient(155deg, color-mix(in srgb, var(--dialog-accent) 14%, var(--surface)), var(--surface)); }
.dialog-app-row { display: flex; align-items: center; gap: 18px; padding-right: 45px; }
.dialog-app-row .app-icon { width: 82px; height: 82px; border-radius: 23px; font-size: 32px; }
.dialog-app-row h2 { margin: 0 0 6px; font-size: 31px; letter-spacing: -.04em; }
.dialog-app-row p { margin: 0; color: var(--muted); font-size: 13px; }
.dialog-description { margin: 24px 0 0; color: var(--muted); line-height: 1.75; font-size: 14px; }
.dialog-body { padding: 30px 42px 42px; }
.dialog-section + .dialog-section { margin-top: 32px; }
.dialog-section h3 { margin: 0 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.release-notes { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.release-notes li { display: flex; gap: 10px; font-size: 14px; line-height: 1.55; }
.release-notes li::before { content: "✓"; color: var(--dialog-accent); font-weight: 750; }
.download-list { display: grid; gap: 9px; }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg); }
.file-meta { display: grid; gap: 3px; min-width: 0; }
.file-meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta span { color: var(--muted); font-size: 10px; }
.download-button { flex: none; padding: 10px 13px; border: 0; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 11px; cursor: pointer; }
.download-empty { padding: 16px; border-radius: 14px; background: var(--surface-soft); color: var(--muted); font-size: 12px; line-height: 1.6; }
.release-history { display: grid; gap: 0; }
.history-row { display: grid; grid-template-columns: 58px 90px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.history-row:last-child { border: 0; }
.history-row time, .history-row span:last-child { color: var(--muted); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 18px); padding: 11px 15px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 12px; opacity: 0; pointer-events: none; transition: .22s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.skeleton, .skeleton-card { background: linear-gradient(100deg, var(--surface-soft) 20%, color-mix(in srgb, var(--surface-soft) 65%, white) 38%, var(--surface-soft) 56%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-card { min-height: 330px; }
@keyframes shimmer { to { background-position-x: -200%; } }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding: 64px; gap: 54px; }
  .hero-copy { max-width: 720px; }
  .hero-showcase { max-width: 600px; width: 100%; }
  .app-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .site-header, .hero, .catalog-section, .trust-section, footer { width: min(calc(100% - 24px), var(--max)); }
  .site-header { margin-top: 10px; }
  .quiet-link { display: none; }
  .hero { margin-top: 18px; min-height: auto; padding: 48px 24px 26px; border-radius: 28px; }
  .hero h1 { font-size: 48px; }
  .hero-description { font-size: 15px; }
  .hero-stats { gap: 22px; }
  .featured-card { min-height: 400px; padding: 22px; }
  .featured-icon { width: 94px; height: 94px; }
  .featured-card h2 { font-size: 31px; }
  .catalog-section, .trust-section { margin-top: 76px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .catalog-tools { width: 100%; justify-items: stretch; }
  .catalog-search { width: 100%; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 300px; }
  .trust-section { padding: 38px 25px; border-radius: 28px; }
  .trust-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  footer { align-items: flex-start; flex-direction: column; }
  .dialog-hero, .dialog-body { padding-left: 24px; padding-right: 24px; }
  .history-row { grid-template-columns: 52px 1fr; }
  .history-row span:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
