:root {
    --bg: #0b0f14;
    --panel: #101824;
    --panel2: #0f1621;
    --text: #e7eef8;
    --muted: #a9b7c9;
    --brand: #7c5cff;
    --brand2: #35d0ff;
    --line: rgba(255, 255, 255, .08);
    --shadow: 0 16px 48px rgba(0, 0, 0, .35);
    --radius: 18px;
    --ok: #59ffa8;
    --warn: #ffd36e;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: radial-gradient(1200px 800px at 20% 0%, rgba(124, 92, 255, .18), transparent 60%),
        radial-gradient(1200px 800px at 90% 10%, rgba(53, 208, 255, .12), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
}

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

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: rgba(16, 24, 36, .6);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 14px;
    z-index: 10;
    gap: 14px;
}

.logo {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 900;
    letter-spacing: .2px;
    color: var(--text);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    box-shadow: 0 0 0 4px rgba(124, 92, 255, .14);
}

.nav-links {
    display: flex;
    gap: 14px;
    color: var(--muted);
}

.nav-links a {
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06)
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 20;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 960px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 20px;
        flex-direction: column;
        gap: 10px;
        box-shadow: var(--shadow);
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav {
        position: sticky;
        top: 14px;
        padding: 10px 18px;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px;
        text-align: center;
    }
}

.nav-links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 92, 255, .95), rgba(53, 208, 255, .9));
    color: #06101a;
    font-weight: 900;
    box-shadow: 0 14px 36px rgba(124, 92, 255, .25);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(124, 92, 255, .35);
}

.hero {
    padding: 54px 0 32px;
    text-align: center;
}

.headline {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.06;
    margin: 0 0 16px;
    letter-spacing: -.7px;
}

.subhead {
    color: var(--muted);
    font-size: clamp(16px, 1.8vw, 20px);
    margin: 0 auto 32px;
    max-width: 700px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding-bottom: 64px;
}

.card {
    border: 1px solid var(--line);
    background: rgba(16, 24, 36, .55);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(8px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(124, 92, 255, .35);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(124, 92, 255, 0.2) inset;
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--text);
    margin: 0;
}

.card-date {
    font-size: 13px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.card-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid var(--line);
    color: var(--muted);
    display: inline-block;
    margin-top: 8px;
}

.card-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 0;
    grid-column: 1 / -1;
    color: var(--brand2);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(124, 92, 255, 0.2);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.footer {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}