:root {
  color-scheme: light;
  --bg: #f4f5f6;
  --paper: rgba(255, 255, 255, 0.72);
  --paper-strong: rgba(255, 255, 255, 0.88);
  --ink: #111111;
  --ink-soft: #5c5f66;
  --ink-muted: #8c929b;
  --line: rgba(17, 17, 17, 0.1);
  --line-soft: rgba(255, 255, 255, 0.62);
  --shadow: 0 28px 90px rgba(17, 17, 17, 0.12);
  --display:
    "SF Pro Display",
    "SF Pro Text",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Helvetica Neue",
    Arial,
    sans-serif;
  --body:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    "Source Han Sans SC",
    "Helvetica Neue",
    Arial,
    sans-serif;
  --content: min(1200px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--body);
  background:
    linear-gradient(180deg, #fbfbfc 0%, #f1f3f5 52%, #eceff2 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, black 0%, black 74%, transparent 100%);
}

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.06);
  font-family: var(--display);
}

.scene-root,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene-root {
  z-index: 0;
}

#scene-canvas,
.scene-fade {
  position: absolute;
  inset: 0;
}

.scene-fade {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    radial-gradient(ellipse at center, transparent 42%, rgba(244, 245, 246, 0.68) 100%);
}

.noise {
  z-index: 1;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.8), transparent 1px),
    radial-gradient(circle at 72% 52%, rgba(17, 17, 17, 0.15), transparent 1px);
  background-size: 14px 14px, 19px 19px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: var(--content);
  min-height: 86px;
  transform: translateX(-50%);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 -24px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0));
  backdrop-filter: blur(18px);
  mask-image: linear-gradient(180deg, black 0%, black 72%, transparent 100%);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.12), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 30px rgba(17, 17, 17, 0.16);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0;
}

