/* Figma Make baseline — Ainvest Desktop app landing page (node 16:5) */
:root {
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --divider-1: rgba(255, 255, 255, 0.22);
  --divider-2: rgba(255, 255, 255, 0.12);
  --divider-3: rgba(255, 255, 255, 0.07);
  --grey-90: #292929;
  --download-options-surface: #1a1a1a;
  --download-options-hover: #333333;
  --download-options-inverse-text: #000;
  --accent-blue: #42b0ff;
  --beam-color: #5AC4FF;
  --content-max: 1560px;
  --content-pad-max: 180px;
  --content-pad: 16px;
  --section-gap: clamp(48px, 8vw, 96px);
  --section-head-gap: clamp(24px, 4vw, 40px);
  --nav-height: 64px;
  --split-panel-ratio: 900;
  --split-side-ratio: 620;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--text-primary);
  font-family: var(--font-system);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.page {
  position: relative;
  min-width: 0;
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--content-pad-max));
  margin-inline: auto;
  padding-inline: var(--content-pad);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.container--narrow {
  max-width: 920px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.8);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--content-pad);
  min-width: 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.nav__brand-logo {
  display: block;
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.nav__link {
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 80px;
  padding: 6px 16px;
  border: none;
  border-radius: 40px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

@property --beam-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 92%;
}

@property --beam-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 44%;
}

.btn-download--nav {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  gap: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.btn-download--nav .btn-download__icon {
  width: 20px;
  height: 20px;
}

.btn-download__inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
}

.btn-download__beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: btn-download-beam-position 4s linear infinite;
}

.btn-download__beam--glow {
  background: radial-gradient(32% 54% at var(--beam-x) var(--beam-y), var(--beam-color) 0%, rgba(255, 255, 255, 0) 100%);
  filter: blur(22px);
}

.btn-download__beam--stroke {
  background: radial-gradient(24% 58% at var(--beam-x) var(--beam-y), var(--beam-color) 0%, rgba(255, 255, 255, 0) 100%);
}

.btn-download__beam-fill {
  position: absolute;
  inset: 4px;
  border-radius: 36px;
  background: #fff;
  pointer-events: none;
}

@keyframes btn-download-beam-position {
  0% {
    --beam-x: 92%;
    --beam-y: 44%;
  }

  12.5% {
    --beam-x: 72%;
    --beam-y: 6%;
  }

  25% {
    --beam-x: 50%;
    --beam-y: 0%;
  }

  37.5% {
    --beam-x: 28%;
    --beam-y: 6%;
  }

  50% {
    --beam-x: 8%;
    --beam-y: 44%;
  }

  62.5% {
    --beam-x: 28%;
    --beam-y: 94%;
  }

  75% {
    --beam-x: 50%;
    --beam-y: 100%;
  }

  87.5% {
    --beam-x: 72%;
    --beam-y: 94%;
  }

  100% {
    --beam-x: 92%;
    --beam-y: 44%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-download__beam {
    animation: none;
    --beam-x: 92%;
    --beam-y: 44%;
  }
}

@property --hero-beam-x {
  syntax: '<percentage>';
  inherits: true;
  initial-value: -28%;
}

@property --hero-beam-y {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 88%;
}

@property --hero-beam-size {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 22%;
}

.btn-download--hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  height: 56px;
  padding: 0;
  gap: 0;
  background: transparent;
  color: #000;
  font-weight: 600;
  justify-content: flex-start;
  transform-origin: center center;
  animation:
    btn-hero-breathe 1.2s ease-in-out infinite,
    btn-hero-sweep 2.4s linear infinite;
}

.btn-download--hero:hover,
.btn-download--hero:focus-visible {
  overflow: visible;
  color: #000;
  box-shadow:
    0 0 16px rgba(125, 235, 255, 0.85),
    0 10px 28px rgba(70, 160, 255, 0.62),
    0 0 36px rgba(90, 175, 255, 0.42);
}

.btn-download__inner--hero {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 0 24px;
  gap: 6px;
}

.btn-download__hero-glow {
  position: absolute;
  inset: -14px;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    calc(var(--hero-beam-size) * 1.6) 105% at var(--hero-beam-x) var(--hero-beam-y),
    rgba(153, 255, 249, 0.42) 0%,
    rgba(153, 255, 249, 0.2) 30%,
    rgba(186, 160, 255, 0.16) 52%,
    rgba(199, 86, 255, 0.07) 64%,
    rgba(255, 255, 255, 0) 78%
  );
  filter: blur(28px);
  clip-path: inset(14px round 16px);
}

.btn-download__hero-beam {
  position: absolute;
  inset: -6px;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    calc(var(--hero-beam-size) * 1.4) 95% at var(--hero-beam-x) var(--hero-beam-y),
    rgba(153, 255, 249, 0.38) 0%,
    rgba(153, 255, 249, 0.22) 35%,
    rgba(196, 170, 255, 0.22) 54%,
    rgba(199, 86, 255, 0.1) 66%,
    rgba(255, 255, 255, 0) 82%
  );
  filter: blur(14px);
  clip-path: inset(6px round 16px);
}

.btn-download__hero-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: #fff;
  pointer-events: none;
}

.btn-download__label {
  flex-shrink: 0;
}

.btn-download--hero .btn-download__arrow {
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex-shrink: 0;
}

@keyframes btn-hero-breathe {
  0%, 100% {
    transform: scale(0.95);
  }

  50% {
    transform: scale(1);
  }
}

/* 首屏 / 底屏成对按钮只做很轻的缩放，避免两颗一起大幅呼吸。 */
@keyframes btn-platform-breathe {
  0%, 100% {
    transform: scale(0.985);
  }

  50% {
    transform: scale(1);
  }
}

@keyframes btn-hero-sweep {
  0% {
    --hero-beam-x: -24%;
    --hero-beam-y: 82%;
    --hero-beam-size: 30%;
  }

  32% {
    --hero-beam-x: 16%;
    --hero-beam-y: 72%;
    --hero-beam-size: 42%;
  }

  52% {
    --hero-beam-x: 84%;
    --hero-beam-y: 52%;
    --hero-beam-size: 68%;
  }

  100% {
    --hero-beam-x: 124%;
    --hero-beam-y: 82%;
    --hero-beam-size: 30%;
  }
}

.download-options--nav .download-options__trigger {
  transform-origin: center center;
  animation: btn-hero-breathe 1.2s ease-in-out infinite;
}

