body {
    gap: 0;
}

.hero-section {
    z-index: 2;
    text-align: center;
    margin-top: auto;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hero-logo {
    font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -3px;
    color: #f4f4f4;
    line-height: 1;
    text-shadow: 0 0 60px rgba(74, 143, 232, 0.18);
}

.hero-alias {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.hero-sub {
    z-index: 2;
    text-align: center;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 520px;
    width: 100%;
}

.location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dim);
    font-size: 0.82rem;
}

.location span {
    font-size: 16px;
}

.about-text {
    font-size: 0.97rem;
    line-height: 1.65;
    font-weight: 350;
    color: #9aa3ae;
    max-width: 440px;
}

.action-bar {
    z-index: 2;
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.info-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #9aa3ae;
    font-family: 'JetBrains Mono', monospace;
}

.lang-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.75;
}

.divider-pill {
    width: 1px;
    height: 14px;
    background: var(--border);
    margin: 0 4px;
}

.interest-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #a8c0dc;
    border: 1px solid rgba(74, 143, 232, 0.22);
    background: rgba(74, 143, 232, 0.07);
    padding: 3px 8px;
    letter-spacing: 0.01em;
    border-radius: 2px;
}

.link-bar {
    z-index: 2;
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.01em;
    height: 38px;
    padding: 0 16px;
    border: 1px solid transparent;
}

.link-btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 0 0 rgba(74, 143, 232, 0);
}

.link-btn.primary:hover {
    background: #5a9ef0;
    box-shadow: 0 4px 18px rgba(74, 143, 232, 0.32);
}

.link-btn.secondary {
    background: transparent;
    color: #9aa3ae;
    border-color: var(--border);
}

.link-btn.secondary:hover {
    border-color: rgba(74, 143, 232, 0.4);
    color: #a8c0dc;
    background: rgba(74, 143, 232, 0.06);
}

.link-btn.icon-only {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    background: transparent;
    border-color: var(--border);
    color: var(--text-dim);
}

.link-btn.icon-only:hover {
    border-color: rgba(74, 143, 232, 0.4);
    background: rgba(74, 143, 232, 0.06);
}

.btn-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.btn-icon-sm {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(0.6);
}

.link-btn.icon-only:hover .btn-icon-sm {
    filter: brightness(0) invert(0.85);
}

.resources-section {
    z-index: 2;
    width: 100%;
    max-width: 680px;
    margin-top: 56px;
    padding-bottom: 40px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-soft);
    margin-bottom: 14px;
}

.section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 10px;
    background: linear-gradient(90deg, rgba(74, 143, 232, 0.35), rgba(74, 143, 232, 0.05) 70%, transparent);
}

.section-icon {
    font-size: 14px;
}

.resource-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    padding: 3px 10px;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.filter-btn.active {
    border-color: rgba(74, 143, 232, 0.5);
    color: #a8c0dc;
    background: rgba(74, 143, 232, 0.09);
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.reveal-card {
    opacity: 0;
    transform: translateY(5px);
    animation: rise-in 0.18s ease forwards;
    animation-delay: 0.06s;
}

@keyframes rise-in {
    to { opacity: 1; transform: translateY(0); }
}

.resource-item {
    background: #13151a;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.resource-item:hover {
    background: #181b22;
    transform: translateY(-1px);
    border-color: rgba(74, 143, 232, 0.15);
}

.resource-main {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    display: block;
}

.res-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.res-name {
    font-weight: 600;
    font-size: 0.97rem;
    color: #ececec;
}

.res-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 3px;
}

.res-type.type-hpp {
    border-color: rgba(74, 143, 232, 0.4);
    color: #a0c0e8;
    background: rgba(74, 143, 232, 0.08);
}

.res-type.type-luau {
    border-color: rgba(125, 176, 159, 0.52);
    color: #abd8c8;
    background: rgba(125, 176, 159, 0.08);
}

.res-top {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.res-updated {
    width: 100%;
    margin-top: -2px;
    color: #5a6070;
    font-size: 0.73rem;
    letter-spacing: 0.01em;
}

.res-tooltip {
    position: absolute;
    left: 12px;
    bottom: calc(100% + 8px);
    width: min(420px, 62vw);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    border: 1px solid #2a2e38;
    background: #13151a;
    padding: 10px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #7a8a9a;
    line-height: 1.45;
    z-index: 6;
    white-space: pre-wrap;
    border-radius: 4px;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.resource-main:hover .res-tooltip,
.resource-main:focus-visible .res-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.resource-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.docs-btn {
    height: 28px;
    padding: 0 10px;
    border: 1px solid #2a2e38;
    background: rgba(255,255,255,0.02);
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.docs-btn:hover {
    border-color: rgba(74, 143, 232, 0.5);
    color: #a8c0dc;
    background: rgba(74, 143, 232, 0.08);
}

.copy-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #2a2e38;
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.copy-btn .material-symbols-outlined {
    font-size: 15px;
}

.copy-btn:hover {
    border-color: rgba(74, 143, 232, 0.5);
    color: #a8c0dc;
    background: rgba(74, 143, 232, 0.08);
}

.res-open-icon {
    color: var(--text-dim);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.res-open-icon .material-symbols-outlined {
    font-size: 18px;
}

.resource-item:hover .res-open-icon {
    color: var(--accent);
    transform: translateX(1px);
    border-color: #2a2e38;
    background: rgba(74, 143, 232, 0.06);
}

footer {
    z-index: 2;
    padding: 32px 0 80px;
    text-align: center;
    margin-top: auto;
}

.footer-note {
    font-size: 0.78rem;
    color: var(--text-soft);
    max-width: 420px;
}

@media (max-width: 700px) {
    .hero-section {
        padding-top: 60px;
    }
    .resources-section {
        margin-top: 40px;
    }
    .resource-item {
        padding: 14px 16px;
    }
    .res-tooltip {
        display: none;
    }
    .link-bar {
        gap: 8px;
    }
}