:root {
  --mf-primary: #705fff;
  --mf-primary-soft: #8b7cff;
  --mf-bg: #2b2b32;
  --mf-bg-deep: #202027;
  --mf-panel: #32323b;
  --mf-panel-2: #393943;
  --mf-line: rgba(255, 255, 255, 0.1);
  --mf-text: #f8f7ff;
  --mf-muted: #aaa8b8;
  --mf-white: #ffffff;
  --mf-shell: 1180px;
  --mf-radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--mf-text);
  background: var(--mf-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

figure {
  margin: 0;
}

.mf-shell {
  width: min(calc(100% - 40px), var(--mf-shell));
  margin-inline: auto;
}

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

:focus-visible {
  outline: 3px solid rgba(139, 124, 255, 0.7);
  outline-offset: 3px;
}

.mf-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(43, 43, 50, 0.75);
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.mf-header.is-scrolled {
  border-bottom-color: var(--mf-line);
  background: rgba(43, 43, 50, 0.94);
}

.mf-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.mf-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mf-brand img {
  width: 38px;
  height: 38px;
}

.mf-brand > span {
  font-size: 20px;
  font-weight: 760;
  line-height: 1;
}

.mf-brand small {
  color: var(--mf-primary-soft);
  font-size: 11px;
  font-weight: 800;
  vertical-align: super;
}

.mf-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mf-nav a,
.mf-nav button {
  padding: 8px 12px;
  border: 0;
  color: #c9c7d4;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mf-nav a:hover,
.mf-nav button:hover {
  color: #fff;
}

.mf-header-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mf-header-download:hover {
  border-color: var(--mf-primary-soft);
  background: var(--mf-primary);
}

.mf-menu-btn,
.mf-mobile-menu {
  display: none;
}

.mf-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 148px 0 58px;
  background:
    radial-gradient(circle at 50% 20%, rgba(112, 95, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #292930 0%, var(--mf-bg) 100%);
}

.mf-glow {
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
}

.mf-glow-one {
  top: 230px;
  left: calc(50% - 720px);
  background: #705fff;
}

.mf-glow-two {
  right: calc(50% - 690px);
  bottom: 20px;
  background: #d55fff;
}

.mf-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.mf-eyebrow,
.mf-kicker {
  margin: 0 0 14px;
  color: #a99fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mf-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mf-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mf-primary);
  box-shadow: 0 0 0 5px rgba(112, 95, 255, 0.14);
}

.mf-hero h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 90px);
  line-height: 0.95;
  font-weight: 800;
}

.mf-hero-slogan {
  margin: 19px 0 0;
  color: #d4d2df;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 520;
}

.mf-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.mf-button-primary {
  background: var(--mf-primary);
  box-shadow: 0 6px 18px rgba(112, 95, 255, 0.24);
}

.mf-button-primary:hover {
  background: #7d6cff;
}

.mf-button-ghost {
  border-color: var(--mf-line);
  background: rgba(255, 255, 255, 0.045);
}

.mf-button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.mf-chat-stage {
  display: grid;
  grid-template-columns: 210px minmax(420px, 1fr) 252px;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #27272e;
  box-shadow: 0 10px 28px rgba(15, 15, 20, 0.24);
}

.mf-role-rail {
  padding: 21px 15px;
  border-right: 1px solid var(--mf-line);
  background: #2e2e36;
}

.mf-rail-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 15px;
  color: #aaa8b8;
  font-size: 12px;
  font-weight: 800;
}

.mf-rail-label b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 20px;
  border-radius: 999px;
  color: #bbb4ff;
  background: rgba(112, 95, 255, 0.14);
  font-size: 11px;
}