.download-options--nav .download-options__trigger:hover,
.download-options--nav .download-options__trigger:focus-visible {
  overflow: visible;
  box-shadow:
    0 0 12px rgba(125, 235, 255, 0.85),
    0 6px 16px rgba(70, 160, 255, 0.55);
}

.download-options--nav .btn-download__beam {
  clip-path: inset(0 round 40px);
}

@media (prefers-reduced-motion: reduce) {
  .btn-download--hero,
  .download-options--nav .download-options__trigger,
  .download-cta--hero .download-options__trigger,
  .hero__scroll-chevron {
    animation: none;
    transform: none;
  }

  .btn-download--hero .btn-download__hero-glow,
  .btn-download--hero .btn-download__hero-beam {
    --hero-beam-x: 16%;
    --hero-beam-y: 72%;
    --hero-beam-size: 42%;
  }

  .invite-rewards__btn-arrow {
    animation: none;
  }
}

.btn-download__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-download--nav .btn-download__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Hero/Footer show both platform buttons. Invite keeps the Mac dual-arch / Windows split. */
.download-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.download-cta__mac {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.download-cta__primary-windows,
.download-cta__windows.btn-download,
.download-cta__windows.invite-rewards__btn {
  display: none !important;
}

html.os-windows .download-cta--hero .download-cta__primary-mac {
  display: none !important;
}

html.os-windows .download-cta--hero .download-cta__primary-windows {
  display: inline-flex !important;
}

html.os-windows .download-cta--invite .download-cta__mac {
  display: none !important;
}

html.os-windows .download-cta--invite .download-cta__windows.invite-rewards__btn {
  display: inline-flex !important;
}

.download-cta__primary-windows .btn-download__icon,
.download-cta__windows .btn-download__icon,
.download-cta__windows .invite-rewards__btn-icon {
  width: 16px;
  height: 16px;
}

.download-cta--nav {
  gap: 6px;
}

.download-cta--nav .download-cta__mac {
  gap: 6px;
}

.download-cta--hero {
  position: relative;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
}

.download-pair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 16px;
  width: min(696px, 100%);
}

.btn-download--platform {
  width: 100%;
  height: 74px;
  border-radius: 16px;
  animation:
    btn-platform-breathe 3.2s ease-in-out infinite,
    btn-hero-sweep 2.4s linear infinite;
}

.btn-download--platform .btn-download__inner--platform {
  gap: 12px;
  padding: 12px 20px 12px 24px;
}

.btn-download__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.btn-download--platform .btn-download__label,
.btn-download--module .btn-download__label {
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  color: #000;
}

.btn-download__sub {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: rgba(0, 0, 0, 0.4);
}

.btn-download--platform .btn-download__icon {
  width: 32px;
  height: 32px;
}

/* 设计稿里 Windows 与 Apple 同为 32px 占位，图形本身是 21.333px，避免四格标铺满后显得更大 */
.btn-download--platform.btn-download--windows .btn-download__icon {
  box-sizing: border-box;
  padding: 5.333px;
  object-fit: contain;
}

.btn-download--mac .btn-download__hero-fill {
  background: linear-gradient(103deg, #ffffff 0%, #fffc ed 83%, #ffe0e0 100%);
  box-shadow: inset 0 4px 10px #fff;
}

.btn-download--windows .btn-download__hero-fill {
  background: linear-gradient(103deg, #ffffff 0%, #e6ffff 81%, #d8e1ff 100%);
  box-shadow: inset 0 4px 10px #fff;
}

.btn-download--module {
  width: min(310px, 100%);
  max-width: 100%;
  height: 66px;
  border-radius: 16px;
  align-self: flex-start;
  transform: none;
  animation: btn-hero-sweep 2.4s linear infinite;
}

.btn-download__inner--module {
  width: 100%;
  gap: 12px;
  padding: 12px 24px 12px 32px;
}

.btn-download--module .btn-download__hero-fill {
  background: linear-gradient(95deg, #bdc8ff 1%, #ccf5ff 82%, #ffbcbc 100%);
  box-shadow: inset 0 0 10px #fff;
}

.feature-text .download-popover--module {
  /* feature-text 自带 9px gap，补足后按钮与上方文案间距为 48px。 */
  margin-top: calc(48px - 9px);
}

/* 下载弹层：首屏 / 页脚 Mac 只有芯片选项；模块按钮再加 Windows。 */
.download-popover {
  position: relative;
  min-width: 0;
}

.download-pair > .download-popover {
  width: 100%;
}

.download-popover > .btn-download {
  appearance: none;
}

.download-popover > .btn-download--platform,
.download-popover--module > .btn-download--module {
  width: 100%;
}

.download-popover--module {
  width: min(310px, 100%);
  align-self: flex-start;
}

.download-popover.is-open {
  z-index: 40;
}

.download-popover__menu {
  --fill-0: #fff;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 270px;
  max-width: calc(100vw - 32px);
  padding: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: #292929;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.download-popover__menu[hidden] {
  display: none;
}

.download-popover__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 40px;
  padding: 8px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.download-popover__item:hover,
.download-popover__item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.download-popover__item-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.download-popover__platform-icon {
  width: 20px;
  height: 20px;
  flex: none;
  filter: brightness(0) invert(1);
}

.download-popover__platform-icon--windows {
  box-sizing: border-box;
  padding: 3.333px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.download-popover__download-icon {
  width: 16px;
  height: 16px;
  flex: none;
  filter: brightness(0) invert(1);
}

.download-popover__divider {
  position: relative;
  height: 16px;
}

.download-popover__divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.download-popover__hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 4px 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-align: left;
}

.split--desk {
  align-items: stretch;
}

.split--desk .split__side {
  justify-content: space-between;
}

.download-options {
  position: relative;
  flex-shrink: 0;
}

.download-options__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 56px;
  padding: 0 24px;
  border: 1px solid var(--text-primary);
  border-radius: 9999px;
  background: var(--text-primary);
  color: var(--download-options-inverse-text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.download-options__trigger:hover,
.download-options__trigger:focus-visible {
  background: var(--download-options-inverse-text);
  color: var(--text-primary);
}

.download-options.is-open .download-options__trigger {
  background: var(--download-options-inverse-text);
  color: var(--text-primary);
}

.download-options__trigger:active {
  background: var(--download-options-inverse-text);
  color: var(--text-primary);
}

.download-cta--hero .download-options__trigger {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 0;
  padding: 0;
  background: transparent;
  animation: btn-hero-sweep 2.4s linear infinite;
}

.download-cta--hero .download-options__trigger:hover,
.download-cta--hero .download-options__trigger:focus-visible,
.download-cta--hero .download-options.is-open .download-options__trigger,
.download-cta--hero .download-options__trigger:active {
  background: transparent;
}

.download-options__trigger-content {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: 0 24px;
}

.download-cta--hero .download-options__trigger .btn-download__hero-fill {
  background: var(--text-primary);
  transition: background-color 0.2s ease;
}

.download-cta--hero .download-options__trigger:hover .btn-download__hero-fill,
.download-cta--hero .download-options__trigger:focus-visible .btn-download__hero-fill,
.download-cta--hero .download-options.is-open .btn-download__hero-fill,
.download-cta--hero .download-options__trigger:active .btn-download__hero-fill {
  background: var(--download-options-inverse-text);
}

.download-options__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0);
  transform: rotate(-90deg);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.download-options__trigger:hover .download-options__chevron,
.download-options__trigger:focus-visible .download-options__chevron {
  filter: brightness(0) invert(1);
}

.download-options.is-open .download-options__chevron {
  filter: brightness(0) invert(1);
  transform: rotate(0deg);
}

.download-options__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: max(100%, 320px);
  overflow: hidden;
  border: 1px solid var(--divider-2);
  border-radius: 16px;
  background: var(--download-options-surface);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.download-options__menu[hidden] {
  display: none;
}

.download-options__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 24px;
  background: var(--download-options-surface);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-align: left;
  transition: background-color 0.2s ease;
}

.download-options__item:hover,
.download-options__item:focus-visible,
.download-options__item:active {
  background: var(--download-options-hover);
  outline: none;
}

.download-options__platform-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.download-options__platform-icon--windows {
  width: 20px;
  height: 20px;
  margin: 2px;
}

.download-options__download-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-cta .download-options__menu {
  top: calc(100% + 12px);
  bottom: auto;
}

.download-options--nav .download-options__trigger {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 160px;
  min-width: 80px;
  height: 34px;
  gap: 12px;
  padding: 6px 12px 6px 16px;
  border: 0;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--download-options-inverse-text);
  font-family: var(--font-system);
  font-size: 16px;
  font-weight: 590;
  line-height: 22px;
  font-feature-settings: 'tnum' on, 'lnum' on;
}

.download-options--nav .download-options__trigger:hover,
.download-options--nav .download-options__trigger:focus-visible,
.download-options--nav.is-open .download-options__trigger {
  background: rgba(255, 255, 255, 0.05);
  color: var(--download-options-inverse-text);
}

.download-options--nav .download-options__label-group {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 104px;
  height: 22px;
  flex: none;
}

.download-options--nav .download-options__nav-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}

