:root {
  color-scheme: light;
  --ink: #15262f;
  --muted: #607681;
  --line: #cedbdf;
  --paper: #f8fbfb;
  --mist: #e8f0f2;
  --accent: #4c6977;
  --accent-strong: #294a59;
  --warm: #b6a58b;
  --white: #ffffff;
  font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 12px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid rgba(206, 219, 223, .9);
  background: rgba(248, 251, 251, .96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  text-decoration: none;
  font-family: "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
  font-size: 20px;
  font-weight: 700;
}

.brand img { display: block; }

nav { display: flex; align-items: center; gap: 30px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--ink); }

.header-tools { display: flex; align-items: center; justify-self: end; gap: 12px; }
.language-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: var(--white); }
.language-switch a { display: grid; min-width: 42px; min-height: 34px; place-items: center; border-radius: 4px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.language-switch a:hover { color: var(--accent-strong); background: var(--mist); }
.language-switch a.is-active { color: var(--white); background: var(--accent-strong); }

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 650;
}

.header-action {
  justify-self: end;
  color: var(--white);
  background: var(--accent-strong);
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: min(790px, calc(100vh - 72px));
  display: flex;
  align-items: flex-start;
  padding: clamp(78px, 11vh, 128px) clamp(24px, 7vw, 112px);
  overflow: hidden;
  background-image: url("../store/assets/screenshot-workstation-1280x800.png");
  background-size: cover;
  background-position: center 24%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(248, 251, 251, .78);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 76vw);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
  letter-spacing: 0;
}

h1 { font-size: clamp(54px, 8vw, 108px); line-height: 1.03; }
.page-en h1 { font-size: clamp(46px, 7vw, 92px); }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.18; }

.hero-lead {
  margin: 18px 0 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
  font-size: clamp(25px, 3.3vw, 42px);
  font-weight: 650;
  line-height: 1.35;
  max-width: 100%;
  white-space: normal;
}

