:root {
  color-scheme: light;
  --page: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f3f6fa;
  --text: #101827;
  --secondary: #647084;
  --muted: #9aa4b2;
  --line: #e3e8f0;
  --brand: #111827;
  --accent: #2563eb;
  --accent-soft: #eaf1ff;
  --danger: #c91f24;
  --radius: 8px;
  --shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.1);
  --shadow-device: 0 28px 70px rgba(15, 23, 42, 0.16);
  font-family: "HarmonyOS Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbfdff 0%, var(--page) 58%, #ffffff 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.app-changelog-shell {
  background: var(--page);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(1080px, calc(100% - 32px));
  height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 10px 0 14px;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 16px;
  font-weight: 800;
}

.brand img,
.download > img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
  color: var(--secondary);
  font-size: 14px;
}

.nav a,
.header-action,
.primary-button,
.secondary-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 16px;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.header-action,
.primary-button {
  background: var(--brand);
  color: #ffffff;
  font-weight: 760;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 720;
}

.hero {
  position: relative;
  width: min(1060px, calc(100% - 32px));
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) 360px;
  align-items: start;
  gap: 88px;
  margin: 0 auto;
  padding: 132px 0 86px;
}

.hero::before {
  display: none;
}

.hero-content {
  width: min(540px, 100%);
  padding-top: 86px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(82px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.3;
}

.hero-copy {
  width: min(500px, 100%);
  margin-bottom: 32px;
  color: #485569;
  font-size: 21px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  min-height: 48px;
  padding: 0 22px;
}

.hero-visual {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  display: none;
}

.device-shell {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 54px;
  background: linear-gradient(145deg, #ffffff, #edf3fa);
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.14);
  padding: 12px;
}

.device-sensor {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 3;
  width: 62px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.48);
  transform: translateX(-50%);
}

.hero-phone {
  width: 340px;
}

.phone-screen {
  position: relative;
  min-height: 604px;
  overflow: hidden;
  border-radius: 44px;
  background: #fbfcfe;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 52px 14px 8px;
}

.chrome-button,
.address-pill {
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef3f8;
}

.chrome-button {
  position: relative;
  width: 42px;
  flex: 0 0 42px;
}

.chrome-button img {
  width: 22px;
  height: 22px;
}

.tabs-button span {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 820;
}

.address-pill {
  min-width: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  padding: 0 14px;
}

.address-pill > img {
  display: none;
}

.address-pill span {
  min-width: 0;
  overflow: hidden;
  color: #8792a4;
  font-size: 14px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-pill button {
  display: none;
}

.address-pill button img {
  width: 18px;
  height: 18px;
}

.mock-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 198px 28px 0;
  text-align: center;
}

.mock-home strong {
  margin-top: 0;
  color: var(--brand);
  font-size: 50px;
  line-height: 1;
  font-weight: 900;
}

.mock-home p {
  margin: 10px 0 34px;
  color: #7b8798;
  font-size: 15px;
  font-weight: 620;
}

.mock-sites {
  display: grid;
  grid-template-columns: repeat(4, 64px);
  justify-content: center;
  gap: 14px 7px;
}

.site {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 18px;
  font-weight: 860;
  width: 64px;
  line-height: 1;
}

.site i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-style: normal;
}

.site em {
  width: 70px;
  color: var(--text);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  line-height: 18px;
}

.site.blue i { background: #2563eb; }
.site.dark i { background: #111827; }
.site.green i { background: #059669; }
.site.amber i { background: #d97706; }
.site.violet i { background: #7c3aed; }
.site.add i {
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #111827;
}

.section,
.privacy,
.download,
.site-footer {
  width: min(1080px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.feature,
.privacy,
.download {
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.045);
}

.section-heading p,
.feature p,
.privacy-list p,
.download p,
.site-footer {
  color: var(--secondary);
  line-height: 1.75;
}

.section {
  padding: 70px 0 70px;
}

.section-heading {
  width: min(680px, 100%);
  margin-bottom: 38px;
}

.section-heading p {
  margin-bottom: 0;
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  min-height: 190px;
  padding: 28px;
}

.feature img {
  width: 30px;
  height: 30px;
  margin-bottom: 24px;
}

.feature p {
  margin-bottom: 0;
  font-size: 16px;
}

.privacy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  margin-top: 28px;
  padding: 42px;
}

.privacy-list {
  display: grid;
  gap: 12px;
}

.privacy-list p {
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.download {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  margin-bottom: 56px;
  padding: 30px;
}

.download > img {
  width: 62px;
  height: 62px;
  border-radius: 18px;
}

.download h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 40px);
}

.download p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.policy-page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 64px;
}

.app-changelog-page {
  padding-top: 20px;
  padding-bottom: 20px;
}

.app-changelog-page .policy {
  box-shadow: none;
}

.policy {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 5vw, 54px);
}

.policy h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 6vw, 64px);
}