.download-options--nav .download-options__nav-label {
  width: 78px;
  height: 22px;
  flex: none;
}

.download-options--nav .download-options__chevron {
  position: relative;
  z-index: 3;
  width: 16px;
  height: 16px;
  filter: brightness(0);
  transform: rotate(-90deg);
}

.download-options--nav .download-options__trigger:hover .download-options__chevron,
.download-options--nav .download-options__trigger:focus-visible .download-options__chevron {
  filter: brightness(0);
}

.download-options--nav.is-open .download-options__chevron {
  filter: brightness(0);
  transform: rotate(0deg);
}

.download-options--nav .download-options__menu {
  top: calc(100% + 12px);
  right: 0;
}

.download-cta--invite {
  position: relative;
  width: 100%;
}

.download-cta--invite .download-cta__mac {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.download-cta--invite .download-cta__mac .invite-rewards__btn--download {
  min-width: 0;
  width: auto;
  box-sizing: border-box;
}

.download-cta--invite .download-cta__mac .invite-rewards__btn--download[data-download-arch="apple"] {
  flex: 1 1 0;
}

.download-cta--invite .download-cta__mac .invite-rewards__btn--download[data-download-arch="intel"] {
  flex: 0 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

.download-cta--invite .download-cta__windows {
  width: 100%;
  box-sizing: border-box;
}

.download-cta--invite .hero-beta-badge {
  top: -10px;
  right: -24px;
}

@media (max-width: 480px) {
  .btn-download--nav .btn-download__inner {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
  }

  .btn-download--hero .btn-download__inner--hero {
    padding: 0 16px;
  }

  .btn-download--hero .btn-download__label {
    font-size: 14px;
  }

  .download-cta--hero {
    flex-direction: column;
    width: 100%;
  }

  .download-cta--hero .btn-download--hero,
  .download-options,
  .download-options__trigger {
    width: 100%;
  }

  .download-cta--hero .btn-download--hero,
  .download-cta--hero .download-options__trigger {
    clip-path: inset(0 round 9999px);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
  }

  .download-options__trigger {
    padding: 0 16px;
    font-size: 14px;
  }

  .download-options__trigger-content {
    padding: 0 16px;
  }

  .download-options__menu {
    right: 50%;
    width: min(320px, calc(100vw - 32px));
    transform: translateX(50%);
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding-bottom: var(--section-gap);
}

.hero__fold {
  position: relative;
  z-index: 2;
  /* 导航在文档流里占位，首屏高度要扣掉导航，避免下滑提示被顶出视口 */
  min-height: calc(100dvh - var(--nav-height));
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: 8px;
}

#explore,
#faqs {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.hero__bg-top {
  position: absolute;
  left: 50%;
  top: 94px;
  transform: translateX(-50%);
  width: min(1920px, 100vw);
  height: clamp(520px, 60vw, 1162px);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero__bg-top img {
  position: absolute;
  width: 114.58%;
  height: 100%;
  left: -14.58%;
  top: 0;
  max-width: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: min(1110px, calc(100% - 2 * var(--content-pad)));
  margin-inline: auto;
  padding: 0;
  text-align: center;
  min-height: 0;
}

.hero__fold-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.6vh, 40px);
  width: 100%;
  min-height: 0;
  padding-block: clamp(8px, 1.6vh, 24px);
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.proof__wheat {
  width: 32.768px;
  height: 32.768px;
  flex-shrink: 0;
}

.proof__wheat--right {
  transform: scaleX(-1);
}

.proof__stars {
  display: flex;
  gap: 1.5px;
  justify-content: center;
}

.proof__stars img {
  width: 12px;
  height: 12px;
}

.proof__text {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: normal;
  color: var(--text-primary);
}

.proof__text em {
  font-style: normal;
  color: var(--accent-blue);
  font-weight: 500;
}

.hero__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.hero__headline-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: fit-content;
  max-width: 100%;
}

.hero__title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.hero__title {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  font-size: clamp(40px, 5.21vw, 100px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.vendor-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(720px, 100%);
  min-width: 0;
}

.vendor-logos__label {
  margin: 0;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--text-secondary);
  white-space: nowrap;
}

.vendor-logos__viewport {
  position: relative;
  overflow: hidden;
  width: min(640px, 100%);
  flex: 0 0 auto;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.vendor-logos__track {
  display: flex;
  width: max-content;
  animation: vendor-logos-scroll 32s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.vendor-logos__group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
}

.vendor-logos__logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  opacity: 1;
  transform: translateZ(0);
}

@keyframes vendor-logos-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vendor-logos__track {
    animation: none;
  }
}

