:root {
    --accent: #5865f2;
    --accent-2: #eb459e;
    --bg: #0a0b14;
    --bg-elevated: #12131f;
    --border: #22243a;
    --text: #f5f6fb;
    --text-dim: #9a9cba;
    --radius: 16px;

    /* Палитра мокапа — те же цвета, что у настоящего Discord-клиента,
       чтобы превью в hero читалось как реальный скриншот бота. */
    --discord-bg: #313338;
    --discord-bar: #2b2d31;
    --discord-text: #dbdee1;
    --discord-text-dim: #949ba4;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        sans-serif;
    position: relative;
    overflow-x: hidden;
}

.glow {
    position: absolute;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 700px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.35) 0%, rgba(235, 69, 158, 0.12) 45%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 32px;
    background: rgba(10, 11, 20, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav__badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.nav__links {
    display: flex;
    gap: 28px;
}

.nav__links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav__links a:hover {
    color: var(--text);
}

main {
    position: relative;
    z-index: 1;
}

.hero {
    max-width: 680px;
    margin: 0 auto;
    padding: 88px 24px 0;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hero__lead {
    margin: 0 auto 32px;
    max-width: 520px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-dim);
}

.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text);
    white-space: nowrap;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn--primary:hover {
    background: #4752c4;
    border-color: #4752c4;
}

.btn--ghost:hover {
    border-color: var(--accent);
}

.btn--small {
    padding: 9px 16px;
    font-size: 13px;
}

/* Мокап окна Discord с карточкой бота — статичный HTML/CSS, не
   скриншот: легче поддерживать в актуальном виде при изменении карточки
   (tickets/model.js buildPanelMessage), чем перегенерировать картинку. */
.mock {
    max-width: 560px;
    margin: 0 auto 90px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--discord-bg);
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.mock__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--discord-bar);
}

.mock__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.mock__channel {
    margin-left: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--discord-text-dim);
}

.mock__msg {
    display: flex;
    gap: 14px;
    padding: 20px;
}

.mock__avatar {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.mock__msg-body {
    flex: 1;
    min-width: 0;
}

.mock__name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.mock__tag {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--accent);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.mock__embed {
    padding: 14px 16px;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
}

.mock__embed strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #fff;
}

.mock__embed p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--discord-text);
}

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

.mock__btn {
    padding: 7px 12px;
    border-radius: 4px;
    background: #4e5058;
    font-size: 12px;
    font-weight: 500;
    color: var(--discord-text);
}

.features {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

.features h2 {
    margin: 0 0 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

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

@media (max-width: 760px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }
}

.feature {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition:
        border-color 0.15s ease,
        transform 0.15s ease;
}

.feature:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.feature__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.15);
    color: var(--accent);
}

.feature__icon svg {
    width: 22px;
    height: 22px;
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.feature p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-dim);
}

.footer {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
    padding: 28px 24px 48px;
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--text-dim);
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent);
}

/* Личный кабинет (dashboard/views.js) — рендерится Express-сервером
   отдельно от этой статической страницы, но ссылается на этот же
   styles.css (Caddy отдаёт его статикой по тому же домену, см.
   web/Caddyfile), поэтому стили кабинета живут здесь же, без
   дублирования токенов/шрифта. */
.dashboard {
    max-width: 480px;
    margin: 0 auto;
    padding: 64px 24px 80px;
    position: relative;
    z-index: 1;
}

.dash-hero {
    text-align: center;
    margin-bottom: 36px;
}

.dash-hero h1 {
    margin: 16px 0 10px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.avatar--small {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.dash-note {
    margin: 24px 0;
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
}

.guild-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guild-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
}

.guild-item__icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.guild-item__icon--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.guild-item--empty {
    color: var(--text-dim);
    font-weight: 500;
    text-align: center;
}
