:root {
  --paper: #fbf9ff;
  --white: #ffffff;
  --ink: #1f1830;
  --muted: #6d6483;
  --lav: #f1ebff;
  --lav-deep: #e3d8ff;
  --violet: #6c3bf4;
  --violet-dark: #4c23c9;
  --pink: #ffe9f7;
  --mint: #e7f6f1;
  --line: #e8e2f4;
  --shadow: 0 18px 50px rgba(76, 35, 201, 0.1);
  --shell: 1140px;
  --r-lg: 28px;
  --r-md: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.32;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700;
}

h2 {
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

p,
ul,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

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

section[id] {
  scroll-margin-top: 90px;
}

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 249, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 226, 244, 0.9);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(76, 35, 201, 0.22);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.logo-text b {
  font-size: 18px;
  letter-spacing: 0.01em;
}

.logo-text i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  color: var(--muted);
}

.nav a {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--violet-dark);
  border-color: var(--violet);
}

.pill {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(108, 59, 244, 0.24);
  transition: background 0.2s ease, transform 0.2s ease;
}

.pill:hover,
.pill:focus-visible {
  background: var(--violet-dark);
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
}

/* hero */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px -10% auto;
  height: 560px;
  background:
    radial-gradient(420px 320px at 22% 18%, rgba(227, 216, 255, 0.85), transparent 70%),
    radial-gradient(380px 300px at 82% 10%, rgba(255, 233, 247, 0.9), transparent 72%);
  z-index: 0;
}

.hero .shell {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.tagline {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--violet-dark);
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 40em;
  margin: 22px auto 0;
  font-size: 16.5px;
  color: var(--muted);
}

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

.btn {
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:not([hidden]) {
  display: inline-flex;
}

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 14px 32px rgba(108, 59, 244, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--violet-dark);
  transform: translateY(-2px);
}

.btn-line {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-line:hover,
.btn-line:focus-visible {
  border-color: var(--lav-deep);
  background: var(--lav);
}

.hero-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: rgba(109, 100, 131, 0.82);
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 54px;
  padding: 30px 0 10px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.blob-a {
  width: 360px;
  height: 360px;
  left: 12%;
  top: 10px;
  background: radial-gradient(circle, rgba(227, 216, 255, 0.95), rgba(227, 216, 255, 0) 68%);
}

.blob-b {
  width: 320px;
  height: 320px;
  right: 12%;
  bottom: -10px;
  background: radial-gradient(circle, rgba(255, 233, 247, 0.95), rgba(255, 233, 247, 0) 68%);
}

.device {
  position: relative;
  margin: 0;
  width: 246px;
  padding: 9px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 34px 80px rgba(76, 35, 201, 0.18);
}

.device img {
  width: 100%;
  border-radius: 24px;
}

.stage-card {
  position: absolute;
  top: 78px;
  width: 236px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stage-left {
  left: 4%;
}

.stage-right {
  right: 4%;
  top: auto;
  bottom: 48px;
}

.stage-card span {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--violet);
}

.stage-card p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* bands */
.band {
  padding: 84px 0;
}

.band-white {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.head {
  max-width: 620px;
  margin-bottom: 42px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--violet);
  margin-bottom: 14px;
}

.head > p:last-child {
  margin-top: 16px;
  color: var(--muted);
}

/* overview */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ov-card {
  padding: 34px 30px 30px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
}

.ov-a {
  background: var(--lav);
}

.ov-b {
  background: var(--pink);
}

.ov-c {
  background: var(--mint);
}

.ov-num {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--violet-dark);
}

.ov-card h3 {
  margin: 16px 0 12px;
}

.ov-card p {
  font-size: 14.5px;
  color: var(--muted);
}

.ov-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ov-card li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  color: var(--ink);
}

/* reply */
.reply-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.reply-copy > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
}

.check-list {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 4px solid var(--lav-deep);
  background: var(--violet);
}

.check-list strong {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
}

.check-list span {
  font-size: 14px;
  color: var(--muted);
}

.chat-mock {
  padding: 26px 26px 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, #f6f1ff, #fff 62%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(108, 59, 244, 0.12);
}