@media (max-width: 640px) {
  .vendor-logos {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .vendor-logos__viewport {
    width: 100%;
  }
}

.hero__subtitle,
.hero__note {
  margin: 0 auto;
  max-width: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text-secondary);
  text-align: center;
}

.hero__cta-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
}

/* 下载区单独拉开上下间距，随屏幕高度变松，避免把标题和合作方标识一起撑开 */
.hero__fold-main > .hero__cta-wrap {
  margin-block: clamp(8px, 2.5vh, 28px);
}

@media (min-height: 900px) {
  .hero__fold-main > .hero__cta-wrap {
    margin-block: clamp(24px, 4vh, 56px);
  }
}

@media (min-height: 1200px) {
  .hero__fold-main > .hero__cta-wrap {
    margin-block: clamp(40px, 5vh, 88px);
  }
}

.hero:has(.invite-rewards:not([hidden])) .hero__cta-wrap {
  display: none;
}

html.invite-rewards-pending .hero__cta-wrap {
  display: none;
}

.hero-beta-badge {
  position: absolute;
  top: -10px;
  right: -35px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  padding: 0 7px;
  border-radius: 6px;
  background: #2f6ef6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 18px rgba(47, 110, 246, 0.32);
  pointer-events: none;
}

/* Mac landing pages: no Beta badge on download CTAs */
html.os-mac .hero-beta-badge {
  display: none !important;
}

.download-cta--hero .hero-beta-badge {
  right: -24px;
}

.hero__note {
  margin: 0;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: auto;
  padding: 8px 0 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.hero__scroll-chevron {
  width: 20px;
  height: 20px;
  animation: hero-scroll-bob 1.6s ease-in-out infinite;
}

@keyframes hero-scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.hero__video {
  position: relative;
  z-index: 1;
  width: min(1281px, calc(100% - 2 * var(--content-pad)));
  margin: clamp(24px, 4vw, 48px) auto 0;
}

.hero:has(.invite-rewards:not([hidden])) .hero__video {
  margin-top: 64px;
}

html.invite-rewards-pending .hero__video {
  margin-top: 64px;
}

.hero__video-frame {
  --frame-radius: 48px;
  --frame-border: 3px;
  position: relative;
  border-radius: var(--frame-radius);
  background: linear-gradient(119.02deg, #1a5fff 0%, #b32fff 71.15%, #ffdb4a 100%);
  box-shadow: 0 6.564px 49.231px rgba(38, 22, 255, 0.3);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.hero__video-surface {
  position: absolute;
  inset: var(--frame-border);
  border-radius: calc(var(--frame-radius) - var(--frame-border));
  background: linear-gradient(119.02deg, #03050d 2.33%, #170618 50.21%, #120500 99.97%);
  overflow: hidden;
}

.hero__video-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(119.02deg, #03050d 2.33%, #170618 50.21%, #120500 99.97%);
}

@media (min-width: 960px) {
  .hero__title {
    font-size: 100px;
    line-height: 110px;
  }
}

/* ── Sections ── */
.section {
  min-width: 0;
}

.section__head {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--section-head-gap);
  min-width: 0;
}

.section__title {
  margin: 0;
  max-width: 800px;
  font-size: clamp(28px, 2.5vw, 48px);
  font-weight: 600;
  line-height: 1.167;
  letter-spacing: 0;
}

@media (min-width: 1200px) {
  .section__title {
    font-size: 48px;
    line-height: 56px;
  }
}

/* ── Agents (Chat / Studio) ── */
.agents {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--section-head-gap);
}

.agents .section__head {
  margin-bottom: 0;
}

.agents__stage {
  position: relative;
  width: 100%;
  min-width: 0;
}

.agents__overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(125px);
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.agents__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  min-width: 0;
}

.agent-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.agent-card__preview {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  background: linear-gradient(118.77deg, #02040c 0%, #170519 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  overflow: hidden;
}

.agent-card__preview img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.agent-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-card__title {
  margin: 0;
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 400;
  line-height: normal;
}

.agent-card__desc {
  margin: 0;
  font-size: 12px;
  line-height: 22px;
  color: var(--text-secondary);
}

/* ── Market depth (Figma 36:1049) ── */
.section--market {
  display: flex;
  flex-direction: column;
  gap: var(--section-head-gap);
}

.section--market .section__head {
  margin-bottom: 0;
}

.market-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  min-width: 0;
}

.market-col {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--divider-2);
  border-radius: 24px;
}

