/* Nyxel — shared styles for every page. */
:root {
  --bg: #07060f;
  --bg-2: #0d0b1f;
  --card: rgba(22, 19, 46, 0.72);
  --card-hover: rgba(30, 26, 62, 0.85);
  --line: rgba(179, 169, 240, 0.16);
  --purple: #8b7ee8;
  --purple-light: #b3a9f0;
  --text: #e9e7f5;
  --text-2: #c9c4e6;
  --muted: #9a93c7;
  --glow: rgba(139, 126, 232, 0.45);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: var(--purple-light); }
a:hover { color: #fff; }

/* ---- the night sky behind every page ---------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(99, 84, 190, 0.26), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 40%, var(--bg-2), var(--bg) 75%);
  z-index: -2;
}
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 0.9;  transform: scale(1.1); }
}
.shooting-star {
  position: fixed;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(179, 169, 240, 0.7), #ffffff);
  filter: drop-shadow(0 0 6px rgba(179, 169, 240, 0.9));
  pointer-events: none;
  opacity: 0;
}
@keyframes shoot {
  0%   { transform: rotate(135deg) translateX(0);    opacity: 0; }
  8%   { opacity: 1; }
  100% { transform: rotate(135deg) translateX(60vw); opacity: 0; }
}

/* ---- header / footer --------------------------------------------------- */
.site-header {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 12px var(--glow)); }
.brand span { font-size: 26px; font-weight: 400; letter-spacing: 0.5px; margin-left: -3px; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--purple-light); }

main { flex: 1; width: 100%; }

.site-footer {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 56px) 34px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--purple-light); }

/* ---- shared building blocks -------------------------------------------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--purple-light); }
.section-title { font-size: clamp(26px, 4vw, 36px); font-weight: 600; letter-spacing: -0.01em; margin: 6px 0 8px; }
.section-lead { color: var(--muted); max-width: 620px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--purple); color: #0b0920; }
.btn-primary:hover { background: var(--purple-light); color: #0b0920; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--purple-light); color: #fff; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-live { background: rgba(110, 214, 160, 0.14); color: #8fe3b6; }
.badge-soon { background: rgba(179, 169, 240, 0.14); color: var(--purple-light); }

/* ---- prose pages (policies) --------------------------------------------- */
.prose { max-width: 760px; margin: 0 auto; padding: 24px 24px 72px; }
.prose h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 6px; font-weight: 600; }
.prose h2 { font-size: 21px; margin: 36px 0 8px; font-weight: 600; }
.prose p, .prose li, .prose td { color: var(--text-2); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 14px; }
.prose li { margin: 0.3em 0; }
.prose b, .prose strong, .prose th { color: var(--text); font-weight: 600; }
.prose .meta { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
.prose .note { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--purple-light); }

@media (prefers-reduced-motion: reduce) {
  .star { animation: none !important; }
  html { scroll-behavior: auto; }
}