.mf-role-switch {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 6px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mf-role-switch + .mf-role-switch {
  margin-top: 5px;
}

.mf-role-switch:hover,
.mf-role-switch.is-active {
  background: rgba(255, 255, 255, 0.065);
}

.mf-role-switch.is-active {
  box-shadow: inset 2px 0 0 var(--mf-primary);
}

.mf-role-switch img {
  width: 42px;
  height: 50px;
  border-radius: 9px;
  object-fit: cover;
  object-position: 50% 20%;
}

.mf-role-switch span {
  min-width: 0;
}

.mf-role-switch b,
.mf-role-switch small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-role-switch b {
  color: #f5f4fb;
  font-size: 14px;
}

.mf-role-switch small {
  margin-top: 2px;
  color: #8f8d9c;
  font-size: 11px;
}

.mf-role-switch > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5d5c66;
}

.mf-role-switch.is-active > i {
  background: #63d6a4;
  box-shadow: 0 0 0 4px rgba(99, 214, 164, 0.1);
}

.mf-chat-window {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  min-width: 0;
  background: #2b2b32;
}

.mf-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--mf-line);
}

.mf-chat-person {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mf-chat-person img {
  width: 42px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 20%;
}

.mf-chat-person strong,
.mf-chat-person span {
  display: block;
}

.mf-chat-person strong {
  font-size: 15px;
}

.mf-chat-person span {
  margin-top: 1px;
  color: #9795a5;
  font-size: 11px;
}

.mf-chat-person span i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #63d6a4;
  vertical-align: middle;
}

.mf-chat-head > button,
.mf-composer > button {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mf-chat-head > button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #9d9ba9;
  font-size: 20px;
}

.mf-chat-head > button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mf-chat-date {
  padding: 18px 0 6px;
  color: #777582;
  font-size: 10px;
  text-align: center;
}

.mf-chat-date span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.mf-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  max-height: 360px;
  padding: 10px 22px 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #52515d transparent;
}

.mf-message {
  width: fit-content;
  max-width: 82%;
  padding: 10px 12px 7px;
  border: 1px solid var(--mf-line);
  border-radius: 8px 16px 16px 16px;
  background: #3a3a44;
  animation: mf-message-in 0.26s ease both;
}

.mf-message p {
  margin: 0;
  color: #eeecf5;
  font-size: 13px;
  line-height: 1.65;
}

.mf-message time {
  display: block;
  margin-top: 3px;
  color: #7f7c8b;
  font-size: 9px;
  text-align: right;
}

.mf-message-user {
  align-self: flex-end;
  border-color: rgba(139, 124, 255, 0.28);
  border-radius: 16px 8px 16px 16px;
  background: rgba(112, 95, 255, 0.28);
}

.mf-memory-note {
  align-self: center;
  padding: 4px 10px;
  border: 1px solid rgba(139, 124, 255, 0.16);
  border-radius: 999px;
  color: #938ba9;
  background: rgba(112, 95, 255, 0.06);
  font-size: 9px;
}

.mf-memory-note i {
  margin-right: 4px;
}

.mf-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-width: 52px;
  min-height: 35px;
}

.mf-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #aaa8b8;
  animation: mf-dot 1s infinite ease-in-out;
}

.mf-typing i:nth-child(2) {
  animation-delay: 0.14s;
}

.mf-typing i:nth-child(3) {
  animation-delay: 0.28s;
}

.mf-quick-replies {
  display: flex;
  gap: 7px;
  padding: 0 20px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mf-quick-replies::-webkit-scrollbar {
  display: none;
}

.mf-quick-replies button {
  flex: none;
  padding: 6px 10px;
  border: 1px solid rgba(139, 124, 255, 0.32);
  border-radius: 999px;
  color: #c9c4ff;
  background: rgba(112, 95, 255, 0.08);
  font-size: 10px;
  cursor: pointer;
}

.mf-quick-replies button:hover {
  background: rgba(112, 95, 255, 0.18);
}

.mf-composer {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 7px;
  margin: 0 18px 18px;
  padding: 7px;
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  background: #35353e;
}

.mf-composer > button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #8f8d9d;
  font-size: 19px;
}