/* 中屏：2 行 × 3 列 */
@media (max-width: 1199px) {
  .market-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 小屏：3 行 × 2 列 */
@media (max-width: 879px) {
  .market-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 极窄屏：单列 */
@media (max-width: 579px) {
  .market-row {
    grid-template-columns: 1fr;
  }
}

.market-col__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.market-col__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.market-col__name {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}

.market-col__stat {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  color: #3773ff;
  font-variant-numeric: tabular-nums;
}

.section--market .market-col {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.section--market.is-visible .market-col {
  opacity: 1;
  transform: translateY(0);
}

.section--market.is-visible .market-col:nth-child(1) { transition-delay: 0ms; }
.section--market.is-visible .market-col:nth-child(2) { transition-delay: 80ms; }
.section--market.is-visible .market-col:nth-child(3) { transition-delay: 160ms; }
.section--market.is-visible .market-col:nth-child(4) { transition-delay: 240ms; }
.section--market.is-visible .market-col:nth-child(5) { transition-delay: 320ms; }
.section--market.is-visible .market-col:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .section--market .market-col {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.market-col__since {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--text-secondary);
}

/* ── Split feature blocks ── */
.split {
  display: flex;
  gap: clamp(24px, 2.08vw, 40px);
  align-items: flex-start;
  min-width: 0;
}

.split--reverse {
  flex-direction: row-reverse;
}

/* 视频占位：Figma 900×506，与内容区按 900:620 同比例缩放 */
.split__panel {
  position: relative;
  isolation: isolate;
  flex: var(--split-panel-ratio) 1 0;
  min-width: 0;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  height: auto;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  background: linear-gradient(118.77deg, #02040c 0%, #170519 100%);
  overflow: hidden;
}

.split__panel--video {
  position: relative;
}

.split__panel-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  background: #02040c;
  object-fit: contain;
  object-position: center;
}

.split__panel--image {
  position: relative;
}

.split__panel-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.desk-carousel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  background: linear-gradient(118.77deg, #02040c 0%, #170519 100%);
  overflow: hidden;
}

.desk-carousel__pane {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.desk-carousel__pane.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.desk-carousel.is-instant-switch .desk-carousel__pane {
  transition: none;
  transform: translateY(0);
}

.desk-carousel__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (prefers-reduced-motion: reduce) {
  .desk-carousel__pane,
  .desk-item::before {
    transition: none;
  }
}

.split__side {
  flex: var(--split-side-ratio) 1 0;
  min-width: 0;
  padding-block: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.desk-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.desk-item {
  position: relative;
  display: flex;
  gap: 0;
  align-items: flex-start;
  min-width: 0;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
  padding-left: 27px;
  transition: color 0.25s ease;
}

.desk-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.desk-item:hover::before {
  background: var(--grey-90);
  opacity: 1;
}

.desk-item--active::before {
  background: var(--text-primary);
  opacity: 1;
}

.desk-item:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.desk-item:not(.desk-item--active) .desk-item__widgets {
  display: none;
}

.desk-item:not(.desk-item--active) .desk-item__body {
  gap: 0;
}

.desk-item:not(.desk-item--active) .desk-item__content {
  gap: 0;
}

.desk-item__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.desk-item__title {
  margin: 0;
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 600;
  line-height: normal;
  transition: color 0.25s ease, font-weight 0.25s ease;
}

.desk-item:not(.desk-item--active) .desk-item__title {
  font-weight: 400;
  color: var(--text-secondary);
}

.desk-item__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desk-item__widgets-label {
  margin: 0;
  font-size: 12px;
  line-height: normal;
  color: var(--text-secondary);
}

.desk-item__widgets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.widget-tag {
  padding: 6px 12px;
  border: 1px solid var(--divider-2);
  border-radius: 6px;
  font-size: 12px;
  line-height: normal;
  color: var(--text-secondary);
  white-space: nowrap;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.step__icon {
  width: 40px;
  height: 40px;
  /* padding: 4px; */
  margin-top: -5px;
  flex-shrink: 0;
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.step__title {
  margin: 0;
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 400;
  line-height: normal;
}

.step__desc {
  margin: 0;
  font-size: 14px;
  line-height: normal;
  color: var(--text-secondary);
}

.split__note {
  margin: 0;
  font-size: 12px;
  line-height: normal;
  color: var(--text-tertiary);
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.feature-text__title {
  margin: 0;
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 400;
  line-height: normal;
}

.feature-text__desc {
  margin: 0;
  font-size: 14px;
  line-height: normal;
  color: var(--text-secondary);
}

.signals-stack {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

/* ── FAQ ── */
.section--faq .section__head,
.faq-list {
  width: 100%;
  max-width: 1164px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--divider-2);
}

.faq-item:first-child {
  border-top: 1px solid var(--divider-2);
}

.faq-item[data-open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 22px;
}

.faq-item:not([data-open]) {
  padding-block: 22px;
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-align: left;
  cursor: pointer;
}

.faq-item__btn span {
  min-width: 0;
  flex: 1;
}

.faq-item__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[data-open] .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-item__answer p {
  margin: 0;
  max-width: 1164px;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--text-primary);
}

.faq-item[data-open] .faq-item__answer {
  max-height: 400px;
}

/* ── Footer CTA ── */
.footer-cta {
  position: relative;
  padding-top: var(--section-gap);
  padding-bottom: 162px;
  background: #000;
  overflow: hidden;
}

.footer-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: min(920px, calc(100% - 2 * var(--content-pad)));
  margin-inline: auto;
  text-align: center;
}

.footer-cta__title {
  margin: 0;
  font-size: clamp(40px, 4.17vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 64px;
  padding-inline: var(--content-pad);
  min-width: 0;
}

.footer-cta__bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1920px, 100vw);
  height: 513px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.footer-cta__bg img {
  position: absolute;
  width: 100%;
  height: 210.53%;
  left: 0;
  top: -20.86%;
  max-width: none;
}

.legal__disclaimer {
  margin: 0;
  max-width: 573px;
  font-size: 12px;
  line-height: normal;
  color: var(--text-secondary);
  text-align: center;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.legal__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
}

.legal__links a {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.legal__links a:hover {
  color: var(--text-secondary);
}

.legal__sep {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .footer-cta__title {
    font-size: 80px;
    line-height: 80px;
  }
}

/* ── Responsive ── */
@media (min-width: 768px) {
  :root {
    --content-pad: 24px;
  }
}

@media (min-width: 1280px) {
  :root {
    --content-pad: 40px;
  }
}

@media (min-width: 1640px) {
  :root {
    --content-pad: min(var(--content-pad-max), calc((100vw - var(--content-max)) / 2));
  }
}

@media (max-width: 900px) {
  .split,
  .split--reverse {
    flex-direction: column;
  }

  .split__panel,
  .split__side {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .split__side {
    padding-block: 16px;
  }

  .agents__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero__content {
    padding-top: 0;
  }

  .hero__fold-main {
    gap: 16px;
  }

  .hero__headline-core {
    gap: 20px;
  }

  .hero__title-group {
    gap: 12px;
  }

  .footer-cta {
    padding-bottom: clamp(80px, 20vw, 162px);
  }

  .footer-cta__inner {
    gap: 24px;
  }

  .legal {
    margin-top: 32px;
  }
}

@media (max-width: 560px) {
  .nav__inner {
    gap: 8px;
  }

  .nav__actions {
    gap: 8px;
  }

  .nav__brand-logo {
    height: 20px;
  }

  .btn-download--nav .btn-download__inner {
    padding: 6px 12px;
    font-size: 13px;
  }

  .hero__content {
    padding-top: 0;
  }

  .download-pair {
    grid-template-columns: 1fr;
    width: min(340px, 100%);
  }

  .btn-download--platform .btn-download__label,
  .btn-download--module .btn-download__label {
    font-size: 16px;
  }

  .hero__video {
    margin-top: 24px;
  }

  .hero__video-frame {
    --frame-radius: 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-gap: 48px;
    --section-head-gap: 24px;
  }
}

/* ── Onboarding modal ── */
.onboard-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.onboard-modal[hidden] {
  display: none;
}

.onboard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  border: none;
  cursor: pointer;
}

.onboard-modal__dialog {
  position: relative;
  width: min(700px, 100%);
  height: min(510px, calc(100vh - 48px));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background: #0a0b14;
}

.onboard-modal__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.onboard-modal__bg img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onboard-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
}

.onboard-step[hidden] {
  display: none;
}

.onboard-step--center {
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding-top: 48px;
}

.onboard-step__nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 24px;
  padding-block: 12px;
}

.onboard-step__progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.onboard-step__dot {
  display: block;
  width: 24px;
  height: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.onboard-step__dot--active {
  width: 48px;
  background: #fff;
}

.onboard-step__close {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.onboard-step__close:hover {
  opacity: 1;
}

.onboard-step__close--solo {
  position: absolute;
  top: 32px;
  right: 32px;
  transform: none;
}

.onboard-step__subtitle {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text-secondary);
  text-align: center;
}

.onboard-step__title {
  margin: 0 0 37px;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: var(--text-primary);
  text-align: center;
}

.onboard-step__title--loading {
  max-width: 536px;
  margin-bottom: 0;
}

.onboard-chips {
  display: grid;
  gap: 8px;
  margin-bottom: auto;
}

.onboard-chips--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.onboard-chips--wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.onboard-chip {
  min-width: 0;
  padding: 9px 16px;
  border: 1px solid var(--divider-2);
  border-radius: 6px;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.onboard-chips--4 .onboard-chip {
  text-align: center;
}

.onboard-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}

.onboard-chip.is-selected {
  background: rgba(255, 255, 255, 0.1);
}

.onboard-chips--wrap .onboard-chip.is-selected {
  border-color: #fff;
}

.onboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: auto;
}

.onboard-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--divider-1);
  border-radius: 6px;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.onboard-list__item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.onboard-list__item.is-selected {
  border-color: #fff;
}

.onboard-list__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.onboard-list__hint {
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.onboard-step__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.onboard-step__footer--single {
  justify-content: flex-end;
}

.onboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 44px;
  padding: 10px 20px;
  border: none;
  border-radius: 40px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.onboard-btn--primary {
  background: #fff;
  color: #000;
}

.onboard-btn--primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
}

.onboard-btn--primary:disabled {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
}

.onboard-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}

.onboard-btn--ghost:hover {
  color: var(--text-primary);
}

.onboard-btn--wide {
  min-width: 197px;
}

.onboard-complete__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.onboard-complete__icon {
  width: 80px;
  height: 80px;
  border: 1px solid var(--divider-1);
  border-radius: 20px;
  object-fit: cover;
}

.onboard-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboard-checklist__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: var(--text-primary);
}

.onboard-checklist__spinner {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #fff 0deg, rgba(255, 255, 255, 0.78) 78deg, rgba(255, 255, 255, 0.2) 205deg, rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  animation: onboard-spinner-rotate 0.8s linear infinite;
  will-change: transform;
}

.onboard-checklist__item.is-done .onboard-checklist__spinner {
  background: #00a36d;
  -webkit-mask: none;
  mask: none;
  animation: none;
  will-change: auto;
}

.onboard-checklist__item.is-done .onboard-checklist__spinner::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 7px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@keyframes onboard-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboard-checklist__spinner {
    animation: none;
    will-change: auto;
  }
}

.onboard-checklist__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.onboard-checklist__item.is-done .onboard-checklist__icon {
  opacity: 1;
}

.onboard-complete__retry {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  color: var(--text-secondary);
  text-align: center;
}

.onboard-complete__retry a {
  color: #8baeff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.onboard-complete__retry a:hover {
  color: #a8c2ff;
}

body.is-onboard-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .onboard-modal {
    padding: 16px;
  }

  .onboard-modal__dialog {
    height: auto;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    border-radius: 20px;
  }

  .onboard-step {
    padding: 20px 16px;
    min-height: 0;
  }

  .onboard-step__title {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 24px;
  }

  .onboard-step--center {
    gap: 32px;
    padding-top: 32px;
  }

  .onboard-chips--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .onboard-list__hint {
    white-space: normal;
    text-align: right;
  }

  .onboard-step__footer {
    flex-direction: column-reverse;
    align-items: stretch;
    flex-wrap: nowrap;
    margin-top: 24px;
  }

  .onboard-btn,
  .onboard-btn--wide {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .onboard-chips--4 {
    gap: 6px;
  }

  .onboard-chip {
    padding: 9px 10px;
    font-size: 13px;
  }
}

/* ── Invite rewards ── */
.invite-rewards {
  --invite-accent-blue: #6bb5fe;
  --invite-accent-gold: #fff0ad;
  --invite-code-card-bg: linear-gradient(97.6deg, #526d81 0%, #7096b1 100%);
  --invite-border: rgba(173, 233, 255, 0.3);
  width: 100%;
  max-width: 744px;
  padding: 20px;
  border: 1px solid var(--invite-border);
  border-radius: 24px;
  background: #000;
  text-align: left;
}

.invite-rewards[hidden] {
  display: none;
}

html.invite-rewards-pending .invite-rewards[hidden] {
  display: block !important;
}

.invite-rewards__skeleton {
  display: none;
}

.invite-rewards.is-loading .invite-rewards__skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invite-rewards.is-loading .invite-rewards__content {
  display: none;
}

.invite-rewards.is-ready .invite-rewards__skeleton {
  display: none;
}

.invite-rewards.is-ready .invite-rewards__content {
  display: block;
  animation: invite-rewards-content-in 0.32s ease both;
}

@keyframes invite-rewards-content-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes invite-rewards-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.invite-rewards__skeleton-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-rewards__skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invite-rewards__skeleton-code {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px;
  border: 1px solid var(--divider-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.invite-rewards__skeleton-code-copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.invite-rewards__skeleton-code-panel {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.invite-rewards__skeleton-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.invite-rewards__skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--divider-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.invite-rewards__skeleton-line,
.invite-rewards__skeleton-pill {
  display: block;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: invite-rewards-shimmer 1.4s ease-in-out infinite;
}

.invite-rewards__skeleton-line--xs {
  width: 72px;
  height: 12px;
}

.invite-rewards__skeleton-line--sm {
  width: 88px;
  height: 14px;
}

.invite-rewards__skeleton-line--md {
  width: 100%;
  max-width: 220px;
  height: 12px;
}

.invite-rewards__skeleton-line--lg {
  width: min(100%, 360px);
  height: 14px;
}

.invite-rewards__skeleton-line--code {
  width: 120px;
  height: 28px;
  border-radius: 10px;
}

.invite-rewards__skeleton-line--footnote {
  width: min(100%, 420px);
  height: 12px;
  margin: 0 auto;
}

.invite-rewards__skeleton-pill {
  width: 70px;
  height: 36px;
  border-radius: 40px;
  flex-shrink: 0;
}

.invite-rewards__skeleton-pill--btn {
  width: 154px;
  height: 36px;
  margin-top: 4px;
}

.invite-rewards__skeleton-pill--btn-lg {
  width: 212px;
  height: 40px;
  margin-top: 4px;
  border-radius: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .invite-rewards.is-ready .invite-rewards__content {
    animation: none;
  }

  .invite-rewards__skeleton-line,
  .invite-rewards__skeleton-pill {
    animation: none;
    background: rgba(255, 255, 255, 0.08);
  }

  .invite-rewards__bolt.is-bolt-hidden,
  .invite-rewards__bolt.is-bolt-reveal {
    animation: none;
  }
}

.invite-rewards__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px 12px;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: normal;
  color: var(--text-primary);
}

.invite-rewards__summary-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.invite-rewards__points {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 600;
  color: var(--invite-accent-blue);
}

.invite-rewards__bolt {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.invite-rewards__dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.invite-rewards__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.invite-rewards__footnote {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: normal;
  color: var(--text-tertiary);
}

.invite-rewards__code-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px;
  border: 1px solid var(--divider-2);
  border-radius: 16px;
  background: var(--invite-code-card-bg);
}

.invite-rewards__code-copy {
  flex: 1 1 0;
  min-width: 0;
}

.invite-rewards__code-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  color: var(--text-primary);
}

.invite-rewards__code-desc {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 14px;
  color: var(--text-secondary);
}

.invite-rewards__code-panel {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 16px;
}

.invite-rewards__code-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.invite-rewards__code-value {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  color: var(--text-primary);
  white-space: nowrap;
}

.invite-rewards__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.invite-rewards__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 16px 20px;
  border: 1px solid var(--divider-2);
  border-radius: 16px;
}

.invite-rewards__card-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invite-rewards__reward-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--invite-accent-gold);
}

