:root {
  color-scheme: light dark;
  --background: #f2f1ee;
  --surface: #f8f7f4;
  --surface-secondary: #e9e8e5;
  --text: #211f1c;
  --muted: #716c65;
  --accent: #34312d;
  --divider: #c8c2b8;
  --hairline: rgba(33, 31, 28, 0.14);
  --shadow: 0 24px 70px rgba(33, 31, 28, 0.12);
  --cyan: #33d1db;
  --violet: #7361ff;
  --magenta: #f03dae;
  --amber: #ffb34f;
  --lime: #99d63f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1c1b1a;
    --surface: #2c2a27;
    --surface-secondary: #252321;
    --text: #ece8e0;
    --muted: #a9a39a;
    --accent: #d9d4cb;
    --divider: #44413d;
    --hairline: rgba(236, 232, 224, 0.14);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image: url("PaperTextureLight.png");
  background-size: 512px 512px;
  content: "";
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  body::before { background-image: url("PaperTextureDark.png"); opacity: 0.16; }
}

a { color: inherit; }
.shell { width: min(72rem, calc(100% - 2.5rem)); margin: 0 auto; }

.site-header {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

nav { display: flex; align-items: center; gap: 1.2rem; }
nav a { color: var(--muted); font-size: 0.88rem; text-decoration: none; }
nav a:hover, nav a:focus-visible, .text-link:hover, .text-link:focus-visible { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); }
.language-divider { color: var(--divider); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  min-height: 42rem;
  padding: 5.5rem 0 6rem;
}

.eyebrow, .section-label, .feature-number, .signal-copy, .metric-label {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow { margin: 0 0 1.5rem; color: var(--muted); }
h1, h2, h3 { margin-top: 0; text-wrap: balance; }
h1 {
  max-width: 10ch;
  margin-bottom: 0;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lede {
  max-width: 38rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 2rem; }
.button, .status {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 680;
}

.button { color: var(--background); background: var(--text); text-decoration: none; }
.button:hover, .button:focus-visible { opacity: 0.82; }
.status { color: var(--muted); border: 1px solid var(--hairline); background: color-mix(in srgb, var(--surface) 72%, transparent); }

.product-visual { width: min(100%, 22rem); justify-self: center; }
.app-mark {
  width: 100%;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--hairline);
  border-radius: 1.5rem;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: var(--shadow);
}

.app-mark img { display: block; width: 100%; height: auto; border-radius: 22.5%; }
.signal-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0.15rem 0; }
.signal-copy { color: var(--muted); }
.spectrum-mark { display: flex; height: 1.9rem; align-items: center; gap: 0.22rem; }
.spectrum-mark span { width: 0.22rem; border-radius: 999px; box-shadow: 0 0 0.65rem currentColor; }
.spectrum-mark span:nth-child(1), .spectrum-mark span:nth-child(7) { height: 0.7rem; color: var(--cyan); background: currentColor; }
.spectrum-mark span:nth-child(2), .spectrum-mark span:nth-child(6) { height: 1rem; color: var(--violet); background: currentColor; }
.spectrum-mark span:nth-child(3) { height: 1.4rem; color: var(--magenta); background: currentColor; }
.spectrum-mark span:nth-child(4) { height: 1.8rem; color: var(--amber); background: currentColor; }
.spectrum-mark span:nth-child(5) { height: 1.4rem; color: var(--lime); background: currentColor; }

.section { padding: 6rem 0; border-top: 1px solid var(--hairline); }
.section-heading { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
.section-label { margin: 0 0 0.9rem; color: var(--muted); }
.section-heading h2, .privacy-panel h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 4.7vw, 4.3rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-heading > p, .privacy-panel p { max-width: 38rem; margin: 0; color: var(--muted); font-size: 1.04rem; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.feature {
  min-height: 16rem;
  padding: 1.6rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 54%, transparent);
}

.feature-number { color: var(--muted); }
.feature h3 { margin: 3.2rem 0 0.65rem; font-size: 1.35rem; }
.feature p { max-width: 31rem; margin: 0; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2rem; border: 1px solid var(--hairline); border-radius: 1rem; overflow: hidden; background: color-mix(in srgb, var(--surface) 72%, transparent); }
.metric { padding: 1.25rem; border-right: 1px solid var(--hairline); }
.metric:last-child { border-right: 0; }
.metric-label { color: var(--muted); }
.metric strong { display: block; margin-top: 0.55rem; font-size: 1rem; }

.product-showcase { overflow: hidden; }
.showcase-heading { align-items: end; }
.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 17.5rem));
  gap: clamp(0.85rem, 2vw, 1.4rem);
  align-items: start;
  justify-content: center;
}

.showcase-card {
  width: 100%;
  max-width: 17.5rem;
  min-width: 0;
  margin: 0;
}

.showcase-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: 1.2rem;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(33, 31, 28, 0.1);
}

@media (prefers-color-scheme: dark) {
  .showcase-card img { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); }
}

.showcase-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 0.15rem 0;
}

.showcase-card figcaption span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.showcase-card figcaption strong { font-size: 0.94rem; }

.privacy-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.privacy-panel h2 { margin-bottom: 0.9rem; }
.privacy-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.text-link { color: var(--muted); text-underline-offset: 0.22em; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0 3rem; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.84rem; }

.policy-page { background: var(--background); }
.policy-shell { width: min(48rem, calc(100% - 2.5rem)); margin: 0 auto; padding: 3rem 0 5rem; }
.back-link { display: inline-flex; margin-bottom: 2rem; color: var(--muted); text-decoration: none; }
.policy-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--hairline); }
.policy-header h1 { max-width: none; margin-bottom: 0.65rem; font-size: clamp(2.2rem, 6vw, 4rem); }
.policy-page .meta { color: var(--muted); font-size: 0.92rem; }
.policy-page .lang-switch { margin-top: 1rem; }
.policy-page section { margin-top: 1.25rem; padding: 1.4rem; border: 1px solid var(--hairline); border-radius: 0.8rem; background: color-mix(in srgb, var(--surface) 66%, transparent); }
.policy-page h2 { margin: 0 0 0.8rem; font-size: 1.3rem; }
.policy-page h3 { margin: 1.4rem 0 0.5rem; font-size: 1rem; }
.policy-page p, .policy-page li { color: var(--text); }
.policy-page ul { padding-left: 1.3rem; }
.policy-page a { text-underline-offset: 0.2em; }
.policy-page footer { margin-top: 2rem; color: var(--muted); font-size: 0.88rem; }
.policy-page code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.92em; }

@media (max-width: 780px) {
  .shell { width: min(100% - 1.5rem, 42rem); }
  nav > a:nth-child(-n+3) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 3.5rem 0 4.5rem; }
  .hero-copy { order: 2; }
  .product-visual { order: 1; width: 12rem; justify-self: start; }
  .signal-row { display: none; }
  h1 { font-size: clamp(3rem, 13vw, 5rem); }
  .section { padding: 4.5rem 0; }
  .section-heading, .privacy-panel { grid-template-columns: 1fr; gap: 1.5rem; }
  .features { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .feature h3 { margin-top: 2rem; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .site-footer { flex-direction: column; }
  .showcase-gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(72vw, 17.5rem);
    gap: 1rem;
    width: calc(100% + 0.75rem);
    padding: 0 0.75rem 1rem 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }
  .showcase-card { scroll-snap-align: start; }
  .policy-shell { width: min(100% - 1.5rem, 48rem); padding-top: 2rem; }
}

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