  :root{
    --bg:#0b0b0d;
    --surface:#151517;
    --surface-2:#1d1d20;
    --border:#28282c;
    --border-strong:#3a3a3f;
    --text:#f2f2ef;
    --text-dim:#a4a4a9;
    --text-faint:#68686d;
    --emphasis:#ffffff;
    --emphasis-text:#0b0b0d;
    --on-glow: rgba(255,255,255,.05);
    --shadow: 0 20px 60px -30px rgba(0,0,0,.7);
    --radius-s:8px;
    --radius-m:14px;
    --radius-l:22px;
    --maxw:1120px;
    color-scheme: dark;
  }
  @media (prefers-color-scheme: light){
    :root:not([data-theme="dark"]){
      --bg:#f1f1ee;
      --surface:#ffffff;
      --surface-2:#e9e9e5;
      --border:#dcdcd7;
      --border-strong:#c7c7c1;
      --text:#111113;
      --text-dim:#57575c;
      --text-faint:#8c8c90;
      --emphasis:#0b0b0d;
      --emphasis-text:#f2f2ef;
      --on-glow: rgba(0,0,0,.04);
      --shadow: 0 20px 50px -30px rgba(0,0,0,.18);
      color-scheme: light;
    }
  }
  :root[data-theme="light"]{
    --bg:#f1f1ee;
    --surface:#ffffff;
    --surface-2:#e9e9e5;
    --border:#dcdcd7;
    --border-strong:#c7c7c1;
    --text:#111113;
    --text-dim:#57575c;
    --text-faint:#8c8c90;
    --emphasis:#0b0b0d;
    --emphasis-text:#f2f2ef;
    --on-glow: rgba(0,0,0,.04);
    --shadow: 0 20px 50px -30px rgba(0,0,0,.18);
    color-scheme: light;
  }

  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  @media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} *{animation-duration:.001ms !important; transition-duration:.001ms !important;} }

  body{
    background:var(--bg);
    color:var(--text);
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
  }

  .mono{
    font-family:"Geist Mono",ui-monospace,"SF Mono","Cascadia Mono","JetBrains Mono",Consolas,monospace;
  }

  a{color:inherit;text-decoration:none;}
  img,svg{display:block;max-width:100%;}
  h1,h2,h3{text-wrap:balance; margin:0;}
  p{margin:0;}
  ul{margin:0;padding:0;list-style:none;}
  button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;}

  .shell{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
  section{padding:112px 0; scroll-margin-top:84px;}
  @media (max-width:720px){ section{padding:72px 0;} }

  .eyebrow{
    font-size:11px; letter-spacing:.14em; text-transform:uppercase;
    color:var(--text-faint); font-weight:600;
  }

  /* ---------- nav ---------- */
  header{
    position:sticky; top:0; z-index:40;
    background:color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter:blur(14px);
    border-bottom:1px solid var(--border);
  }
  .navbar{
    max-width:var(--maxw); margin:0 auto; padding:0 28px;
    height:68px; display:flex; align-items:center; justify-content:space-between; gap:24px;
  }
  .brand{display:flex; align-items:center; gap:10px; font-weight:700; font-size:16px; letter-spacing:-.01em;}
  .brand .mark{
    width:30px; height:30px; border-radius:9px; object-fit:cover;
    flex-shrink:0;
  }
  .brand .ver{
    font-family:"Geist Mono",monospace; font-size:10.5px; color:var(--text-faint);
    border:1px solid var(--border); border-radius:100px; padding:2px 8px; margin-left:2px;
  }
  nav.links{display:flex; gap:4px; align-items:center;}
  nav.links a{
    font-size:14px; color:var(--text-dim); padding:8px 14px; border-radius:8px;
    transition:color .15s ease, background-color .15s ease;
  }
  nav.links a:hover{color:var(--text); background:var(--on-glow);}
  nav.links a.active{color:var(--text); background:var(--on-glow);}
  .nav-right{display:flex; align-items:center; gap:10px;}

  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    font-size:14px; font-weight:600; padding:11px 20px; border-radius:10px;
    border:1px solid transparent; white-space:nowrap;
    transition:transform .15s ease, opacity .15s ease, background-color .15s ease, border-color .15s ease;
  }
  .btn:active{transform:scale(.97);}
  .btn:focus-visible{outline:2px solid var(--text); outline-offset:2px;}
  .btn-primary{background:var(--emphasis); color:var(--emphasis-text);}
  .btn-primary:hover{opacity:.85;}
  .btn-ghost{background:transparent; color:var(--text); border-color:var(--border-strong);}
  .btn-ghost:hover{background:var(--on-glow);}
  .btn-lg{padding:15px 26px; font-size:15px; border-radius:12px;}
  .btn-sm{padding:8px 14px; font-size:13px; border-radius:8px;}

  .menu-toggle{display:none; width:38px; height:38px; align-items:center; justify-content:center; border-radius:8px;}
  .menu-toggle:hover{background:var(--on-glow);}
  .menu-toggle span{display:block; width:18px; height:1.5px; background:var(--text); position:relative;}
  .menu-toggle span::before,.menu-toggle span::after{content:"";position:absolute;left:0;width:18px;height:1.5px;background:var(--text);}
  .menu-toggle span::before{top:-6px;} .menu-toggle span::after{top:6px;}

  @media (max-width:860px){
    nav.links{display:none;}
    .menu-toggle{display:flex;}
    .nav-right .btn-primary{display:none;}
  }
  @media (max-width:400px){
    .brand .ver{display:none;}
  }
  .mobile-panel{
    display:none; border-bottom:1px solid var(--border); background:var(--bg);
  }
  .mobile-panel.open{display:block;}
  .mobile-panel .shell{padding:14px 28px 22px; display:flex; flex-direction:column; gap:2px;}
  .mobile-panel a{padding:12px 4px; border-bottom:1px solid var(--border); font-size:15px; color:var(--text-dim);}
  .mobile-panel a:last-child{border-bottom:none;}

  /* ---------- hero ---------- */
  .hero{
    position:relative; overflow:hidden; padding-top:96px; padding-bottom:80px;
    border-bottom:1px solid var(--border);
  }
  .hero-grid{
    position:absolute; inset:0; z-index:0; pointer-events:none;
    display:grid; grid-template-columns:repeat(6,1fr); gap:16px;
    padding:40px; opacity:.5; mask-image:radial-gradient(ellipse 70% 60% at 50% 30%, black 5%, transparent 75%);
  }
  .hero-grid i{
    display:block; aspect-ratio:2.1/1; border:1px solid var(--border); border-radius:12px;
    background:linear-gradient(180deg, var(--on-glow), transparent);
  }
  .hero-inner{position:relative; z-index:1; text-align:center; max-width:800px; margin:0 auto;}
  .hero .eyebrow{display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:22px;}
  .hero .eyebrow::before,.hero .eyebrow::after{content:"";width:26px;height:1px;background:var(--border-strong);}
  h1.headline{
    font-size:clamp(38px,6.4vw,68px); font-weight:700; letter-spacing:-.03em; line-height:1.05;
  }
  h1.headline .accent{
    color:var(--text-faint);
  }
  .hero-sub{
    margin:26px auto 0; max-width:540px; color:var(--text-dim); font-size:17px; line-height:1.6;
  }
  .hero-cta{display:flex; flex-direction:column; gap:12px; align-items:center; margin-top:36px;}
  .hero-cta-row{display:flex; gap:12px; justify-content:center; align-items:stretch; flex-wrap:wrap;}
  .hero-cta .btn-lg{min-height:58px;}
  .btn-sub{display:flex; flex-direction:column; gap:2px; line-height:1.15;}
  .btn-sub .btn-sub-label{display:flex; align-items:center; gap:8px;}
  .btn-sub .btn-sub-caption{font-family:"Geist Mono",monospace; font-size:10px; letter-spacing:.07em; color:var(--emphasis-text); opacity:.55; font-weight:500;}

  /* ---------- download dropdown (MaceVisuals + обязательный Fabric API) ---------- */
  .dl-widget{position:relative; display:flex;}
  .dl-widget .dl-trigger{height:100%;}
  .dl-chevron{transition:transform .2s ease;}
  .dl-trigger[aria-expanded="true"] .dl-chevron{transform:rotate(180deg);}
  .dl-panel{
    position:absolute; top:calc(100% + 10px); left:50%; width:300px; z-index:30;
    max-height:0; overflow:hidden; opacity:0; visibility:hidden; pointer-events:none;
    transform:translateX(-50%) translateY(-6px);
    transition:max-height .32s ease, opacity .22s ease, transform .22s ease, visibility 0s linear .32s;
  }
  .dl-panel.open{
    max-height:240px; opacity:1; visibility:visible; pointer-events:auto;
    transform:translateX(-50%) translateY(0);
    transition:max-height .32s ease, opacity .22s ease, transform .22s ease;
  }
  .dl-panel-inner{
    overflow:hidden; border:1px solid var(--border); background:var(--surface);
    border-radius:var(--radius-m); box-shadow:var(--shadow); text-align:left;
  }
  .dl-option{
    display:flex; gap:12px; align-items:flex-start; padding:14px 16px;
    border-bottom:1px solid var(--border); transition:background-color .15s ease;
  }
  .dl-option:last-child{border-bottom:none;}
  .dl-option:hover{background:var(--on-glow);}
  .dl-option-icon{
    flex-shrink:0; width:32px; height:32px; border-radius:9px; margin-top:1px;
    background:var(--surface-2); display:flex; align-items:center; justify-content:center; color:var(--text-dim);
  }
  .dl-option-text{display:flex; flex-direction:column; gap:3px; min-width:0;}
  .dl-option-text-head{display:flex; align-items:center; gap:8px;}
  .dl-option-text b{font-size:14px; font-weight:600; white-space:nowrap;}
  .dl-option-text small{font-size:12px; color:var(--text-faint); line-height:1.45;}
  .dl-required-badge{
    font-size:9.5px; letter-spacing:.05em; text-transform:uppercase; font-weight:700;
    color:var(--emphasis-text); background:var(--emphasis); border-radius:100px; padding:2.5px 8px; white-space:nowrap;
  }
  @media (max-width:420px){.dl-panel{width:min(300px, 86vw);}}
  .hero-stats{
    display:flex; justify-content:center; gap:36px; margin-top:64px; flex-wrap:wrap;
  }
  .stat{text-align:center;}
  .stat b{display:block; font-family:"Geist Mono",monospace; font-size:22px; font-weight:600;}
  .stat span{font-size:12px; color:var(--text-faint); position:relative;}

  .live-dot{
    position:absolute; left:-13px; top:50%; transform:translateY(-50%);
    width:6px; height:6px; border-radius:50%; background:#3ddc71;
    box-shadow:0 0 0 0 rgba(61,220,113,.55);
    animation:live-pulse 1.8s ease-out infinite;
  }
  @keyframes live-pulse{
    0%{ box-shadow:0 0 0 0 rgba(61,220,113,.55); }
    70%{ box-shadow:0 0 0 7px rgba(61,220,113,0); }
    100%{ box-shadow:0 0 0 0 rgba(61,220,113,0); }
  }

  /* ---------- section headers ---------- */
  .sec-head{max-width:560px; margin:0 auto 52px; text-align:center;}
  .sec-head h2{font-size:clamp(26px,4vw,36px); font-weight:700; letter-spacing:-.02em; margin-top:14px;}
  .sec-head p{color:var(--text-dim); margin-top:14px; font-size:15.5px; line-height:1.65;}

  /* ---------- gallery ---------- */
  .compare{
    position:relative; aspect-ratio:16/9; border-radius:var(--radius-l); overflow:hidden;
    border:1px solid var(--border); box-shadow:var(--shadow); cursor:ew-resize;
    user-select:none; touch-action:pan-y; outline:none;
  }
  .compare:focus-visible{box-shadow:0 0 0 2px var(--text), var(--shadow);}
  .compare-img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none;}
  .compare-before{clip-path:inset(0 50% 0 0);}
  .compare-tag{
    position:absolute; top:78px; font-family:"Geist Mono",monospace; font-size:11px; letter-spacing:.06em;
    color:#f2f2f0; background:rgba(10,10,12,.55); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.18);
    border-radius:100px; padding:5px 12px; pointer-events:none; transition:opacity .15s ease;
  }
  .compare-tag-before{left:16px;}
  .compare-tag-after{right:16px;}
  .compare-handle{
    position:absolute; top:0; bottom:0; left:50%; width:2px; background:var(--emphasis);
    transform:translateX(-1px); pointer-events:none;
  }
  .compare-grip{
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:40px; height:40px; border-radius:50%; background:var(--emphasis); color:var(--emphasis-text);
    display:flex; align-items:center; justify-content:center; box-shadow:0 4px 16px rgba(0,0,0,.35);
  }
  .compare-hint{margin-top:14px; text-align:center; font-size:12.5px; color:var(--text-faint);}

  /* ---------- video ---------- */
  .viewport{
    position:relative; border-radius:var(--radius-l); border:1px solid var(--border);
    background:var(--surface); overflow:hidden; box-shadow:var(--shadow);
  }
  .viewport-bar{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 18px; border-bottom:1px solid var(--border);
    font-family:"Geist Mono",monospace; font-size:11.5px; color:var(--text-faint);
  }
  .rec{display:flex; align-items:center; gap:7px; color:var(--text-dim);}
  .rec .dot{width:7px; height:7px; border-radius:50%; background:var(--text-dim);}
  .frame{position:relative; aspect-ratio:16/9; background:#000;}
  .frame iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}
  .facade{
    position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px;
    background:
      radial-gradient(circle at 50% 40%, var(--on-glow), transparent 60%),
      repeating-linear-gradient(115deg, var(--surface) 0 2px, var(--surface-2) 2px 4px);
    cursor:pointer;
  }
  .play{
    width:66px; height:66px; border-radius:50%; background:var(--emphasis); color:var(--emphasis-text);
    display:flex; align-items:center; justify-content:center; transition:transform .15s ease;
  }
  .facade:hover .play{transform:scale(1.06);}
  .play svg{margin-left:3px;}
  .facade-label{color:var(--text-dim); font-size:13.5px;}
  .corner{position:absolute; width:18px; height:18px; border-color:var(--text-faint); opacity:.6;}
  .corner.tl{top:14px; left:14px; border-top:1.5px solid; border-left:1.5px solid;}
  .corner.tr{top:14px; right:14px; border-top:1.5px solid; border-right:1.5px solid;}
  .corner.bl{bottom:14px; left:14px; border-bottom:1.5px solid; border-left:1.5px solid;}
  .corner.br{bottom:14px; right:14px; border-bottom:1.5px solid; border-right:1.5px solid;}

  /* ---------- install guide ---------- */
  .install-grid{display:grid; grid-template-columns:1.15fr 0.85fr; gap:48px; align-items:start;}
  @media (max-width:900px){.install-grid{grid-template-columns:1fr;}}
  .install-required{
    display:flex; gap:14px; align-items:flex-start; padding:16px 18px; margin-bottom:8px;
    border:1px solid var(--border-strong); background:var(--surface); border-radius:var(--radius-m);
  }
  .install-required svg{flex-shrink:0; margin-top:2px; color:var(--emphasis);}
  .install-required b{display:block; font-size:14px; margin-bottom:3px;}
  .install-required p{font-size:13.5px; color:var(--text-dim); line-height:1.55; margin:0;}
  .install-required a{color:var(--text); text-decoration:underline; text-underline-offset:2px;}
  .install-list{display:flex; flex-direction:column; margin-top:22px;}
  .install-step{display:flex; gap:16px; padding:20px 0; border-bottom:1px solid var(--border);}
  .install-step:last-child{border-bottom:none; padding-bottom:0;}
  .install-step-num{
    flex-shrink:0; width:32px; height:32px; border-radius:50%; border:1px solid var(--border-strong);
    display:flex; align-items:center; justify-content:center; font-family:"Geist Mono",monospace; font-size:13px; color:var(--text-dim);
  }
  .install-step-body h4{font-size:15.5px; font-weight:700; margin-bottom:6px; letter-spacing:-.005em;}
  .install-step-body p{font-size:14px; color:var(--text-dim); line-height:1.65; margin:0;}
  .install-step-body a{color:var(--text); text-decoration:underline; text-underline-offset:2px; font-weight:600;}
  .install-step-body a:hover{color:var(--emphasis);}
  .install-step-body code, .install-required code{
    font-family:"Geist Mono",monospace; font-size:12.5px; background:var(--surface-2);
    border:1px solid var(--border); border-radius:5px; padding:1px 6px;
  }
  .install-video{position:sticky; top:96px;}
  .install-video .viewport-bar{font-size:11px;}
  @media (max-width:900px){.install-video{position:static;}}

  /* ---------- steps (token + download) ---------- */
  .steps{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
  @media (max-width:760px){.steps{grid-template-columns:1fr;}}
  .step-card{
    border:1px solid var(--border); background:var(--surface); border-radius:var(--radius-l);
    padding:32px; display:flex; flex-direction:column; gap:18px; position:relative;
  }
  .step-num{
    font-family:"Geist Mono",monospace; font-size:12px; color:var(--text-faint);
    display:flex; align-items:center; gap:10px;
  }
  .step-num em{
    font-style:normal; width:26px; height:26px; border-radius:50%; border:1px solid var(--border-strong);
    display:flex; align-items:center; justify-content:center; color:var(--text-dim);
  }
  .step-card h3{font-size:20px; font-weight:700; letter-spacing:-.01em;}
  .step-card p{color:var(--text-dim); font-size:14.5px; line-height:1.65;}
  .step-meta{display:flex; gap:10px; flex-wrap:wrap; margin-top:auto; padding-top:6px;}
  .pill{
    font-family:"Geist Mono",monospace; font-size:11px; color:var(--text-dim);
    border:1px solid var(--border); border-radius:100px; padding:5px 11px;
  }
  .checklist{display:flex; flex-direction:column; gap:10px; margin-top:2px;}
  .checklist li{display:flex; gap:10px; font-size:14px; color:var(--text-dim); align-items:flex-start;}
  .checklist svg{flex-shrink:0; margin-top:3px; color:var(--text-faint);}

  /* ---------- support ---------- */
  .support-card{
    border:1px solid var(--border); background:var(--surface); border-radius:var(--radius-l);
    padding:44px; display:flex; align-items:center; justify-content:space-between; gap:32px;
  }
  @media (max-width:760px){.support-card{flex-direction:column; align-items:stretch; text-align:center;}}
  .support-left h3{font-size:22px; font-weight:700; margin-bottom:10px;}
  .support-left p{color:var(--text-dim); font-size:14.5px; max-width:420px;}
  .email-row{
    display:inline-flex; align-items:center; gap:10px; margin-top:18px;
    font-family:"Geist Mono",monospace; font-size:13.5px; color:var(--text-dim);
    border:1px solid var(--border); border-radius:9px; padding:9px 13px; cursor:pointer;
    transition:border-color .15s ease;
  }
  .email-row:hover{border-color:var(--border-strong);}
  .support-actions{display:flex; flex-direction:column; gap:10px; flex-shrink:0;}
  .support-actions span{font-size:11.5px; color:var(--text-faint); text-align:center;}

  /* ---------- footer ---------- */
  footer{border-top:1px solid var(--border); padding:48px 0;}
  .foot-inner{display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;}
  .foot-links{display:flex; gap:22px; flex-wrap:wrap;}
  .foot-links a{font-size:13.5px; color:var(--text-faint);}
  .foot-links a:hover{color:var(--text-dim);}
  .foot-meta{font-size:12.5px; color:var(--text-faint); font-family:"Geist Mono",monospace;}

  .toast{
    position:fixed; left:50%; bottom:28px; transform:translate(-50%,20px); opacity:0;
    background:var(--emphasis); color:var(--emphasis-text); font-size:13px; font-weight:600;
    padding:10px 18px; border-radius:9px; pointer-events:none; transition:transform .2s ease, opacity .2s ease; z-index:80;
  }
  .toast.show{opacity:1; transform:translate(-50%,0);}
