:root {
  --bg: #0b0f14;
  --backdrop: #030608;
  --card: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.38);
  --blue: #4e8cff;
  --violet: #8b5cf6;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glows — the same two blobs the app paints behind its screens. */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  top: -180px; left: -140px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(78, 140, 255, 0.16), transparent 70%);
}
body::after {
  bottom: -220px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 70%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
header.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand .mark {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(78, 140, 255, 0.3);
}
.brand .name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

.langs { display: flex; gap: 6px; }
.langs button {
  background: var(--card);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.langs button:hover { color: var(--text); }
.langs button[aria-pressed="true"] {
  background: rgba(78, 140, 255, 0.16);
  border-color: rgba(78, 140, 255, 0.4);
  color: var(--blue);
}

/* ── Content ─────────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.updated { color: var(--faint); font-size: 14px; margin-bottom: 36px; }

h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }

p, li { color: var(--muted); font-size: 15.5px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }

strong { color: var(--text); font-weight: 600; }

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

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
}
.card.accent {
  background: linear-gradient(135deg, rgba(78, 140, 255, 0.12), rgba(139, 92, 246, 0.05));
  border-color: rgba(78, 140, 255, 0.24);
}
.card h2, .card h3 { margin-top: 0; }
.card :last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 14px;
  margin-top: 6px;
}
.btn:hover { text-decoration: none; opacity: 0.92; }

.tiles { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  transition: border-color 0.18s, transform 0.18s;
}
.tile:hover { border-color: rgba(78, 140, 255, 0.45); transform: translateY(-2px); text-decoration: none; }
.tile .t { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.tile .d { color: var(--faint); font-size: 14px; }

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  color: var(--faint);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

[data-lang] { display: none; }
[data-lang].on { display: block; }