.policy h2 {
  margin-top: 40px;
  font-size: clamp(24px, 3vw, 32px);
}

.policy p,
.policy li {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.9;
}

.policy ul {
  margin: 0;
  padding-left: 22px;
}

.policy-meta {
  margin-bottom: 34px;
}

.policy-card {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 18px;
}

.policy-card p {
  margin: 0;
}

.changelog-page {
  display: grid;
  gap: 16px;
}

.changelog-hint {
  margin: -8px 0 4px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.8;
}

.changelog-list {
  display: grid;
  gap: 14px;
}

.changelog-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 22px;
}

.changelog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.changelog-head h2 {
  margin: 0 0 4px;
  font-size: 26px;
}

.changelog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.changelog-tag {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.changelog-tag.muted {
  background: var(--surface);
  color: var(--secondary);
  border: 1px solid var(--line);
}

.changelog-item ul {
  margin: 0;
  padding-left: 22px;
}

.changelog-item li + li {
  margin-top: 6px;
}

.policy-table {
  display: grid;
  margin: 18px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.policy-table [role="row"] {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.05fr 1.5fr;
  border-bottom: 1px solid var(--line);
}

.policy-table [role="row"]:last-child {
  border-bottom: 0;
}

.policy-table strong,
.policy-table span {
  padding: 14px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
}

.policy-table strong {
  color: var(--text);
  background: var(--surface-soft);
}

.guide-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 64px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 18px;
}

.guide-hero > div,
.guide-summary,
.guide-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.guide-hero > div {
  padding: clamp(28px, 5vw, 54px);
}

.guide-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5.4vw, 62px);
  line-height: 1.05;
}

