/* ===== Blossom SMP — shared design system ===== */
:root {
    --bg: #070a10;
    --bg-soft: rgba(12,16,24,0.82);
    --panel: rgba(12,18,30,0.78);
    --panel-2: rgba(16,22,36,0.72);
    --surface: rgba(255,255,255,0.05);
    --line: rgba(255,255,255,0.08);
    --ink: #edf2ff;
    --ink-dim: #96a7c4;
    --accent: #74b7ff;
    --accent-2: #4e8dff;
    --blossom: #74b7ff;
    --blossom-deep: #4e8dff;
    --blue: #7ac7ff;
    --blue-soft: rgba(122, 199, 255, 0.14);
    --gold: #f2cc8f;
    --radius: 18px;
    --shadow: 0 28px 90px rgba(0,0,0,0.32);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: radial-gradient(circle at 16% 10%, rgba(122,199,255,0.10), transparent 18%),
                radial-gradient(circle at 80% 20%, rgba(78,141,255,0.09), transparent 22%),
                linear-gradient(180deg, #06090f 0%, #07090a 58%, #020407 100%);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
    transition: background .35s ease, color .35s ease;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 36px; }
.wrap.narrow { max-width: 860px; }
img { max-width: 100%; display: block; }

::selection { background: var(--blossom-deep); color: #2a1a20; }

/* ---------- ambient background ----------
   One quiet layer instead of three stacked effects
   (cursor-follow glow + blobs + petals). Slow, low-opacity drift only. */
#ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.08; animation: drift 48s ease-in-out infinite; mix-blend-mode: screen; }
.blob.b1 { width: 520px; height: 520px; top: -120px; left: -120px; background: linear-gradient(135deg, rgba(125,211,252,0.08), rgba(243,182,203,0.06)); }
.blob.b2 { width: 420px; height: 420px; top: 28%; right: -140px; background: linear-gradient(135deg, rgba(110,192,122,0.06), rgba(125,211,252,0.04)); animation-delay: -8s; animation-duration: 46s; }
.blob.b3 { width: 480px; height: 480px; bottom: -160px; left: 24%; background: linear-gradient(135deg, rgba(243,182,203,0.06), rgba(242,204,143,0.04)); animation-delay: -20s; animation-duration: 44s; }
@keyframes drift {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(24px,-18px) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* Petals: optional accent, now subtler and slower. Remove the #petals
   element entirely from your HTML if you want a fully calm background. */
#petals { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petal { position: absolute; top: -10%; border-radius: 0 60% 0 60%; opacity: 0.28; animation: fall linear infinite, sway ease-in-out infinite; will-change: transform, margin-left; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }
@keyframes sway { 0%, 100% { margin-left: 0; } 50% { margin-left: 40px; } }
@media (prefers-reduced-motion: reduce) { .petal { animation: none; display: none; } }

/* ---------- nav ---------- */
nav {
    position: sticky; top: 0; z-index: 30;
    backdrop-filter: blur(16px) saturate(140%);
    background: rgba(8, 12, 20, 0.70);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 42px rgba(0,0,0,0.18);
    position: relative;
}
nav::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 14% 18%, rgba(116,183,255,0.12), transparent 24%),
                radial-gradient(circle at 88% 18%, rgba(243,182,203,0.08), transparent 28%);
    opacity: 0.95;
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; }
.brand .dot { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 26px rgba(122,199,255,0.14); }
.brand .team-badge { margin-left: 8px; font-size: 0.72rem; color: var(--ink-dim); background: rgba(255,255,255,0.04); padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.07); }
nav .links { display: flex; gap: 28px; font-size: 0.95rem; color: var(--ink-dim); }
nav .links a { position: relative; transition: color .25s ease, transform .25s ease; padding: 6px 0; font-weight: 500; }
nav .links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .28s ease; border-radius: 999px; }
nav .links a:hover, nav .links a.active { color: var(--ink); transform: translateY(-1px); }
nav .links a:hover::after, nav .links a.active::after { width: 100%; }
.user-menu { position: relative; display: inline-flex; align-items: center; z-index: 50; }
.user-button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(122,199,255,0.35); background: rgba(12,16,24,0.94); color: var(--ink); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: 0.9rem; transition: background .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease; position: relative; }
.user-button:hover { background: rgba(122,199,255,0.12); transform: translateY(-1px); border-color: rgba(122,199,255,0.5); }
.user-button.logged-in { border-color: rgba(122,199,255,0.55); }
.user-button.logged-in::after { content: "▾"; margin-left: 10px; font-size: 0.88rem; color: rgba(255,255,255,0.72); }
.user-button.discord-login { background: linear-gradient(145deg, rgba(88,101,242,0.14), rgba(61,72,197,0.15)); border-color: rgba(114,137,218,0.55); color: #e8ebff; }
.user-button.discord-login:hover { background: linear-gradient(145deg, rgba(88,101,242,0.22), rgba(61,72,197,0.24)); }
.user-button.discord-login .user-button-icon { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(114,137,218,0.18); color: #dfe4ff; font-size: 0.96rem; }
.user-button .user-avatar { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; border: 1px solid rgba(255,255,255,0.12); }
.user-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; background: rgba(12,16,24,0.98); border: 1px solid rgba(122,199,255,0.18); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.35);Backdrop-filter: blur(24px); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; z-index: 50; pointer-events: none; }
.user-dropdown.open { display: block; opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.user-dropdown::before { content: ""; position: absolute; top: -6px; right: 18px; width: 12px; height: 12px; background: rgba(12,16,24,0.98); transform: rotate(45deg); border-left: 1px solid rgba(122,199,255,0.16); border-top: 1px solid rgba(122,199,255,0.16); }
.user-dropdown button { width: 100%; text-align: left; background: transparent; border: none; color: var(--ink); padding: 14px 18px; font-size: 0.92rem; cursor: pointer; transition: background .2s ease, color .2s ease; }
.user-dropdown button:hover { background: rgba(122,199,255,0.14); color: #fff; }
.nav-discord { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
@media (max-width: 820px) {
    nav .links { position: fixed; top: 68px; left: 0; right: 0; background: var(--bg-soft); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    nav .links.open { max-height: 320px; }
    nav .links a { padding: 16px 28px; border-top: 1px solid var(--line); width: 100%; }
    .nav-toggle { display: inline-flex; }
    .user-menu { position: static; margin: 16px 28px; }
    .user-dropdown { position: static; transform: none; opacity: 1; visibility: visible; display: block; box-shadow: none; border: none; background: transparent; margin-top: 8px; }
    .user-dropdown button { padding: 14px 16px; border-radius: 12px; background: rgba(12,16,24,0.9); border: 1px solid rgba(255,255,255,0.06); }
}

/* ---------- page header (sub-pages) ---------- */
.page-header { position: relative; z-index: 2; padding: 72px 0 46px; text-align: center; }
.page-header .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss); margin-bottom: 18px; }
.page-header .eyebrow::before, .page-header .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--moss); opacity: .5; }
.page-header h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.page-header p { max-width: 580px; margin: 18px auto 0; color: var(--ink-dim); }