.mf-composer input {
  min-width: 0;
  padding: 0 4px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 12px;
}

.mf-composer input::placeholder {
  color: #858391;
}

.mf-composer .mf-send {
  color: #fff;
  background: var(--mf-primary);
}

.mf-story-panel {
  border-left: 1px solid var(--mf-line);
  background: #303038;
}

.mf-story-cover {
  position: relative;
  height: 312px;
  overflow: hidden;
}

.mf-story-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: opacity 0.2s ease;
}

.mf-story-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(34, 34, 40, 0.96) 100%);
}

.mf-story-title {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
}

.mf-story-title span {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mf-primary);
  font-size: 9px;
  font-weight: 800;
}

.mf-story-title strong {
  display: block;
  font-size: 20px;
}

.mf-story-content {
  padding: 18px;
}

.mf-story-kicker {
  margin: 0 0 15px;
  color: #b1afbd;
  font-size: 10px;
  font-weight: 750;
}

.mf-story-kicker i {
  margin-right: 6px;
  color: var(--mf-primary-soft);
}

.mf-story-content ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mf-story-content li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 35px;
  color: #777582;
  font-size: 11px;
}

.mf-story-content li:not(:last-child)::after {
  position: absolute;
  top: 23px;
  left: 4px;
  width: 1px;
  height: 16px;
  background: #4a4953;
  content: "";
}

.mf-story-content li > span {
  width: 9px;
  height: 9px;
  border: 2px solid #5b5965;
  border-radius: 50%;
}

.mf-story-content li.is-done {
  color: #9c99a9;
}

.mf-story-content li.is-done > span {
  border-color: #6659d7;
  background: #6659d7;
}

.mf-story-content li.is-current {
  color: #fff;
}

.mf-story-content li.is-current > span {
  border-color: #9f94ff;
  box-shadow: 0 0 0 4px rgba(112, 95, 255, 0.15);
}

.mf-story-memory {
  display: flex;
  gap: 10px;
  margin-top: 17px;
  padding: 12px;
  border: 1px solid rgba(139, 124, 255, 0.16);
  border-radius: 12px;
  background: rgba(112, 95, 255, 0.07);
}

.mf-story-memory > i {
  color: #a99fff;
  font-size: 18px;
}

.mf-story-memory b,
.mf-story-memory small {
  display: block;
}

.mf-story-memory b {
  font-size: 11px;
}

.mf-story-memory small {
  margin-top: 2px;
  color: #888593;
  font-size: 9px;
  line-height: 1.5;
}

.mf-hero-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--mf-line);
}

.mf-hero-foot div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 74px;
  color: #aaa8b6;
  font-size: 12px;
}

.mf-hero-foot div + div {
  border-left: 1px solid var(--mf-line);
}

.mf-hero-foot i {
  color: #9d92ff;
  font-size: 17px;
}

.mf-section {
  padding: 104px 0;
}

.mf-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 50px;
  margin-bottom: 38px;
}

.mf-section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.18;
}

.mf-section-head > p {
  margin: 0;
  color: var(--mf-muted);
  font-size: 14px;
}

.mf-characters {
  background: #26262d;
}

.mf-character-track {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 0.96fr);
  gap: 10px;
}

.mf-character-card {
  position: relative;
  min-width: 0;
  height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #313139;
}

.mf-character-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(0.8) brightness(0.92);
  transition: transform 0.5s ease, filter 0.3s ease;
}

.mf-character-card:hover > img {
  transform: scale(1.025);
  filter: saturate(1) brightness(1);
}

.mf-character-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 25, 0.05) 25%, rgba(20, 20, 25, 0.95) 94%);
}

.mf-character-copy {
  position: absolute;
  inset: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.mf-number {
  position: absolute;
  top: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
}

.mf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 9px;
}

