:root {
  color-scheme: dark;
  --bg: #101418;
  --surface: #161b21;
  --surface-2: #1d242c;
  --surface-hover: #222b34;
  --text: #f3f6f8;
  --text2: #c4ccd4;
  --text3: #a0acb8;
  --blue: #3f7ee8;
  --border: #2b3540;
  --shadow: rgba(0,0,0,.18);
  --nav: rgba(16,20,24,.95);
  font-family: Arial, "Segoe UI", system-ui, -apple-system, sans-serif;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #fff;
  --surface-2: #f0f3f6;
  --surface-hover: #e8edf2;
  --text: #17202a;
  --text2: #4b5b6b;
  --text3: #5f7081;
  --blue: #2563d9;
  --border: #d8e0e8;
  --shadow: rgba(16,24,40,.06);
  --nav: rgba(255,255,255,.95);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { margin: 0; min-width: 280px; color: var(--text); background: var(--bg); line-height: 1.55; }
body.preview-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7aaeff; outline-offset: 4px; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ui-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.heart { fill: #ee627b; stroke: #ee627b; }
.skip-link { position: fixed; z-index: 1000; left: 12px; top: -80px; padding: 10px 16px; background: var(--surface); border: 2px solid var(--blue); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 100; padding: 10px 0; border-bottom: 1px solid var(--border); background: var(--nav); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 750; line-height: 1; letter-spacing: -.03em; }
.brand img { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 14px; border-radius: 8px; font-size: .9rem; font-weight: 700; }
.header-nav .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.support-link { border: 1px solid var(--border); background: var(--surface); }
.support-link:hover { background: var(--surface-hover); }
.header-nav .install-link { color: #fff; background: var(--blue); }
.install-link:hover { filter: brightness(1.1); }
.theme-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; width: 68px; height: 38px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; }
.theme-toggle::before { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 30px; border-radius: 5px; background: var(--surface-hover); transition: transform .2s; }
[data-theme="dark"] .theme-toggle::before { transform: translateX(32px); }
.theme-toggle .ui-icon { position: relative; width: 16px; height: 16px; color: var(--text2); }
.section { padding-block: 44px; scroll-margin-top: 82px; }
.install-section { padding-top: 48px; }
.section-header { margin-bottom: 26px; }
.section-header h1, .section-header h2 { font-size: clamp(1.7rem,2.5vw,2.25rem); line-height: 1.2; font-weight: 750; letter-spacing: -.025em; }
.section-header p { margin-top: 10px; color: var(--text2); font-size: 1rem; }
.platform-section { margin-top: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 22px var(--shadow); }
.platform-label { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 1.1rem; line-height: 1.35; font-weight: 700; }
.label-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; color: var(--blue); border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.label-icon img { width: 30px; height: 30px; object-fit: contain; }
.platform-label small { display: block; margin-top: 4px; color: var(--text3); font-size: .77rem; font-weight: 400; }
.platform-badge { margin-left: auto; flex-shrink: 0; padding: 5px 9px; color: var(--text2); border: 1px solid var(--border); border-radius: 6px; font-size: .7rem; font-weight: 500; }
.store-grid, .document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.store-link, .document-link { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 80px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); transition: background .18s, border-color .18s; }
.store-link:hover, .document-link:hover { background: var(--surface-hover); border-color: var(--text3); }
.store-link img { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
.store-link small, .store-link strong, .document-link small, .document-link strong { display: block; }
.store-link small, .document-link small { color: var(--text3); font-size: .72rem; line-height: 1.5; }
.store-link strong, .document-link strong { margin-top: 2px; font-size: .94rem; line-height: 1.35; }
.external-mark { margin-left: auto; color: var(--text3); font-size: .95rem; }
.system-icons { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin-bottom: 16px; }
.desktop-systems { display: contents; }
.system-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 88px; padding: 12px 6px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--text2); font-size: .78rem; transition: background .18s,border-color .18s; }
.system-link:hover { background: var(--surface-hover); border-color: var(--blue); }
.system-link img { width: 30px; height: 30px; object-fit: contain; }
.pwa-link { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; padding: 12px 18px; color: #fff; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); font-weight: 700; font-size: .96rem; transition: filter .18s; }
.pwa-link:hover { filter: brightness(1.1); }
.pwa-link .ui-icon:first-child { width: 20px; height: 20px; }
.pwa-link .ui-icon:last-child { width: 17px; height: 17px; margin-left: 2px; }
.platform-note { margin-top: 12px; color: var(--text3); text-align: center; font-size: .78rem; }
.platform-note a, .install-help a, .legal-document a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.install-help { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px; margin-top: 16px; scroll-margin-top: 100px; }
.install-help details { border: 1px solid var(--border); border-radius: 9px; background: var(--surface); overflow: hidden; }
.install-help summary { padding: 15px 18px; cursor: pointer; font-size: .86rem; font-weight: 600; }
.install-help details[open] summary { border-bottom: 1px solid var(--border); }
.install-help details > div { padding: 16px 18px; color: var(--text2); font-size: .84rem; }
.install-help ol { margin: 0; padding-left: 20px; }
.install-help li { margin-bottom: 10px; padding-left: 3px; }
.install-help details p { color: var(--text3); }
.gallery-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: start; gap: 16px; }
.gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 9/16; border: 1px solid var(--border); border-radius: 13px; background: #071321; box-shadow: 0 10px 22px var(--shadow); transition: transform .2s,border-color .2s; }
.gallery-item:hover { transform: translateY(-4px); border-color: var(--blue); }
.gallery-item > img { width: 100%; height: 100%; object-fit: contain; }
.gallery-item > span { position: absolute; left: 50%; bottom: 16px; display: flex; align-items: center; gap: 6px; padding: 7px 11px; transform: translate(-50%,6px); opacity: 0; color: #fff; background: rgba(3,12,22,.86); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; font-size: .75rem; white-space: nowrap; transition: transform .2s,opacity .2s; }
.gallery-item:hover > span, .gallery-item:focus-visible > span { opacity: 1; transform: translate(-50%,0); }
.gallery-item .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
.section-note { margin-top: 15px; color: var(--text3); font-size: .79rem; }
.features-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.feature-card { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 22px var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; color: #7ca9ff; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
[data-theme="light"] .feature-icon { color: var(--blue); }
.feature-icon .ui-icon { width: 26px; height: 26px; }
.feature-card h3 { margin-top: 18px; font-size: 1rem; line-height: 1.35; }
.feature-card h3 small { display: inline-block; margin-left: 2px; padding: 2px 5px; border: 1px solid var(--border); border-radius: 4px; color: var(--text3); font-size: .61rem; font-weight: 400; vertical-align: middle; }
.feature-card p { margin-top: 8px; color: var(--text2); font-size: .86rem; }
.document-link { align-items: flex-start; min-height: 84px; }
.document-link > .ui-icon { box-sizing: content-box; width: 23px; height: 23px; flex: 0 0 23px; padding: 10px; color: var(--text2); border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.document-link strong { font-size: .86rem; }
.community-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.subheading { margin-bottom: 13px; color: var(--text2); font-size: 1rem; }
.community-list { display: grid; gap: 11px; }
.support-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 30px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.support-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--text2); font-size: .83rem; }
.support-eyebrow .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.support-card h2 { font-size: 1.55rem; line-height: 1.25; }
.support-card p { max-width: 620px; margin-top: 10px; color: var(--text2); font-size: .89rem; }
.support-actions { display: grid; gap: 10px; min-width: 230px; }
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--blue); border-radius: 8px; color: #fff; background: var(--blue); font-size: .86rem; font-weight: 600; }
.button-secondary { color: var(--text); border-color: var(--border); background: var(--surface-2); }
.button-primary:hover { filter: brightness(1.1); }
.button-secondary:hover { background: var(--surface-hover); }
.important-section { padding-top: 24px; padding-bottom: 60px; }
.disclaimer { display: flex; align-items: flex-start; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.disclaimer > img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; }
.disclaimer strong { display: block; font-size: .95rem; }
.disclaimer p { margin-top: 5px; color: var(--text2); font-size: .85rem; }
.site-footer { padding: 27px 0; border-top: 1px solid var(--border); color: var(--text3); font-size: .85rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--text); }
.preview-dialog { position: fixed; inset: 0; width: min(100vw,1100px); max-width: 100vw; height: min(100dvh,1300px); max-height: 100dvh; margin: auto; padding: 54px 20px 12px; color: #fff; border: 0; background: transparent; overflow: hidden; }
.preview-dialog[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.preview-dialog::backdrop { background: rgba(2,8,17,.95); backdrop-filter: blur(10px); }
#preview-image { width: auto; height: auto; min-height: 0; max-width: 100%; max-height: calc(100dvh - 142px); object-fit: contain; border-radius: 10px; }
.preview-close { position: absolute; top: 5px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.08); cursor: pointer; font-size: 30px; line-height: 1; }
.preview-controls { display: flex; align-items: center; justify-content: center; gap: 16px; flex: 0 0 auto; }
.preview-controls button { width: 44px; height: 44px; padding: 0; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.08); cursor: pointer; font-size: 23px; }
.preview-controls button:hover, .preview-close:hover { background: rgba(255,255,255,.18); }
#preview-counter { min-width: 66px; text-align: center; font-weight: 700; font-size: .88rem; }
.legal-intro { max-width: 820px; }
.document-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.document-nav a { padding: 8px 12px; color: var(--text2); border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); font-size: .83rem; }
.document-nav a:hover { color: var(--text); border-color: var(--blue); }
.legal-document { margin-block: 28px; padding: 30px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); scroll-margin-top: 90px; overflow-wrap: anywhere; }
.legal-document > h2 { margin-bottom: 10px; font-size: 1.65rem; line-height: 1.25; }
.legal-document .summary, .legal-document .legal-summary { margin: 0 0 22px; color: var(--text2); font-size: .94rem; }
.legal-document h3 { margin: 24px 0 10px; font-size: 1.08rem; line-height: 1.4; }
.legal-document p { margin-bottom: 12px; color: var(--text2); font-size: .94rem; }
.legal-document p:last-child { margin-bottom: 0; }
.legal-platform-title { margin-top: 48px; font-size: 1.5rem; }
.legal-version { margin-top: 16px; color: var(--text3); font-size: .83rem; }
@media (max-width:1020px) {
  .features-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .store-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .document-grid { grid-template-columns: 1fr; }
  .document-link { align-items: center; min-height: 70px; }
  .support-card { grid-template-columns: 1fr; gap: 22px; }
  .support-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width:720px) {
  .container { padding-inline: 16px; }
  .site-header { padding-block: 9px; }
  .header-inner { gap: 8px; }
  .brand { gap: 7px; font-size: 1.16rem; }
  .brand img { width: 36px; height: 36px; flex-basis: 36px; }
  .header-nav { gap: 5px; }
  .header-nav a { min-height: 36px; padding: 7px 10px; font-size: .8rem; }
  .support-label { display: none; }
  .header-nav .support-link { width: 36px; padding: 7px; }
  .theme-toggle { width: 58px; height: 36px; }
  .theme-toggle::before { width: 24px; height: 28px; }
  [data-theme="dark"] .theme-toggle::before { transform: translateX(26px); }
  .section { padding-block: 32px; }
  .install-section { padding-top: 32px; }
  .section-header { margin-bottom: 22px; }
  .section-header h1, .section-header h2 { font-size: 1.65rem; }
  .section-header p { font-size: .91rem; }
  .platform-section { padding: 18px; }
  .platform-label { gap: 10px; font-size: 1rem; }
  .platform-label small { font-size: .72rem; }
  .platform-badge { display: none; }
  .store-link { min-height: 76px; padding: 12px; gap: 10px; }
  .store-link img { width: 42px; height: 42px; flex-basis: 42px; }
  .store-link strong { font-size: .87rem; }
  .store-link small { font-size: .68rem; }
  .external-mark { display: none; }
  .system-icons { gap: 6px; }
  .system-link { gap: 8px; min-height: 78px; padding: 10px 3px; font-size: .68rem; }
  .system-link img { width: 26px; height: 26px; }
  .pwa-link { gap: 9px; padding-inline: 10px; font-size: .89rem; }
  .platform-note { font-size: .75rem; }
  .install-help { grid-template-columns: 1fr; gap: 10px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .gallery-item { border-radius: 13px; }
  .features-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .feature-card { padding: 18px; }
  .feature-card h3 { font-size: .95rem; margin-top: 14px; }
  .feature-card p { font-size: .83rem; }
  .community-columns { grid-template-columns: 1fr; gap: 24px; }
  .community-list .external-mark { display: block; }
  .support-card { padding: 22px; }
  .support-card h2 { font-size: 1.35rem; }
  .support-actions { grid-template-columns: 1fr; min-width: 0; }
  .important-section { padding-top: 16px; padding-bottom: 40px; }
  .disclaimer { gap: 12px; padding: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 13px; }
  .site-footer nav { gap: 17px; }
  .preview-dialog { padding-inline: 10px; }
  .legal-document { margin-block: 18px; padding: 22px; }
  .legal-document > h2 { font-size: 1.4rem; }
  .legal-document p { font-size: .88rem; }
}
@media (max-width:440px) {
  .container { padding-inline: 14px; }
  .brand span { font-size: 1rem; }
  .header-nav .install-link { padding-inline: 9px; }
  .header-nav .install-link .ui-icon { display: none; }
  .platform-section { padding: 15px; }
  .store-grid { grid-template-columns: 1fr; }
  .store-link .external-mark { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: start; column-gap: 14px; }
  .feature-card .feature-icon { grid-row: 1/3; width: 44px; height: 44px; }
  .feature-card h3 { margin-top: 0; }
  .feature-card p { grid-column: 2; margin-top: 5px; }
  .platform-label { font-size: .94rem; }
  .platform-label .label-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .system-link { font-size: .6rem; }
  .system-link img { width: 24px; height: 24px; }
  .pwa-link .ui-icon:last-child { display: none; }
  .document-link { padding: 12px; gap: 10px; }
  .document-link strong { font-size: .81rem; }
  .disclaimer { flex-direction: column; }
}
@media (max-width:340px) {
  .header-nav .support-link { display: none; }
  .system-icons { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .gallery-grid { gap: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