.brand-text small {
  color: var(--ink-muted);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar-nav {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.topbar-nav a,
.topbar-action {
  color: var(--ink-soft);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.topbar-nav a:hover,
.topbar-action:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.topbar-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: #ffffff;
  background: #111111;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 32px rgba(17, 17, 17, 0.16);
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.topbar-action:hover {
  color: #ffffff;
  background: #1a1a1a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 16px 36px rgba(17, 17, 17, 0.2);
}

main {
  position: relative;
  z-index: 2;
}

.stage-section {
  position: relative;
  min-height: 100vh;
  padding: 116px 0 72px;
  perspective: 1300px;
  transform-style: preserve-3d;
  scroll-margin-top: 90px;
}

.hero-section {
  padding-top: 136px;
}

.stage-section::after {
  content: attr(data-scene);
  position: absolute;
  right: calc((100% - min(1200px, 100% - 48px)) / 2);
  top: 104px;
  z-index: -1;
  color: rgba(17, 17, 17, 0.05);
  font-family: var(--display);
  font-size: 190px;
  font-weight: 700;
  line-height: 1;
}

.section-inner {
  width: var(--content);
  margin: 0 auto;
}

.hero-inner,
.creator-inner,
.launch-inner,
.finale-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  margin-bottom: 34px;
  text-align: center;
  text-wrap: balance;
}

.section-heading h2,
.finale-inner h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
}

.hero-claim {
  display: grid;
  gap: 14px;
  justify-items: center;
  width: min(1180px, 100%);
  margin: 0;
  font-family: var(--display);
  font-size: 112px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-claim span {
  display: block;
}

.hero-copy,
.section-heading p,
.finale-inner p {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.85;
}

.hero-copy {
  margin-top: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.button-primary {
  color: #ffffff;
  background: #111111;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.18);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 14px 32px rgba(17, 17, 17, 0.06);
}

.button:hover {
  transform: translateY(-2px);
}

.product-stage {
  position: relative;
  width: min(1040px, 100%);
  margin-top: 40px;
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    linear-gradient(120deg, rgba(17, 17, 17, 0.05), transparent 46%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform-style: preserve-3d;
  transform: translate3d(0, 42px, -280px) rotateX(14deg) scale(0.86);
}

.product-stage img {
  width: 100%;
  aspect-ratio: 2960 / 1600;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.1);
}

.agent-cinema {
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

.agent-sticky {
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.agent-layout {
  --agent-stage-overscan: clamp(36px, 5vw, 96px);
  --agent-card-width: min(1040px, calc(100vw - 280px));
  --agent-track-gap: clamp(24px, 2vw, 32px);
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: center;
  min-height: 100vh;
  padding: 98px 0 40px;
}

.section-heading {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2,
.finale-inner h2 {
  font-size: 64px;
  line-height: 1.12;
}

.section-heading h2 .nowrap {
  display: inline-block;
  white-space: nowrap;
}

.section-heading p .copy-line {
  display: block;
}

.compare-section .section-heading {
  max-width: 1180px;
}

.agent-layout .section-heading {
  width: min(1320px, calc(100% - 72px));
  max-width: none;
}

.agent-layout .section-heading h2 {
  line-height: 1.08;
}

.agent-stage {
  position: relative;
  width: calc(100% + var(--agent-stage-overscan) * 2);
  min-height: min(500px, calc(100vh - 350px));
  margin-top: 22px;
  margin-left: calc(-1 * var(--agent-stage-overscan));
  overflow: hidden;
  transform-style: preserve-3d;
}

.agent-meter {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(560px, 84%);
  height: 2px;
  background: rgba(17, 17, 17, 0.1);
  transform: translateX(-50%);
}

.agent-meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: #111111;
}

.agent-counter {
  position: absolute;
  top: 18px;
  left: 50%;
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--display);
  font-weight: 700;
  transform: translateX(-50%);
}

.agent-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--agent-track-gap);
  width: max-content;
  height: 100%;
  padding: 44px max(128px, calc((100% - var(--agent-card-width)) / 2 + var(--agent-stage-overscan))) 32px;
  transform-style: preserve-3d;
  will-change: transform;
}

.agent-slide {
  position: relative;
  flex: 0 0 var(--agent-card-width);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 10px;
  align-items: center;
  min-height: min(410px, calc(100vh - 420px));
  padding: 26px 28px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38)),
    linear-gradient(120deg, rgba(17, 17, 17, 0.05), transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transform-style: preserve-3d;
  overflow: hidden;
}

.agent-slide::before {
  content: attr(data-agent-title);
  position: absolute;
  left: 24px;
  right: 24px;
  top: 16px;
  color: rgba(17, 17, 17, 0.045);
  font-family: var(--display);
  font-size: 78px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}

.agent-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
  pointer-events: none;
}

.agent-slide > * {
  position: relative;
  z-index: 1;
}

.agent-portrait {
  grid-row: 1 / span 4;
  width: 170px;
  height: 170px;
  margin: 0;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 20px 46px rgba(17, 17, 17, 0.18);
}

.agent-slide h3 {
  grid-column: 2;
  margin: 0;
  font-family: var(--display);
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0;
}

.agent-tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.agent-tags span {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.08);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.agent-intro {
  grid-column: 2;
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.64;
}

.agent-scenes {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 4px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.agent-scenes li {
  min-height: 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.48;
}

.compare-wrap {
  margin-top: 38px;
  overflow-x: auto;
  transform-style: preserve-3d;
}

.compare-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.compare-table tr,
.creator-ladder article,
.download-card,
.register-panel label,
.register-panel button,
.register-feedback,
.finale-inner > * {
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.compare-table th {
  padding: 0 18px 10px;
  color: var(--ink-muted);
  font-family: var(--display);
  font-size: 14px;
  text-align: left;
}

.compare-table td {
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  backdrop-filter: blur(16px);
}

.compare-table tbody tr td:first-child {
  width: 18%;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  color: var(--ink);
  font-weight: 800;
}

.compare-table tbody tr td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.82);
}