.mf-tags span {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(25, 25, 30, 0.45);
  font-size: 9px;
  backdrop-filter: blur(6px);
}

.mf-character-copy h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
}

.mf-character-copy p {
  display: -webkit-box;
  margin: 8px 0 13px;
  overflow: hidden;
  color: #c4c2cd;
  font-size: 11px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mf-character-copy button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.mf-character-copy button i {
  color: #a99fff;
  font-size: 14px;
}

.mf-memory {
  background: var(--mf-bg);
}

.mf-memory-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 90px;
}

.mf-memory-copy .mf-lead {
  margin: 24px 0 32px;
  color: var(--mf-muted);
  font-size: 15px;
}

.mf-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mf-feature-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  padding: 17px 0;
  border-top: 1px solid var(--mf-line);
}

.mf-feature-list li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #b3aaff;
  background: rgba(112, 95, 255, 0.1);
  font-size: 18px;
}

.mf-feature-list b {
  font-size: 14px;
}

.mf-feature-list p {
  margin: 3px 0 0;
  color: #9694a2;
  font-size: 12px;
}

.mf-memory-visual {
  position: relative;
  padding: 46px;
  border: 1px solid var(--mf-line);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #27272e;
  background-size: 28px 28px;
}

.mf-memory-visual::before {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #63d6a4;
  box-shadow: 0 0 0 6px rgba(99, 214, 164, 0.1);
  content: "";
}

.mf-memory-thread {
  max-width: 82%;
  padding: 16px 18px;
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  background: #34343d;
}

.mf-memory-thread span {
  color: #898795;
  font-size: 10px;
  font-weight: 700;
}

.mf-memory-thread p {
  margin: 7px 0 0;
  font-size: 14px;
}

.mf-memory-thread.is-latest {
  max-width: 90%;
  margin-left: auto;
  border-color: rgba(139, 124, 255, 0.32);
  background: rgba(112, 95, 255, 0.13);
}

.mf-memory-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 60px;
  color: #837e9a;
  font-size: 10px;
}

.mf-memory-link i {
  color: #968aff;
}

.mf-context-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 16px;
}

.mf-context-tags span {
  padding: 5px 9px;
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  color: #aaa7b6;
  background: #2f2f37;
  font-size: 9px;
}

.mf-context-tags i {
  margin-right: 4px;
  color: #9f94ff;
}

.mf-builder {
  padding-top: 0;
}

.mf-builder-frame {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  overflow: hidden;
  border: 1px solid rgba(139, 124, 255, 0.24);
  border-radius: 22px;
  background: #292930;
}

.mf-builder-intro {
  position: relative;
  padding: 52px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.13), transparent 34%),
    var(--mf-primary);
}

.mf-builder-intro .mf-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.mf-builder-intro h2 {
  max-width: 390px;
}

.mf-builder-intro > p:not(.mf-kicker) {
  max-width: 390px;
  margin: 20px 0 44px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.mf-builder-count {
  display: flex;
  align-items: center;
  gap: 13px;
}

.mf-builder-count strong {
  font-size: 46px;
  line-height: 1;
}

.mf-builder-count span {
  padding-left: 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  line-height: 1.5;
}

.mf-builder-form {
  padding: 30px 42px;
}

.mf-form-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  border-bottom: 1px solid var(--mf-line);
}

.mf-form-row > span {
  color: #7f7c8a;
  font-size: 10px;
  font-weight: 800;
}

.mf-form-row small,
.mf-form-row b {
  display: block;
}

.mf-form-row small {
  color: #8f8d9b;
  font-size: 10px;
}

.mf-form-row b {
  margin-top: 4px;
  font-size: 14px;
}

.mf-form-row > i {
  color: #777582;
}

.mf-builder-form > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: #b7afff;
  font-size: 13px;
  font-weight: 750;
}

.mf-scenarios {
  background: #26262d;
}

.mf-scenario-lines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--mf-line);
  border-bottom: 1px solid var(--mf-line);
}

