:root {
  color-scheme: light;
  --ink: #16212e;
  --muted: #586879;
  --paper: #f7f8fa;
  --line: #dce3ea;
  --brand: #0a7a6e;
  --brand-dark: #075a52;
  --accent: #f5b84b;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(22, 33, 46, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans CJK SC", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.brand { font-size: 17px; font-weight: 780; text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch, .button {
  border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink);
  padding: 9px 14px; cursor: pointer; font: inherit; font-size: 14px; text-decoration: none;
}
.lang-switch[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.button.primary { background: var(--brand); border-color: var(--brand); color: white; font-weight: 700; }
.button.primary:hover { background: var(--brand-dark); }
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; padding: 84px 0 62px; align-items: center; }
.eyebrow { color: var(--brand); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: clamp(42px, 6vw, 72px); margin: 12px 0 20px; max-width: 800px; }
h2 { font-size: clamp(28px, 3vw, 42px); margin: 0 0 18px; }
h3 { font-size: 20px; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 19px; max-width: 690px; margin: 0 0 30px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card, .card, .faq, .notice, .install { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.hero-card { padding: 26px; }
.hero-card p { color: var(--muted); margin: 4px 0 18px; }
.mini-result { border-radius: 14px; background: #eff9f7; padding: 16px; margin-top: 14px; }
.mini-result strong { color: var(--brand-dark); }
.section { padding: 72px 0; }
.section.alt { background: #eaf3f1; }
.section-intro { max-width: 720px; color: var(--muted); margin: 0 0 34px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { padding: 25px; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--brand); }
.card p, .card li { color: var(--muted); }
.card .tag { color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 22px; background: white; border-radius: 18px; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); color: var(--accent); font-size: 26px; font-weight: 850; display: block; margin-bottom: 10px; }
.faq { padding: 6px 24px; box-shadow: none; margin-bottom: 10px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 750; }
.faq p { color: var(--muted); margin: 0 0 18px; }
.install { padding: 26px; box-shadow: none; }
pre { overflow: auto; border-radius: 14px; background: #14212b; color: #e8f4f2; padding: 17px; font-size: 14px; line-height: 1.6; }
.notice { padding: 20px 24px; box-shadow: none; border-left: 5px solid var(--accent); }
.footer { padding: 38px 0 60px; color: var(--muted); font-size: 14px; }
.footer a { color: var(--brand-dark); }
.guide-hero { padding: 64px 0 40px; max-width: 820px; }
.guide-hero h1 { font-size: clamp(38px, 5vw, 58px); }
.guide-content { padding: 14px 0 76px; max-width: 840px; }
.guide-content .card { margin: 16px 0; }
.language[hidden] { display: none; }

@media (max-width: 780px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .nav { align-items: flex-start; }
  .nav-actions { justify-content: flex-end; flex-wrap: wrap; }
  .hero, .grid, .grid.two, .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 46px; gap: 28px; }
  .section { padding: 52px 0; }
  h1 { font-size: 42px; }
  .lead { font-size: 17px; }
}