.creator-ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 42px;
}

.creator-section .section-heading {
  max-width: 1120px;
}

.launch-section .section-heading {
  max-width: 1280px;
}

.creator-ladder article,
.download-card,
.register-panel {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36)),
    linear-gradient(120deg, rgba(17, 17, 17, 0.05), transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.creator-ladder article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 244px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.creator-ladder article::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.08), transparent 64%),
    rgba(255, 255, 255, 0.38);
  transform: rotate(18deg);
}

.creator-ladder span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink-muted);
  font-family: var(--display);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
}

.creator-ladder h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.creator-ladder p {
  position: relative;
  z-index: 1;
  max-width: 92%;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.72;
}

.creator-inner > .button {
  margin-top: 30px;
}

.launch-section {
  min-height: 100vh;
}

.launch-inner {
  gap: 28px;
}

.launch-inner > .section-heading {
  order: 1;
}

.register-panel {
  order: 3;
  width: 100%;
  padding: 20px;
}

.register-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.register-head p,
.register-head span {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
}

.register-head span {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
}

.register-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.register-form label {
  display: grid;
  gap: 8px;
  text-align: left;
}

.register-form label span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.register-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.register-form input:focus {
  box-shadow:
    inset 0 0 0 1px rgba(17, 17, 17, 0.16),
    0 10px 28px rgba(17, 17, 17, 0.06);
}

.register-code-row {
  position: relative;
}

.register-code-row input {
  min-width: 0;
  padding-right: 126px;
}

.register-sms-button {
  position: absolute;
  top: 1px;
  bottom: 1px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0 0 0 14px;
  background: transparent;
  color: rgba(17, 17, 17, 0.56);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.register-sms-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  background: rgba(17, 17, 17, 0.14);
  transform: translateY(-50%);
}

.register-sms-button:hover:not(:disabled) {
  color: rgba(17, 17, 17, 0.82);
}

.register-sms-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.register-feedback,
.register-success p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.register-feedback.is-error {
  color: #914545;
}

.register-feedback.is-success {
  color: #2e6b45;
}

.register-success {
  margin-top: 14px;
}

.register-success strong {
  font-family: var(--display);
  font-size: 22px;
}

.download-grid {
  order: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  scroll-margin-top: 112px;
}

.download-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 264px;
  padding: 30px 24px;
  color: var(--ink);
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.download-card:hover {
  transform: translateY(-3px);
}

.download-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.download-card strong {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.download-card small {
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.download-card b {
  width: fit-content;
  min-height: 42px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-size: 15px;
}

.finale-section {
  min-height: 86vh;
}

.finale-section::after {
  top: 50%;
  transform: translateY(-66%);
}

.finale-inner {
  min-height: calc(86vh - 160px);
  align-content: center;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 0 0 34px;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.site-footer-brand {
  display: grid;
  gap: 6px;
}

.site-footer-brand strong {
  font-family: var(--display);
  font-size: 18px;
}

.site-footer-brand span,
.site-footer-meta {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer-meta a,
.legal-link {
  padding: 0;
  color: var(--ink-soft);
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 17, 0.22);
  text-underline-offset: 4px;
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.site-footer-meta a:hover,
.legal-link:hover {
  color: var(--ink);
  text-decoration-color: rgba(17, 17, 17, 0.5);
}

.record-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.record-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: 0.72;
}

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

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(244, 245, 246, 0.72), rgba(236, 239, 242, 0.82)),
    rgba(17, 17, 17, 0.18);
  backdrop-filter: blur(18px);
  cursor: default;
}

.legal-modal-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(860px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    0 34px 110px rgba(17, 17, 17, 0.2);
}

.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.legal-modal-head p {
  margin: 0 0 4px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-modal-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.2;
}

.legal-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--ink-soft);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.legal-modal-close:hover {
  background: rgba(17, 17, 17, 0.1);
  color: var(--ink);
}

