:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --text: #17202a;
  --muted: #687384;
  --line: rgba(35, 45, 58, 0.12);
  --primary: #117d7a;
  --primary-strong: #0c6461;
  --accent: #e66b4f;
  --amber: #f3b950;
  --shadow: 0 24px 70px rgba(31, 42, 55, 0.12);
  --radius: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(17, 125, 122, 0.16), transparent 32rem),
    linear-gradient(135deg, #fbfaf7 0%, var(--bg) 44%, #eef5f3 100%);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

img {
  max-width: 100%;
}

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 12px 24px rgba(20, 32, 46, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
.language-toggle button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 680;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(31, 42, 55, 0.06);
}

.nav a[aria-current="page"],
.language-toggle button.is-active,
.button.primary {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}

.button.primary:hover,
.nav a[aria-current="page"]:hover,
.language-toggle button.is-active:hover {
  color: #fff;
  background: var(--primary-strong);
}

.language-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.language-toggle button {
  min-height: 32px;
  padding: 5px 10px;
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 38px;
  align-items: center;
  padding: 54px 0 44px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 760;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

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

h1 {
  margin-bottom: 18px;
  max-width: 720px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.25;
}

.lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
}

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

.button {
  min-height: 48px;
  padding: 11px 18px;
}

.visual-stack {
  position: relative;
  min-height: 470px;
}

.screenshot-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.screenshot-frame.primary-shot {
  position: relative;
  z-index: 2;
  transform: rotate(-1deg);
}

.screenshot-frame.secondary-shot {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 54%;
  transform: rotate(3deg);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 54px 0;
}

.section.compact {
  padding-top: 24px;
}

.section-header {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-header p,
.doc-content > p,
.card p,
.support-card p,
.faq-answer,
.muted {
  color: var(--muted);
}

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

.card,
.support-card,
.doc-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(31, 42, 55, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card,
.support-card {
  padding: 22px;
}

.support-card h2 {
  font-size: 24px;
  line-height: 1.16;
}

.support-card img {
  display: block;
  border-radius: 12px;
}

.card .marker {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #eaf6f3;
  color: var(--primary-strong);
  font-weight: 820;
}

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

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 120px;
}

.link-card::after {
  content: "->";
  color: var(--primary);
  font-weight: 820;
}

.doc-hero {
  padding: 46px 0 24px;
}

.doc-panel {
  padding: clamp(24px, 5vw, 46px);
}

.doc-content {
  max-width: 820px;
}

.doc-content h2 {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 28px;
}

.doc-content h3 {
  margin-top: 28px;
}

.doc-content ul,
.doc-content ol {
  padding-left: 22px;
  color: var(--muted);
}

.doc-content li {
  margin: 8px 0;
}

.doc-content strong {
  color: var(--text);
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  background: rgba(17, 125, 122, 0.08);
  color: var(--primary-strong);
}

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

.faq-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.faq-question {
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 760;
}

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

[data-i18n],
[data-i18n-html] {
  transition: opacity 120ms ease;
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 28px, 680px);
  }

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

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .visual-stack {
    min-height: 0;
    padding-bottom: 22%;
  }

  .feature-grid,
  .policy-grid,
  .support-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav a,
  .button {
    width: 100%;
  }

  .language-toggle {
    width: 100%;
  }

  .language-toggle button {
    flex: 1;
  }

  h1 {
    font-size: 42px;
  }

  .secondary-shot {
    display: none;
  }

  .visual-stack {
    padding-bottom: 0;
  }

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