:root {
    --background: #050912;
    --sidebar: #080d18;
    --surface: #0d1422;
    --surface-hover: #111c2c;
    --border: rgba(255,255,255,.08);
    --text: #f7fbff;
    --muted: #8f9bad;
    --cyan: #20d8fa;
    --blue: #176cff;
    --success: #46d989;
    --warning: #ffbd4a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at 50% -20%, rgba(0,120,255,.17), transparent 38%),
        var(--background);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.site-header {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 20px;
    font-weight: 750;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-nav > a:not(.button) { color: var(--muted); }

.landing {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    min-height: 660px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: center;
}

.badge, .eyebrow {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
}

.hero h1 {
    font-size: clamp(52px, 7vw, 86px);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 18px 0 24px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 620px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.hero-logo-wrap {
    display: grid;
    place-items: center;
    position: relative;
}

.hero-logo-wrap::before {
    content: "";
    position: absolute;
    width: 75%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(24,167,255,.15);
    filter: blur(65px);
}

.hero-logo {
    width: min(100%, 430px);
    position: relative;
    border-radius: 26px;
    filter: drop-shadow(0 30px 70px rgba(0,127,255,.16));
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 0 100px;
}

.feature-card,
.server-card,
.dashboard-section,
.notice,
.empty-state {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 18px;
}

.feature-card { padding: 28px; }

.feature-card > span { color: var(--cyan); font-size: 12px; font-weight: 800; }
.feature-card h2 { margin: 18px 0 10px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 11px;
    font-weight: 700;
    transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}

.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button.small { min-height: 38px; padding: 0 14px; font-size: 14px; }

.button.primary {
    color: #00111d;
    background: linear-gradient(135deg, var(--cyan), #2e91ff);
}

.button.secondary {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
}

.dashboard-shell {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 250px 1fr;
}

.sidebar {
    padding: 24px 16px;
    border-right: 1px solid var(--border);
    background: rgba(7,12,22,.94);
    position: sticky;
    top: 0;
    height: 100svh;
}

.sidebar nav {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--muted);
    transition: background .15s ease, color .15s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text);
    background: rgba(32,216,250,.08);
}

.main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 42px 80px;
}

.profile-banner {
    width: 100%;
    height: 230px;
    background-position: center;
    background-size: cover;
    border-radius: 22px;
    border: 1px solid var(--border);
}

.profile-banner-fallback {
    background:
        radial-gradient(circle at 40% 0%, rgba(32,216,250,.35), transparent 40%),
        linear-gradient(135deg, #07172c, #040812);
}

.profile {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin: -48px 24px 60px;
}

.avatar {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--background);
    background: var(--surface);
}

.profile h1 { margin: 0; font-size: 30px; }
.profile p { margin: 5px 0 10px; color: var(--muted); }

.page-title { margin: 7px 0 6px; font-size: 36px; }
.muted { color: var(--muted); }

.notice {
    padding: 18px 20px;
    margin-bottom: 32px;
    color: #cdd8e6;
}

.notice strong { color: var(--text); }
.notice.warning { border-color: rgba(255,189,74,.25); }

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.server-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.server-card:hover {
    transform: translateY(-2px);
    background: var(--surface-hover);
    border-color: rgba(32,216,250,.22);
}

.server-card-top {
    display: flex;
    gap: 14px;
    align-items: center;
}

.server-card h3 { margin: 0 0 7px; font-size: 17px; }

.guild-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
}

.guild-icon-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #00111d;
    font-weight: 800;
}

.status { font-size: 13px; color: var(--muted); }
.status.installed { color: var(--success); }

.dashboard-section {
    margin-top: 24px;
    padding: 24px;
}

.role-list { display: flex; flex-wrap: wrap; gap: 8px; }

.role {
    padding: 7px 11px;
    border-radius: 8px;
    background: rgba(32,216,250,.08);
    border: 1px solid rgba(32,216,250,.15);
}

.permission-success { color: var(--success); }
.empty-state { padding: 24px; color: var(--muted); }

@media (max-width: 820px) {
    .top-nav > a:not(.button) { display: none; }

    .hero {
        min-height: auto;
        padding: 80px 0 70px;
        grid-template-columns: 1fr;
    }

    .hero-logo-wrap { order: -1; }
    .hero-logo { width: min(72vw, 300px); }
    .features { grid-template-columns: 1fr; }

    .dashboard-shell { display: block; }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar nav { display: none; }
    .main { padding: 20px 16px 60px; }
    .profile-banner { height: 160px; }
    .profile { margin: -40px 12px 45px; }
    .profile h1 { font-size: 23px; }
    .avatar { width: 88px; height: 88px; }
}

@media (max-width: 520px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
}