.mf-scenario-lines article {
  position: relative;
  min-height: 260px;
  padding: 25px 25px 30px;
  transition: background-color 0.2s ease;
}

.mf-scenario-lines article + article {
  border-left: 1px solid var(--mf-line);
}

.mf-scenario-lines article:hover {
  background: rgba(112, 95, 255, 0.065);
}

.mf-scenario-lines span {
  color: #7c7989;
  font-size: 9px;
  font-weight: 800;
}

.mf-scenario-lines i {
  display: block;
  margin: 44px 0 23px;
  color: #a89eff;
  font-size: 27px;
}

.mf-scenario-lines h3 {
  margin: 0;
  font-size: 18px;
}

.mf-scenario-lines p {
  margin: 10px 0 0;
  color: #9895a5;
  font-size: 12px;
}

.mf-screens {
  overflow: hidden;
  background: #303038;
}

.mf-screens-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 60px;
}

.mf-screens-copy {
  position: sticky;
  top: 116px;
}

.mf-screens-copy > p:not(.mf-kicker) {
  margin: 20px 0 0;
  color: var(--mf-muted);
  font-size: 13px;
}

.mf-screen-controls {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 29px;
}

.mf-screen-controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--mf-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.mf-screen-controls button:hover {
  border-color: rgba(139, 124, 255, 0.5);
}

.mf-screen-controls span {
  color: #777582;
  font-size: 10px;
}

.mf-screen-controls b {
  color: #fff;
  font-size: 14px;
}

.mf-screen-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mf-app-screen {
  min-width: 0;
}

.mf-app-screen img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #27272e;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(10, 10, 14, 0.2);
}

.mf-app-screen:nth-child(2) {
  padding-top: 46px;
}

.mf-app-screen figcaption {
  margin-top: 11px;
  color: #878593;
  font-size: 10px;
  text-align: center;
}

.mf-download {
  padding: 74px 0;
  background: #26262d;
}

.mf-download-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.95fr;
  align-items: center;
  gap: 35px;
  padding: 30px 34px;
  border: 1px solid var(--mf-line);
  border-radius: 18px;
  background: #303038;
}

.mf-download-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mf-download-brand > img {
  width: 54px;
  height: 54px;
}

.mf-download-brand .mf-kicker {
  margin-bottom: 3px;
  font-size: 9px;
}

.mf-download-brand h2 {
  font-size: 24px;
}

.mf-release-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-right: 1px solid var(--mf-line);
  border-left: 1px solid var(--mf-line);
}

.mf-release-meta div {
  padding: 3px 16px;
}

.mf-release-meta div + div {
  border-left: 1px solid var(--mf-line);
}

.mf-release-meta dt {
  color: #858391;
  font-size: 9px;
}

.mf-release-meta dd {
  margin: 3px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.mf-download-action {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}

.mf-download-action p {
  margin: 0;
  color: #898795;
  font-size: 10px;
}

.mf-download-action .mf-button {
  min-height: 46px;
  padding: 0 16px;
  white-space: nowrap;
  font-size: 12px;
}

.mf-reviews {
  background: var(--mf-bg);
}

.mf-review-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mf-review {
  padding: 22px;
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  background: #303038;
}

.mf-review-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mf-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  color: #2e261b;
  background: #f1cb7a;
  font-size: 12px;
  font-weight: 800;
}

