:root {
  --bg: #f4f8fd;
  --surface: #ffffff;
  --ink: #12213a;
  --muted: #5b6b85;
  --line: #dde6f2;
  --brand: #2f7fe0;
  --brand-ink: #1c5fb4;
  --brand-soft: #e6f0fc;
  --accent: #ffb21a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 33, 58, .05), 0 8px 28px rgba(47, 127, 224, .08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1420;
    --surface: #141f30;
    --ink: #e8eef8;
    --muted: #9aa9c0;
    --line: #24324a;
    --brand: #6aa9f5;
    --brand-ink: #8fc0fa;
    --brand-soft: #1a2a42;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: 4px; overflow-x: auto; }
.site-nav a { padding: 6px 10px; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 64px 20px 36px; }
.hero .icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; letter-spacing: -.02em; margin: 24px 0 12px; }
.hero .sub { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px;
  background: var(--brand); color: #fff; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* Sections */
section { padding: 28px 0; }
.section-title { font-size: 22px; letter-spacing: -.01em; margin: 0 0 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; color: inherit; box-shadow: var(--shadow);
}
a.card:hover { text-decoration: none; border-color: var(--brand); }
.card .emoji { font-size: 26px; line-height: 1; }
.card h3 { margin: 12px 0 4px; font-size: 16.5px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* About */
#about { scroll-margin-top: 76px; }
.about {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; box-shadow: var(--shadow);
}
.about p { margin: 0 0 14px; }
.about ul { margin: 0 0 20px; padding-left: 22px; color: var(--muted); }
.about li { margin-bottom: 6px; }
.about strong { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }

/* FAQ */
.faq-group { margin: 26px 0 10px; font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); scroll-margin-top: 76px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-body { padding: 0 18px 16px; color: var(--muted); }
.faq-body p, .faq-body ol, .faq-body ul { margin: 0 0 10px; }
.faq-body ol, .faq-body ul { padding-left: 22px; }
.faq-body :last-child { margin-bottom: 0; }
.faq-body strong { color: var(--ink); font-weight: 600; }

/* Contact */
.contact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); scroll-margin-top: 76px;
}
.contact h2 { margin: 0 0 8px; font-size: 22px; }
.contact p { margin: 0 0 14px; color: var(--muted); }
.contact ul { margin: 0 0 18px; padding-left: 22px; color: var(--muted); }
.contact .mail { font-size: 18px; font-weight: 650; word-break: break-all; }

.note {
  margin-top: 22px; padding: 14px 16px; border-radius: 14px; font-size: 14px;
  background: var(--brand-soft); color: var(--muted);
}

/* Legal pages */
.legal { padding: 44px 0 20px; }
.legal article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 5vw, 48px); box-shadow: var(--shadow);
}
.legal h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 10px; }
.legal .meta { color: var(--muted); font-size: 14.5px; margin: 0 0 4px; }
.legal h2 { font-size: 18.5px; margin: 34px 0 10px; }
.legal p { margin: 0 0 14px; overflow-wrap: anywhere; }

/* Footer */
footer.site { margin-top: 36px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site a { color: var(--muted); }

.center { text-align: center; padding: 96px 20px; }
.center h1 { font-size: 34px; margin: 0 0 8px; }
.center p { color: var(--muted); margin: 0 0 24px; }

@media (max-width: 560px) {
  .brand span { display: none; }
  .hero { padding-top: 44px; }
}
