:root {
  --bg: #0b0f17;
  --bg-soft: #121826;
  --card: #161d2e;
  --text: #e6e9ef;
  --muted: #9aa3b2;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --border: #232b3d;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #16203a 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 22px 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px;
  max-width: 760px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}

.brand:hover { text-decoration: none; }

.logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), #7d5cff);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.nav a {
  color: var(--muted);
  margin-left: 18px;
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--text); text-decoration: none; }

.hero {
  text-align: center;
  padding: 60px 0 30px;
}
.hero h1 {
  font-size: 40px;
  margin: 18px 0 10px;
  letter-spacing: -0.5px;
}
.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto;
}
.hero .logo { width: 72px; height: 72px; border-radius: 20px; font-size: 38px; margin: 0 auto; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 44px;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.card .ico { font-size: 26px; }
.card h3 { margin: 12px 0 6px; color: var(--text); font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

h1, h2, h3 { line-height: 1.3; }

.doc h1 {
  font-size: 30px;
  margin-bottom: 4px;
  letter-spacing: -0.4px;
}
.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 30px;
}
.doc h2 {
  font-size: 20px;
  margin-top: 38px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.doc h2:first-of-type { border-top: none; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc p { color: #ccd3df; }

.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.3);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 24px 0;
  color: #d7e2ff;
  font-size: 15px;
}

.back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  text-align: center;
}
.contact-box .mail {
  font-size: 20px;
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 30px 22px 50px;
  border-top: 1px solid var(--border);
  max-width: 760px;
  margin: 40px auto 0;
}
footer a { color: var(--muted); margin: 0 8px; }
