:root {
    --bg-deep: #060b16;
    --bg-mid: #11253c;
    --bg-light: #1d4f7a;
    --surface: rgba(15, 23, 42, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.16);
    --text: #e5eefc;
    --muted: #9fb0c7;
    --accent: #69c4ff;
    --accent-strong: #3b82f6;
    --accent-soft: rgba(105, 196, 255, 0.18);
    --shadow: 0 24px 80px rgba(2, 8, 23, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(105, 196, 255, 0.25), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(99, 102, 241, 0.22), transparent 24%),
        linear-gradient(135deg, var(--bg-deep), var(--bg-mid) 45%, var(--bg-light));
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
    animation: float 12s ease-in-out infinite alternate;
}

body::before {
    width: 280px;
    height: 280px;
    left: -80px;
    top: -60px;
    background: #38bdf8;
}

body::after {
    width: 320px;
    height: 320px;
    right: -100px;
    bottom: -120px;
    background: #8b5cf6;
    animation-duration: 14s;
}

.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.6rem 2rem 2.4rem;
    border-radius: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.container::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 45%, rgba(255,255,255,0.04));
    pointer-events: none;
}

h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.65rem;
    background: linear-gradient(135deg, #ffffff, #93c5fd 45%, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subhead {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: 1.07rem;
    color: #d8e5f7;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(105,196,255,0.22), rgba(129,140,248,0.2));
    border: 1px solid rgba(255,255,255,0.16);
    margin-bottom: 1.55rem;
}

.description {
    position: relative;
    z-index: 1;
    padding: 1.4rem 1.5rem;
    border-radius: 1.35rem;
    margin-bottom: 2rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.12);
}

.description h2 {
    font-size: 1.35rem;
    margin-bottom: 0.55rem;
    color: #ffffff;
}

.description p {
    color: var(--muted);
    max-width: 860px;
}

.bots-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.8rem;
    margin: 1rem 0 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.bots-header h2 {
    font-size: 1.25rem;
    color: #f8fbff;
}

.bots-header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #bfe7ff;
    font-weight: 700;
    border: 1px solid rgba(105,196,255,0.25);
}

.bot-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
}

.bot-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.15rem 1.1rem 1.2rem;
    border-radius: 1.2rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bot-card:hover {
    transform: translateY(-4px);
    border-color: rgba(105,196,255,0.45);
    box-shadow: 0 12px 30px rgba(8, 15, 31, 0.2);
}

.bot-url {
    font-size: 1.05rem;
    font-weight: 700;
}

.bot-url a {
    color: #dff4ff;
    text-decoration: none;
}

.bot-url a:hover {
    color: #8fdcff;
    text-decoration: underline;
}

.bot-description {
    color: var(--muted);
    flex: 1;
}

.bot-meta {
    padding-top: 0.75rem;
    margin-top: auto;
    font-size: 0.8rem;
    color: #7dd3fc;
    border-top: 1px dashed rgba(255,255,255,0.16);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 2.2rem 1rem;
    border-radius: 1.2rem;
    text-align: center;
    color: #b8c7dc;
    background: rgba(255,255,255,0.06);
    border: 1px dashed rgba(255,255,255,0.16);
}

.file-hint {
    margin: 1.5rem 0 0;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(8, 15, 31, 0.42);
    border: 1px solid rgba(255,255,255,0.1);
    color: #dce7f6;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.88rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.file-hint small {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    color: #8fb3d8;
}

.footer-note {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.2rem;
    margin-top: 1.7rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: #bcd2e7;
    font-size: 0.95rem;
    text-align: center;
}

.footer-note strong {
    color: #f8fbff;
}

@keyframes float {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(20px, -24px, 0) scale(1.06);
    }
}

@media (max-width: 640px) {
    body {
        padding: 1rem 0.75rem;
    }

    .container {
        padding: 1.4rem 1rem 1.2rem;
        border-radius: 1.3rem;
    }

    .subhead {
        border-radius: 1rem;
    }

    .bots-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