.hero-description {
  max-width: 680px;
  margin: 24px 0 0;
  color: #344d59;
  font-size: clamp(17px, 1.6vw, 21px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.primary-action { color: var(--white); background: var(--accent-strong); }
.secondary-action { background: rgba(255, 255, 255, .76); }
.release-note { margin: 15px 0 0; color: var(--muted); font-size: 13px; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 clamp(24px, 7vw, 112px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.proof-strip div { min-height: 132px; display: flex; flex-direction: column; justify-content: center; padding: 24px; border-right: 1px solid var(--line); }
.proof-strip div:first-child { border-left: 1px solid var(--line); }
.proof-strip strong { font-family: "Noto Serif SC", "Source Han Serif SC", SimSun, serif; font-size: 36px; line-height: 1.2; }
.proof-strip span { color: var(--muted); }

.section { padding: clamp(76px, 10vw, 140px) clamp(24px, 7vw, 112px); }
.section-muted { background: var(--mist); }

.demo-section { background: var(--mist); }
.video-frame {
  width: min(1180px, 100%);
  aspect-ratio: 16 / 9;
  margin: 56px auto 0;
  overflow: hidden;
  border: 1px solid #b8c9ce;
  border-radius: 8px;
  background: #0c151a;
  box-shadow: 0 24px 60px rgba(21, 38, 47, .14);
}
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-link { margin: 16px auto 0; text-align: center; color: var(--accent-strong); font-weight: 700; }
.video-link a { text-underline-offset: 4px; }

.install-section { background: var(--white); }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 54px; }
.install-grid article { display: flex; min-height: 300px; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 32px; background: var(--paper); }
.install-grid h3 { margin: 22px 0 0; font-family: "Noto Serif SC", "Source Han Serif SC", SimSun, serif; font-size: 27px; }
.install-grid p { margin: 14px 0 28px; color: var(--muted); }
.install-grid .primary-action,
.install-grid .secondary-action { margin-top: auto; }
.install-status { display: inline-flex; min-height: 30px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--muted); font-size: 12px; font-weight: 700; }
.install-status.is-ready { border-color: var(--accent); color: var(--accent-strong); background: var(--mist); }
.checksum-note { margin-top: 24px; border-left: 3px solid var(--accent); padding: 18px 22px; background: var(--mist); }
.checksum-note strong { font-size: 18px; }
.checksum-note p { margin: 7px 0; color: var(--muted); }
.checksum-note code { display: block; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--white); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; white-space: nowrap; }

.section-heading { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(320px, 1fr); column-gap: clamp(40px, 8vw, 120px); align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 18px; }
.section-heading.compact { display: block; max-width: 820px; }
.section-heading.compact > p:last-child { margin-top: 14px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.feature-grid article { position: relative; min-height: 220px; padding: 34px 24px 38px 62px; border-bottom: 1px solid var(--line); }
.feature-index { position: absolute; top: 38px; left: 0; color: var(--warm); font-family: ui-monospace, monospace; font-weight: 700; }
.feature-grid h3 { margin: 0; font-family: "Noto Serif SC", "Source Han Serif SC", SimSun, serif; font-size: 25px; }
.feature-grid p { margin: 14px 0 0; color: var(--muted); }

.workflow-list { list-style: none; margin: 64px 0 0; padding: 0; border-top: 1px solid #bfd0d5; }
.workflow-list li { display: grid; grid-template-columns: 72px 1fr; gap: 26px; align-items: start; padding: 32px 0; border-bottom: 1px solid #bfd0d5; }
.workflow-list li > span { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; font-family: ui-monospace, monospace; }
.workflow-list h3 { margin: 0; font-size: 23px; }
.workflow-list p { margin: 6px 0 0; color: var(--muted); }

.privacy-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 140px); background: var(--accent-strong); color: var(--white); }
.privacy-section .section-heading { display: block; }
.privacy-section .eyebrow { color: #c7d9df; }
.privacy-copy { align-self: end; border-top: 1px solid rgba(255,255,255,.32); }
.privacy-copy p { margin: 0; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.22); color: #e3edef; font-size: 18px; }

.brand-grid { display: grid; grid-template-columns: repeat(7, minmax(116px, 1fr)); gap: 12px; margin-top: 54px; }
.brand-grid a { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); text-decoration: none; }
.brand-grid a:hover { border-color: var(--accent); }
.brand-grid img { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; object-fit: contain; }
.brand-grid span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; }

footer { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 140px); padding: 52px clamp(24px, 7vw, 112px); border-top: 1px solid var(--line); background: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-family: "Noto Serif SC", "Source Han Serif SC", SimSun, serif; font-size: 19px; }
.footer-brand span, .legal { color: var(--muted); font-size: 12px; }
.legal p { margin: 0 0 8px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 6px; }
.legal-links a { color: var(--accent-strong); }

.legal-page { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 110px; }
.legal-page header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-page h1 { font-size: clamp(42px, 7vw, 72px); }
.legal-page .effective-date { margin-top: 12px; color: var(--muted); }
.policy-section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.policy-section h2 { font-size: 28px; }
.policy-section p,
.policy-section li { color: #344d59; }
.policy-section a { color: var(--accent-strong); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header > nav { display: none; }
  .brand-grid { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
  .section-heading, .privacy-section, footer { grid-template-columns: 1fr; }
  .section-heading > p:last-child { margin-top: 20px; }
}

@media (max-width: 680px) {
  .site-header { min-height: 64px; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 16px; }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .header-action { display: none; }
  .header-tools { gap: 0; }
  .language-switch a { min-width: 38px; min-height: 32px; }
  .hero { min-height: calc(100svh - 108px); padding: 56px 20px 44px; background-position: 48% center; }
  .hero-scrim { background: rgba(248, 251, 251, .84); }
  .hero-copy { width: 100%; }
  h1 { font-size: 52px; }
  .page-en h1 { font-size: 46px; }
  .hero-lead { font-size: 27px; }
  .hero-description { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .proof-strip div { min-height: 102px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .section { padding: 72px 20px; }
  .video-frame { margin-top: 38px; }
  h2 { font-size: 36px; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .install-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 0; padding-right: 0; }
  .workflow-list li { grid-template-columns: 52px 1fr; gap: 14px; }
  .workflow-list li > span { width: 42px; height: 42px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer { padding: 42px 20px; }
}
