:root {
  --ink: #171528;
  --ink-deep: #12101f;
  --ink-panel: #1e1c33;
  --ink-raised: #262342;
  --line: rgba(201, 195, 235, 0.15);
  --line-strong: rgba(201, 195, 235, 0.28);
  --coral: #ff8066;
  --coral-soft: rgba(255, 128, 102, 0.16);
  --lav: #c9c3eb;
  --paper: #f8f5f0;
  --muted: #b6b0d2;
  --dim: #8f8ab0;
  --radius: 18px;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "STZhongsong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--coral);
  color: #2a1109;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--coral);
  color: #2a1109;
  font-size: 0.9rem;
  transform: translateY(-200%);
  transition: transform 0.18s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 21, 40, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 26px;
  border-radius: 3px;
  background: var(--coral);
  flex: 0 0 auto;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: rgba(23, 21, 40, 0.55);
}

.brand-mark::before {
  top: 7px;
}

.brand-mark::after {
  top: 16px;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.12;
}

.brand-domain {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  opacity: 0.62;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
  color: var(--muted);
}

.site-nav a {
  padding: 4px 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover {
  color: var(--paper);
  border-bottom-color: var(--line-strong);
}

.site-nav .nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--paper);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.site-nav .nav-cta:hover {
  background: var(--ink-raised);
  border-color: var(--coral);
}

/* hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 88px) clamp(52px, 7vw, 104px);
}

.film-rail {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background-image: repeating-linear-gradient(to bottom, rgba(201, 195, 235, 0.24) 0 10px, rgba(201, 195, 235, 0) 10px 26px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -60px;
  right: -100px;
  width: min(640px, 80vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 128, 102, 0.2), rgba(255, 128, 102, 0) 66%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 0 0 26px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.7rem, 5.6vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: 0.015em;
}

.h1-name {
  display: block;
}

.h1-claim {
  display: block;
  margin-top: 16px;
  font-size: 0.46em;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--lav);
}

.hero-lead {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--coral);
  color: #2a1109;
}

.btn-primary:hover {
  background: #ff957f;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--lav);
  background: rgba(201, 195, 235, 0.07);
}

.hero-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.phone {
  position: relative;
  width: min(336px, 86%);
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(158deg, #2c2949, #1a1830 62%);
  border: 1px solid rgba(201, 195, 235, 0.22);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 6px;
  border-radius: 999px;
  background: rgba(18, 16, 31, 0.92);
  z-index: 2;
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 36px;
}

/* sections */

.section {
  padding-block: clamp(56px, 7vw, 96px);
}

.section + .section,
.screens-section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
}

.section-head h2,
.download-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-wrap: balance;
}

.section-lead,
.download-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40em;
}

/* capabilities */

.cap-list {
  list-style: none;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.4vw, 44px);
}

.cap {
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}

.cap-icon {
  display: inline-flex;
  color: var(--coral);
  margin-bottom: 18px;
}

.cap h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
}

.cap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* discovery path */

.path {
  list-style: none;
  margin: clamp(36px, 5vw, 54px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.path-step {
  padding: 24px 22px 4px 0;
  border-top: 1px solid var(--line-strong);
}

.path-step + .path-step {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.step-no {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  color: var(--coral);
}

.path-step h3,
.steps h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 600;
}

.path-step p,
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* screens / tabs */

.screens {
  margin-top: clamp(32px, 4vw, 44px);
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.tab {
  appearance: none;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--dim);
  font-family: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.tab:hover {
  color: var(--lav);
}

.tab[aria-selected="true"] {
  color: var(--paper);
  border-bottom-color: var(--coral);
}

.panels {
  margin-top: clamp(28px, 4vw, 40px);
}

.shot-body {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.shot-frame {
  border-radius: 30px;
  padding: 8px;
  border: 1px solid rgba(201, 195, 235, 0.2);
  background: linear-gradient(158deg, #2a2748, #1a1830 62%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.shot-frame img {
  display: block;
  width: 100%;
  border-radius: 24px;
}

.shot-copy h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.4;
}

.shot-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 42em;
}

.shot-copy p:last-child {
  margin-bottom: 0;
}

/* steps */

.steps {
  list-style: none;
  margin: clamp(36px, 5vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  counter-reset: steps;
}

.steps li {
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}

/* faq */

.faq {
  margin-top: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-size: 1.04rem;
  font-weight: 500;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
}

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

.faq summary:hover {
  color: var(--lav);
}

.faq-mark {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 7px;
}

.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--coral);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.faq-mark::before {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
}

.faq-mark::after {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
}

.faq-item[open] .faq-mark::after {
  transform: rotate(90deg);
}

.faq-answer {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 62em;
}

/* download */

.download-section {
  position: relative;
}

.download-head {
  max-width: 46em;
}

.download-head h2 {
  margin-bottom: 14px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: clamp(30px, 4vw, 44px);
}

.download-card:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(38, 35, 66, 0.34);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.download-card:hover {
  border-color: var(--coral);
  background: rgba(45, 40, 78, 0.52);
  transform: translateY(-2px);
}

.download-tag {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--coral);
}

.download-card h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
}

.download-card p {
  margin: 0;
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 0.93rem;
}

.download-action {
  position: relative;
  margin-top: 8px;
  padding-right: 20px;
  align-self: flex-start;
  font-size: 0.9rem;
  color: var(--paper);
}

.download-action::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--coral);
  border-right: 1.5px solid var(--coral);
  transform: translateY(-50%) rotate(45deg);
}

.download-note {
  margin: 20px 0 0;
  color: var(--dim);
  font-size: 0.86rem;
}

/* footer */

.site-footer {
  margin-top: clamp(20px, 4vw, 40px);
  padding-block: clamp(40px, 5vw, 60px) 26px;
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 0.9rem;
  max-width: 26em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-content: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-nav a:hover {
  color: var(--paper);
  border-bottom-color: var(--line-strong);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  color: var(--dim);
  font-size: 0.84rem;
}

/* error page */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 64px;
}

.error-inner {
  max-width: 34em;
}

.error-code {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--coral);
}

.error-title {
  margin: 18px 0 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
}

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

.error-page .brand {
  margin-bottom: 36px;
}

/* responsive */

@media (min-width: 1200px) {
  .film-rail {
    display: block;
  }
}

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

  .hero-copy {
    max-width: 34em;
  }

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

  .phone {
    width: min(320px, 78%);
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .section-lead,
  .download-lead {
    max-width: 40em;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px clamp(20px, 5vw, 48px) 22px;
    background: var(--ink-deep);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

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

  .site-nav .nav-cta {
    margin-top: 16px;
    padding: 11px 20px;
    text-align: center;
    border-bottom: 1px solid var(--line-strong);
  }

  .cap-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

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

  .path-step:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    margin-top: 20px;
  }

  .path-step:nth-child(4) {
    margin-top: 20px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 760px) {
  .shot-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .shot-frame {
    max-width: 280px;
    margin-inline: auto;
  }

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

  .phone {
    width: min(300px, 88%);
  }
}

@media (max-width: 560px) {
  .path {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-step {
    padding-right: 0;
    padding-bottom: 20px;
  }

  .path-step + .path-step {
    padding-left: 0;
    border-left: 0;
  }

  .path-step:nth-child(n + 2) {
    margin-top: 4px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .download-tag {
    letter-spacing: 0.1em;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
