:root {
  --bg: #07080d;
  --bg-2: #0d1020;
  --panel: rgba(22, 25, 40, 0.7);
  --panel-solid: #14172a;
  --text: #eef1ff;
  --muted: #9aa3c0;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --good: #34d399;
  --bad: #fb7185;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(139,92,246,0.25), transparent 60%),
    radial-gradient(700px 500px at 90% 0%, rgba(34,211,238,0.18), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(244,114,182,0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ===== Nav ===== */
nav.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.3px;
  color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 0 18px rgba(139,92,246,0.7);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
nav.top .nav-links {
  display: flex; gap: 6px; flex-wrap: wrap;
}
nav.top .nav-links a {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--muted);
}
nav.top .nav-links a:hover {
  color: var(--text);
  border-color: rgba(139,92,246,0.5);
  text-decoration: none;
}
nav.top .nav-links a.active {
  color: var(--text);
  border-color: rgba(139,92,246,0.6);
  background: rgba(139,92,246,0.18);
}

/* ===== Hero ===== */
.hero { text-align: center; padding: 24px 0 14px; }
.hero h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.grad {
  background: linear-gradient(90deg, #c4b5fd, #67e8f9 40%, #f0abfc 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  color: var(--muted); font-size: 15px; max-width: 720px;
  margin: 0 auto;
}

/* ===== Content page ===== */
article.page {
  margin: 24px 0 60px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px clamp(20px, 4vw, 48px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: relative;
}
article.page::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139,92,246,0.6), rgba(34,211,238,0.4), rgba(244,114,182,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}
article.page h1 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
article.page h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  font-weight: 700;
}
article.page h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
article.page p, article.page li {
  color: #c5cbe1;
  line-height: 1.7;
  font-size: 15px;
}
article.page ul, article.page ol { padding-left: 22px; }
article.page strong { color: var(--text); }
article.page .updated {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

/* ===== Contact form ===== */
.form {
  display: grid; gap: 14px;
  margin-top: 14px;
}
.form label {
  display: grid; gap: 6px;
  font-size: 14px; color: var(--muted);
}
.form input, .form textarea {
  background: rgba(7,8,13,0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form input:focus, .form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.18);
}
.form textarea { min-height: 140px; resize: vertical; }
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(139,92,246,0.35);
  transition: transform 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
  width: fit-content;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(139,92,246,0.5); text-decoration: none; }

/* ===== Footer ===== */
footer.foot {
  text-align: center;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
footer.foot .links {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 10px;
}
footer.foot .links a { color: var(--muted); }
footer.foot .links a:hover { color: var(--text); text-decoration: none; }
