*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0e17;
    --bg-card: rgba(15, 22, 36, 0.72);
    --border: rgba(79, 195, 247, 0.12);
    --border-hover: rgba(79, 195, 247, 0.35);
    --text: #e8edf5;
    --text-muted: #7a8699;
    --accent: #4fc3f7;
    --accent-soft: rgba(79, 195, 247, 0.12);
    --radius: 14px;
    --font: 'Outfit', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 0;
}

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 480px;
    height: 480px;
    background: rgba(79, 195, 247, 0.08);
    top: -120px;
    right: -80px;
}

.glow-2 {
    width: 360px;
    height: 360px;
    background: rgba(124, 58, 237, 0.06);
    bottom: -80px;
    left: -60px;
}

.header,
.main,
.footer {
    position: relative;
    z-index: 1;
}

.header {
    padding: 3.5rem 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.brand-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(79, 195, 247, 0.4));
}

.brand-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.brand-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    padding-left: 3rem;
}

.main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.925rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search::placeholder {
    color: var(--text-muted);
}

.search:focus {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.count {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(12px);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--accent-soft);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.card-name {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-folder {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 300;
    flex: 1;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.card-link {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
}

.card-arrow {
    color: var(--text-muted);
    transition: transform 0.2s, color 0.2s;
}

.card:hover .card-arrow {
    transform: translateX(3px);
    color: var(--accent);
}

.empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
    font-size: 0.95rem;
}

.hidden {
    display: none;
}

.footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-mono {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

@media (max-width: 520px) {
    .tagline {
        padding-left: 0;
    }

    .header {
        padding-top: 2.5rem;
    }
}
