/* Landing page and legal pages. Same violet language as the dashboard. */
:root {
  color-scheme: dark;
  --bg: #09080f; --panel: #131019; --panel2: #181420; --raise: #1d1827; --line: #272131; --line2: #372f47;
  --text: #f1ecf8; --muted: #a79dba; --dim: #857b97;
  --accent: #cba9f3; --accent2: #a57ce0; --accent-ink: #1a1026; --rose: #e2739e; --green: #8fd6b6; --amber: #e3bd86;
  --glow1: #3a23583d; --glow2: #1f2a4a33;
  --shadow: 0 1px 0 #ffffff09 inset, 0 30px 60px -40px #000;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f3fa; --panel: #ffffff; --panel2: #fdfbff; --raise: #f3eff9; --line: #e6dff0; --line2: #d6cce5;
  --text: #1d1627; --muted: #5f566f; --dim: #7a7189;
  --accent: #7b4bc4; --accent2: #9466d6; --accent-ink: #ffffff; --rose: #c94f7f; --green: #1c7a52; --amber: #8f5a0c;
  --glow1: #cfb4f040; --glow2: #b4c6f033;
  --shadow: 0 1px 2px #2a174a0d, 0 18px 40px -26px #2a174a40;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 16px/1.6 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Roboto, sans-serif;
  background: radial-gradient(1100px 600px at 90% -10%, var(--glow1), transparent 70%), radial-gradient(900px 520px at -10% 40%, var(--glow2), transparent 70%), var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
p { margin: 0 0 14px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 20; padding: 8px 14px; border-radius: 10px; background: var(--accent2); color: #fff; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 75%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--line2), 0 0 22px #9d4aca40; }
.brand strong { font: 600 19px/1 var(--serif); letter-spacing: 3.4px; }
.brand small { display: block; font-size: 9.5px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.top nav { display: flex; gap: 6px; align-items: center; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 9px; font-size: 14.5px; }
.top nav a:not(.btn):hover { color: var(--text); background: var(--raise); }
.theme-toggle { width: 38px; height: 38px; border-radius: 11px; border: 1px solid transparent; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { background: var(--raise); border-color: var(--line2); color: var(--text); }
.theme-toggle .icon { width: 18px; height: 18px; }
.lang-switch.site-lang { border: 1px solid var(--line2); background: var(--panel2); border-radius: 999px; padding: 2px; gap: 2px; }
.site-lang .lang-opt { min-height: 30px; min-width: 34px; padding: 4px 9px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; color: var(--muted); opacity: 1; }
.site-lang .lang-opt:hover { color: var(--text); background: var(--raise); }
.site-lang .lang-opt[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: 13px; font: inherit; font-weight: 650; font-size: 15px; text-decoration: none; border: 1px solid var(--line2); background: var(--raise); color: var(--text); cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent2) 60%, var(--line2)); }
.btn .icon { width: 20px; height: 20px; }
.btn.primary { background: linear-gradient(135deg, #d6b8f7, #ad84e6); color: #1a1026; border-color: #c9a5f0; box-shadow: 0 12px 30px -14px #a57ce0; }
:root[data-theme="light"] .btn.primary { background: linear-gradient(135deg, #9a6ae0, #7b4bc4); color: #fff; border-color: #8457cc; }
.btn.discord { background: #5865f2; border-color: #6d78f5; color: #fff; box-shadow: 0 14px 34px -16px #5865f2; }
.btn.discord:hover { background: #6974f4; }
.btn.twitch { background: #9146ff; border-color: #a064ff; color: #fff; box-shadow: 0 14px 34px -16px #9146ff; }
.btn.twitch:hover { background: #9d5aff; }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 11px; }
.btn.big { min-height: 52px; padding: 12px 24px; font-size: 16px; border-radius: 15px; }
.btn.fill .icon { fill: currentColor; stroke: none; }

/* hero */
.hero { padding: 76px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; background: var(--rose); transform: rotate(45deg); border-radius: 1px; box-shadow: 0 0 10px var(--rose); }
.hero h1 { font: 600 clamp(40px, 6.2vw, 68px)/1.04 var(--serif); letter-spacing: -1.2px; margin-bottom: 18px; }
.hero h1 em { font-style: italic; background: linear-gradient(120deg, #f3e6ff, var(--accent) 45%, var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
:root[data-theme="light"] .hero h1 em { background: linear-gradient(120deg, #9a6ae0, #6b3cb4); -webkit-background-clip: text; background-clip: text; }
.lead { font-size: 18.5px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 13.5px; color: var(--dim); margin-top: 16px; }
.cta-note a { color: var(--muted); }
.signed-in[hidden], .signed-out[hidden] { display: none !important; }

/* hero visual: a small fake dashboard, decorative only */
.stage { position: relative; min-height: 440px; }
.stage::before { content: ''; position: absolute; inset: 8% 4% 4% 10%; border-radius: 50%; background: radial-gradient(closest-side, #a57ce055, transparent); filter: blur(10px); }
.float { position: absolute; border-radius: 18px; border: 1px solid var(--line2); background: linear-gradient(180deg, var(--panel2), var(--panel)); box-shadow: 0 30px 60px -30px #000, 0 1px 0 #ffffff0d inset; padding: 16px 18px; animation: bob 7s ease-in-out infinite; }
:root[data-theme="light"] .float { box-shadow: 0 24px 50px -28px #2a174a66; }
.f-level { top: 0; left: 6%; width: 74%; }
.f-alert { top: 44%; right: 0; width: 62%; animation-delay: -2.5s; }
.f-board { bottom: 0; left: 0; width: 58%; animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.f-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.f-head b { color: var(--text); }
.f-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 13px; flex-shrink: 0; }
.bot-tag { font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; padding: 0 5px; border-radius: 4px; }
.f-card { border-left: 4px solid var(--accent2); background: color-mix(in srgb, var(--raise) 70%, transparent); border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.f-card strong { display: block; font-size: 15px; margin-bottom: 2px; }
.f-card small { color: var(--muted); }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 650; color: #f7d59a; background: #e3bd8622; border: 1px solid #e3bd8666; margin-top: 8px; }
:root[data-theme="light"] .chip { color: #8f5a0c; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 10px; }
.bar span { display: block; height: 100%; width: 68%; border-radius: 6px; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.f-alert { text-align: center; padding: 18px; background: radial-gradient(120% 90% at 50% 0%, #e2739e33, transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.f-alert .big-name { font: 600 24px/1.2 var(--serif); margin: 4px 0; }
.f-alert small { color: var(--muted); font-size: 13px; }
.live { display: inline-flex; gap: 6px; align-items: center; padding: 3px 11px; border-radius: 20px; background: linear-gradient(135deg, #d9557f, #a8386b); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.rows { display: grid; gap: 6px; font-size: 13.5px; }
.rows div { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 9px; }
.rows div:nth-child(odd) { background: color-mix(in srgb, var(--raise) 80%, transparent); }
.rows em { font-style: normal; color: var(--muted); font-size: 12px; }

/* sections */
section.block { padding: 70px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font: 600 clamp(28px, 4vw, 40px)/1.1 var(--serif); letter-spacing: -.6px; }
.section-head p { color: var(--muted); font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: linear-gradient(180deg, var(--panel2), var(--panel)); box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .25s; }
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent2) 50%, var(--line)); }
.feature h3 { font-size: 17px; margin: 14px 0 6px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }
.f-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent2) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent2) 40%, transparent); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px 22px; border-radius: 20px; border: 1px dashed var(--line2); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font: 600 18px/1 var(--serif); color: var(--accent-ink); background: linear-gradient(135deg, #d6b8f7, #a57ce0); box-shadow: 0 8px 20px -8px #a57ce0; margin-bottom: 14px; }
:root[data-theme="light"] .steps li::before { color: #fff; background: linear-gradient(135deg, #9a6ae0, #7b4bc4); }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14.5px; margin: 0; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.trust > div { border-radius: 20px; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.trust h3 { font-size: 16px; display: flex; gap: 10px; align-items: center; }
.trust ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.trust li + li { margin-top: 4px; }
.trust .yes h3 .icon { color: var(--green); }
.trust .no h3 .icon { color: var(--rose); }
.closing { text-align: center; padding: 60px 24px 80px; }
.closing h2 { font: 600 clamp(28px, 4vw, 42px)/1.1 var(--serif); }
.closing p { color: var(--muted); }
.closing .cta { justify-content: center; margin-top: 22px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--dim); font-size: 14px; }
.foot .wrap { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* legal pages */
.legal { padding: 50px 0 70px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font: 600 clamp(34px, 5vw, 46px)/1.1 var(--serif); letter-spacing: -.8px; }
.legal .updated { color: var(--dim); font-size: 14px; margin-bottom: 30px; }
.legal .legal-note { margin: -18px 0 30px; padding: 8px 14px; border-left: 3px solid var(--accent2); background: var(--panel2); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 14px; }
.legal .legal-note[hidden] { display: none; }
.legal .summary { border: 1px solid color-mix(in srgb, var(--accent2) 40%, var(--line)); background: color-mix(in srgb, var(--accent2) 10%, var(--panel)); border-radius: 18px; padding: 18px 22px; margin-bottom: 34px; }
.legal .summary p:last-child, .legal .summary ul:last-child { margin-bottom: 0; }
.legal h2 { font-size: 21px; margin-top: 38px; display: flex; align-items: center; gap: 12px; }
.legal h2::before { content: ''; width: 7px; height: 7px; background: var(--rose); transform: rotate(45deg); border-radius: 1px; flex-shrink: 0; box-shadow: 0 0 8px var(--rose); }
.legal p, .legal li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--dim); }
.legal .table-wrap { overflow-x: auto; }

@media (max-width: 960px) {
  .hero { padding: 48px 0 20px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .stage { min-height: 400px; max-width: 560px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top nav a.hide-sm { display: none; }
  .top nav { gap: 4px; }
  .site-lang .lang-opt { min-width: 30px; padding: 4px 7px; }
  .brand small { display: none; }
  .features, .trust { grid-template-columns: minmax(0, 1fr); }
  section.block { padding: 48px 0; }
  .cta .btn { width: 100%; }
  .stage { min-height: 380px; }
  .f-level { width: 88%; left: 0; }
  .f-alert { width: 70%; }
  .f-board { width: 72%; }
  .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.f-av.violet { background: linear-gradient(135deg, #b58cee, #6d3fb4); }