.guide-hero p {
  max-width: 720px;
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.85;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.guide-actions .primary-button,
.guide-actions .secondary-button {
  min-height: 46px;
}

.guide-summary {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.guide-summary img {
  width: 72px;
  height: 72px;
  margin-bottom: auto;
  border-radius: 20px;
}

.guide-summary h2 {
  margin: 34px 0 12px;
  font-size: 28px;
}

.guide-summary p,
.guide-copy p,
.guide-heading p,
.guide-card p,
.guide-card li,
.faq-list dd,
.principle-grid span,
.slogan-list span,
.capability-list span {
  color: var(--secondary);
  line-height: 1.8;
}

.guide-section {
  margin-top: 18px;
  padding: clamp(24px, 5vw, 42px);
}

.guide-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.guide-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.guide-copy {
  max-width: 880px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.principle-grid article,
.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.principle-grid article {
  min-height: 130px;
  padding: 18px;
}

.principle-grid strong {
  display: block;
  color: var(--text);
  line-height: 1.55;
}

.principle-grid strong {
  margin-bottom: 10px;
  font-size: 20px;
}

.slogan-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: end;
}

.slogan-panel .guide-heading {
  margin-bottom: 0;
}

.slogan-panel .guide-heading p:last-child {
  margin-bottom: 0;
  font-size: 18px;
}

.slogan-list {
  display: grid;
  gap: 10px;
}

.slogan-list span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 12px 16px;
  font-weight: 720;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.capability-list article {
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 20px;
}

.capability-list img {
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
}

.capability-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 19px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 10px;
}

.guide-toc a {
  border-radius: 999px;
  color: var(--secondary);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 720;
}

.guide-toc a:hover {
  background: var(--surface);
  color: var(--text);
}

.guide-content {
  display: grid;
  gap: 12px;
}

.guide-card {
  padding: 24px;
}

.guide-card h3 {
  font-size: 24px;
}

.guide-page h1,
.guide-page h2,
.guide-page h3,
.guide-page p,
.guide-page li,
.guide-page dd,
.guide-page strong,
.guide-page span {
  overflow-wrap: anywhere;
}

.guide-card ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.guide-card li + li {
  margin-top: 6px;
}

.faq-list {
  display: grid;
  gap: 16px;
  margin: 14px 0 0;
}

.faq-list dt {
  color: var(--text);
  font-weight: 800;
}

.faq-list dd {
  margin: 6px 0 0;
}

@media (max-width: 1040px) {
  .site-header {
    gap: 14px;
    padding: 0 10px 0 12px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .nav {
    gap: 2px;
    font-size: 13px;
  }

  .nav a,
  .header-action {
    padding: 0 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 104px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-phone {
    width: min(340px, 84vw);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-hero,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slogan-panel,
  .capability-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    gap: 10px;
    justify-content: flex-start;
    padding: 0 10px 0 12px;
  }

  .nav {
    display: flex;
    gap: 0;
    margin-left: auto;
    font-size: 12px;
    min-width: max-content;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .nav a {
    min-height: 34px;
    padding: 0 10px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: auto;
    width: calc(100% - 44px);
    gap: 42px;
    padding-bottom: 58px;
  }

  .hero::before {
    display: none;
  }

  .hero-content,
  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 44px);
  }

  .hero-copy,
  .section-heading {
    max-width: 320px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-visual {
    justify-content: center;
  }

  h1 {
    font-size: clamp(48px, 16vw, 64px);
  }

  h2 {
    font-size: 34px;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    font-size: 18px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .section-heading p {
    overflow-wrap: anywhere;
  }

  .hero-phone {
    width: min(252px, calc(100vw - 64px));
  }

  .phone-screen {
    min-height: 500px;
  }

  .browser-bar {
    gap: 6px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .chrome-button,
  .address-pill {
    height: 38px;
  }

  .chrome-button {
    width: 38px;
    flex-basis: 38px;
  }

  .chrome-button img {
    width: 20px;
    height: 20px;
  }

  .address-pill {
    gap: 6px;
    padding-right: 5px;
    padding-left: 10px;
  }

  .address-pill > img {
    width: 16px;
    height: 16px;
  }

  .address-pill span {
    font-size: 13px;
  }

  .address-pill button,
  .address-pill button img {
    width: 16px;
    height: 16px;
  }

  .mock-home {
    padding-top: 142px;
  }

  .mock-home strong {
    font-size: 42px;
  }

  .mock-home p {
    margin-bottom: 26px;
    font-size: 13px;
  }

  .mock-sites {
    grid-template-columns: repeat(4, 54px);
    gap: 12px 4px;
  }

  .site {
    width: 54px;
    min-height: 62px;
    font-size: 15px;
  }

  .site i {
    width: 40px;
    height: 40px;
  }

  .site em {
    width: 58px;
    font-size: 12px;
  }

  .feature-grid,
  .privacy,
  .download,
  .policy-table [role="row"],
  .principle-grid,
  .guide-toc {
    grid-template-columns: 1fr;
  }

  .section,
  .privacy,
  .download,
  .site-footer {
    width: calc(100% - 44px);
  }

  .policy-table strong,
  .policy-table span {
    padding: 12px 14px;
  }

  .privacy,
  .download {
    padding: 24px;
  }

  .changelog-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .download {
    justify-items: start;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .guide-page {
    width: 100%;
    padding-top: 104px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .app-changelog-page {
    width: 100%;
    padding-top: 12px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .guide-hero > div,
  .guide-summary,
  .guide-section,
  .guide-card {
    padding: 22px;
  }

  .guide-hero h1 {
    font-size: 40px;
  }

  .guide-hero p,
  .guide-copy p,
  .guide-heading p,
  .guide-card p,
  .guide-card li,
  .faq-list dd {
    font-size: 15px;
  }

  .guide-summary h2 {
    font-size: 25px;
  }
}
