:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --ink: #1f2328;
  --muted: #59636e;
  --line: #d0d7de;
  --blue: #0969da;
  --blue-deep: #0550ae;
  --blue-soft: #f6f8fa;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.site-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.language-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.language-button.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-weight: 700;
}

.hero,
.section-grid {
  display: block;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero h1,
.feature-panel h2 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 58px);
  max-width: none;
}

.hero-subtitle {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: #4b5563;
  font-weight: 500;
}

.hero-text,
.feature-panel p,
.bullets,
.steps {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.hero-text {
  margin: 14px 0 0;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
}

.button:hover {
  background: #f3f4f6;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  border-color: rgba(0, 0, 0, 0);
}

.button.secondary {
  background: #f6f8fa;
  color: var(--ink);
}

.hero-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: #64748b;
}

.hero-card,
.feature-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  margin-top: 24px;
}

.hero-card-bar {
  display: none;
}

.hero-card-body {
  padding: 20px;
}

.hero-card-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.hero-card ul,
.bullets,
.steps {
  margin: 0;
  padding-left: 18px;
}

.hero-card li,
.bullets li,
.steps li {
  margin-bottom: 12px;
}

.section-grid {
  margin-top: 20px;
}

.feature-panel {
  padding: 20px;
  margin-top: 16px;
}

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

.feature-list h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
}

.feature-list p {
  margin: 0;
}

.install-panel {
  background: var(--panel-strong);
}

.manual-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding: 12px 0 0;
  color: #64748b;
  border-top: 1px solid var(--line);
}

code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #f6f8fa;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-qr {
  width: min(100%, 280px);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.stats-panel {
  margin-top: 20px;
}

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

.stats-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.stats-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.stats-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
}

.trend-block + .trend-block {
  margin-top: 22px;
}

.trend-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--ink);
}

.trend-chart {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  min-height: 132px;
  padding: 14px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow-x: auto;
}

.trend-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 18px;
}

.trend-bar {
  width: 100%;
  min-height: 8px;
  border-radius: 6px 6px 0 0;
}

.trend-label {
  font-size: 11px;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.stats-table-wrap {
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}

.stats-table th,
.stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.stats-table th {
  color: var(--muted);
  font-weight: 600;
}

.contact-caption {
  margin: 12px 0 0;
  font-size: 14px;
  color: #6b7280;
}

.footer p {
  margin: 0;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: #4b5f8e;
  text-decoration: none;
}

@media (max-width: 900px) {
  .feature-list {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .site-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 24px;
  }

  .hero h1 {
    max-width: none;
  }

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