@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --bg: #1e1f22;
    --bg-soft: #232428;
    --panel: #2b2d31;
    --panel-2: #313338;
    --panel-3: #383a40;
    --line: #3f434b;
    --text: #dbdee1;
    --muted: #b5bac1;
    --faint: #80848e;
    --blurple: #5865f2;
    --blurple-dark: #4752c4;
    --blurple-soft: rgba(88, 101, 242, .14);
    --green: #57f287;
    --green-soft: rgba(87, 242, 135, .12);
    --red: #ed4245;
    --red-soft: rgba(237, 66, 69, .12);
    --yellow: #fee75c;
    --yellow-soft: rgba(254, 231, 92, .12);
    --radius: 12px;
    --shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(900px 480px at 85% -5%, rgba(88, 101, 242, .22), transparent 60%),
        radial-gradient(700px 420px at 8% 12%, rgba(87, 242, 135, .06), transparent 60%),
        var(--bg);
    font-family: Inter, 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > main.container { flex: 1; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
a { color: #949cf7; text-decoration: none; transition: color .15s ease; }
a:hover { color: #c4c9ff; }

/* ---------- header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(30, 31, 34, .88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 14px rgba(88, 101, 242, .5); }
.brand-mark { color: var(--blurple); }
.nav nav { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--muted); font-size: .88rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav-link:hover { color: #fff; background: var(--panel-2); }
.nav-user {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text); font-size: .8rem; font-weight: 600;
    background: var(--panel-2); border: 1px solid var(--line);
    padding: 7px 12px; border-radius: 999px;
}
.nav-user:hover { color: #fff; border-color: var(--blurple); }
.status-dot, .pulse-mark {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 8px rgba(87, 242, 135, .8);
    animation: pulse 2s ease-in-out infinite;
}
.status-dot.offline { background: var(--faint); box-shadow: none; animation: none; }
.pulse-mark { width: 7px; height: 7px; margin-right: 8px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.site-footer {
    margin-top: 88px; padding: 26px 0 34px;
    border-top: 1px solid var(--line); color: var(--faint);
    font-size: .8rem; background: var(--bg-soft);
}

/* ---------- typography helpers ---------- */
.kicker, .plan-code, .console-top, .console-foot, .card-label {
    color: #949cf7; font-family: 'JetBrains Mono', monospace;
    font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.kicker { margin: 0 0 16px; display: flex; align-items: center; }
h1, h2, h3 { color: #fff; letter-spacing: -.02em; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; }
.home-hero {
    position: relative; display: grid; grid-template-columns: 1.05fr .8fr;
    align-items: center; gap: 6vw;
}
.hero h1, .page-heading h1 {
    margin: 0; max-width: 700px;
    font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1.02;
    letter-spacing: -.04em; font-weight: 900; color: #fff;
}
.hero h1 em { font-style: normal; background: linear-gradient(92deg, #949cf7, #57f287); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { max-width: 540px; margin: 22px 0 30px; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-copy, .hero-console { position: relative; z-index: 1; }
.hero-rq { position: absolute; right: -40px; top: -30px; z-index: 0; width: 340px; height: 340px; opacity: .07; pointer-events: none; filter: blur(2px); }
.hero-rq img { width: 100%; height: 100%; object-fit: contain; }
.hero-rq span { display: none; }
.text-link { color: var(--text); font-size: .85rem; font-weight: 700; }
.text-link:hover { color: #fff; text-decoration: underline; }
.text-link span, .btn span { margin-left: 6px; }

/* quest console card */
.hero-console {
    background: linear-gradient(160deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line); border-radius: 18px;
    padding: 22px; box-shadow: var(--shadow), 0 0 60px rgba(88, 101, 242, .12);
}
.console-top, .console-foot { display: flex; justify-content: space-between; color: var(--faint); font-size: .62rem; }
.console-online { color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.console-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.console-art { position: relative; display: grid; place-items: center; height: 210px; margin: 6px 0; }
.core-mark {
    display: grid; place-items: center; width: 88px; height: 88px;
    border: 2px solid var(--blurple); border-radius: 22px; color: #c4c9ff;
    font-family: 'JetBrains Mono', monospace; font-size: 1.4rem;
    box-shadow: 0 0 40px rgba(88, 101, 242, .35);
}
.console-logo { position: relative; z-index: 1; width: 132px; height: 132px; object-fit: contain; filter: drop-shadow(0 0 24px rgba(88, 101, 242, .5)); }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(148, 156, 247, .4); animation: spin 24s linear infinite; }
.orbit-one { width: 165px; height: 165px; }
.orbit-two { width: 225px; height: 225px; border-color: rgba(87, 242, 135, .22); animation-duration: 36s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.console-readout { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 14px 2px; border-top: 1px solid var(--line); }
.console-readout span { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: .65rem; }
.console-readout strong { color: var(--green); font-family: 'JetBrains Mono', monospace; font-size: .72rem; }
.console-readout small { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.console-meter { height: 6px; margin-bottom: 24px; background: var(--panel-3); border-radius: 999px; overflow: hidden; }
.console-meter span { display: block; width: 72%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blurple), var(--green)); animation: meter 3s ease-in-out infinite alternate; }
@keyframes meter { from { width: 58%; } to { width: 82%; } }

/* ---------- signal strip ---------- */
.signal-strip {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin: 8px 0 90px; background: var(--panel);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.signal-strip div { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-right: 1px solid var(--line); }
.signal-strip div:last-child { border: 0; }
.signal-strip strong { color: #949cf7; font-family: 'JetBrains Mono', monospace; font-size: .72rem; background: var(--blurple-soft); border-radius: 8px; padding: 5px 9px; }
.signal-strip span { color: var(--muted); font-size: .85rem; font-weight: 600; }

/* ---------- home intro + features ---------- */
.home-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; margin-bottom: 34px; }
.home-intro h2 { max-width: 520px; margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.08; font-weight: 800; }
.home-intro > p { max-width: 420px; margin: 0; color: var(--muted); }
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
    border: 1px solid var(--line); background: var(--panel);
    padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature { transition: transform .18s ease, border-color .18s ease; }
.feature:hover { transform: translateY(-4px); border-color: var(--blurple); }
.feature-index {
    display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 34px;
    border-radius: 10px; background: var(--blurple-soft); color: #c4c9ff;
    font-family: 'JetBrains Mono', monospace; font-size: .75rem; font-weight: 600;
}
.feature h3 { margin: 0 0 8px; font-size: 1.02rem; color: #fff; }
.feature p { margin: 0; color: var(--muted); font-size: .87rem; }

/* ---------- pricing ---------- */
.page-heading { padding: 68px 0 34px; }
.page-heading h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-heading > p:last-child { max-width: 560px; margin: 18px 0 0; color: var(--muted); }
.plans { display: grid; gap: 14px; }
.plan-grid { grid-template-columns: repeat(3, 1fr); margin: 12px 0 34px; }
.plan {
    position: relative; display: flex; flex-direction: column; min-height: 300px;
    padding: 26px; border: 1px solid var(--line); border-radius: 16px;
    background: var(--panel); box-shadow: var(--shadow);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.plan:hover { transform: translateY(-5px); border-color: var(--blurple); box-shadow: var(--shadow), 0 0 40px rgba(88, 101, 242, .18); }
.plan.popular { border: 2px solid var(--blurple); background: linear-gradient(165deg, rgba(88, 101, 242, .16), var(--panel) 55%); box-shadow: var(--shadow), 0 0 44px rgba(88, 101, 242, .28); }
.plan-tag {
    position: absolute; top: 14px; right: 14px; padding: 5px 11px; border-radius: 999px;
    background: var(--blurple); color: #fff;
    font-family: 'JetBrains Mono', monospace; font-size: .62rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.plan-tag.free-tag { background: var(--green); color: #06351c; top: 14px; }
.plan.popular .plan-tag:not(.free-tag) { top: 14px; }
.plan.popular .free-tag { top: 46px; }
.plan-code { color: var(--faint); font-size: .62rem; }
.plan .name { margin-top: 30px; font-size: 1.2rem; font-weight: 800; color: #fff; }
.plan .price { margin: 10px 0 2px; color: #fff; font-size: 2.3rem; font-weight: 900; letter-spacing: -.03em; }
.plan .price small { color: var(--muted); font-size: .7rem; font-weight: 600; }
.plan .dur { min-height: 24px; margin-bottom: 6px; color: var(--muted); font-size: .82rem; }
.plan .dur.small { font-size: .75rem; color: #949cf7; }
.plan .btn { width: 100%; margin-top: auto; text-align: center; }
.pricing-note {
    display: flex; gap: 14px; max-width: 680px; padding: 20px 22px;
    background: var(--blurple-soft); border: 1px solid rgba(88, 101, 242, .4);
    border-radius: var(--radius); color: var(--muted);
}
.pricing-note strong { color: #fff; font-size: .9rem; }
.pricing-note p { margin: 4px 0 0; font-size: .8rem; }
.note-mark {
    display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px;
    border-radius: 50%; background: var(--blurple); color: #fff; font-size: 1.1rem; font-weight: 800;
}

/* ---------- dashboard ---------- */
.dashboard-welcome { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 20px; padding: 42px 0 32px; border-bottom: 1px solid var(--line); }
.dashboard-welcome h1 { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 800; }
.dashboard-welcome p:last-child { max-width: 520px; margin: 10px 0 0; color: var(--muted); font-size: .88rem; }
.dashboard-avatar {
    display: grid; place-items: center; width: 80px; height: 80px; overflow: hidden;
    border: 3px solid var(--blurple); border-radius: 50%; color: #fff;
    font-size: 1.7rem; font-weight: 800; background: var(--panel-2);
    box-shadow: 0 0 24px rgba(88, 101, 242, .4);
}
.dashboard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.welcome-action { white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; margin-top: 22px; }
.access-card { background: linear-gradient(165deg, rgba(88, 101, 242, .14), var(--panel) 60%); border-color: rgba(88, 101, 242, .45); }
.access-card h2 { margin: 18px 0 5px; font-size: 2rem; font-weight: 800; }
.access-detail { max-width: 420px; color: var(--muted); font-size: .87rem; }
.access-stats { display: flex; gap: 48px; margin: 26px 0; }
.access-stats div { display: grid; gap: 3px; }
.access-stats span { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.access-stats strong { color: var(--green); font-size: 1.15rem; }
.profile-card { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.profile-card h3 { margin: 3px 0 0; color: #fff; }
.profile-card .text-link { margin-left: auto; }
.profile-orb {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--blurple); color: #fff; font-size: 1.3rem; font-weight: 800;
    box-shadow: 0 0 18px rgba(88, 101, 242, .5);
}
.orders-card { margin-top: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 1.3rem; }
.section-head .kicker { margin: 0 0 4px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 11px 20px; border: 0; border-radius: 10px;
    background: var(--panel-3); color: #fff; cursor: pointer;
    font: 700 .82rem Inter, sans-serif;
    transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover { color: #fff; filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-discord { background: var(--blurple); color: #fff; }
.btn-discord:hover { background: var(--blurple-dark); color: #fff; }
.btn-primary { background: var(--green); color: #06351c; }
.btn-primary:hover { color: #06351c; }
.btn-danger { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: #06351c; }
.btn-green:hover { color: #06351c; }
.btn-sm { min-height: 34px; padding: 7px 13px; font-size: .74rem; border-radius: 8px; }
.btn-download { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); }
.btn-download:hover { color: #fff; border-color: var(--blurple); }

/* ---------- alerts / tables / badges ---------- */
.alert { padding: 13px 16px; margin: 18px 0; border-radius: 10px; border: 1px solid; font-size: .84rem; font-weight: 500; }
.alert.ok { border-color: rgba(87, 242, 135, .5); color: var(--green); background: var(--green-soft); }
.alert.err { border-color: rgba(237, 66, 69, .5); color: #ff9a9c; background: var(--red-soft); }
table.data { width: 100%; border-collapse: collapse; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table.data th, table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .8rem; }
table.data tr:last-child td { border-bottom: 0; }
table.data th { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; background: var(--bg-soft); }
table.data tr:hover td { background: rgba(88, 101, 242, .05); }
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    font-family: 'JetBrains Mono', monospace; font-size: .62rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em;
}
.badge.green { color: var(--green); background: var(--green-soft); }
.badge.red { color: #ff9a9c; background: var(--red-soft); }
.badge.gray { color: var(--muted); background: rgba(128, 132, 142, .15); }
.badge.orange { color: var(--yellow); background: var(--yellow-soft); }

/* ---------- forms ---------- */
input[type=text], input[type=password], input[type=number], select, textarea {
    border: 1px solid var(--line); border-radius: 8px;
    background: var(--bg-soft); color: var(--text);
    padding: 10px 12px; font: .84rem Inter, sans-serif;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--blurple); outline-offset: 2px; }
input:disabled, .btn:disabled { opacity: .5; }
.center-card { max-width: 460px; margin: 70px auto; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .78rem; }
.right { text-align: right; }
.mt0 { margin-top: 0; }
.inline-form { display: inline; }
code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-family: 'JetBrains Mono', monospace; font-size: .78em; }
pre { font-family: 'JetBrains Mono', monospace; font-size: .75rem; }

/* ---------- admin forms ---------- */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.form-row input[type=text], .form-row input[type=number] { width: 100%; }
.form-hint { font-size: .75rem; color: var(--faint); margin-top: 4px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } }
.toggle { display: flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 600; color: var(--text); cursor: pointer; }
.toggle input { width: 17px; height: 17px; accent-color: var(--blurple); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .home-hero, .home-intro, .dashboard-grid { grid-template-columns: 1fr; }
    .plan-grid, .grid-3 { grid-template-columns: 1fr 1fr; }
    .signal-strip { grid-template-columns: 1fr; }
    .signal-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
    .signal-strip div:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
    .container { width: calc(100% - 28px); }
    .nav { min-height: 64px; gap: 12px; }
    .nav nav { gap: 8px; }
    .nav-link:nth-child(1), .nav-link:nth-child(2) { display: none; }
    .plan-grid, .grid-3 { grid-template-columns: 1fr; }
    .hero { padding: 52px 0 44px; }
    .dashboard-welcome { grid-template-columns: 60px 1fr; }
    .dashboard-avatar { width: 60px; height: 60px; font-size: 1.3rem; }
    .welcome-action { grid-column: 1 / -1; width: 100%; }
    .section-head { align-items: start; flex-direction: column; }
    table.data { display: block; overflow-x: auto; white-space: nowrap; }
    .site-footer { margin-top: 60px; }
}

/* ================= QUEST LANDING + SITE ANIMATIONS ================= */

.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 30px rgba(0, 0, 0, .5); background: rgba(24, 25, 29, .96); }

/* scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
    will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .orb, .marquee-track, .scroll-hint span { animation: none !important; }
}

/* ---------- hero ---------- */
.quest-hero {
    position: relative; overflow: clip;
    margin: 0 calc(50% - 50vw); padding: 110px 0 90px;
}.quest-hero-bg {
    position: absolute; inset: -12% 0;
    background-size: cover; background-position: center;
    transform: scale(1.08); will-change: transform;
}
.quest-hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(30,31,34,.62) 0%, rgba(30,31,34,.55) 45%, var(--bg) 100%),
        radial-gradient(800px 420px at 20% 30%, rgba(88,101,242,.35), transparent 65%);
}
.quest-hero-inner {
    position: relative; z-index: 2; max-width: 100%;
    display: grid; grid-template-columns: 1.05fr .85fr; gap: 5vw; align-items: center;
}
.quest-hero-copy h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.quest-hero-copy h1 em {
    font-style: normal;
    background: linear-gradient(92deg, #c4c9ff, #57f287 70%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quest-sub { max-width: 560px; margin: 22px 0 30px; color: #c6cbd4; font-size: 1.06rem; }
.quest-sub strong { color: #fff; }
.quest-cta { margin-bottom: 34px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: .92rem; border-radius: 12px; }
.quest-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.quest-stats > div { display: grid; gap: 2px; }
.quest-stats strong { color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.quest-stats span span { color: var(--muted); font-size: .78rem; font-weight: 600; }

/* floating orbs */
.orb { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; filter: blur(1px); }
.orb-a { width: 130px; height: 130px; left: 6%; top: 12%; background: radial-gradient(circle at 32% 30%, rgba(196,201,255,.9), rgba(88,101,242,.35) 55%, transparent 72%); animation: floaty 7s ease-in-out infinite; }
.orb-b { width: 64px; height: 64px; left: 44%; top: 8%; background: radial-gradient(circle at 32% 30%, rgba(87,242,135,.85), rgba(87,242,135,.2) 60%, transparent 72%); animation: floaty 9s ease-in-out infinite reverse; }
.orb-c { width: 44px; height: 44px; right: 8%; top: 22%; background: radial-gradient(circle at 32% 30%, rgba(254,231,92,.9), rgba(254,231,92,.2) 60%, transparent 72%); animation: floaty 6s ease-in-out infinite; }
.orb-d { width: 90px; height: 90px; right: 30%; bottom: 10%; background: radial-gradient(circle at 32% 30%, rgba(237,66,69,.55), rgba(88,101,242,.25) 60%, transparent 72%); animation: floaty 11s ease-in-out infinite; }
.orb-e { width: 34px; height: 34px; left: 12%; bottom: 16%; background: radial-gradient(circle at 32% 30%, rgba(196,201,255,.9), transparent 70%); animation: floaty 8s ease-in-out infinite reverse; }
@keyframes floaty { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-26px) translateX(10px); } }

/* hero visual */
.quest-hero-visual { position: relative; display: grid; justify-items: center; padding: 22px 0 54px; }
.quest-shot {
    position: relative; border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(148,156,247,.5);
    box-shadow: var(--shadow), 0 0 70px rgba(88,101,242,.35);
    transform: rotate(2deg); transition: transform .25s ease;
    max-width: 460px;
}
.quest-shot img { display: block; width: 100%; height: auto; }
.quest-shot.wide { max-width: 520px; transform: rotate(-1.5deg); }
.quest-shot-bar {
    position: absolute; left: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(20,21,25,.82); border: 1px solid var(--line);
    backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 14px;
    font-family: 'JetBrains Mono', monospace; font-size: .62rem; letter-spacing: .08em; color: var(--green);
}
.quest-chip {
    position: absolute; z-index: 3;
    background: rgba(43,45,49,.92); border: 1px solid var(--blurple);
    color: #fff; font-size: .78rem; font-weight: 700;
    padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow);
    animation: floaty 6s ease-in-out infinite;
}
.chip-top { top: 0; right: 6%; }
.chip-bottom { bottom: 0; left: 4%; animation-delay: -3s; }

.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(181,186,193,.6); border-radius: 999px; display: grid; justify-items: center; padding-top: 7px; }
.scroll-hint span { width: 4px; height: 9px; border-radius: 999px; background: #c4c9ff; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 15px 0; margin: 0 calc(50% - 50vw); }
.marquee-track { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; animation: slide 26s linear infinite; will-change: transform; }
.marquee-track span { font-weight: 800; font-size: .9rem; letter-spacing: .04em; color: var(--text); text-transform: uppercase; }
.marquee-track i { color: var(--blurple); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.quest-section { padding: 84px 0 0; }
.quest-head { align-items: end; margin-bottom: 30px; }
.quest-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 800; }
.quest-head-sub { max-width: 380px; }
.quest-step { overflow: hidden; position: relative; }
.quest-step::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blurple), var(--green)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.quest-step:hover::after { transform: scaleX(1); }

.quest-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; }
.quest-split h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; margin: 0 0 12px; }
.quest-checks { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 12px; }
.quest-checks li { position: relative; padding-left: 34px; color: var(--text); font-weight: 600; font-size: .94rem; }
.quest-checks li::before {
    content: '\2713'; position: absolute; left: 0; top: 0;
    width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; font-size: .75rem; font-weight: 900;
    background: var(--green-soft); color: var(--green); border: 1px solid rgba(87,242,135,.5);
}

/* ---------- full-bleed banner ---------- */
.quest-banner { position: relative; overflow: clip; margin: 90px calc(50% - 50vw) 0; padding: 110px 0; }.quest-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quest-banner-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,21,26,.92) 20%, rgba(20,21,26,.55) 55%, rgba(88,101,242,.25)); }
.quest-banner-inner { position: relative; z-index: 1; max-width: 620px; margin: 0; padding: 0 20px; }
.quest-banner-inner .kicker.light { color: #c4c9ff; }
.quest-banner-inner h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 900; margin: 0 0 14px; }
.quest-banner-inner p { color: #d4d8df; margin: 0 0 30px; font-size: 1.02rem; }

/* ---------- faq ---------- */
.quest-faq { max-width: 760px; }
.quest-faq h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 24px; }
.quest-faq details {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 12px; overflow: hidden; transition: border-color .2s ease;
}
.quest-faq details:hover { border-color: var(--blurple); }
.quest-faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quest-faq summary::-webkit-details-marker { display: none; }
.quest-faq summary::after { content: '+'; color: var(--blurple); font-size: 1.4rem; font-weight: 800; transition: transform .25s ease; }
.quest-faq details[open] summary::after { transform: rotate(45deg); }
.quest-faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: .92rem; }

/* ---------- final cta ---------- */
.quest-final { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid rgba(148,156,247,.45); box-shadow: var(--shadow), 0 0 80px rgba(88,101,242,.25); }
.quest-final-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.quest-final-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,21,26,.72), rgba(20,21,26,.88)); }
.quest-final-inner { position: relative; z-index: 1; text-align: center; padding: 90px 24px; }
.quest-final-inner h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; margin: 0 0 12px; }
.quest-final-inner p { color: #c6cbd4; margin: 0 0 30px; font-size: 1.05rem; }

/* ---------- landing responsive ---------- */
@media (max-width: 900px) {
    .quest-hero { padding: 70px 0 60px; }
    .quest-hero-inner, .quest-split { grid-template-columns: 1fr; }
    .quest-hero-visual { margin-top: 30px; display: flex; flex-direction: column; align-items: center; }
    .quest-shot { transform: none; }
    .quest-chip { position: static; margin: 12px 4px 0; animation: none; }
    .quest-banner { padding: 80px 0; }
    .quest-section { padding: 60px 0 0; }
}

/* ---------- floating discord button ---------- */
.float-discord {
    position: fixed; right: 22px; bottom: 22px; z-index: 50;
    width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--blurple); color: #fff;
    box-shadow: 0 8px 28px rgba(88, 101, 242, .55);
    transition: transform .2s ease, background .2s ease;
    animation: floatbob 3.5s ease-in-out infinite;
}
.float-discord svg { width: 30px; height: 30px; }
.float-discord:hover { background: var(--blurple-dark); color: #fff; transform: scale(1.1); animation-play-state: paused; }
@keyframes floatbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- support thread ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; align-items: start; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }
.thread { display: grid; gap: 12px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.thread.compact { max-height: none; }
.thread-msg { max-width: 88%; }
.thread-body {
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: 4px 14px 14px 14px; padding: 11px 14px;
    font-size: .87rem; color: var(--text); overflow-wrap: anywhere;
}
.from-user { justify-self: start; }
.from-admin { justify-self: end; }
.from-admin .thread-body {
    background: rgba(88, 101, 242, .16); border-color: rgba(88, 101, 242, .55);
    border-radius: 14px 4px 14px 14px;
}
.thread-meta { font-family: 'JetBrains Mono', monospace; font-size: .62rem; color: var(--faint); margin-bottom: 4px; letter-spacing: .04em; }
.from-admin .thread-meta { text-align: right; color: #949cf7; }

/* ---------- admin inbox ---------- */
.inbox-grid { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
@media (max-width: 860px) { .inbox-grid { grid-template-columns: 1fr; } }
.inbox-thread {
    display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px;
    border: 1px solid transparent; color: var(--text); margin-bottom: 6px;
}
.inbox-thread:hover { background: var(--panel-2); color: #fff; }
.inbox-thread.active { background: var(--blurple-soft); border-color: var(--blurple); }
