:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --text: #161821;
  --muted: #5a616e;
  --line: #e4e7ee;
  --brand: #2f6fed;
  --brand-dark: #1e4fbe;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --bg-soft: #161b24;
    --text: #eef1f6;
    --muted: #a4abb8;
    --line: #262d3a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

/* header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 18px; }
.brand img { width: 30px; height: 30px; }
nav.main { display: flex; align-items: center; gap: 22px; }
nav.main a { color: var(--muted); font-size: 15px; }
nav.main a:hover, nav.main a.active { color: var(--text); text-decoration: none; }
nav.main a.btn, nav.main a.btn:hover { color: #fff; }

.btn {
  display: inline-block; padding: 10px 20px; border-radius: 9px; font-weight: 600; font-size: 15px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--bg-soft); }

/* hero */
.hero { padding: 84px 0 64px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-block; margin-bottom: 18px; padding: 5px 14px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--brand); font-size: 13px; font-weight: 600;
}

/* sections */
section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -0.01em; }
.sub { color: var(--muted); max-width: 640px; margin: 0 0 32px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
section.soft .card { background: var(--bg); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.plan { max-width: 520px; margin: 0 auto; text-align: center; padding: 32px; border: 2px solid var(--brand); }
.plan .big { font-size: 38px; font-weight: 700; margin: 6px 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* legal / text pages */
.page { padding: 48px 0 72px; max-width: 780px; }
.page h1 { font-size: 36px; margin: 0 0 6px; letter-spacing: -0.01em; }
.page .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.page h2 { font-size: 21px; margin: 32px 0 8px; }
.page p, .page li { color: var(--muted); }
.page li { margin-bottom: 6px; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--muted); }

@media (max-width: 640px) {
  nav.main a:not(.btn) { display: none; }
  .hero { padding: 56px 0 40px; }
}