.mf-avatar.is-blue { color: #182b42; background: #8dc9ff; }
.mf-avatar.is-pink { color: #48202f; background: #f2a5bd; }
.mf-avatar.is-green { color: #18372a; background: #7fdaa9; }
.mf-avatar.is-orange { color: #432717; background: #efa575; }
.mf-avatar.is-purple { color: #292046; background: #b9a6ff; }

.mf-review-name,
.mf-review time {
  display: block;
}

.mf-review-name {
  font-size: 12px;
  font-weight: 750;
}

.mf-review time {
  margin-top: 1px;
  color: #777582;
  font-size: 9px;
}

.mf-review > p {
  margin: 17px 0 0;
  color: #bbb8c5;
  font-size: 12px;
  line-height: 1.8;
}

.mf-faq {
  background: #26262d;
}

.mf-faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 95px;
}

.mf-faq-title {
  position: sticky;
  top: 116px;
}

.mf-faq-title > p:not(.mf-kicker) {
  margin: 18px 0 25px;
  color: var(--mf-muted);
  font-size: 13px;
}

.mf-faq-title > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b1a7ff;
  font-size: 13px;
  font-weight: 750;
}

.mf-faq-list {
  border-top: 1px solid var(--mf-line);
}

.mf-faq-list details {
  border-bottom: 1px solid var(--mf-line);
}

.mf-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 73px;
  padding: 0 3px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.mf-faq-list summary::-webkit-details-marker {
  display: none;
}

.mf-faq-list summary i {
  color: #9692aa;
  font-size: 20px;
  transition: transform 0.2s ease;
}

.mf-faq-list details[open] summary i {
  transform: rotate(45deg);
}

.mf-faq-list details p {
  max-width: 660px;
  margin: -5px 0 24px;
  padding-right: 45px;
  color: #9c99a8;
  font-size: 12px;
}

.mf-final {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.18), transparent 30%),
    var(--mf-primary);
}

.mf-final::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, #000, transparent 38%, transparent 62%, #000);
  content: "";
}

.mf-final-avatar {
  position: absolute;
  bottom: -100px;
  width: 330px;
  height: 560px;
  opacity: 0.34;
  filter: grayscale(0.15);
}

.mf-final-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.mf-final-left {
  left: max(0px, calc(50% - 690px));
  transform: rotate(6deg);
}

.mf-final-right {
  right: max(0px, calc(50% - 690px));
  transform: rotate(-6deg);
}

.mf-final-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 530px;
  text-align: center;
}

.mf-final-content > img {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 17px;
  box-shadow: 0 5px 16px rgba(36, 25, 104, 0.22);
}

.mf-final-content > p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.mf-final-content h2 {
  max-width: 660px;
  margin: 0 0 28px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.2;
}

.mf-button-light {
  color: #3d337e;
  background: #fff;
  box-shadow: 0 7px 18px rgba(36, 25, 104, 0.2);
}

.mf-final-content small {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.mf-footer {
  padding: 27px 0;
  background: #1f1f25;
}

.mf-footer .mf-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mf-footer .mf-brand img {
  width: 32px;
  height: 32px;
}

.mf-footer p {
  margin: 0;
  color: #777582;
  font-size: 10px;
}

.mf-mobile-download {
  display: none;
}

@keyframes mf-message-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mf-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 1080px) {
  .mf-chat-stage {
    grid-template-columns: 190px minmax(390px, 1fr) 220px;
  }

  .mf-character-track {
    grid-template-columns: repeat(5, 230px);
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .mf-character-card {
    scroll-snap-align: start;
  }

  .mf-download-panel {
    grid-template-columns: 1fr 1.2fr;
  }

  .mf-download-action {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--mf-line);
  }
}