.bubble {
  max-width: 86%;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.bubble-in {
  background: #fff;
  border: 1px solid var(--line);
  border-top-left-radius: 4px;
  color: var(--ink);
}

.bubble-out {
  margin-left: auto;
  background: var(--violet);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble-alt {
  background: #fff;
  border: 1px solid var(--lav-deep);
  color: var(--ink);
}

.chat-label {
  margin-top: 22px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.chat-foot {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.chat-foot span {
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

/* library */
.lib {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lib-head {
  display: flex;
  gap: 8px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #fcfaff;
}

.lib-tab {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 13.5px;
}

.lib-tab-muted {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.lib-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.lib-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 14px;
  padding: 26px 30px;
  border-bottom: 1px solid var(--line);
}

.lib-row:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.lib-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.lib-index {
  grid-row: span 2;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--violet);
  padding-top: 5px;
}

.lib-row h3 {
  font-size: 17px;
}

.lib-row p {
  font-size: 13.5px;
  color: var(--muted);
}

/* bento */
.bento {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  padding: 30px 30px 32px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
}

.bento-main {
  grid-row: span 2;
  background: linear-gradient(175deg, #f3ecff, #fff);
}

.bento-mid {
  background: linear-gradient(175deg, #fff2fa, #fff);
}

.bento-side {
  background: #fff;
}

.bento-side-2 {
  background: #f5fbf9;
}

.bento-card h3 {
  margin-bottom: 12px;
}

.bento-card p {
  font-size: 14px;
  color: var(--muted);
}

.field-mock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.field-mock span {
  padding: 7px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.date-mock {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--lav-deep);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-mock b {
  font-size: 26px;
  color: var(--violet-dark);
  letter-spacing: 0.02em;
}

.date-mock span {
  font-size: 13px;
  color: var(--muted);
}

/* shots */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shots figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.shots img {
  width: 100%;
}

/* download */
.download {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(227, 216, 255, 0.75), transparent 70%),
    var(--paper);
}

.download-copy {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.download-copy > p:last-child {
  margin-top: 16px;
  color: var(--muted);
}

.dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin-inline: auto;
}

.dl-card:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 26px 28px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(76, 35, 201, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dl-card:not([hidden]):hover,
.dl-card:not([hidden]):focus-visible {
  transform: translateY(-3px);
  border-color: var(--lav-deep);
  box-shadow: 0 18px 40px rgba(76, 35, 201, 0.14);
}

.dl-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--lav);
  color: var(--violet-dark);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.dl-card strong {
  font-size: 19px;
  font-weight: 600;
}

.dl-desc {
  font-size: 13px;
  color: var(--muted);
}

/* qa */
.qa-shell {
  max-width: 880px;
}

.qa-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.qa-list summary {
  position: relative;
  cursor: pointer;
  padding: 20px 54px 20px 24px;
  font-size: 15.5px;
  list-style: none;
}

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

.qa-list summary::after {
  content: "›";
  position: absolute;
  right: 24px;
  top: 18px;
  font-size: 20px;
  color: var(--violet);
  transition: transform 0.2s ease;
}

.qa-list details[open] summary::after {
  transform: rotate(90deg);
}

.qa-list details p {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--muted);
}

/* footer */
.foot {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.foot-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.foot-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.foot-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

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

.foot-brand span {
  font-size: 11.5px;
  color: var(--muted);
}

.foot-nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.foot-nav a:hover,
.foot-nav a:focus-visible {
  color: var(--violet-dark);
}

.foot-copy {
  font-size: 12px;
  color: rgba(109, 100, 131, 0.7);
}

/* 404 */
.error-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.error-brand {
  margin-bottom: 52px;
}

.error-code {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--violet);
  margin-bottom: 12px;
}

.error-text {
  max-width: 30em;
  margin: 18px 0 30px;
  color: var(--muted);
}

/* responsive */
@media (max-width: 1000px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .reply-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .bento-main {
    grid-row: auto;
    grid-column: span 2;
  }

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

  .stage-card {
    width: 205px;
    padding: 18px 20px;
  }

  .stage-left {
    left: 0;
  }

  .stage-right {
    right: 0;
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 60px 0 70px;
  }

  .hero-copy {
    text-align: left;
    margin-inline: 0;
  }

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

  .hero-sub {
    margin-inline: 0;
  }

  .hero-stage {
    margin-top: 40px;
  }

  .stage-card {
    display: none;
  }

  .blob-a {
    left: 0;
  }

  .blob-b {
    right: 0;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 36px, var(--shell));
  }

  .topbar-inner {
    height: 66px;
    gap: 12px;
  }

  .logo img {
    width: 34px;
    height: 34px;
  }

  .logo-text i {
    font-size: 10px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 18px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .pill {
    padding: 8px 16px;
    font-size: 13px;
  }

  .burger {
    display: block;
  }

  .band {
    padding: 58px 0;
  }

  .head {
    margin-bottom: 30px;
  }

  .lib-rows {
    grid-template-columns: 1fr;
  }

  .lib-row:nth-child(odd) {
    border-right: 0;
  }

  .lib-row:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .lib-row:last-child {
    border-bottom: 0;
  }

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

  .bento-main {
    grid-column: auto;
  }

  .shots {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 14px;
    scroll-snap-type: x mandatory;
  }

  .shots figure {
    flex: 0 0 196px;
    scroll-snap-align: start;
  }

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

  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 420px) {
  .logo-text i {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .device {
    width: 220px;
  }
}
