/* Final layout contract. Loaded after the legacy stylesheet. */

/* Branded first-load transition. */
html:has(.site-loader) {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  min-height: 100dvh;
  overflow: hidden;
  place-items: center;
  background: #0d0f14;
  opacity: 1;
  transition: opacity .28s ease, visibility 0s linear 0s;
  visibility: visible;
  will-change: opacity;
}

.site-loader::before,
.site-loader::after {
  position: absolute;
  width: min(76vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgb(141 145 255 / 9%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.site-loader::before {
  background: radial-gradient(circle, rgb(85 217 173 / 9%), transparent 58%);
  transform: rotate(22deg) scaleY(.55);
}

.site-loader::after {
  width: min(58vw, 580px);
  border-color: rgb(85 217 173 / 8%);
  transform: rotate(-34deg) scaleY(.68);
}

.site-loader-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(calc(100% - 48px), 360px);
  text-align: center;
}

.site-loader-visual {
  position: relative;
  display: grid;
  width: clamp(154px, 22vw, 184px);
  aspect-ratio: 1;
  place-items: center;
}

.site-loader-orbit {
  position: absolute;
  inset: 2px;
  border: 1px solid rgb(141 145 255 / 32%);
  border-radius: 50%;
  box-shadow: inset 0 0 42px rgb(115 120 245 / 5%);
}

.site-loader-orbit::after {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8d91ff;
  box-shadow: 0 0 0 7px rgb(141 145 255 / 9%), 0 0 24px rgb(141 145 255 / 48%);
  content: "";
  transform: translateX(-50%);
}

.site-loader-orbit-outer {
  animation: nuna-loader-spin 2.4s linear infinite;
}

.site-loader-orbit-inner {
  inset: 22px;
  border-color: rgb(85 217 173 / 28%);
  transform: rotate(42deg);
  animation: nuna-loader-spin-reverse 1.9s linear infinite;
}

.site-loader-orbit-inner::after {
  top: 6px;
  width: 7px;
  height: 7px;
  background: #55d9ad;
  box-shadow: 0 0 0 6px rgb(85 217 173 / 8%), 0 0 22px rgb(85 217 173 / 44%);
}

.site-loader-logo {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  background: url("/nuna-logo-transparent.png") center / 84% auto no-repeat;
  filter: drop-shadow(0 14px 32px rgb(0 0 0 / 42%));
  animation: nuna-loader-breathe 1.4s ease-in-out infinite alternate;
}

.site-loader-copy {
  display: grid;
  gap: 7px;
}

.site-loader-copy strong {
  color: var(--text);
  font: 700 clamp(24px, 4vw, 30px)/1.1 var(--font-display);
  letter-spacing: -.035em;
}

.site-loader-copy span {
  color: var(--muted);
  font: 500 14px/1.4 var(--font-sans);
  letter-spacing: .02em;
}

.site-loader-progress {
  width: min(100%, 220px);
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(244 244 240 / 9%);
}

.site-loader-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8d91ff, #55d9ad);
  box-shadow: 0 0 18px rgb(115 120 245 / 38%);
  transform: scaleX(.06);
  transform-origin: left center;
  animation: nuna-loader-progress 1.25s cubic-bezier(.2, .8, .2, 1) forwards;
}

.site-loader.is-complete .site-loader-progress i {
  animation: none;
  transform: scaleX(1);
  transition: transform .16s ease-out;
}

.site-loader.is-leaving {
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, visibility 0s linear .28s;
  visibility: hidden;
}

@keyframes nuna-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes nuna-loader-spin-reverse {
  from { transform: rotate(42deg); }
  to { transform: rotate(-318deg); }
}

@keyframes nuna-loader-breathe {
  from { opacity: .86; transform: scale(.98); }
  to { opacity: 1; transform: scale(1.02); }
}

@keyframes nuna-loader-progress {
  from { transform: scaleX(.06); }
  to { transform: scaleX(.84); }
}

@media (max-height: 520px) {
  .site-loader-inner {
    gap: 14px;
  }

  .site-loader-visual {
    width: 128px;
  }

  .site-loader-logo {
    width: 84px;
    height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader,
  .site-loader.is-leaving,
  .site-loader-progress i {
    transition-duration: .01ms;
  }

  .site-loader-orbit-outer,
  .site-loader-orbit-inner,
  .site-loader-logo,
  .site-loader-progress i {
    animation: none;
  }

  .site-loader-progress i {
    transform: scaleX(.84);
  }
}

/* Flat, optically centered ImageGen icon set. */
.nuna-icon {
  --nuna-icon-color: #8d91ff;
  display: inline-block;
  flex: 0 0 auto;
  background-color: var(--nuna-icon-color);
  background-image: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: middle;
}

.icon-windows { -webkit-mask-image: url("/icons/nuna-windows-v2.webp"); mask-image: url("/icons/nuna-windows-v2.webp"); }
.icon-android { --nuna-icon-color: #55d9ad; -webkit-mask-image: url("/icons/nuna-android-v2.webp"); mask-image: url("/icons/nuna-android-v2.webp"); }
.icon-download { -webkit-mask-image: url("/icons/nuna-download-v2.webp"); mask-image: url("/icons/nuna-download-v2.webp"); }
.icon-route { --nuna-icon-color: #55d9ad; -webkit-mask-image: url("/icons/nuna-route-v2.webp"); mask-image: url("/icons/nuna-route-v2.webp"); }
.icon-infinity { --nuna-icon-color: #55d9ad; -webkit-mask-image: url("/icons/nuna-infinity-v2.webp"); mask-image: url("/icons/nuna-infinity-v2.webp"); }
.icon-support { -webkit-mask-image: url("/icons/nuna-support-v2.webp"); mask-image: url("/icons/nuna-support-v2.webp"); }
.icon-account { --nuna-icon-color: #55d9ad; -webkit-mask-image: url("/icons/nuna-account-v2.webp"); mask-image: url("/icons/nuna-account-v2.webp"); }
.icon-power { -webkit-mask-image: url("/icons/nuna-power-v2.webp"); mask-image: url("/icons/nuna-power-v2.webp"); }
.icon-tv { -webkit-mask-image: url("/icons/nuna-tv-v2.webp"); mask-image: url("/icons/nuna-tv-v2.webp"); }
.icon-telegram { --nuna-icon-color: #55d9ad; -webkit-mask-image: url("/icons/nuna-telegram-v2.webp"); mask-image: url("/icons/nuna-telegram-v2.webp"); }
.icon-shield { -webkit-mask-image: url("/icons/nuna-shield-v2.webp"); mask-image: url("/icons/nuna-shield-v2.webp"); }
.icon-chevron { --nuna-icon-color: #55d9ad; -webkit-mask-image: url("/icons/nuna-chevron-v2.webp"); mask-image: url("/icons/nuna-chevron-v2.webp"); }
.icon-server { -webkit-mask-image: url("/icons/nuna-server-v2.webp"); mask-image: url("/icons/nuna-server-v2.webp"); }
.icon-verified { --nuna-icon-color: #55d9ad; -webkit-mask-image: url("/icons/nuna-verified-v2.webp"); mask-image: url("/icons/nuna-verified-v2.webp"); }
.icon-globe { -webkit-mask-image: url("/icons/nuna-globe-v2.webp"); mask-image: url("/icons/nuna-globe-v2.webp"); }
.icon-menu { --nuna-icon-color: #55d9ad; -webkit-mask-image: url("/icons/nuna-menu-v2.webp"); mask-image: url("/icons/nuna-menu-v2.webp"); }

.hero-trust-list {
  margin-top: 20px;
}

.hero-trust-list .nuna-icon {
  width: 22px;
  height: 22px;
}

/* Shared alignment axis for the navigation and page sections. */
.site-header {
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  background: transparent;
  backdrop-filter: none;
  transition: color .2s ease;
}

.site-header::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  border-bottom: 1px solid transparent;
  background: rgb(13 15 20 / 74%);
  backdrop-filter: blur(18px) saturate(125%);
  content: "";
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .2s ease, border-color .2s ease;
}

.site-header::after {
  opacity: 0;
}

.site-header.is-scrolled::before {
  border-bottom-color: rgb(141 145 255 / 13%);
  opacity: 1;
}

.site-header > .brand {
  grid-column: 1;
  justify-self: start;
  white-space: nowrap;
}

.brand-logo,
.app-product-badge img {
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / 24%));
}

#site-nav {
  grid-column: 2;
  justify-self: center;
  gap: clamp(14px, 2vw, 25px);
}

#site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
}

#site-nav .support-link {
  margin-left: 0;
}

.site-header > .menu-button {
  grid-column: 3;
  justify-self: end;
  min-height: 48px;
}

.hero-download-zone {
  width: min(100%, 690px);
  max-width: 690px;
  margin-top: 28px;
  scroll-margin-top: 96px;
}

.hero-platform-actions {
  align-items: stretch;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.hero-platform-download {
  box-sizing: border-box;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 6px;
  padding-right: 12px;
  padding-left: 12px;
}

.hero-platform-download .hero-download-copy {
  align-content: center;
  text-align: center;
}

.hero-platform-download .hero-download-copy strong {
  font-size: 14px;
  white-space: nowrap;
}

.hero-platform-download .hero-download-icon,
.hero-platform-download .hero-download-arrow {
  justify-self: center;
}

.hero-platform-download .hero-download-icon {
  width: 42px;
  height: 42px;
}

.hero-platform-download.is-primary .nuna-icon {
  --nuna-icon-color: #fff;
}

.hero-other-downloads {
  width: 100%;
  max-width: none;
  margin: 12px 0 0;
  border-color: rgb(141 145 255 / 18%);
  background: rgb(18 20 26 / 62%);
  backdrop-filter: blur(16px);
}

.hero-other-downloads summary {
  min-height: 62px;
  padding: 10px 16px;
}

.hero-other-downloads summary strong {
  font-size: 14px;
}

.hero-other-downloads summary small {
  font-size: 12px;
}

.hero-other-downloads .other-downloads-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-other-downloads .other-downloads-list > a {
  min-height: 76px;
}

.hero-other-downloads .platform-external-icon {
  transform: rotate(-90deg);
}

/* Product showcase: keep the real interface unobstructed and readable. */
.app-showcase {
  min-height: 680px;
  padding-inline: 0;
}

.app-showcase::before,
.app-showcase::after {
  content: none;
}

.app-showcase-halo {
  z-index: -2;
  width: min(98%, 480px);
  border-color: rgb(141 145 255 / 9%);
  background: none;
  box-shadow: none;
}

.app-showcase-halo::before {
  inset: 14%;
  border-color: rgb(85 217 173 / 9%);
  transform: rotate(20deg) scaleY(.62);
}

.app-showcase-halo::after {
  inset: 7%;
  border-color: rgb(141 145 255 / 10%);
  transform: rotate(-30deg) scaleY(.72);
}

.app-phone {
  z-index: 1;
  width: min(94%, 380px);
  aspect-ratio: auto;
  border: 6px solid #242833;
  border-radius: 29px;
  box-shadow:
    0 34px 74px rgb(0 0 0 / 56%),
    0 0 0 1px rgb(244 244 240 / 10%),
    0 0 0 7px rgb(14 16 22 / 72%),
    0 0 60px rgb(85 217 173 / 7%),
    0 0 88px rgb(115 120 245 / 8%);
  transform: none;
}

.app-phone::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: 23px;
  background: linear-gradient(118deg, rgb(255 255 255 / 5%), transparent 24%, transparent 72%, rgb(141 145 255 / 3%));
  content: "";
  pointer-events: none;
}

.app-phone-screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  background: #080a0f;
  pointer-events: none;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.app-phone-interaction-shield {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: transparent;
  cursor: default;
  user-select: none;
  -webkit-touch-callout: none;
}

.features-section,
.steps-section {
  display: block;
  min-width: 0;
  box-sizing: border-box;
}

.feature-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.features-section .section-heading {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.feature-icon,
.final-cta-icon {
  background: #181b24;
  border-color: rgb(141 145 255 / 30%);
  box-shadow: inset 0 1px rgb(255 255 255 / 5%);
}

.feature-grid .feature-icon .nuna-icon {
  width: 50px;
  height: 50px;
}

.final-cta-icon .nuna-icon {
  width: 56px;
  height: 56px;
}

.final-download-primary .nuna-icon {
  --nuna-icon-color: #fff;
}

.final-download {
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 10px;
  text-align: center;
}

.final-download > span,
.final-download > .nuna-icon {
  justify-self: center;
}

.final-download > span {
  min-width: 0;
}

.final-cta-actions {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.final-cta {
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 32px);
  padding: clamp(28px, 3.2vw, 40px);
}

.final-cta-copy {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.final-cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 19px;
}

.final-cta-icon .nuna-icon {
  width: 48px;
  height: 48px;
}

.final-cta h2 {
  max-width: none;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
}

.final-cta p {
  max-width: none;
  margin-top: 8px;
  font-size: 16px;
}

.final-other-downloads summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  font: 650 14px/1.2 var(--font-display);
  list-style: none;
  transition: color .18s ease, background .18s ease;
}

.final-other-downloads summary::-webkit-details-marker {
  display: none;
}

.final-other-downloads summary:hover {
  background: rgb(255 255 255 / 4%);
  color: var(--text);
}

.final-other-downloads summary:focus-visible {
  outline: 3px solid rgb(141 145 255 / 54%);
  outline-offset: 2px;
}

.final-other-downloads summary .nuna-icon {
  width: 18px;
  height: 18px;
  transition: transform .18s ease;
}

.final-other-downloads[open] summary .nuna-icon {
  transform: rotate(180deg);
}

.final-other-downloads .final-download {
  margin-top: 8px;
}

/* One clear process instead of three disconnected cards. */
.steps-section {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
  border-top: 0;
  border-bottom: 0;
  background: var(--bg);
  text-align: center;
}

.steps-section .section-heading {
  width: 100%;
  max-width: none;
  margin: 0 auto clamp(56px, 6vw, 80px);
}

.steps-section h2 {
  width: 100%;
  max-width: none;
  overflow-wrap: normal;
  word-break: normal;
}

.steps-track {
  position: relative;
  display: grid;
  width: min(calc(100% - 48px), 1240px);
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.steps-track::before {
  position: absolute;
  z-index: 0;
  top: 34px;
  right: 16.666%;
  left: 16.666%;
  height: 1px;
  background: rgb(141 145 255 / 28%);
  content: "";
}

.steps-track li {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 20px;
  padding: 0 clamp(16px, 3vw, 34px);
  text-align: center;
}

.steps-track .step-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0;
  place-items: center;
  border: 1px solid rgb(141 145 255 / 42%);
  border-radius: 20px;
  background: #191c25;
  box-shadow: 0 12px 28px rgb(0 0 0 / 20%), inset 0 1px rgb(255 255 255 / 6%);
}

.steps-track .step-icon .nuna-icon {
  width: 50px;
  height: 50px;
}

.steps-track li > div {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.steps-track small {
  color: #8d91ff;
  font: 750 12px/1.2 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.steps-track strong {
  color: var(--text);
  font: 700 clamp(17px, 1.6vw, 20px)/1.3 var(--font-display);
  overflow-wrap: normal;
  word-break: normal;
}

.steps-track p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .app-showcase {
    min-height: 560px;
    padding-inline: 4px;
  }

  .app-showcase-halo {
    width: 108%;
  }

  .app-phone {
    width: min(96%, 310px);
    border-width: 5px;
    border-radius: 25px;
  }

  .hero-platform-actions {
    grid-template-columns: 1fr;
  }

  .hero-other-downloads .other-downloads-list {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps-track {
    width: min(calc(100% - 32px), 520px);
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .steps-track::before {
    top: 34px;
    right: auto;
    bottom: 34px;
    left: 33px;
    width: 1px;
    height: auto;
  }

  .steps-track li {
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 18px;
    padding: 0;
    text-align: left;
  }

  .steps-track li > div {
    gap: 5px;
  }

  .steps-track .step-icon {
    position: relative;
    z-index: 1;
  }

  .final-cta-icon .nuna-icon {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 1600px) {
  .steps-track {
    width: min(calc(100% - 80px), 1360px);
  }
}

@media (max-width: 930px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header > .brand {
    grid-column: 1;
  }

  .site-header > .menu-button {
    display: inline-flex;
    grid-column: 2;
    align-items: center;
    justify-content: center;
  }

  #site-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  #site-nav a {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .final-cta-actions {
    width: 100%;
  }
}

@media (min-width: 421px) {
  .final-download > span {
    white-space: nowrap;
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  .steps-track {
    width: min(calc(100% - 40px), 760px);
  }
}

@media (max-width: 420px) {
  .app-showcase {
    min-height: 560px;
  }

  .app-phone {
    width: min(94%, 306px);
  }

  .hero-trust-list {
    margin-top: 24px;
  }

  .steps-track {
    gap: 24px;
  }

  .steps-track strong {
    font-size: 16px;
  }

  .steps-track p {
    font-size: 14px;
  }
}

@media (max-width: 620px) {
  .final-cta {
    gap: 24px;
    padding: 28px 20px;
  }

  .final-cta-actions {
    grid-template-columns: 1fr;
  }
}

@media (orientation: landscape) and (max-height: 600px) and (min-width: 680px) and (max-width: 980px) {
  .app-showcase {
    min-height: 500px;
  }

  .app-phone {
    width: 260px;
  }
}