.invite-rewards__reward-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 9.337px rgba(255, 231, 158, 0.3));
}

.invite-rewards__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.invite-rewards__card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  color: var(--text-primary);
}

.invite-rewards__card-points {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  color: var(--invite-accent-blue);
  white-space: nowrap;
}

.invite-rewards__card-points .invite-rewards__bolt {
  width: 20px;
  height: 20px;
  transform-origin: center center;
}

.invite-rewards__card-points .invite-rewards__bolt.is-bolt-hidden {
  opacity: 0;
  transform: scale(0.5);
}

.invite-rewards__card-points .invite-rewards__bolt.is-bolt-reveal {
  animation: invite-rewards-bolt-in 0.32s ease-out both;
}

@keyframes invite-rewards-bolt-in {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

[data-invite-count] {
  display: inline-block;
  min-width: 3.5ch;
  font-variant-numeric: tabular-nums;
}

.invite-rewards__card-points--extra {
  gap: 4px;
  font-weight: 400;
  color: var(--text-primary);
}

.invite-rewards__card-points--extra > span:last-child {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--invite-accent-blue);
}

.invite-rewards__extra {
  font-weight: 400;
  color: var(--text-primary);
}

.invite-rewards__card-desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: normal;
  color: var(--text-secondary);
}

.invite-rewards__card-desc p {
  margin: 0;
}