.legal-modal-body {
  min-height: 0;
  padding: 4px 24px 28px;
  overflow: auto;
}

.legal-document {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.legal-document h3 {
  margin: 26px 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.45;
}

.legal-document p {
  margin: 10px 0;
}

body.legal-open {
  overflow: hidden;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.92);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.22);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

body.invite-priority .register-panel {
  box-shadow:
    0 0 0 1px rgba(17, 17, 17, 0.1),
    0 28px 90px rgba(17, 17, 17, 0.15);
}

@media (max-width: 1120px) {
  .agent-layout {
    --agent-stage-overscan: clamp(20px, 3vw, 40px);
    --agent-card-width: min(760px, calc(100vw - 96px));
    --agent-track-gap: 24px;
  }

  .topbar {
    grid-template-columns: auto auto;
  }

  .topbar-nav {
    display: none;
  }

  .hero-claim {
    font-size: 82px;
  }

  .agent-slide {
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: min(430px, calc(100vh - 390px));
  }

  .agent-portrait {
    width: 150px;
    height: 150px;
  }

  .agent-scenes,
  .creator-ladder,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .register-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .register-form .button {
    width: 100%;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .agent-layout {
    --agent-stage-overscan: 0px;
    --agent-card-width: calc(100vw - 28px);
    --agent-track-gap: 16px;
  }

  :root {
    --content: min(100% - 28px, 1200px);
  }

  .topbar {
    min-height: 76px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text small,
  .topbar-action {
    display: none;
  }

  .stage-section {
    padding-top: 92px;
    padding-bottom: 56px;
  }

  .stage-section::after {
    top: 82px;
    font-size: 92px;
  }

  .hero-claim {
    font-size: 42px;
    line-height: 1.14;
  }

  .hero-copy,
  .section-heading p,
  .finale-inner p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-heading h2,
  .finale-inner h2 {
    font-size: 38px;
  }

  .section-heading h2 .nowrap {
    display: inline;
    white-space: normal;
  }

  .agent-layout .section-heading h2 {
    font-size: 34px;
  }

  .agent-layout .section-heading p {
    display: none;
  }

  .agent-layout {
    padding: 92px 0 24px;
  }

  .agent-stage {
    min-height: 710px;
    margin-top: 20px;
    width: 100%;
    margin-left: 0;
  }

  .agent-track {
    padding: 32px 14px 26px;
  }

  .agent-slide {
    display: block;
    min-height: 620px;
    padding: 18px;
  }

  .agent-slide::before {
    font-size: 44px;
  }

  .agent-portrait {
    width: 112px;
    height: 112px;
    margin: 0 auto 18px;
  }

  .agent-slide h3 {
    text-align: center;
    font-size: 30px;
  }

  .agent-tags {
    justify-content: center;
  }

  .agent-intro {
    max-width: none;
    margin: 14px auto 0;
    font-size: 14px;
    text-align: center;
  }

  .agent-scenes,
  .creator-ladder,
  .download-grid,
  .register-form {
    grid-template-columns: 1fr;
  }

  .creator-ladder article,
  .download-card {
    min-height: 180px;
  }

  .download-card {
    min-height: 220px;
  }

  .download-icon {
    width: 54px;
    height: 54px;
  }

  .register-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding-bottom: 24px;
  }

  .site-footer-brand strong {
    font-size: 16px;
  }

  .site-footer-brand span,
  .site-footer-meta {
    font-size: 13px;
  }

  .legal-modal {
    padding: 14px;
  }

  .legal-modal-panel {
    width: 100%;
    max-height: 86vh;
  }

  .legal-modal-head {
    padding: 18px 18px 14px;
  }

  .legal-modal-head h2 {
    font-size: 22px;
  }

  .legal-modal-body {
    padding: 2px 18px 22px;
  }

  .legal-document {
    font-size: 14px;
    line-height: 1.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