/* ---------- hero (home) ---------- */
header.hero { position: relative; overflow: hidden; }
header.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 16% 12%, rgba(116,183,255,0.12), transparent 24%),
                radial-gradient(circle at 82% 26%, rgba(243,182,203,0.08), transparent 28%);
}
header.hero::after {
    content: "";
    position: absolute;
    left: 50%; top: 52%;
    width: 520px; height: 520px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 56%);
    filter: blur(64px);
    pointer-events: none;
}
.hero-card { position: relative; overflow: hidden; max-width: 980px; margin: 0 auto; background: rgba(12,18,32,0.92); border-radius: calc(var(--radius) + 6px); padding: 58px 48px; box-shadow: 0 32px 120px rgba(0,0,0,0.24); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(24px); }
.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 48%);
}
.hero-card::after {
    content: "";
    position: absolute;
    right: -48px; top: -38px;
    width: 212px; height: 212px;
    background: radial-gradient(circle, rgba(116,183,255,0.16), transparent 55%);
    filter: blur(38px);
    pointer-events: none;
}
.hero-pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px auto 0; max-width: 680px; }
.hero-pill { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: var(--ink-dim); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-actions .btn-outline { min-width: 170px; }
.hero-actions .discord-btn { min-width: 190px; }
.preview-strip { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 18px; margin-top: 36px; }
.preview-card { position: relative; padding: 22px 20px; border-radius: 22px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 18px 50px rgba(0,0,0,0.18); backdrop-filter: blur(18px); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; overflow: hidden; }
.preview-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top left, rgba(116,183,255,0.12), transparent 28%); pointer-events: none; }
.preview-card:hover { transform: translateY(-4px); border-color: rgba(122,199,255,0.22); box-shadow: 0 24px 68px rgba(0,0,0,0.22); }
.preview-pill { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--ink-dim); letter-spacing: 0.08em; font-size: 0.72rem; text-transform: uppercase; margin-bottom: 12px; }
.preview-card h4 { margin: 0 0 10px; font-size: 1rem; line-height: 1.3; }
.preview-card p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.6; }
.hero-float { animation: float 7s ease-in-out infinite; }
.hero-title { color: var(--ink); }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

