/* Level UP! site: dark, Nitro-style pink and purple */
:root {
  --bg: #0b0d1c; --bg-2: #10132a; --card: #161a33; --card-2: #1c2140; --line: rgb(255 255 255 / .08);
  --ink: #f3f4fb; --muted: #a6abc8; --dim: #7c82a3;
  --pink: #ff73fa; --purple: #9b5cff; --blue: #5b7cff;
  --grad: linear-gradient(90deg, #ff73fa 0%, #b46bff 55%, #7c6bff 100%);
  --r: 14px; --wrap: 1200px;
  --font: "Poppins", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 10px; font: 600 16px/1 var(--font); border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, filter .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgb(255 115 250 / .55); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: rgb(255 255 255 / .03); border-color: rgb(255 255 255 / .16); color: var(--ink); }
.btn--ghost:hover { background: rgb(255 255 255 / .07); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn__dc { width: 22px; height: 22px; background: #fff; border-radius: 6px; padding: 3px; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(11 13 28 / .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__bar { display: flex; align-items: center; gap: 36px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; }
.logo img { width: 38px; height: 38px; border-radius: 10px; }
.nav__links { display: flex; gap: 28px; margin-right: auto; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); border-color: var(--pink); }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
@media (max-width: 900px) {
  .nav__links, .nav__bar > .btn { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav.is-open .nav__links { display: grid; position: absolute; top: 76px; left: 0; right: 0; background: var(--bg-2); padding: 12px 24px 24px; gap: 4px; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a { padding: 12px 0; font-size: 17px; }
}

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -120px; top: -80px; border-radius: 50%; background: radial-gradient(closest-side, rgb(155 92 255 / .28), transparent); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.2vw, 78px); font-weight: 800; letter-spacing: -0.035em; }
.hero__lead { margin-top: 28px; font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__note { margin-top: 26px; color: var(--dim); font-size: 15px; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } .hero { padding-top: 64px; } }

/* the channel mock */
.mock { position: relative; }
.chan { position: relative; z-index: 1; background: #13172d; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8); }
.chan__head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-weight: 600; }
.chan__head .hash { color: var(--dim); font-size: 20px; }
.boost-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #ffd6fd; background: rgb(255 115 250 / .12); border: 1px solid rgb(255 115 250 / .3); padding: 4px 10px; border-radius: 99px; }
.gem { width: 14px; height: 14px; flex: none; }
.chan__body { padding: 10px 18px; display: grid; }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0 14px; padding: 14px 4px; align-items: start; }
.msg + .msg { border-top: 1px solid rgb(255 255 255 / .04); }
.msg__av { width: 40px; height: 40px; border-radius: 10px; }
.msg__name { font-weight: 600; font-size: 15px; }
.msg__name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.app-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 11px; font-weight: 600; vertical-align: 2px; }
.msg__time { margin-left: 8px; color: var(--dim); font-size: 12px; }
.embed { margin-top: 6px; border-left: 3px solid var(--bar, var(--pink)); background: rgb(255 255 255 / .035); border-radius: 6px; padding: 8px 12px; font-size: 14px; color: #d7dbef; }
.embed strong { color: #fff; font-weight: 600; }
.tag { align-self: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: rgb(155 92 255 / .18); color: #e4d6ff; border: 1px solid rgb(155 92 255 / .35); white-space: nowrap; }
.chan__input { margin: 6px 18px 18px; padding: 12px 16px; border-radius: 10px; background: rgb(255 255 255 / .04); color: var(--dim); font-size: 14px; }
.boost-card { position: absolute; z-index: 2; right: -18px; bottom: -48px; width: 250px; background: #1a1f3b; border: 1px solid rgb(255 255 255 / .1); border-radius: 14px; padding: 16px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .8); }
.boost-card__head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.boost-card__head span { margin-left: auto; color: var(--dim); font-weight: 500; font-size: 12px; }
.boost-card__lvl { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: rgb(255 255 255 / .08); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--pct); background: var(--grad); border-radius: inherit; }
.boost-card__perks { margin-top: 12px; font-size: 13px; color: var(--muted); }
.deco { position: absolute; pointer-events: none; }
.deco--ring { width: 30px; height: 30px; border: 3px solid var(--pink); border-radius: 50%; left: -18px; top: 18px; }
.deco--plus { left: 34%; top: -34px; color: var(--purple); font: 300 32px/1 var(--font); }
.deco--tri { right: -26px; top: 36%; width: 30px; }
.deco--dia { right: 40px; top: -22px; width: 26px; height: 26px; border: 3px solid var(--purple); transform: rotate(45deg); border-radius: 4px; }
.deco--dot { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); left: 30%; bottom: -60px; filter: drop-shadow(0 0 12px rgb(255 115 250 / .6)); }
@media (max-width: 980px) { .boost-card { position: relative; right: auto; bottom: auto; margin: -24px 0 0 auto; } .deco { display: none; } }
@media (max-width: 560px) { .tag { display: none; } .msg { grid-template-columns: 40px minmax(0, 1fr); } }

/* ---- server rows (marquee) ---- */
.rows-sec { padding: 72px 0 96px; }
.rows-sec__label { text-align: center; color: #b9a6ff; font-size: 15px; margin-bottom: 28px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 18px; }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: slide 46s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .marquee { mask-image: none; -webkit-mask-image: none; } }
.srv { display: flex; align-items: center; gap: 16px; width: 300px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); flex: none; }
.srv__ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; background: var(--ic, var(--grad)); flex: none; }
.srv b { display: block; font-weight: 600; font-size: 17px; }
.srv span { color: var(--muted); font-size: 14px; }

/* ---- sections ---- */
.sec { padding: 104px 0; }
.sec--alt { background: var(--bg-2); }
.sec__head { max-width: 680px; margin-bottom: 56px; }
.sec__head.center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-block; color: var(--pink); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.sec h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; }
.sec__head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: rgb(255 115 250 / .3); }
.card h3 { font-size: 21px; font-weight: 600; margin-top: 18px; }
.card p { color: var(--muted); margin-top: 8px; }
.card__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-size: 22px; }
.card .embed { margin-top: 20px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgb(255 115 250 / .14); color: var(--pink); border: 1px solid rgb(255 115 250 / .35); }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: rgb(255 255 255 / .06); border-radius: 6px; padding: 2px 7px; color: #f5d9ff; white-space: nowrap; }