@media (max-width: 900px) {
  .mf-nav,
  .mf-header-download {
    display: none;
  }

  .mf-menu-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--mf-line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 20px;
    cursor: pointer;
  }

  .mf-mobile-menu {
    position: fixed;
    inset: 74px 0 auto;
    display: grid;
    gap: 4px;
    padding: 14px 20px 24px;
    border-bottom: 1px solid var(--mf-line);
    background: rgba(37, 37, 44, 0.98);
  }

  .mf-mobile-menu[hidden] {
    display: none;
  }

  .mf-mobile-menu a,
  .mf-mobile-menu button {
    width: 100%;
    padding: 12px 10px;
    border: 0;
    color: #dedce7;
    background: transparent;
    text-align: left;
    cursor: pointer;
  }

  .mf-hero-copy {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .mf-hero-actions {
    justify-content: flex-start;
  }

  .mf-chat-stage {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .mf-story-panel {
    display: none;
  }

  .mf-role-switch {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .mf-role-switch > i {
    display: none;
  }

  .mf-role-switch small {
    display: none;
  }

  .mf-section-head,
  .mf-memory-layout,
  .mf-faq-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .mf-memory-layout {
    gap: 50px;
  }

  .mf-builder-frame {
    grid-template-columns: 1fr;
  }

  .mf-builder-intro {
    padding: 42px;
  }

  .mf-scenario-lines {
    grid-template-columns: repeat(2, 1fr);
  }

  .mf-scenario-lines article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--mf-line);
  }

  .mf-scenario-lines article:nth-child(4) {
    border-top: 1px solid var(--mf-line);
  }

  .mf-screens-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .mf-screens-copy,
  .mf-faq-title {
    position: static;
  }

  .mf-review-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mf-final-avatar {
    width: 270px;
    opacity: 0.22;
  }
}