.hero-card { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease, border-color .25s ease; }
.hero-card.ready { opacity: 1; transform: translateY(0); }
.hero-card:hover { transform: translateY(-10px) scale(1.004); box-shadow: 0 34px 120px rgba(0,0,0,0.32); border-color: rgba(122,199,255,0.24); }

header.hero { position: relative; z-index: 2; padding: 110px 0 72px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 32px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .6; }
h1.title { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; color: var(--ink); }
h1.title .line { display: block; overflow: hidden; }
h1.title .line span { display: inline-block; transform: translateY(110%); animation: revealLine 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
h1.title .line:nth-child(1) span { animation-delay: 0.15s; }
h1.title .line:nth-child(2) span { animation-delay: 0.28s; }
@keyframes revealLine { to { transform: translateY(0); } }
/* Gradient accent on the emphasis word — static, no infinite color-shift */
h1.title em { font-style: italic; background: linear-gradient(135deg, var(--blossom), var(--blossom-deep), var(--moss)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.subtitle { max-width: 720px; margin: 18px auto 0; color: var(--ink-dim); font-size: 1.05rem; }

/* IP cluster */
.ip-cluster { margin: 30px auto 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ip-box { position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: calc(var(--radius) - 4px); padding: 18px 24px; display: flex; align-items: center; gap: 16px; min-width: 260px; text-align: left; transition: border-color .25s, transform .25s, box-shadow .25s, background .25s; box-shadow: 0 12px 34px rgba(0,0,0,0.16); backdrop-filter: blur(12px); }
.ip-box:hover { border-color: rgba(122,199,255,0.35); transform: translateY(-3px); box-shadow: 0 18px 48px rgba(0,0,0,0.18); background: rgba(255,255,255,0.08); }
.ip-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(122,199,255,0.12), transparent 42%);
    pointer-events: none;
}
.ip-box .label { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 2px; }
.ip-box .value { font-family: 'Fraunces', serif; font-size: 1.1rem; }
.ip-box button { margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 14px; font-size: 0.8rem; cursor: pointer; font-family: 'Inter', sans-serif; transition: border-color .2s, color .2s; white-space: nowrap; }
.ip-box button:hover { border-color: var(--blossom-deep); color: var(--blossom); }
.ip-box.copied button { color: var(--moss); border-color: var(--moss); }

/* ---------- generic sections ---------- */
section { position: relative; z-index: 2; padding: 84px 0; opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
section.visible { opacity: 1; transform: translateY(0); }
section.tight { padding: 58px 0; }
.section-head { margin-bottom: 48px; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.section-head p { color: var(--ink-dim); margin-top: 18px; max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.85; }
.section-head.left { text-align: left; }
.section-head.left p { margin-left: 0; }
.section-head::after { content: ''; display: block; width: 90px; height: 2px; margin: 24px auto 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }

.about { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .wrap { max-width: 760px; }
.about p { color: var(--ink-dim); font-size: 1.05rem; margin-bottom: 20px; }
.about strong { color: var(--ink); font-weight: 500; }

/* feature / card grids */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 22px; margin-top: 40px; }
.feature { position: relative; overflow: hidden; background: rgba(11,15,25,0.92); padding: 34px 30px; transition: background .28s ease, transform .28s ease, box-shadow .28s ease, border-color .28s ease; box-shadow: 0 22px 64px rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.06); border-radius: calc(var(--radius) - 4px); }
.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top left, rgba(122,199,255,0.08), transparent 36%); pointer-events: none; }
.feature:hover { background: rgba(15,20,32,0.98); transform: translateY(-6px); box-shadow: 0 28px 92px rgba(0,0,0,0.24); border-color: rgba(122,199,255,0.14); }
.feature .glyph { width: 46px; height: 46px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); opacity: 0.98; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.feature h3 { font-size: 1.16rem; margin-bottom: 10px; margin-top: 20px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; margin-top: 18px; }
.feature p { color: var(--ink-dim); font-size: 0.92rem; margin: 0; }
@media (max-width: 760px) { .features-grid { grid-template-columns: 1fr; } .hero-pill-row { justify-content: center; gap: 10px; } .hero-actions { flex-direction: column; align-items: stretch; } .hero-actions .btn-outline, .hero-actions .discord-btn { width: 100%; min-width: auto; } .preview-strip { grid-template-columns: 1fr; } }

/* ---------- status card ---------- */
.status-card { max-width: 600px; margin: 0 auto; background: rgba(11,15,25,0.92); border: 1px solid rgba(122,199,255,0.14); border-radius: calc(var(--radius) + 2px); padding: 34px 38px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; backdrop-filter: blur(14px); }
.status-card:hover { transform: translateY(-5px); box-shadow: 0 30px 90px rgba(0,0,0,0.28); border-color: rgba(122,199,255,0.22); }
.status-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.status-dot { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.status-dot .dot { width: 14px; height: 14px; border-radius: 50%; background: #555; transition: background .3s; }
/* Pulse reserved for the live "online" indicator only — it's the one place
   motion is carrying real information, not just decoration. */
.status-dot .dot.online { background: #6fcf97; box-shadow: 0 0 16px rgba(111, 207, 151, 0.35); animation: pulse-dot 2.4s infinite; }
.status-dot .dot.offline { background: #eb5757; }
.status-dot .dot.checking { animation: spin-pulse 1s linear infinite; background: var(--ink-dim); }
@keyframes pulse-dot { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes spin-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.status-dot .status-text { font-size: 0.95rem; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(125,211,252,0.06); border: 1px solid rgba(125,211,252,0.12); border-radius: 999px; padding: 7px 14px; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.status-badge .status-badge-icon { font-size: 0.95rem; }
.status-badge.checking { color: var(--gold); background: rgba(232, 201, 135, 0.08); border-color: rgba(232, 201, 135, 0.12); }
.status-badge.online { color: var(--accent); background: linear-gradient(90deg, rgba(125,211,252,0.08), rgba(243,182,203,0.04)); border-color: rgba(125,211,252,0.12); }
.status-badge.offline { color: var(--ink-dim); background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.02); }
.motd { background: var(--bg); padding: 14px 18px; border-radius: 10px; border: 1px solid var(--line); font-family: 'Courier New', monospace; font-size: 0.95rem; color: var(--ink-dim); text-align: center; min-height: 44px; word-break: break-word; }
.status-refresh { align-self: center; background: transparent; border: 1px solid var(--line); color: var(--ink-dim); padding: 6px 18px; border-radius: 999px; font-size: 0.75rem; cursor: pointer; transition: border-color .2s, color .2s; }
.status-refresh:hover { border-color: var(--blossom); color: var(--blossom); }

/* mini status pill (used on sub-pages) */
.status-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 0.8rem; color: var(--ink-dim); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-dim); }
.status-pill .dot.online { background: #6fcf97; }
.status-pill .dot.offline { background: #eb5757; }

/* stats bar */
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; border: 1px solid var(--line); }
.stat-item { background: var(--bg-soft); padding: 20px 16px; text-align: center; }
.stat-item .num { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 600; color: var(--blossom); }
.stat-item .desc { font-size: 0.8rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
@media (max-width: 600px) { .stats-bar { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { position: relative; text-align: center; background: rgba(12,16,26,0.9); border-top: 1px solid rgba(255,255,255,0.06); transition: transform .24s ease, box-shadow .24s ease; backdrop-filter: blur(18px); padding: 64px 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 24%, rgba(116,183,255,0.10), transparent 28%), radial-gradient(circle at 18% 84%, rgba(243,182,203,0.08), transparent 25%); pointer-events: none; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.cta h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 18px; letter-spacing: -0.03em; }
.cta p { color: var(--ink-dim); margin-bottom: 34px; font-size: 1.1rem; max-width: 700px; margin-left: auto; margin-right: auto; }
/* Shimmer now plays once on hover instead of looping forever */
.discord-btn { position: relative; display: inline-flex; align-items: center; gap: 12px; background: rgba(10, 16, 29, 0.96); border: 1px solid rgba(122,199,255,0.5); color: #7ac7ff; font-weight: 600; padding: 16px 34px; border-radius: 999px; transition: background .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease; box-shadow: 0 16px 48px rgba(122,199,255,0.08); overflow: hidden; }
.discord-btn::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(122,199,255,0.25), transparent); transform: skewX(-20deg); transition: left .6s ease; z-index: -1; }
.discord-btn:hover::before { left: 130%; }
.discord-btn:hover { background: rgba(122, 199, 255, 0.14); color: #7ac7ff; transform: translateY(-3px); box-shadow: 0 18px 48px rgba(122,199,255,0.18); border-color: rgba(122,199,255,0.8); }
.btn-outline { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 14px 30px; border-radius: 999px; transition: border-color .2s, color .2s; }
.btn-outline:hover { border-color: var(--blossom-deep); color: var(--blossom); }

/* ---------- footer ---------- */
footer { position: relative; z-index: 2; text-align: center; padding: 54px 0 48px; color: var(--ink-dim); font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.08); }
footer::before { content: ""; position: absolute; left: 50%; top: 0; width: 260px; height: 100px; transform: translateX(-50%); background: radial-gradient(circle, rgba(122,199,255,0.08), transparent 60%); pointer-events: none; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-top: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-dim); transition: color .2s, transform .2s; }
.footer-links a:hover { color: var(--blossom); transform: translateY(-1px); }

/* ---------- rules page ---------- */
.rules-list { display: flex; flex-direction: column; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rule-item { background: var(--bg); padding: 26px 30px; display: flex; gap: 22px; align-items: flex-start; transition: background .2s; }
.rule-item:hover { background: var(--bg-soft); }
.rule-num { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--blossom); min-width: 38px; opacity: 0.8; }
.rule-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.rule-body p { color: var(--ink-dim); font-size: 0.92rem; margin: 0; }
.rule-tag { display: inline-block; font-size: 0.65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--moss); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }

/* ---------- leaderboard page ---------- */
.lb-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.lb-tab { background: var(--panel); border: 1px solid var(--line); padding: 9px 20px; border-radius: 999px; font-size: 0.85rem; cursor: pointer; color: var(--ink-dim); transition: color .2s, border-color .2s, background .2s; }
.lb-tab.active, .lb-tab:hover { color: var(--ink); border-color: var(--blossom-deep); background: rgba(243,182,203,0.07); }
.lb-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lb-table thead { background: var(--bg-soft); }
.lb-table th { text-align: left; font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); padding: 14px 20px; font-weight: 500; }
.lb-table td { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.lb-table tbody tr { transition: background .2s; }
.lb-table tbody tr:hover { background: var(--bg-soft); }
.lb-rank { font-family: 'Fraunces', serif; font-weight: 600; width: 36px; }
.lb-rank.gold { color: var(--gold); }
.lb-rank.silver { color: #d6d6d6; }
.lb-rank.bronze { color: #c98455; }
.lb-player { display: flex; align-items: center; gap: 12px; }
.lb-avatar { width: 32px; height: 32px; border-radius: 8px; background: var(--blossom); flex-shrink: 0; }
.lb-bar-track { width: 100%; height: 6px; background: var(--bg); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.lb-bar-fill { height: 100%; background: var(--blossom); border-radius: 4px; width: 0%; transition: width 1s ease; }
@media (max-width: 700px) {
    .lb-table thead { display: none; }
    .lb-table, .lb-table tbody, .lb-table tr, .lb-table td { display: block; width: 100%; }
    .lb-table tr { border-top: 1px solid var(--line); padding: 14px 20px; }
    .lb-table td { padding: 4px 0; border: none; }
}

/* ---------- gallery page ---------- */
.gallery-grid { columns: 3 280px; column-gap: 14px; }
.gallery-item { break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 24px 55px rgba(0,0,0,0.18); border-color: rgba(125,211,252,0.1); }
.gallery-item img { width: 100%; display: block; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); font-size: 0.82rem; color: var(--ink); opacity: 0; transition: opacity .2s ease; }
.gallery-item:hover .gallery-cap { opacity: 1; }

/* ---------- vote page ---------- */
.vote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vote-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s, border-color .2s; }
.vote-card:hover { transform: translateY(-3px); border-color: var(--blossom-deep); }
.vote-card .site-name { font-family: 'Fraunces', serif; font-size: 1.2rem; }
.vote-card .reward { color: var(--moss); font-size: 0.85rem; }
.vote-card .vote-btn { margin-top: auto; text-align: center; background: var(--bg); border: 1px solid var(--line); padding: 10px; border-radius: 10px; transition: background .2s, color .2s, border-color .2s; }
.vote-card .vote-btn:hover { background: var(--blossom); color: #2a1a20; border-color: var(--blossom); }
.vote-progress { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; max-width: 580px; margin: 40px auto 0; }
.vote-progress .top { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ink-dim); margin-bottom: 10px; }
@media (max-width: 760px) { .features-grid { grid-template-columns: 1fr; } .hero-pill-row { justify-content: center; gap: 10px; } .hero-actions { flex-direction: column; align-items: stretch; } .hero-actions .btn-outline, .hero-actions .discord-btn { width: 100%; min-width: auto; } .preview-strip { grid-template-columns: 1fr; } }

/* ---------- apply page ---------- */
.app-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.app-form label { font-size: 0.82rem; color: var(--ink-dim); margin-bottom: 6px; display: block; }
.app-form input, .app-form textarea, .app-form select {
    width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
    color: var(--ink); font-family: 'Inter', sans-serif; font-size: 0.95rem; transition: border-color .2s, box-shadow .2s;
}
.app-form input:focus, .app-form textarea:focus, .app-form select:focus { outline: none; border-color: var(--blossom-deep); box-shadow: 0 0 0 3px rgba(243,182,203,0.12); }
.app-form textarea { resize: vertical; min-height: 110px; }
.app-form button { background: var(--blossom); color: #2a1a20; font-weight: 600; border: none; padding: 14px; border-radius: 999px; cursor: pointer; transition: background .2s, transform .2s; font-size: 0.95rem; }
.app-form button:hover { background: var(--blossom-deep); transform: translateY(-1px); }
.form-note { font-size: 0.8rem; color: var(--ink-dim); text-align: center; }

/* ---------- timeline (changelog) ---------- */
.timeline { position: relative; max-width: 680px; margin: 0 auto; padding-left: 28px; border-left: 1px solid var(--line); }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item::before { content: ""; position: absolute; left: -33px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--blossom); box-shadow: 0 0 0 4px var(--bg); }
.tl-date { font-size: 0.75rem; color: var(--moss); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.tl-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tl-item p { color: var(--ink-dim); font-size: 0.92rem; }

/* ---------- scroll-reveal (one-time, shared by sections) ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
section.visible .feature,
section.visible .vote-card,
section.visible .app-form .field,
section.visible .lb-table tbody tr,
section.visible .gallery-item,
section.visible .rule-item,
section.visible .tl-item {
    animation: fadeUp 0.5s ease forwards;
}
section.visible .feature:nth-child(1), section.visible .vote-card:nth-child(1) { animation-delay: 0.04s; }
section.visible .feature:nth-child(2), section.visible .vote-card:nth-child(2) { animation-delay: 0.09s; }
section.visible .feature:nth-child(3), section.visible .vote-card:nth-child(3) { animation-delay: 0.14s; }
section.visible .feature:nth-child(4) { animation-delay: 0.19s; }
section.visible .feature:nth-child(5) { animation-delay: 0.24s; }
section.visible .feature:nth-child(6) { animation-delay: 0.29s; }