/* WaveStore 官网 · 蓝白单页样式
   无框架、无外部字体，不依赖第三方请求。 */

:root {
  --bg: #eaf2fc;
  --bg-soft: #dce8f7;
  --surface: #f3f8ff;
  --ink: #0c1630;
  --muted: #5a6780;
  --line: #d0dcf0;
  --line-strong: #b8c9e6;
  --accent: #1a56db;
  --accent-deep: #1343b0;
  --accent-soft: #dbe6fa;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(26, 86, 219, .05), 0 16px 40px -20px rgba(26, 86, 219, .2);
  --btn-fg: #ffffff;
  --bar-h: 58px;
  --frost: color-mix(in srgb, var(--bg) 72%, transparent);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}

/* 整页连续的淡蓝色氛围，不随区块切换。固定层避免手机上 background-attachment: fixed 的卡顿。 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 48% at 50% -8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 64%),
    radial-gradient(ellipse 52% 38% at 6% 46%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 72%),
    radial-gradient(ellipse 48% 34% at 96% 78%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 72%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; }

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

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, var(--ink));
  outline-offset: 3px;
}

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}
.wrap.narrow { width: min(720px, calc(100% - 48px)); }

/* ---------- Top bar ---------- */

.site-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--frost);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 80%, transparent);
}

.site-bar-inner {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  background: var(--surface);
}
.brand .wordmark {
  font-size: 1.28rem;
  letter-spacing: -.04em;
}

.site-bar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
  transition: background .15s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Full-screen frosted menu ---------- */

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(72px + env(safe-area-inset-top, 0px)) 24px calc(48px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 46%, transparent);
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.site-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-close {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: max(12px, calc((100% - 1080px) / 2 + 12px));
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.menu-nav a {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.4;
  padding: 6px 8px;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  transition: color .15s;
}
.menu-nav a:hover { color: var(--accent); }
.menu-nav a:focus { outline: none; background: transparent; }
.menu-nav a:focus:not(:focus-visible),
.menu-nav a:active {
  outline: none;
  background: transparent;
  box-shadow: none;
}
.menu-nav a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, var(--ink));
  outline-offset: 4px;
  background: transparent;
}

.icon-btn:focus { outline: none; }
.icon-btn:focus:not(:focus-visible),
.icon-btn:active {
  outline: none;
  box-shadow: none;
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

#top,
.hero,
.section,
#about,
#download,
#developers,
#features {
  scroll-margin-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 12px);
}

/* ---------- Wordmark ---------- */

.wordmark {
  margin: 0;
  font-size: clamp(3.15rem, 16vw, 8rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.05em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark .cap {
  font-weight: 800;
  color: var(--accent);
}
.wordmark.sm {
  font-size: 1.45rem;
  letter-spacing: -.04em;
  line-height: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--accent);
  color: var(--btn-fg);
  box-shadow: 0 1px 2px rgba(19, 67, 176, .28);
}
.btn.primary:hover { background: var(--accent-deep); }

.btn.ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn[aria-disabled="true"] {
  background: var(--bg-soft);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: clamp(64px, 14vh, 140px) 0 clamp(20px, 3.5vh, 36px);
}
.hero .wrap { position: relative; }
.hero-logo {
  width: clamp(76px, 13vw, 112px);
  height: auto;
  aspect-ratio: 1;
  margin: 28px auto 0;
  border-radius: 50%;
}
.tagline {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--muted);
  letter-spacing: .02em;
}
.hero-platform {
  display: inline-block;
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: .02em;
  color: var(--accent);
  text-decoration: none;
}
.hero-platform:hover { color: var(--accent-deep); }

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 104px) 0;
  background: transparent;
}

#about.section {
  padding-top: clamp(20px, 3.5vw, 36px);
}

.h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 36px;
  text-align: center;
}

.card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Download ---------- */

.download-simple {
  text-align: center;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(420px, 100%);
  padding: 22px 48px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--btn-fg);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 1px 2px rgba(19, 67, 176, .28), 0 14px 32px -16px rgba(19, 67, 176, .45);
  transition: transform .12s, background .15s, box-shadow .15s;
}
.download-btn svg { width: 24px; height: 24px; }
.download-btn:hover { background: var(--accent-deep); }
.download-btn:active { transform: translateY(1px); }

/* ---------- About ---------- */

.about-copy { display: grid; gap: 18px; }
.about-copy p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
}
.about-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-copy a:hover { color: var(--accent-deep); }

/* ---------- Developers ---------- */

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  margin-inline: auto;
}
.person {
  padding: 36px 24px 32px;
  text-align: center;
}
.avatar {
  width: 148px;
  height: 148px;
  margin: 0 auto 22px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: var(--bg-soft);
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line);
}
.person h3 {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -.02em;
}
.person p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.feature { padding: 28px 26px 26px; }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Footer ---------- */

.footer {
  padding: 64px 0 48px;
  text-align: center;
  background: transparent;
}
.footer .wordmark { display: inline-block; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 22px 0 0;
}
.footer-links a {
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.copyright {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Legal / subpages ---------- */

.page-head { padding: 28px 0 8px; }
.page-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.text-link {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}
.text-link:hover { color: var(--accent); }

.doc { padding: 28px 0 80px; }
.doc h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.doc .updated {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.doc h2 {
  margin: 36px 0 12px;
  font-size: 1.2rem;
  font-weight: 730;
  letter-spacing: -.02em;
}
.doc h3 {
  margin: 22px 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
}
.doc p, .doc li {
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.8;
}
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc a:hover { color: var(--accent-deep); }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--bg-soft);
  padding: .1em .4em;
  border-radius: 5px;
}

/* ---------- Scroll reveals ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1);
}
.people .reveal:nth-child(2) { transition-delay: .08s; }
.features .reveal:nth-child(2) { transition-delay: .07s; }
.features .reveal:nth-child(3) { transition-delay: .14s; }
.features .reveal:nth-child(4) { transition-delay: .2s; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .wrap, .wrap.narrow { width: calc(100% - 36px); }
  .people, .features { grid-template-columns: 1fr; }
  .feature { padding: 24px 22px; }
  .avatar { width: 132px; height: 132px; }
  .page-head { padding: 22px 0 4px; }
  .people .reveal:nth-child(2),
  .features .reveal:nth-child(2),
  .features .reveal:nth-child(3),
  .features .reveal:nth-child(4) { transition-delay: .05s; }
  .brand .wordmark { font-size: 1.15rem; }
  .menu-close { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
