:root {
  color-scheme: light dark;
  --bg: #f7f6ff;
  --surface: rgba(255, 255, 255, 0.86);
  --text: #242132;
  --muted: #6f6a7d;
  --line: rgba(70, 58, 115, 0.12);
  --brand: #6656ed;
  --brand-soft: #eeeaff;
  --shadow: 0 22px 70px rgba(54, 42, 104, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(123, 102, 245, 0.17), transparent 30rem),
    radial-gradient(circle at 94% 20%, rgba(91, 208, 198, 0.14), transparent 28rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.68;
}

a { color: var(--brand); }

.shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.app-icon {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 7px 20px rgba(36, 31, 63, 0.2);
  object-fit: cover;
}

nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

nav a,
.language {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

nav a:hover,
.language:hover { background: var(--brand-soft); color: var(--brand); }

.language { border: 1px solid var(--line); background: var(--surface); }

main { padding: 28px 0 80px; }

.hero {
  padding: clamp(34px, 7vw, 68px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.kicker {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; }

h1 { margin: 0 0 18px; font-size: clamp(40px, 8vw, 70px); }

.document h1 { font-size: clamp(38px, 7vw, 62px); }

.lede { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(18px, 3vw, 22px); }

.meta { margin-top: 22px; color: var(--muted); font-size: 14px; }

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

.card {
  display: block;
  min-height: 210px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(54, 42, 104, 0.07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { font-size: 30px; }
.card h2 { margin: 22px 0 8px; font-size: 25px; }
.card p { margin: 0; color: var(--muted); }

.document {
  padding: clamp(30px, 7vw, 64px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document section { padding-top: 26px; }
.document h2 { margin: 0 0 10px; font-size: 25px; }
.document p { margin: 0 0 14px; }
.document ul { margin: 10px 0 16px; padding-left: 24px; }
.document li { margin: 7px 0; }
.document strong { font-weight: 730; }

.notice {
  margin: 28px 0 4px;
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 4px 16px 16px 4px;
  background: var(--brand-soft);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

footer a { color: inherit; }

@media (max-width: 700px) {
  header { align-items: flex-start; }
  nav a:not(.language) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 170px; }
  footer { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17151f;
    --surface: rgba(35, 32, 46, 0.88);
    --text: #f3f0fb;
    --muted: #b7b1c5;
    --line: rgba(226, 218, 255, 0.12);
    --brand: #a99cff;
    --brand-soft: rgba(111, 91, 232, 0.18);
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  }
}