.invite-rewards__card-desc p + p {
  margin-top: 0;
}

.invite-rewards__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 6px 12px;
  border: 0;
  border-radius: 40px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.invite-rewards__btn:hover {
  opacity: 0.9;
}

.invite-rewards__btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.invite-rewards__btn.is-copied {
  background: #009b67;
  color: #fff;
  opacity: 1;
}

.invite-rewards__btn.is-copied:hover {
  opacity: 1;
}

a.invite-rewards__btn {
  text-decoration: none;
}

.invite-rewards__card > .invite-rewards__btn,
.invite-rewards__btn-wrap {
  align-self: flex-start;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.invite-rewards__btn-wrap {
  position: relative;
}

.invite-rewards__btn-wrap .hero-beta-badge {
  top: -10px;
  right: -24px;
}

.invite-rewards__btn--signup {
  min-width: 70px;
  width: 154px;
  height: 36px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 18px;
}

.invite-rewards__btn--download {
  min-width: 0;
  width: auto;
  height: 40px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  line-height: 18px;
  gap: 6px;
  justify-content: flex-start;
}

.invite-rewards__btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.invite-rewards__btn-arrow {
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex-shrink: 0;
  animation: btn-download-arrow-poke 1.2s ease-in-out infinite;
}

@keyframes btn-download-arrow-poke {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

.invite-rewards__code-panel .invite-rewards__btn[data-invite-copy] {
  min-width: 70px;
  height: 36px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 18px;
}

@media (max-width: 720px) {
  .invite-rewards__code-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .invite-rewards__code-copy,
  .invite-rewards__code-panel {
    flex: 0 0 auto;
    width: 100%;
  }

  .invite-rewards__cards {
    grid-template-columns: 1fr;
  }

  .invite-rewards__skeleton-code {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .invite-rewards__skeleton-code-copy,
  .invite-rewards__skeleton-code-panel {
    flex: 0 0 auto;
    width: 100%;
  }

  .invite-rewards__skeleton-code-panel {
    justify-content: space-between;
  }

  .invite-rewards__skeleton-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .invite-rewards__summary {
    font-size: 13px;
    gap: 4px 8px;
  }

  .invite-rewards__code-value {
    font-size: 28px;
    min-width: 0;
    flex: 0 1 auto;
  }

  .invite-rewards__code-panel .invite-rewards__btn[data-invite-copy] {
    min-width: 60px;
    height: 32px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 16px;
  }

  .invite-rewards__code-row {
    min-width: 0;
  }
}

/* ── Feedback button ── */
.btn-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-width: 80px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 40px;
  background: transparent;
  color: rgba(255, 240, 173, 0.8);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-feedback:hover,
.btn-feedback:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 240, 173, 0.96);
}

.btn-feedback:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

.btn-feedback.is-active {
  border-color: rgba(66, 176, 255, 0.72);
  color: #8fd1ff;
}

.btn-feedback__gift {
  width: 16px;
  height: 16px;
  object-fit: cover;
  object-position: bottom;
  flex-shrink: 0;
  filter: drop-shadow(0 0 9px rgba(255, 231, 158, 0.3));
}

/* ── Feedback modal ── */
.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.feedback-modal[hidden] {
  display: none;
}

.feedback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
}

