/* ArSonKuPik V6 — static-first global landing hardening. */

html[data-global-shell="v6"] {
  scroll-behavior: smooth;
}

.language-switch a {
  display: grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  color: #aaa2b0;
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.language-switch a:hover,
.language-switch a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .055);
}

.language-switch a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, #6840ce, #9c64f5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 7px 18px rgba(87, 42, 164, .22);
}

.mobile-nav {
  position: relative;
  display: none;
}

.mobile-nav summary {
  display: grid;
  min-width: 42px;
  min-height: 38px;
  place-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
  color: #e9e2ee;
  font-size: 12px;
  font-weight: 680;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.mobile-nav[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(286px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid rgba(204, 171, 255, .17);
  border-radius: 13px;
  background: rgba(12, 10, 16, .97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .56), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(18px) saturate(125%);
}

.mobile-nav-panel a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 9px;
  color: #c7bfcb;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.mobile-nav-panel a::after {
  content: "→";
  color: #9f75df;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible {
  background: rgba(153, 95, 245, .09);
  color: #fff;
}

.language-switch a:focus-visible,
.mobile-nav summary:focus-visible,
.mobile-nav-panel a:focus-visible {
  outline: 2px solid #d0b4ff;
  outline-offset: 3px;
}

.global-proof-note {
  max-width: 920px;
  margin: 24px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;
  background: rgba(255, 255, 255, .014);
  color: #aaa2ae;
  font-size: 13.5px;
  line-height: 1.68;
  text-align: center;
}

.global-proof-note strong {
  color: #e9e2ed;
  font-weight: 680;
}

/* Platform identity for official downloads. Icons are embedded locally so the
   landing remains dependency-free and keeps working under strict privacy rules. */
[data-installer-cta],
#vst3-link,
#standalone-link,
#mac-dmg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .52em;
}

[data-installer-cta]::before,
#vst3-link::before,
#standalone-link::before,
#mac-dmg-link::before {
  content: "";
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

[data-installer-cta]::before,
#vst3-link::before,
#standalone-link::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 2.75 10.2 1.5v9.3H1V2.75Zm10.2-1.4L23 0v10.8H11.2V1.35ZM1 12h9.2v9.3L1 20.05V12Zm10.2 0H23v10.8l-11.8-1.35V12Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 2.75 10.2 1.5v9.3H1V2.75Zm10.2-1.4L23 0v10.8H11.2V1.35ZM1 12h9.2v9.3L1 20.05V12Zm10.2 0H23v10.8l-11.8-1.35V12Z'/%3E%3C/svg%3E");
}

#mac-dmg-link::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.79 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.1M12.03 7.25C11.88 5.02 13.69 3.18 15.77 3c.29 2.58-2.34 4.5-3.74 4.25'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.79 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.1M12.03 7.25C11.88 5.02 13.69 3.18 15.77 3c.29 2.58-2.34 4.5-3.74 4.25'/%3E%3C/svg%3E");
}

.download-option #mac-dmg-link {
  width: 100%;
}

/* Use one measured icon-to-label rhythm for the hero platform CTAs and the
   lower macOS DMG CTA. The Apple glyph receives an optical margin because its
   1.30× visual scale extends beyond the SVG/pseudo-element layout box. */
.landing-hero .actions [data-installer-cta],
.button.secondary.hero-mac-download,
.download-option #mac-dmg-link {
  gap: .62em;
}

/* Match and exceed .button.secondary specificity so the gradient is visible
   in the default state, not only when :hover increases selector strength. */
.button.secondary.hero-mac-download {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  border-color: rgba(120, 221, 176, .48);
  background: linear-gradient(135deg, #16785f 0%, #269d79 52%, #54cfa4 100%);
  color: #fff;
  box-shadow: 0 15px 38px rgba(31, 147, 111, .27), inset 0 1px 0 rgba(255, 255, 255, .2);
  text-shadow: 0 1px 1px rgba(0, 52, 39, .25);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button.secondary.hero-mac-download::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 38%, transparent 68%, rgba(255, 255, 255, .06));
}

