@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/instrument-serif.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/noto-serif-sc-display.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --black: #000;
  --white: #f7f7f5;
  --muted: #b8bfca;
  --accent: #c7d9ee;
  --line: rgb(255 255 255 / .15);
  --text-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display-font: "Instrument Serif", "Noto Serif SC", "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --gutter: clamp(20px, 4vw, 44px);
  --radius: clamp(18px, 2.1vw, 30px);
  --screen-pad: clamp(33px, 6svh, 78px);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: var(--text-font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, video { display: block; }
[hidden] { display: none !important; }

:where(a, button, summary):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.screen {
  min-block-size: 100vh;
  min-block-size: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.screen:not(.hero) {
  display: grid;
  align-content: center;
  padding-block: var(--screen-pad);
}

.screen-nav {
  position: fixed;
  z-index: 3;
  top: 50%;
  right: clamp(4px, 1.3vw, 23px);
  display: grid;
  padding: 4px;
  transform: translateY(-50%);
}

.screen-nav a {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
}

.screen-nav span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a7b4c1;
  box-shadow: 0 0 0 4px transparent;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.screen-nav a:hover span, .screen-nav a[aria-current] span {
  background: #fff;
  box-shadow: 0 0 0 4px #d2e4fa46;
}

.frame {
  width: min(100% - var(--gutter) * 2, 1152px);
  margin-inline: auto;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  z-index: 4;
  top: 8px;
  left: 8px;
  padding: 8px 16px;
  transform: translateY(-150%);
  color: var(--black);
  background: var(--white);
}

.skip-link:focus { transform: none; }

.liquid-glass {
  position: relative;
  border: 0;
  background: rgb(255 255 255 / .01);
  background-blend-mode: luminosity;
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.liquid-glass::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffffff73, #ffffff26 20%, #fff0 40%, #fff0 60%, #ffffff26 80%, #ffffff73);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  content: "";
}

.glass-button, .glass-icon {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  color: inherit;
  white-space: nowrap;
  font-size: .875rem;
  transition: background-color 180ms ease, transform 180ms ease;
}

.glass-button { padding: 9px 23px; }
.glass-icon { width: 50px; height: 50px; padding: 0; }

:where(a.glass-button, a.glass-icon, button.glass-icon):hover {
  background-color: rgb(255 255 255 / .13);
}

:where(a.glass-button, a.glass-icon, button.glass-icon):active { transform: scale(.96); }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: clip;
  text-align: center;
}

.hero-video, .hero-shade, .section-video, .feature-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video, .section-video { object-fit: cover; }
.hero-video { z-index: -2; object-position: center bottom; }

.hero-shade {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 44%, #02050985, #04080c25 60%, #0009 100%),
    linear-gradient(180deg, #0009, #0002 35%, transparent 60%, #000 100%);
}

.topbar { padding: 24px var(--gutter) 0; }

.nav-shell {
  display: grid;
  width: min(100%, 1080px);
  min-height: 74px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-inline: auto;
  padding: 8px 12px 8px 15px;
  border-radius: 999px;
  background: linear-gradient(150deg, #a3b5cd2a, #171e2a4f 48%, #1117226b);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  justify-self: start;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #fff8;
  border-radius: 50%;
  background-color: #f6f1e7;
}

.brand-mark img { width: 100%; height: auto; }
.brand-wordmark { width: 112px; height: auto; filter: brightness(0) invert(1); }
.nav-action { justify-self: end; padding-inline: 25px; background-color: #f3f8ff0b; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.6vw, 46px);
}

.main-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #e4e5e7;
  font-size: .875rem;
}

.main-nav a:hover { color: white; text-decoration: underline; text-underline-offset: 5px; }

.hero-body {
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(38px, 7svh, 76px) var(--gutter) clamp(38px, 11svh, 111px);
}

.hero h1 {
  font-family: var(--display-font);
  font-size: clamp(2.8rem, 6.75vw, 7.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.058em;
  text-shadow: 0 3px 35px rgb(0 0 0 / .4);
}

.hero h1 span {
  display: inline-flex;
  align-items: baseline;
  gap: .11em;
  margin-left: .06em;
  white-space: nowrap;
}

.hero h1 em, #applications-title em {
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -.025em;
}

.hero-action {
  display: flex;
  width: min(100%, 453px);
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(24px, 3.2vw, 39px);
  padding: 6px 8px 6px 24px;
  border-radius: 999px;
  background: linear-gradient(150deg, #697f9b3d, #18212b4d);
  text-align: left;
  font-size: .94rem;
  font-weight: 500;
  transition: background-color 180ms ease;
}

.hero-action:hover { background-color: #a9c8eb35; }

.action-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  background: white;
}

.hero-body > p {
  max-width: 35em;
  margin-top: 18px;
  color: #e1e7f0;
  font-size: clamp(.94rem, 1.2vw, 1.03rem);
  line-height: 1.9;
  text-shadow: 0 1px 9px #000;
}

.hero-manifesto { margin-top: 22px; }

.hero-shortcuts {
  display: flex;
  justify-content: center;
  gap: 13px;
  padding: 0 var(--gutter) clamp(24px, 4.7vh, 50px);
}

.hero-shortcuts button { cursor: pointer; }
.motion-toggle .when-paused, .motion-toggle.is-paused .when-playing { display: none; }
.motion-toggle.is-paused .when-paused { display: block; }

.about {
  background: radial-gradient(ellipse at 35% 48%, #25395153 0%, #0c141e53 43%, transparent 74%);
}

.section-label {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .12em;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
}

.section-kicker::before {
  width: 19px;
  height: 1px;
  background: currentColor;
  content: "";
}

.display-title, .brand-line {
  font-family: var(--display-font);
  font-weight: 600;
}

.display-title {
  font-size: clamp(2.45rem, 5.2vw, 4.75rem);
  line-height: 1.18;
  letter-spacing: -.058em;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(22px, 4.2vw, 62px);
}

.about h2 { margin-top: 15px; font-size: clamp(2rem, 4.55vw, 4.15rem); }
.about h2 em { color: var(--accent); font-style: normal; }

.about-description {
  max-width: 28em;
  color: var(--muted);
  font-size: clamp(.95rem, 1.23vw, 1.11rem);
  line-height: 1.95;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(28px, 6.6vh, 70px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #b6d2f233;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #1e2b3b8c, #0b111976);
  list-style: none;
}

.workflow li {
  min-width: 0;
  padding: clamp(17px, 2.45vw, 34px);
}

.workflow li + li { border-inline-start: 1px solid var(--line); }

.workflow .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 11px;
  color: var(--accent);
}

.workflow h3 { font-size: clamp(.97rem, 1.5vw, 1.24rem); font-weight: 600; }
.workflow p { margin-top: 5px; color: var(--muted); font-size: .875rem; line-height: 1.7; }

.feature-frame {
  position: relative;
  display: flex;
  width: 100%;
  min-height: min(360px, 70svh);
  max-height: calc(100svh - 2 * var(--screen-pad));
  aspect-ratio: 16 / 9;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #131619;
  isolation: isolate;
}

.feature-shade {
  background: linear-gradient(0deg, #000d, #0003 55%, transparent 83%);
}

.feature-frame::after, .purpose-visual::after {
  position: absolute;
  inset: 0;
  border: 1px solid #d3ebff35;
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.feature-content {
  position: relative;
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3.2vw, 40px);
}

.feature-note {
  max-width: 470px;
  padding: clamp(17px, 2.3vw, 29px);
  border-radius: 18px;
  background: linear-gradient(150deg, #19232ce6, #080c11a8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.feature-note h2 {
  margin-top: 8px;
  font: 600 clamp(1.35rem, 2.3vw, 2.05rem) / 1.3 var(--display-font);
  letter-spacing: -.035em;
}

.feature-note p:last-child { margin-top: 8px; color: #e0e6ed; font-size: .95rem; }

.purpose > .display-title, #applications-title { margin-bottom: clamp(22px, 4.8vh, 56px); }
.display-title span { color: #91a7be; }

.purpose-grid, .application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4.1vw, 56px);
}

.purpose-visual, .card-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #11151b;
}

.purpose-visual {
  align-self: center;
  aspect-ratio: 4 / 3;
  max-height: 50svh;
  border-radius: var(--radius);
}

.purpose-list {
  align-self: center;
  border-block: 1px solid var(--line);
}

.purpose-list > div {
  display: grid;
  grid-template-columns: 4em minmax(0, 1fr);
  gap: 15px;
  padding-block: clamp(13px, 2.2vh, 21px);
}

.purpose-list > div + div { border-top: 1px solid var(--line); }
.purpose-list dt { color: var(--accent); font-size: .9375rem; font-weight: 600; }
.purpose-list dd { color: var(--muted); font-size: clamp(.95rem, 1.23vw, 1.1rem); line-height: 1.85; }

.screen.applications {
  gap: clamp(16px, 3.7vh, 39px);
  background: radial-gradient(ellipse at 50% 45%, #101a28ad, transparent 76%);
}

.application-grid { gap: clamp(18px, 2.3vw, 32px); }

.application-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #121b26e6, #090d13);
}

.card-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 30svh;
  border-bottom: 1px solid #a6c3eb3b;
}
.card-visual video { transition: transform 600ms ease; }
.application-card:hover video { transform: scale(1.035); }

.card-copy { padding: clamp(17px, 2.25vw, 31px); }

.card-copy h3 {
  margin: 5px 0 8px;
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 2.34vw, 2.05rem);
  font-weight: 600;
  line-height: 1.35;
}

.card-copy > p:not(.section-label), .card-copy details p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.9;
}

.card-copy details { margin-top: 13px; border-top: 1px solid var(--line); }

.card-copy summary {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: .875rem;
  list-style: none;
}

.card-copy summary::-webkit-details-marker { display: none; }
.card-copy summary .glass-icon { width: 34px; min-height: 34px; height: 34px; }
.card-copy summary .icon { width: 16px; height: 16px; }
.card-copy details[open] summary .icon { transform: rotate(90deg); }
.card-copy details p { padding-top: 7px; }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.brand-line { font-size: clamp(1.1rem, 2.1vw, 1.6rem); }
.legal-name { color: var(--muted); font-size: .8125rem; }
.icp {
  display: inline-block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .8125rem;
  letter-spacing: .01em;
  transition: color 220ms ease;
}
.icp:hover { color: var(--white); }
.footer .icon { width: 16px; height: 16px; }

.reveal-pending {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-visible { opacity: 1; transform: none; }
.application-card.reveal-pending + .application-card { transition-delay: 130ms; }

@media (max-width: 760px) {
  :root { --screen-pad: clamp(24px, 4.3svh, 43px); }

  /* 触屏下避免下拉刷新/橡皮筋干扰整屏吸附 */
  html {
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
  }

  .screen {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .screen-nav { display: none; }
  .topbar { padding-top: 16px; }

  .nav-shell {
    min-height: 66px;
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px 7px 11px;
  }

  .main-nav { display: none; }
  .brand { gap: 9px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-wordmark { width: 98px; }
  .nav-action { padding-inline: 15px; }

  .hero h1 { font-size: clamp(2.18rem, 9.4vw, 4.15rem); }
  .hero h1 span { display: flex; justify-content: center; margin: .08em 0 0; }
  .hero h1 em { font-size: 1.14em; }
  .hero-body { padding-block: clamp(27px, 6.4svh, 57px); }
  .hero-action { min-height: 54px; padding-left: 17px; }
  .action-arrow { width: 42px; height: 42px; }
  .hero-shortcuts .glass-icon { width: 46px; height: 46px; }

  .about-intro { grid-template-columns: 1fr; gap: 16px; }
  .about h2 { font-size: clamp(1.81rem, 8.25vw, 3.4rem); }

  .workflow { grid-template-columns: 1fr; margin-top: 24px; }

  .workflow li {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    column-gap: 10px;
    padding: 12px 15px;
  }

  .workflow li + li { border: 0; border-top: 1px solid var(--line); }
  .workflow .icon { grid-row: 1 / span 2; margin: 2px 0 0; }
  .workflow p { grid-column: 2; margin-top: 3px; }

  .feature-frame { min-height: min(390px, 71svh); aspect-ratio: 1 / 1.17; }
  .feature-content { flex-direction: column; align-items: flex-start; }

  /* 修复：aspect-ratio 叠加 max-height 时宽度会被高度反推，导致视觉块只占窄窄一条 */
  .card-visual, .purpose-visual { width: 100%; }

  .purpose-grid, .application-grid { grid-template-columns: minmax(0, 1fr); }
  .display-title { font-size: clamp(2.16rem, 8.9vw, 3.9rem); }
  .purpose-grid { gap: 18px; }
  .purpose-visual { aspect-ratio: 16 / 9; max-height: 24svh; }
  .purpose-list > div { grid-template-columns: 3em minmax(0, 1fr); gap: 8px; padding-block: 10px; }

  .card-visual { max-height: clamp(85px, 15.1svh, 165px); }
  .application-grid { gap: 12px; }
  .card-copy { padding: 14px 16px; }
  .card-copy h3 { margin: 3px 0 5px; }
  .card-copy details { margin-top: 8px; }
  .card-copy > p:not(.section-label) { font-size: .9rem; line-height: 1.72; }
  .footer { gap: 8px 13px; }
  .footer .glass-button { padding-inline: 13px; }
}

@media (max-width: 390px) {
  .brand-wordmark { width: 91px; }
  .feature-note p:last-child, .hero-body > p { font-size: .9rem; }
}

@media (max-height: 730px) and (min-width: 761px) {
  .card-visual { max-height: 25svh; }
  .screen.applications { gap: 17px; }
  #applications-title { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .application-card:hover video { transform: none; }
}
