:root {
  --bg: #f6f7f4;
  --card: #ffffff;
  --text: #17181a;
  --muted: #5d6168;
  --border: #e3e5e1;
  --accent: #2f9e63;
  --accent-soft: #e8f5ee;
  --shadow: 0 18px 50px rgba(23, 24, 26, 0.08);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1210;
    --card: #171b18;
    --text: #f2f4f1;
    --muted: #a8b0aa;
    --border: #262c28;
    --accent: #4cc482;
    --accent-soft: #17301f;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Noto Sans SC", "Noto Sans", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

.site-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

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

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

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

/* language switch */
.lang-switch {
  margin-left: auto;
  position: relative;
  font-size: 14px;
}

.lang-switch summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}

.lang-switch summary::-webkit-details-marker { display: none; }

.lang-switch ul {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 190px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.lang-switch li a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.lang-switch li a:hover { background: var(--accent-soft); }

.lang-switch li a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

/* hero */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 20px 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 34em;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

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

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

.note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.phone {
  justify-self: center;
  display: flex;
  justify-content: center;
}

.phone img {
  width: min(100%, 330px);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}

/* features */
.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.feature h2 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

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

/* showcase */
.showcase {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 20px 76px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.showcase h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-wrap: balance;
}

/* support */
.support {
  max-width: 820px;
  margin: 0 auto;
  padding: 46px 20px 84px;
}

.support h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2px 18px;
  margin: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 15px 0;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.faq[open] summary::after { content: "−"; }

.faq p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.contact {
  margin-top: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact h2 {
  font-size: 21px;
  margin: 0 0 8px;
}

.contact p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

/* legal */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 20px 84px;
}

.legal-page h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 20px;
}

.legal-page h2 {
  font-size: 22px;
  margin: 34px 0 10px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page strong { color: var(--text); }

.legal-page ul {
  padding-left: 22px;
}

.legal-page li { margin: 6px 0; }

.legal-page a { color: var(--accent); }

.legal-page hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.legal-notice {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
}

@media (max-width: 880px) {
  .hero,
  .showcase {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .phone { order: -1; }

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

  .site-nav { display: none; }
}
