@charset "UTF-8";

/* 作者：搭客佬
官网：https://www.qqyaipro.cn/ */

:root {
  --brand: #6c42e8;
  --brand-dark: #4420b8;
  --brand-pink: #d65ad7;
  --brand-blue: #48baf6;
  --ink: #19172a;
  --muted: #6e6a7f;
  --line: #ddd8ed;
  --soft: #f5f2fb;
  --soft-blue: #eef7ff;
  --night: #17142b;
  --white: #ffffff;
  --container: 1200px;
  --header-height: 76px;
  --shadow: 0 22px 60px rgba(50, 30, 110, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

p,
h1,
h2,
h3,
ol,
ul,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.container,
.header-inner,
.hero-inner {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.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;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.icon-menu {
  background-image: url("../icons/menu.svg");
}

.icon-download {
  background-image: url("../icons/download.svg");
}

.icon-compass {
  background-image: url("../icons/compass.svg");
}

.icon-memory {
  background-image: url("../icons/memory.svg");
}

.icon-chat {
  background-image: url("../icons/chat.svg");
}

.icon-heart {
  background-image: url("../icons/heart.svg");
}

.icon-globe {
  background-image: url("../icons/globe.svg");
}

.icon-search {
  background-image: url("../icons/search.svg");
}

.icon-arrow {
  background-image: url("../icons/arrow.svg");
}

.icon-top {
  background-image: url("../icons/top.svg");
}

.icon-sliders {
  background-image: url("../icons/sliders.svg");
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(68, 32, 184, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img,
.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 20px;
  white-space: nowrap;
}

.brand-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.header-actions,
.main-nav,
.main-nav ul {
  display: flex;
  align-items: center;
}

.main-nav ul {
  gap: 38px;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 26px 0 23px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-pink));
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: var(--brand-dark);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle,
.mobile-download {
  display: none;
}

.hero {
  position: relative;
  min-height: 720px;
  background:
    radial-gradient(circle at 83% 28%, rgba(108, 66, 232, 0.16), transparent 27%),
    radial-gradient(circle at 70% 82%, rgba(72, 186, 246, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fbfaff 48%, #f1edff 100%);
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  border: 1px solid rgba(108, 66, 232, 0.12);
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: 85px;
  right: -120px;
  width: 430px;
  height: 430px;
}

.hero::after {
  right: 22%;
  bottom: -260px;
  width: 520px;
  height: 520px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 70px;
  align-items: center;
  min-height: 720px;
}

.hero-copy {
  padding: 78px 0;
}

.eyebrow,
.section-index,
.portal-index {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(68px, 7vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  background: linear-gradient(110deg, #35216f 5%, var(--brand) 45%, var(--brand-pink) 74%, var(--brand-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  margin-top: 30px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.3;
}

.hero-description {
  max-width: 600px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}

.hero-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 34px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 190px;
  height: 56px;
  padding: 0 28px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(110deg, var(--brand), var(--brand-pink) 56%, var(--brand-blue));
  border-radius: 16px;
  box-shadow: 0 15px 34px rgba(108, 66, 232, 0.24);
  white-space: nowrap;
}

.primary-link .icon {
  filter: brightness(0) invert(1);
}

.primary-link:hover,
.primary-link:focus-visible {
  box-shadow: 0 18px 40px rgba(108, 66, 232, 0.34);
}

.age-label {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hero-points .icon {
  width: 18px;
  height: 18px;
}

.conversation-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 570px;
}

.stage-orbit {
  position: absolute;
  border: 1px solid rgba(108, 66, 232, 0.2);
  border-radius: 50%;
}

.stage-orbit-one {
  top: 58px;
  right: 42px;
  width: 430px;
  height: 430px;
}

.stage-orbit-two {
  right: 0;
  bottom: 25px;
  width: 270px;
  height: 270px;
  border-color: rgba(72, 186, 246, 0.28);
}

.persona-panel {
  position: relative;
  z-index: 2;
  width: 520px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(108, 66, 232, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.persona-head,
.profile-top,
.review-user,
.daily-memory {
  display: flex;
  align-items: center;
}

.persona-avatar {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  margin-right: 20px;
  color: var(--white);
  font-size: 38px;
  font-weight: 800;
  background:
    radial-gradient(circle at 62% 30%, rgba(255, 255, 255, 0.38), transparent 24%),
    linear-gradient(145deg, #24203e, var(--brand) 58%, var(--brand-pink));
  border: 7px solid rgba(108, 66, 232, 0.12);
  border-radius: 50%;
}

.persona-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.persona-name strong {
  font-size: 26px;
}

.online-state {
  position: relative;
  padding-left: 14px;
  color: #1e9b5a;
  font-size: 12px;
  font-weight: 700;
}

.online-state::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  background: #30d67a;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.persona-meta p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.memory-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  font-size: 12px;
}

.memory-progress span,
.memory-progress strong {
  white-space: nowrap;
}

.progress-track {
  height: 7px;
  background: #e7e2f2;
  border-radius: 20px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 64%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-pink));
  border-radius: inherit;
}

.dialogue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.bubble {
  max-width: 78%;
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 16px;
}

.bubble-character {
  align-self: flex-start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.bubble-user {
  align-self: flex-end;
  color: var(--white);
  background: linear-gradient(110deg, var(--brand), var(--brand-pink));
  border-bottom-right-radius: 4px;
}

.message-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  margin-top: 20px;
  padding: 0 12px 0 18px;
  color: #9a95a9;
  font-size: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.message-field .icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  background-color: var(--brand);
  background-size: 16px;
  border-radius: 50%;
  filter: brightness(0) invert(1);
}

.section {
  padding: 110px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 50px;
}

.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 500px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 15px;
  text-align: right;
}

.character-section {
  background: var(--white);
}

.character-workbench {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 350px;
  min-height: 510px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(50, 30, 110, 0.08);
  overflow: hidden;
}

.filter-panel {
  padding: 28px 20px;
  background: var(--soft);
  border-right: 1px solid var(--line);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 13px;
  margin-bottom: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.search-box .icon {
  width: 16px;
  height: 16px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  background: transparent;
  border: 0;
  outline: 0;
}

.filter-button {
  width: 100%;
  min-height: 48px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.filter-button::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 12px 1px 3px;
  background: #c9c1e0;
  border-radius: 50%;
  content: "";
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: var(--white);
  background: linear-gradient(100deg, var(--brand), var(--brand-pink));
}

.filter-button.is-active::before {
  background: var(--white);
}

.character-list {
  padding: 18px;
}

.character-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
  padding: 18px;
  margin-bottom: 8px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
}

.character-row:hover,
.character-row:focus-visible,
.character-row.is-active {
  background: #f7f4ff;
  border-color: #dcd3f6;
}

.character-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  font-weight: 800;
  border-radius: 50%;
}

.character-avatar {
  width: 60px;
  height: 60px;
  font-size: 20px;
}

.avatar-one {
  background: linear-gradient(145deg, #27213e, #8e62e8);
}

.avatar-two {
  background: linear-gradient(145deg, #111827, #4d3f78);
}

.avatar-three {
  background: linear-gradient(145deg, #6d59a8, #d483c9);
}

.character-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.character-copy strong {
  font-size: 17px;
}

.character-copy small {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.character-copy > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-row > .icon {
  width: 18px;
  height: 18px;
}

.character-row[hidden] {
  display: none;
}

.character-profile {
  padding: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 90, 215, 0.15), transparent 35%),
    linear-gradient(145deg, #231c3b, #17142b);
  color: var(--white);
}

.profile-avatar {
  width: 76px;
  height: 76px;
  margin-right: 16px;
  font-size: 24px;
  background: linear-gradient(145deg, var(--brand), var(--brand-pink));
  border: 5px solid rgba(255, 255, 255, 0.12);
}

.profile-top h3 {
  font-size: 28px;
}

.profile-top p,
.profile-description {
  color: #cfc9df;
  font-size: 13px;
}

.profile-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 28px;
  font-size: 12px;
}

.profile-progress .progress-track {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.12);
}

.profile-story {
  margin-top: 28px;
  color: #d9b8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.profile-description {
  margin-top: 8px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.profile-tags span {
  padding: 6px 10px;
  color: #e7dfff;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
}

.profile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 28px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(100deg, var(--brand), var(--brand-pink));
  border-radius: 14px;
  white-space: nowrap;
}

.profile-link .icon {
  filter: brightness(0) invert(1);
}

.resonance-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(72, 186, 246, 0.1), transparent 24%),
    linear-gradient(135deg, #f7f4ff, #f2effb);
}

.resonance-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.resonance-steps li {
  position: relative;
  min-height: 240px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.resonance-steps li:last-child {
  border-right: 0;
}

.resonance-steps li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 60px;
  right: -7px;
  width: 13px;
  height: 13px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  content: "";
  transform: rotate(45deg);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(145deg, #eee8ff, #e8f7ff);
  border-radius: 50%;
}

.resonance-steps strong {
  display: block;
  margin-top: 22px;
  font-size: 19px;
}

.resonance-steps p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.daily-memory {
  gap: 18px;
  margin-top: 18px;
  padding: 22px 26px;
  background: linear-gradient(100deg, #ebe5ff, #eaf7ff);
  border: 1px solid #d9d2ef;
  border-radius: 18px;
}

.daily-memory > .icon {
  width: 34px;
  height: 34px;
}

.daily-memory > div {
  flex: 1;
}

.daily-memory strong {
  font-size: 16px;
}

.daily-memory p {
  color: var(--muted);
  font-size: 13px;
}

.memory-toggle {
  min-width: 118px;
  min-height: 42px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  background: var(--white);
  border: 1px solid #cfc3ed;
  border-radius: 30px;
  cursor: pointer;
}

.memory-toggle.is-active {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.gallery-section {
  background: #fffefd;
}

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

.screenshot-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.screenshot-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
  background: #fbfbfd;
  overflow: hidden;
}

.screenshot-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screenshot-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.screenshot-card figcaption span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.screenshot-card figcaption strong {
  font-size: 17px;
}

.help-section {
  background: var(--soft);
}

.faq-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
}

.faq-intro {
  padding: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 12%, rgba(72, 186, 246, 0.22), transparent 30%),
    linear-gradient(145deg, var(--night), #302052);
  border-radius: 20px;
}

.faq-intro .icon {
  width: 38px;
  height: 38px;
  filter: brightness(0) invert(1);
}

.faq-intro strong {
  display: block;
  margin-top: 44px;
  font-size: 22px;
}

.faq-intro p {
  margin-top: 10px;
  color: #d2cde0;
  font-size: 13px;
}

.faq-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

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

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  background: var(--white);
  border: 0;
  cursor: pointer;
}

.faq-item button > span {
  display: flex;
  align-items: center;
  gap: 16px;
}

.faq-item small {
  color: var(--brand);
  font-size: 12px;
}

.faq-toggle,
.official-toggle {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.faq-toggle::before,
.faq-toggle::after,
.official-toggle::before,
.official-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.faq-toggle::after,
.official-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item button[aria-expanded="true"] .faq-toggle::after,
.official-disclosure[open] .official-toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
  padding: 0 24px 22px 65px;
  color: var(--muted);
  font-size: 13px;
}

.official-disclosure {
  width: 100%;
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--brand);
  border-radius: 16px;
}

.official-disclosure summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 0 24px;
  cursor: pointer;
  list-style: none;
}

.official-disclosure summary::-webkit-details-marker {
  display: none;
}

.official-disclosure summary strong {
  flex: 1;
  font-size: 15px;
}

.official-answer {
  padding: 0 58px 24px;
}

.official-answer a {
  color: var(--brand);
  font-size: 14px;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.review-section {
  background: #ffffff;
}

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

.review-card {
  min-height: 250px;
  padding: 26px;
  background: linear-gradient(145deg, #ffffff, #f7f4ff);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 16px;
}

.review-card:nth-child(3n + 2) {
  background: linear-gradient(145deg, #ffffff, #f0f9ff);
  border-top-color: var(--brand-blue);
}

.review-card:nth-child(3n) {
  background: linear-gradient(145deg, #ffffff, #fff2fa);
  border-top-color: var(--brand-pink);
}

.review-user {
  gap: 10px;
}

.review-user > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  background: var(--night);
  border-radius: 50%;
}

.review-user strong {
  color: var(--brand-dark);
  font-size: 14px;
}

.review-user time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.review-card > p {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.9;
}

.download-section {
  padding: 110px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f2fb 100%);
}

.download-portal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  min-height: 430px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 40%, rgba(214, 90, 215, 0.26), transparent 28%),
    linear-gradient(130deg, #17142b 0%, #281b48 58%, #1c1740 100%);
  border: 1px solid rgba(108, 66, 232, 0.42);
  border-radius: 34px;
  overflow: hidden;
}

.download-portal::before {
  position: absolute;
  top: -150px;
  left: 32%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.portal-copy {
  position: relative;
  z-index: 2;
  padding: 58px 64px;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  padding: 8px 14px 8px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.portal-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
}

.portal-brand span {
  font-size: 13px;
  font-weight: 800;
}

.portal-index {
  color: #bda7ff;
}

.portal-copy h2 {
  max-width: 600px;
  margin-top: 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.portal-description {
  max-width: 570px;
  margin-top: 18px;
  color: #d3cde2;
  font-size: 15px;
}

.portal-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.portal-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: #ede9f7;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 30px;
}

.portal-points .icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.portal-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 430px;
  background: rgba(255, 255, 255, 0.035);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.portal-ring {
  position: absolute;
  border: 1px solid rgba(186, 155, 255, 0.25);
  border-radius: 50%;
}

.portal-ring-one {
  width: 330px;
  height: 330px;
}

.portal-ring-two {
  width: 250px;
  height: 250px;
  border-color: rgba(72, 186, 246, 0.28);
}

.portal-download {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 190px;
  height: 190px;
  color: var(--white);
  background: linear-gradient(145deg, var(--brand), var(--brand-pink));
  border: 10px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 22px 50px rgba(108, 66, 232, 0.36);
}

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

.portal-download span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.portal-download small {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.portal-download strong {
  margin-top: 6px;
  font-size: 20px;
  white-space: nowrap;
}

.portal-action > p {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  color: #c8c1d8;
  font-size: 12px;
}

.site-footer {
  color: var(--white);
  background: var(--night);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
}

.footer-brand .brand-copy span {
  color: #aaa4ba;
}

.footer-nav ul {
  display: flex;
  gap: 34px;
}

.footer-nav a {
  color: #d7d2e1;
  font-size: 13px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  color: #aaa4ba;
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  z-index: 900;
  right: 28px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--brand);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(50, 30, 110, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(72, 186, 246, 0.65);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 36px;
  }

  .persona-panel {
    width: 450px;
  }

  .character-workbench {
    grid-template-columns: 190px minmax(0, 1fr) 310px;
  }

  .download-portal {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .portal-copy {
    padding: 50px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 66px;
  }

  .container,
  .header-inner,
  .hero-inner {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy span {
    margin-top: 3px;
    font-size: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .mobile-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    background: var(--brand);
    border-radius: 10px;
    white-space: nowrap;
  }

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

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
  }

  .main-nav {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    padding: 12px 14px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 34px rgba(30, 20, 65, 0.12);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    display: block;
  }

  .main-nav li + li {
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    padding: 13px 8px;
    font-size: 14px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 30px 0 64px;
  }

  .hero-copy {
    padding: 50px 0 34px;
    text-align: center;
  }

  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-action {
    align-items: center;
  }

  .hero-points {
    justify-content: center;
  }

  .conversation-stage {
    justify-content: center;
    min-height: 500px;
  }

  .persona-panel {
    width: min(100%, 520px);
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
  }

  .section-heading > p {
    max-width: 620px;
    padding: 0;
    text-align: left;
  }

  .character-workbench {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .character-profile {
    grid-column: 1 / -1;
  }

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

  .resonance-steps li:nth-child(2) {
    border-right: 0;
  }

  .resonance-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .resonance-steps li:nth-child(2)::after {
    display: none;
  }

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

  .download-portal {
    grid-template-columns: 1fr;
  }

  .portal-action {
    min-height: 380px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 0;
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-points {
    gap: 13px;
  }

  .hero-points span {
    font-size: 12px;
  }

  .conversation-stage {
    min-height: 460px;
  }

  .persona-panel {
    padding: 24px;
  }

  .persona-avatar {
    width: 84px;
    height: 84px;
    font-size: 30px;
  }

  .section-heading h2 {
    font-size: 42px;
  }

  .character-workbench {
    display: block;
  }

  .filter-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .search-box {
    grid-column: 1 / -1;
    margin: 0;
  }

  .filter-button {
    margin: 0;
    text-align: center;
  }

  .character-list {
    padding: 12px;
  }

  .character-row {
    padding: 14px 12px;
  }

  .character-copy > span {
    white-space: normal;
  }

  .resonance-steps {
    grid-template-columns: 1fr;
  }

  .resonance-steps li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .resonance-steps li:last-child {
    border-bottom: 0;
  }

  .resonance-steps li::after {
    display: none;
  }

  .daily-memory {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .memory-toggle {
    width: 100%;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .screenshot-card {
    border-radius: 12px;
  }

  .screenshot-card figcaption {
    min-height: 60px;
    padding: 12px 10px;
    gap: 7px;
  }

  .screenshot-card figcaption strong {
    font-size: 13px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-intro strong {
    margin-top: 22px;
  }

  .faq-item button {
    min-height: 64px;
    padding: 12px 16px;
    font-size: 13px;
  }

  .faq-item button > span {
    gap: 10px;
  }

  .faq-answer {
    padding: 0 16px 18px 48px;
  }

  .official-disclosure summary {
    min-height: 68px;
    padding: 0 16px;
  }

  .official-answer {
    padding: 0 50px 20px;
  }

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

  .review-card {
    min-height: 0;
  }

  .download-section {
    padding: 70px 0;
  }

  .download-portal {
    border-radius: 24px;
  }

  .portal-copy {
    padding: 38px 24px;
    text-align: center;
  }

  .portal-brand {
    margin-bottom: 26px;
  }

  .portal-points {
    justify-content: center;
  }

  .portal-action {
    min-height: 340px;
  }

  .portal-ring-one {
    width: 290px;
    height: 290px;
  }

  .portal-ring-two {
    width: 220px;
    height: 220px;
  }

  .portal-download {
    width: 170px;
    height: 170px;
  }

  .footer-main {
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 38px 0;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 24px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 420px) {
  .container,
  .header-inner,
  .hero-inner {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand {
    gap: 8px;
  }

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

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy span {
    max-width: 105px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-download {
    padding: 0 10px;
  }

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

  .hero h1 {
    font-size: 52px;
  }

  .hero-title {
    font-size: 24px;
  }

  .persona-panel {
    padding: 20px;
  }

  .persona-avatar {
    width: 72px;
    height: 72px;
    margin-right: 12px;
  }

  .persona-name strong {
    font-size: 21px;
  }

  .memory-progress {
    grid-template-columns: auto 1fr;
  }

  .memory-progress strong {
    display: none;
  }

  .bubble {
    max-width: 88%;
    font-size: 12px;
  }

  .character-avatar {
    width: 50px;
    height: 50px;
  }

  .character-copy strong {
    font-size: 15px;
  }

  .review-user {
    flex-wrap: wrap;
  }

  .review-user time {
    width: 100%;
    margin-left: 46px;
  }
}

@media (hover: none) and (pointer: coarse) {
  a,
  button,
  summary {
    -webkit-tap-highlight-color: transparent;
    transition: none !important;
    animation: none !important;
  }

  a:active,
  button:active,
  summary:active {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