.button.secondary.hero-mac-download > * {
  position: relative;
  z-index: 1;
}

.button.secondary.hero-mac-download svg {
  display: block;
  width: 1.16em;
  height: 1.16em;
  flex: 0 0 1.16em;
  margin-right: .18em;
  fill: currentColor;
  transform-origin: center;
  transform: translateY(-0.10em) scale(1.30);
}

.button.secondary.hero-mac-download:hover,
.button.secondary.hero-mac-download:focus-visible {
  border-color: rgba(173, 244, 211, .76);
  background: linear-gradient(135deg, #1a876b 0%, #2daf86 52%, #67ddb4 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(35, 164, 123, .38), inset 0 1px 0 rgba(255, 255, 255, .24);
  filter: saturate(1.04) brightness(1.025);
  transform: translateY(-1px);
}

.button.secondary.hero-mac-download:active {
  transform: translateY(0);
  box-shadow: 0 10px 27px rgba(31, 147, 111, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.button.secondary.hero-mac-download[aria-disabled="true"] {
  opacity: .68;
  filter: saturate(.65);
  box-shadow: none;
}

/* The lower DMG action uses the same emerald platform language, optical Apple
   sizing, spacing, and interaction states as the hero Mac CTA. */
.download-option #mac-dmg-link.button.secondary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  border-color: rgba(120, 221, 176, .48);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 38%, transparent 68%, rgba(255, 255, 255, .06)),
    linear-gradient(135deg, #16785f 0%, #269d79 52%, #54cfa4 100%);
  color: #fff;
  box-shadow: 0 15px 38px rgba(31, 147, 111, .27), inset 0 1px 0 rgba(255, 255, 255, .2);
  text-shadow: 0 1px 1px rgba(0, 52, 39, .25);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.download-option #mac-dmg-link.button.secondary::before {
  width: 1.16em;
  height: 1.16em;
  flex: 0 0 1.16em;
  margin-right: .18em;
  transform-origin: center;
  transform: translateY(-0.10em) scale(1.30);
}

.download-option #mac-dmg-link.button.secondary:hover,
.download-option #mac-dmg-link.button.secondary:focus-visible {
  border-color: rgba(173, 244, 211, .76);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .17), transparent 38%, transparent 68%, rgba(255, 255, 255, .075)),
    linear-gradient(135deg, #1a876b 0%, #2daf86 52%, #67ddb4 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(35, 164, 123, .38), inset 0 1px 0 rgba(255, 255, 255, .24);
  filter: saturate(1.04) brightness(1.025);
  transform: translateY(-1px);
}

.download-option #mac-dmg-link.button.secondary:active {
  transform: translateY(0);
  box-shadow: 0 10px 27px rgba(31, 147, 111, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.download-option #mac-dmg-link.button.secondary[aria-disabled="true"] {
  opacity: .68;
  filter: saturate(.65);
  box-shadow: none;
}

@media (max-width: 860px) {
  .landing-nav nav[aria-label] {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .mobile-nav {
    display: block;
  }
}

@media (max-width: 520px) {
  .landing-nav .nav-inner {
    gap: 9px;
  }

  .language-switch {
    flex: 0 0 auto;
  }

  .language-switch a {
    min-width: 31px;
  }

  .mobile-nav summary {
    min-width: 38px;
    padding-inline: 9px;
  }

  .mobile-nav summary span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  [data-installer-cta]::before,
  #vst3-link::before,
  #standalone-link::before {
    width: .94em;
    height: .94em;
    flex-basis: .94em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-global-shell="v6"] {
    scroll-behavior: auto;
  }

  .language-switch a,
  .mobile-nav summary::after,
  .button.secondary.hero-mac-download,
  .download-option #mac-dmg-link.button.secondary {
    transition: none;
  }
}
