/* =============================================================
   THRILL × OUTLAW — ground-up UI system
   Palette: navy #14161F / #1B1D29, lime #5CFFC1, purple #5956FF
   Type: Oxanium
   ============================================================= */
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg:        #101219;
    --bg-2:      #14161F;
    --surface:   #1B1D29;
    --surface-2: #20232F;
    --line:      rgba(255,255,255,.07);
    --line-lime: rgba(92,255,193,.18);
    --lime:      #5CFFC1;
    --lime-dim:  #3fe0a6;
    --purple:    #5956FF;
    --white:     #FFFFFF;
    --muted:     #9aa3b6;
    --muted-2:   #6b7385;
    --radius:    18px;
    --radius-sm: 12px;
    --shadow:    0 24px 60px -20px rgba(0,0,0,.7);
    --glow-lime: 0 0 40px rgba(92,255,193,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Oxanium', system-ui, sans-serif;
    background: var(--bg);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1,h2,h3,h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; color: var(--muted); line-height: 1.6; }
::selection { background: var(--lime); color: #0c0e14; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2f40; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--lime); }

/* ---------- layout ---------- */
.tw-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    color: var(--lime);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--lime); border-radius: 2px; }

.text-grad {
    background: linear-gradient(100deg, var(--lime) 0%, var(--purple) 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 15px;
    cursor: pointer; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--lime); color: #0c0e14; box-shadow: 0 10px 30px -8px rgba(92,255,193,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(92,255,193,.65); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--line-lime); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }

/* ---------- header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(16,18,25,.72);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-left { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 21px; width: auto; display: block; }
.brand .x { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; line-height: 1; position: relative; top: 1px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-item {
    position: relative; font-weight: 600; font-size: 15px; color: #cfd4df; padding: 6px 0;
    transition: color .2s ease;
}
.nav-item::after {
    content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--lime);
    transition: width .25s ease;
}
.nav-item:hover, .nav-item[data-active="true"] { color: #fff; }
.nav-item:hover::after, .nav-item[data-active="true"]::after { width: 100%; }
.live-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
    background: var(--lime); color: #0c0e14; font-weight: 700; font-size: 12px; letter-spacing: .04em;
}
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #0c0e14; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(12,14,20,.6)} 70%{box-shadow:0 0 0 7px rgba(12,14,20,0)} 100%{box-shadow:0 0 0 0 rgba(12,14,20,0)} }

/* login area pill (server-injected button gets restyled) */
.login-area button, .login-area-mobile button {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(92,255,193,.10); border: 1px solid var(--line-lime); color: #fff;
    padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer;
    transition: background .2s ease;
}
.login-area button:hover, .login-area-mobile button:hover { background: rgba(92,255,193,.2); }
.login-area .profile-points, .login-area-mobile .profile-points { color: var(--lime); font-size: 12px; }
/* The server injects Tailwind-classed markup into {login}; constrain it explicitly since this page has no Tailwind */
.login-area img, .login-area-mobile img { width: 32px !important; height: 32px !important; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-lime); flex: 0 0 auto; }
.login-area .flex.flex-col, .login-area-mobile .flex.flex-col { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.login-area span.text-sm, .login-area-mobile span.text-sm { font-size: 13px; font-weight: 700; color: #fff; }
.login-area svg, .login-area-mobile svg { width: 12px; height: 12px; color: var(--lime); margin-right: 3px; }
.login-area i, .login-area-mobile i { color: var(--lime); }

/* burger */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .35s ease, opacity .35s ease;
    background: rgba(16,18,25,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
#mobile-menu.show { max-height: 600px; opacity: 1; }
#mobile-menu .inner { display: flex; flex-direction: column; gap: 8px; padding: 18px 24px 26px; }
.mobile-nav-item { font-weight: 600; font-size: 17px; color: #cfd4df; padding: 10px 0; }
.mobile-nav-item:hover { color: var(--lime); }

/* ---------- decorative bg ---------- */
.bg-decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-lime { width: 520px; height: 520px; background: radial-gradient(circle, rgba(92,255,193,.45), transparent 70%); }
.glow-purple { width: 560px; height: 560px; background: radial-gradient(circle, rgba(89,86,255,.4), transparent 70%); }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- cards ---------- */
.card {
    background: linear-gradient(165deg, var(--surface-2) 0%, var(--bg-2) 100%);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-lime); box-shadow: 0 18px 50px -20px rgba(92,255,193,.25); }
.card .ic {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(92,255,193,.12); color: var(--lime); font-size: 20px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: 14px; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--lime); }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255,255,255,.04); border: 1px solid var(--line); color: #cfd4df; transition: .2s;
}
.social-row a:hover { color: var(--lime); border-color: var(--line-lime); transform: translateY(-2px); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .burger { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .section { padding: 64px 0; }
}

/* Hide legacy loader & particle canvas on pages using the new system */
#pageLoader, .loader, .preloader, #preloader, #particleCanvas { display: none !important; }

/* Let hero glows bleed beyond the heading instead of hard-clipping at the section edge */
.hero, .lb-hero, .pg-hero, .ms-hero, .ms-top { overflow: visible !important; }
.bg-decor { overflow: visible !important; }
/* keep the CTA band's rounded card clipping its own glow */
.cta-band { overflow: hidden !important; }