/* permissions */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split p + p { margin-top: 14px; }
.split .muted { color: var(--muted); font-size: 18px; }
.perm { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.perm__title { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; margin-bottom: 16px; }
.perm__title img { width: 34px; height: 34px; border-radius: 9px; }
.perm h3 { font-size: 13px; color: var(--dim); font-weight: 600; margin: 18px 0 4px; letter-spacing: .02em; }
.perm ul { list-style: none; margin: 0; padding: 0; }
.perm li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.perm li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none; background: center / 13px no-repeat; }
.perm .yes::before { background-color: #23a55a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2 6.8 11 12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.perm .no::before { background-color: #da373c; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.perm li span { color: var(--muted); margin-left: auto; font-size: 14px; text-align: right; }

/* faq */
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* cta band */
.cta { position: relative; overflow: hidden; text-align: center; border-radius: 24px; padding: 72px 32px; background: linear-gradient(135deg, #2a1b55, #3b1f5e 50%, #5a2160); border: 1px solid rgb(255 115 250 / .25); }
.cta h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.cta p { color: #d9d2f5; margin: 14px 0 30px; font-size: 18px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 64px 0 36px; margin-top: 104px; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
.foot p { color: var(--muted); margin-top: 14px; max-width: 320px; }
.foot h3 { font-size: 15px; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--muted); }
.foot ul a:hover { color: var(--ink); }
.foot__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--dim); font-size: 14px; }

/* inner pages */
.page { padding: 80px 0 0; }
.doc-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.doc-head .t-lead { color: var(--muted); font-size: 19px; margin-top: 14px; }
.doc-body { max-width: 760px; margin-top: 48px; }
.doc-body h2 { font-size: 26px; font-weight: 700; margin: 44px 0 14px; }
.doc-body p, .doc-body li { color: #cfd3ea; }
.doc-body p + p { margin-top: 12px; }
.doc-body ul, .doc-body ol { padding-left: 22px; display: grid; gap: 8px; }
.doc-body code { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: rgb(255 255 255 / .06); border-radius: 6px; padding: 2px 7px; color: #f5d9ff; white-space: nowrap; }
.doc-body .link { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.cmd-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; }
.cmd-table th, .cmd-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmd-table th { color: var(--dim); font-size: 13px; font-weight: 600; }
.cmd-table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { .cmd-table th:nth-child(3), .cmd-table td:nth-child(3) { display: none; } }
.status-pill { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 700; padding: 18px 26px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.status-pill::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--st, #7c82a3); box-shadow: 0 0 0 6px color-mix(in srgb, var(--st, #7c82a3) 22%, transparent); }
.status-pill[data-state="up"] { --st: #23a55a; }
.status-pill[data-state="degraded"] { --st: #f0b232; }
.status-pill[data-state="down"] { --st: #da373c; }
.muted { color: var(--muted); }

/* ---- boost styling and motion ---- */
.gem-img { width: 18px; height: 22px; flex: none; }
.float { animation: float 4.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .45) 50%, transparent 65%); transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
.bar i { transform-origin: left; animation: fill 1.6s cubic-bezier(.2,.8,.2,1) .3s both; }
@keyframes fill { from { transform: scaleX(0); } }
.spark { position: absolute; width: 10px; height: 10px; pointer-events: none; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.msg--new { animation: pop .6s cubic-bezier(.2,.9,.3,1.3) both; }
.msg--new:nth-child(2) { animation-delay: .5s; } .msg--new:nth-child(3) { animation-delay: 1s; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.boost-sys { display: flex; align-items: center; gap: 8px; color: #ffc4ec; font-size: 14px; }
.boost-sys b { color: #fff; }
.hero-gem { position: absolute; z-index: 3; width: 64px; left: -40px; bottom: 70px; filter: drop-shadow(0 12px 24px rgb(255 90 180 / .55)); }

/* boost tiers strip */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tier:hover { transform: translateY(-4px); border-color: rgb(255 115 250 / .45); box-shadow: 0 20px 40px -20px rgb(255 90 180 / .45); }
.tier--top { background: linear-gradient(160deg, #2a1b55, #1a1f3b 60%); border-color: rgb(255 115 250 / .35); }
.tier__head { display: flex; align-items: center; gap: 12px; }
.tier__head img { width: 30px; height: 38px; }
.tier__head b { font-size: 20px; font-weight: 700; }
.tier__head span { margin-left: auto; font-size: 13px; color: #ffc4ec; background: rgb(255 115 250 / .12); border: 1px solid rgb(255 115 250 / .3); border-radius: 99px; padding: 3px 10px; }
.tier ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.tier li { display: flex; gap: 10px; }
.tier li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--grad); flex: none; }

/* the CTA's floating gems */
.cta .g { position: absolute; width: 46px; opacity: .9; filter: drop-shadow(0 10px 20px rgb(255 90 180 / .5)); }
.cta .g1 { left: 8%; top: 22%; } .cta .g2 { right: 10%; top: 30%; width: 34px; animation-delay: -1.5s; } .cta .g3 { left: 18%; bottom: 14%; width: 28px; animation-delay: -3s; } .cta .g4 { right: 20%; bottom: 16%; width: 40px; animation-delay: -2.2s; }
@media (max-width: 700px) { .cta .g { display: none; } }
.perm li span { white-space: normal; }

@media (prefers-reduced-motion: reduce) {
  .float, .shine::after, .bar i, .spark, .msg--new { animation: none !important; }
}

/* the /boost bar inside the feature card */
.boost-embed { display: grid; gap: 10px; }
.boost-embed .bar { margin-top: 0; }
.boost-embed__row { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }

/* the communities row: real server icons */
.rows-sec--servers { padding-bottom: 24px; }
.srv__img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; background: var(--card-2); }
.srv > div { min-width: 0; }
.srv b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv span { display: inline-flex; align-items: center; gap: 6px; }
.srv__dot { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; display: inline-block; }