@media (max-width: 640px) {
  html {
    scroll-behavior: auto;
  }

  body {
    padding-bottom: 72px;
  }

  .mf-shell {
    width: min(calc(100% - 28px), var(--mf-shell));
  }

  .mf-nav-wrap {
    min-height: 66px;
  }

  .mf-mobile-menu {
    inset-block-start: 66px;
  }

  .mf-hero {
    padding: 112px 0 36px;
  }

  .mf-eyebrow {
    font-size: 10px;
  }

  .mf-hero h1 {
    font-size: 54px;
  }

  .mf-hero-slogan {
    margin-top: 14px;
    font-size: 17px;
  }

  .mf-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mf-button {
    min-height: 48px;
    padding: 0 15px;
    font-size: 13px;
  }

  .mf-chat-stage {
    display: block;
    min-height: 0;
    border-radius: 18px;
  }

  .mf-role-rail {
    display: flex;
    gap: 8px;
    padding: 11px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--mf-line);
    scrollbar-width: none;
  }

  .mf-role-rail::-webkit-scrollbar {
    display: none;
  }

  .mf-rail-label {
    display: none;
  }

  .mf-role-switch {
    display: flex;
    width: auto;
    min-width: 104px;
    padding: 7px;
    flex: none;
  }

  .mf-role-switch + .mf-role-switch {
    margin-top: 0;
  }

  .mf-role-switch.is-active {
    box-shadow: inset 0 -2px 0 var(--mf-primary);
  }

  .mf-role-switch img {
    width: 34px;
    height: 40px;
  }

  .mf-role-switch b {
    font-size: 12px;
  }

  .mf-chat-head {
    min-height: 68px;
    padding: 10px 14px;
  }

  .mf-chat-person img {
    width: 38px;
    height: 44px;
  }

  .mf-messages {
    min-height: 342px;
    max-height: 342px;
    padding-inline: 14px;
  }

  .mf-message {
    max-width: 88%;
  }

  .mf-quick-replies {
    padding-inline: 14px;
  }

  .mf-composer {
    margin: 0 12px 13px;
  }

  .mf-hero-foot {
    grid-template-columns: repeat(2, 1fr);
  }

  .mf-hero-foot div {
    min-height: 60px;
    justify-content: flex-start;
    padding-left: 12px;
    font-size: 10px;
  }

  .mf-hero-foot div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--mf-line);
  }

  .mf-hero-foot div:nth-child(4) {
    border-top: 1px solid var(--mf-line);
  }

  .mf-section {
    padding: 76px 0;
  }

  .mf-section-head {
    gap: 20px;
    margin-bottom: 29px;
  }

  .mf-section h2 {
    font-size: 34px;
  }

  .mf-character-track {
    grid-template-columns: repeat(5, min(78vw, 270px));
    margin-right: -14px;
    padding-right: 14px;
  }

  .mf-character-card {
    height: 460px;
  }

  .mf-character-copy p {
    font-size: 12px;
  }

  .mf-memory-visual {
    padding: 36px 20px;
  }

  .mf-memory-thread,
  .mf-memory-thread.is-latest {
    max-width: 94%;
  }

  .mf-memory-thread p {
    font-size: 12px;
  }

  .mf-context-tags {
    justify-content: flex-start;
  }

  .mf-builder {
    padding-top: 0;
  }

  .mf-builder-intro {
    padding: 32px 24px;
  }

  .mf-builder-intro > p:not(.mf-kicker) {
    margin-bottom: 30px;
  }

  .mf-builder-form {
    padding: 16px 22px 26px;
  }

  .mf-form-row {
    grid-template-columns: 26px minmax(0, 1fr) 22px;
  }

  .mf-form-row b {
    font-size: 12px;
  }

  .mf-scenario-lines {
    grid-template-columns: 1fr;
  }

  .mf-scenario-lines article {
    min-height: 205px;
    padding: 24px;
  }

  .mf-scenario-lines article + article {
    border-top: 1px solid var(--mf-line);
    border-left: 0;
  }

  .mf-scenario-lines i {
    margin: 28px 0 15px;
  }

  .mf-screen-rail {
    display: flex;
    gap: 13px;
    margin-right: -14px;
    padding-right: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mf-screen-rail::-webkit-scrollbar {
    display: none;
  }

  .mf-app-screen {
    width: min(78vw, 290px);
    flex: none;
    scroll-snap-align: start;
  }

  .mf-app-screen:nth-child(2) {
    padding-top: 0;
  }

  .mf-download {
    padding: 55px 0;
  }

  .mf-download-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 25px 22px;
  }

  .mf-release-meta {
    border-right: 0;
    border-left: 0;
  }

  .mf-release-meta div {
    padding: 3px 10px;
  }

  .mf-release-meta div:first-child {
    padding-left: 0;
  }

  .mf-download-action {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .mf-download-action .mf-button {
    width: 100%;
  }

  .mf-review-list {
    grid-template-columns: 1fr;
  }

  .mf-review {
    padding: 20px;
  }

  .mf-faq-list summary {
    min-height: 68px;
    font-size: 13px;
  }

  .mf-faq-list details p {
    padding-right: 12px;
  }

  .mf-final,
  .mf-final-content {
    min-height: 480px;
  }

  .mf-final-avatar {
    bottom: -130px;
    width: 190px;
    height: 460px;
  }

  .mf-final-left {
    left: -65px;
  }

  .mf-final-right {
    right: -65px;
  }

  .mf-final-content {
    padding: 40px 25px;
  }

  .mf-final-content h2 {
    font-size: 38px;
  }

  .mf-footer {
    padding: 25px 0;
  }

  .mf-footer .mf-shell {
    flex-direction: column;
  }

  .mf-mobile-download {
    position: fixed;
    z-index: 120;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 7px 8px 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    background: rgba(33, 33, 39, 0.94);
    box-shadow: 0 7px 20px rgba(10, 10, 13, 0.34);
    backdrop-filter: blur(15px);
  }

  .mf-mobile-download > div {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .mf-mobile-download img {
    width: 40px;
    height: 40px;
  }

  .mf-mobile-download b,
  .mf-mobile-download small {
    display: block;
  }

  .mf-mobile-download b {
    font-size: 12px;
  }

  .mf-mobile-download small {
    color: #888694;
    font-size: 9px;
  }

  .mf-mobile-download a {
    display: grid;
    place-items: center;
    min-width: 74px;
    min-height: 42px;
    border-radius: 11px;
    background: var(--mf-primary);
    font-size: 12px;
    font-weight: 800;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
