/* ShiYiHui — Product landing
   Fonts (commercial-safe, SIL OFL 1.1 via Google Fonts):
   - Manrope — Latin
   - Noto Sans SC — Simplified Chinese
   Do NOT embed Apple PingFang / Microsoft YaHei / SF Pro webfont files. */

:root {
  --bg: #121214;
  --bg-elevated: #1e1e22;
  --bg-soft: #18181b;
  --bg-header: rgba(18, 18, 20, 0.78);
  --text: #f2f2f4;
  --text-muted: #9a9aa3;
  --primary: #c48462;
  --primary-hover: #d09270;
  --primary-soft: rgba(196, 132, 98, 0.14);
  --secondary: #8da399;
  --secondary-soft: rgba(141, 163, 153, 0.14);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1120px;
  --shadow-phone: 0 28px 64px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(196, 132, 98, 0.12), transparent 55%),
    radial-gradient(700px 380px at 92% 8%, rgba(141, 163, 153, 0.08), transparent 50%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.header-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--secondary);
  background: var(--secondary-soft);
  border: 1px solid rgba(141, 163, 153, 0.28);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button.active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

@media (max-width: 520px) {
  .header-badge {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 4.75rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3.25rem;
  align-items: center;
  position: relative;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(141, 163, 153, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.65rem;
  max-width: 22ch;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hero-pitch {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 1.85rem;
  max-width: 36ch;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: default;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

a.btn {
  cursor: pointer;
}

a.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #1a1210;
}

a.btn-primary:hover,
.btn-primary:hover {
  background: var(--primary-hover);
  color: #1a1210;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

a.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.hero-meta strong {
  color: var(--text);
  font-weight: 700;
}

.hero-meta [data-i18n="hero.metaOffline"]:empty {
  display: none;
}

/* Phone mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone {
  width: min(270px, 82vw);
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #2a2a2e, #0c0c0e);
  border-radius: 38px;
  padding: 11px;
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform: rotateY(-6deg) rotateX(3deg);
  transition: transform 0.5s var(--ease);
}

.phone-wrap:hover .phone {
  transform: rotateY(-2deg) rotateX(1deg) translateY(-4px);
}

@media (max-width: 899px) {
  .phone {
    transform: none;
  }

  .phone-wrap:hover .phone {
    transform: translateY(-2px);
  }
}

.phone-screen {
  height: 100%;
  border-radius: 29px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch span {
  width: 72px;
  height: 22px;
  background: #0a0a0b;
  border-radius: 999px;
}

.phone-ui {
  flex: 1;
  padding: 0.65rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ui-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.ui-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin: 0;
}

.ui-card {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
}

.ui-card-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ui-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary-soft);
  flex-shrink: 0;
  position: relative;
}

.ui-icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 3px;
  background: var(--primary);
  opacity: 0.85;
}

.ui-icon.green {
  background: var(--secondary-soft);
}

.ui-icon.green::after {
  background: var(--secondary);
  border-radius: 50%;
}

.ui-card h4 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
}

.ui-card p {
  margin: 0.15rem 0 0;
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ui-donut {
  align-self: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary) 0 42%,
    var(--secondary) 42% 68%,
    rgba(255, 255, 255, 0.08) 68% 100%
  );
  display: grid;
  place-items: center;
  margin: 0.5rem auto;
}

.ui-donut::after {
  content: "4.2 kg";
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text);
}

.phone-tabs {
  display: flex;
  justify-content: space-around;
  padding: 0.55rem 0 0.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-muted);
}

.phone-tabs span.active {
  color: var(--primary);
}

/* Sections */
section {
  padding: 4.25rem 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.section-title {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 0 2.4rem;
  font-size: 0.98rem;
}

.features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem 1.5rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    background 0.25s;
}

.feature-card:hover {
  border-color: rgba(196, 132, 98, 0.4);
  transform: translateY(-3px);
  background: var(--bg-elevated);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--primary-soft);
  position: relative;
}

.feature-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--primary);
  opacity: 0.9;
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--secondary-soft);
}

.feature-card:nth-child(2) .feature-icon::before {
  background: var(--secondary);
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.feature-card:nth-child(3) .feature-icon::before {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 6px 0 0 var(--primary), 0 6px 0 var(--primary), 6px 6px 0 var(--primary);
  background: var(--primary);
  opacity: 0.75;
}

.feature-card:nth-child(4) .feature-icon::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 8px -4px 0 var(--primary), -7px 5px 0 var(--secondary);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Showcase */
.showcase-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.showcase-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.showcase-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.showcase-item .mini-ui {
  flex: 1;
  background: var(--bg-elevated);
  border-radius: 14px;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
}

.showcase-item h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.showcase-item > p {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.mini-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: center;
  height: 100%;
}

.mini-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mini-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--primary);
}

.mini-bar:nth-child(2) span {
  width: 72%;
  background: var(--secondary);
}

.mini-bar:nth-child(3) span {
  width: 48%;
}

.mini-lab-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--secondary-soft);
  color: var(--secondary);
  margin-bottom: 0.55rem;
}

/* Highlights */
.highlights {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

.highlight-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .highlight-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.highlight {
  text-align: center;
  padding: 1.35rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.highlight strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.highlight span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* CTA */
.cta {
  text-align: center;
  padding: 4.5rem 0 5rem;
}

.cta-box {
  background:
    radial-gradient(520px 180px at 50% 0%, rgba(196, 132, 98, 0.12), transparent 70%),
    linear-gradient(160deg, var(--bg-soft), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 560px;
  margin-inline: auto;
}

.cta h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta .btn-primary {
  cursor: default;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 2rem;
  background: #0e0e10;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand p {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 38ch;
  line-height: 1.55;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--text);
}

/* Privacy page */
.page-main {
  padding: 3rem 0 4rem;
}

.page-main h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.page-main .lead {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.page-main h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

.page-main p,
.page-main li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.page-main ul {
  padding-left: 1.25rem;
}

html[data-lang="en"] .hero-tagline {
  max-width: 18ch;
}

html[data-lang="en"] .hero-pitch {
  max-width: 40ch;
}