.feedback-modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18, 19, 29, 0.98) 0%, rgba(7, 8, 13, 0.98) 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(66, 176, 255, 0.08);
}

.feedback-modal__content,
.feedback-success {
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 32px;
}

.feedback-success[hidden],
.feedback-modal__content[hidden] {
  display: none;
}

.feedback-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.feedback-modal__close:hover,
.feedback-modal__close:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.feedback-modal__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 40px;
}

.feedback-modal__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0;
}

.feedback-modal__desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.feedback-field__label {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.feedback-field__control {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.feedback-field__control::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.feedback-field__control:focus {
  border-color: rgba(66, 176, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.feedback-field__textarea {
  min-height: 116px;
  resize: vertical;
}

.feedback-field__hint {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 16px;
  text-align: right;
}

.feedback-topic__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.feedback-topic .feedback-field__label {
  display: block;
  margin-bottom: 8px;
}

.feedback-topic__option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.feedback-topic__option:hover,
.feedback-topic__option:has(input:checked) {
  border-color: rgba(66, 176, 255, 0.6);
  background: rgba(66, 176, 255, 0.1);
  color: var(--text-primary);
}

.feedback-topic__option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent-blue);
  flex-shrink: 0;
}

.feedback-form__message {
  min-height: 18px;
  margin: 0;
  color: #ffb4b4;
  font-size: 13px;
  line-height: 18px;
}

.feedback-form__message.is-success {
  color: #9ee6c1;
}

.feedback-form__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 2px;
}

.feedback-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 40px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.feedback-submit:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
}

.feedback-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.feedback-submit--secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.feedback-submit--secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.feedback-success {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(560px, 100%);
  margin: 0 auto;
}

.feedback-success .feedback-modal__desc {
  margin-top: 12px;
}

.feedback-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

body.is-feedback-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .feedback-modal {
    padding: 16px;
  }

  .feedback-modal__dialog {
    max-height: calc(100dvh - 32px);
    border-radius: 20px;
  }

  .feedback-modal__content,
  .feedback-success {
    max-height: calc(100dvh - 32px);
    padding: 24px 16px 18px;
  }

  .feedback-modal__close {
    top: 14px;
    right: 14px;
  }

  .feedback-modal__title {
    font-size: 22px;
    line-height: 28px;
  }

  .feedback-topic__grid {
    grid-template-columns: 1fr;
  }

  .feedback-form__footer,
  .feedback-success__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-submit {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .btn-feedback {
    height: 34px;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 20px;
  }
}

/* Collapse Feedback to an icon on phones to free space; Download is the primary
   CTA and keeps its full label. Placed after the base .btn-feedback rules so it
   wins on source order (equal specificity). */
@media (max-width: 560px) {
  .btn-feedback {
    gap: 0;
    width: 34px;
    min-width: 34px;
    padding: 0;
  }

  .btn-feedback__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .download-options--nav,
  .download-options--nav .download-options__trigger {
    width: auto;
  }

  .download-options--nav .download-options__trigger {
    height: 36px;
    font-size: 14px;
    line-height: 20px;
  }

  .download-options--nav .download-options__label-group,
  .download-options--nav .download-options__nav-label {
    width: auto;
  }

  .download-options--nav .download-options__chevron,
  .download-options--nav.is-open .download-options__chevron {
    width: 16px;
    height: 16px;
  }

  .download-options--nav .download-options__menu {
    right: 0;
    transform: none;
  }
}

/* Invite sign-up modal — iframe embed of the registration flow. */
.invite-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 0;
}

.invite-modal[hidden] {
  display: none;
}

.invite-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
}

.invite-modal__dialog {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg, rgba(18, 19, 29, 0.98) 0%, rgba(7, 8, 13, 0.98) 100%);
  box-shadow: none;
}

.invite-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.invite-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(10, 11, 16, 0.82);
  cursor: pointer;
  opacity: 0.92;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.invite-modal__close:hover,
.invite-modal__close:focus-visible {
  opacity: 1;
  background: rgba(10, 11, 16, 0.94);
}

body.is-invite-open {
  overflow: hidden;
}

.invite-alert {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 1200;
  transform: translate(-50%, -16px);
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border: 1px solid rgba(66, 176, 255, 0.28);
  border-radius: 12px;
  background: rgba(16, 22, 34, 0.96);
  color: #eaf2ff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.invite-alert.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 700px) {
  .invite-modal {
    padding: 0;
  }

  .invite-modal__dialog {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .invite-modal__close {
    top: 12px;
    right: 12px;
  }
}

/* Full-frame workflow demo: native 1794×1080 ratio. */
.split__panel[data-build-desk-video] { aspect-ratio: 1794 / 1080; }

/* Updated product screenshots: preserve the full supplied composition. */
.agent-card__preview,
.desk-carousel,
.signals-stack .split__panel--image {
  aspect-ratio: 1762 / 1080;
}
.agent-card__preview img,
.desk-carousel__image,
.signals-stack .split__panel-img {
  object-fit: contain;
}
