/* ================================================================
   GCORE — shared design system
   Brand: light purple (#cd8cff), the server's own theme.
   Backgrounds use real in-game screenshots, not CSS noise.
   ================================================================ */

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

:root {
    /* surfaces */
    --bg:        #0a0910;
    --bg-2:      #0e0c16;
    --surface:   #14121d;
    --surface-2: #1b1826;
    --surface-3: #241f33;
    --line:        rgba(255,255,255,0.07);
    --line-strong: rgba(205,140,255,0.18);

    /* brand — light purple */
    --pl:  #cd8cff;   /* primary light */
    --pm:  #a463d6;   /* main */
    --pd:  #7b3fad;   /* deep */
    --glow: rgba(164,99,214,0.35);
    --ice: #5cc8ff;   /* cool secondary, sparing */
    --em:  #4ade80;   /* rare tertiary */

    /* text */
    --text:   #f1eefb;
    --text-2: #a9a2bd;
    --text-3: #6c6580;

    /* state */
    --online:  #4ade80;
    --offline: #f2685f;
    --danger:  #f2685f;

    --radius: 14px;
    --shadow: 0 20px 55px rgba(0,0,0,0.5);
    --font: 'Inter', system-ui, sans-serif;
    --display: 'Sora', 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ---------- page ambience: one soft glow, no busy grid ---------- */
.bg-ambient {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(70% 45% at 50% -8%, rgba(164,99,214,0.16), transparent 60%),
        radial-gradient(60% 40% at 100% 8%, rgba(92,200,255,0.05), transparent 60%);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- header / nav ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 24px;
    transition: background .3s, backdrop-filter .3s, box-shadow .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10,9,16,0.82); backdrop-filter: blur(18px); border-bottom-color: var(--line); }
.nav-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .pick {
    width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-size: 1.05rem;
    background: linear-gradient(150deg, rgba(205,140,255,0.26), rgba(123,63,173,0.12));
    border: 1px solid rgba(205,140,255,0.4);
    box-shadow: inset 0 0 12px rgba(205,140,255,0.14);
}
.brand .wm { font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--pl), var(--pm)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color .18s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--pl); }
.nav-links .btn-nav {
    background: var(--pm); color: #fff; padding: 8px 18px; border-radius: 9px; font-weight: 700;
    transition: background .18s, transform .18s, box-shadow .18s;
}
.nav-links .btn-nav:hover { background: var(--pd); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px var(--glow); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; z-index: 101; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s ease; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 24px; border-radius: 11px; font-weight: 700; font-size: 0.92rem;
    text-decoration: none; cursor: pointer; border: 1px solid transparent; font-family: inherit;
    transition: background .18s, transform .18s, box-shadow .18s, border-color .18s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--pm); color: #fff; }
.btn-primary:hover { background: var(--pd); transform: translateY(-2px); box-shadow: 0 10px 30px var(--glow); }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { background: #4a55d4; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--line-strong); color: var(--text-2); }
.btn-ghost:hover { color: var(--text); border-color: rgba(205,140,255,0.45); transform: translateY(-2px); }

/* ---------- ip / copy box ---------- */
.ip-box {
    display: flex; align-items: center; gap: 12px; background: rgba(20,18,29,0.85); border: 1px solid var(--line);
    padding: 11px 11px 11px 18px; border-radius: 12px; cursor: pointer; user-select: none; backdrop-filter: blur(6px);
    transition: border-color .2s, box-shadow .2s;
}
.ip-box:hover { border-color: rgba(205,140,255,0.42); box-shadow: 0 0 22px var(--glow); }
.ip-box .ip-text { font-family: var(--display); font-size: 1.02rem; font-weight: 700; color: var(--text); letter-spacing: 0.3px; text-align: left; }
.ip-box .ip-label { font-size: 0.66rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 1.2px; text-align: left; font-weight: 600; }
.ip-box .copy-btn { background: var(--pm); border: none; color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: background .18s; white-space: nowrap; font-family: inherit; }
.ip-box .copy-btn:hover { background: var(--pd); }
.ip-box.copied { border-color: rgba(74,222,128,0.5); }
.ip-box.copied .copy-btn { background: var(--online); }

/* ---------- section headings ---------- */
.eyebrow { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: var(--pl); margin-bottom: 12px; }
.h-sec { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.5px; }
.sub { color: var(--text-2); font-size: 1.02rem; max-width: 600px; }

/* vein divider */
.vein { height: 1px; max-width: 1140px; margin: 0 auto; position: relative; }
.vein::before { content:''; position:absolute; left:6%; right:6%; top:0; height:1px;
    background: linear-gradient(90deg, transparent, rgba(205,140,255,0.4), rgba(92,200,255,0.3), transparent); }

/* ---------- pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.3px; }
.pill-live { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.28); color: var(--online); }
.pill-brand { background: rgba(164,99,214,0.12); border: 1px solid rgba(205,140,255,0.3); color: var(--pl); }
.pill-ice { background: rgba(92,200,255,0.1); border: 1px solid rgba(92,200,255,0.26); color: var(--ice); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot.pulse { animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100%{opacity:1;} 50%{opacity:.35;} }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-hover { transition: border-color .25s, transform .25s, box-shadow .25s; }
.card-hover:hover { border-color: rgba(205,140,255,0.32); transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 38px 0; margin-top: 40px; position: relative; z-index: 1; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-left { font-size: 0.84rem; color: var(--text-3); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-3); text-decoration: none; font-size: 0.84rem; transition: color .18s; }
.footer-links a:hover { color: var(--pl); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- mobile nav ---------- */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: rgba(10,9,16,0.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
        flex-direction: column; padding: 14px 24px; gap: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links .btn-nav { margin-top: 8px; text-align: center; padding: 12px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
