:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #5c6570;
  --accent: #0f766e;
  --accent-dark: #0b5d57;
  --border: #e6e8ec;
  --font: 'IBM Plex Sans', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent);
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: #eef1f4;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ===== Site header (product page) ===== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-head__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-head__nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.site-head__nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-head__nav a:hover {
  color: var(--accent);
}

/* ===== Hero ===== */

.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 20px 56px;
  text-align: center;
}

.hero__kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero__accent {
  color: var(--accent);
}

.hero__sub {
  margin: 0 auto 12px;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

.hero__privacy {
  margin: 0 0 28px;
  font-size: 15px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Sections ===== */

.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.section__title {
  margin: 0 0 24px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: -12px 0 24px;
  color: var(--muted);
}

.section__more {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ===== Feature grid ===== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.section--alt .card {
  background: var(--bg);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ===== Steps ===== */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ===== Privacy note ===== */

.privacy-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 20px 24px;
  max-width: 720px;
}

.privacy-note p {
  margin: 0 0 10px;
}

.privacy-note p:last-child {
  margin-bottom: 0;
}

/* ===== Install ===== */

.install-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}

.install-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.install-step h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.install-step pre {
  margin: 0;
  padding: 14px;
  background: #1b1f24;
  color: #e6e8ec;
  border-radius: 8px;
  overflow-x: auto;
}

.install-step pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

.install-step ol {
  margin: 0;
  padding-left: 1.2em;
}

.install-step li {
  margin-bottom: 6px;
  font-size: 14.5px;
}

/* ===== Site footer ===== */

.site-foot {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.site-foot__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.site-foot__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Privacy policy page (legacy layout) ===== */

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--accent);
}

.tag {
  margin: 8px 0 0;
  font-weight: 600;
  font-size: 18px;
}

.meta,
.lang {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

h1 {
  font-size: 22px;
  margin: 0 0 12px;
}

h2 {
  font-size: 17px;
  margin: 28px 0 10px;
}

section p,
section ul {
  margin: 0 0 10px;
}

ul {
  padding-left: 1.2em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: #f0f2f5;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
