:root {
    --bg: #080d1a;
    --card-bg: rgba(14, 22, 44, 0.75);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --text-1: #f0f4ff;
    --text-2: #8b9ab8;
    --text-3: #556380;
    --accent: #4f8ef7;
    --accent-glow: rgba(79, 142, 247, 0.35);
    --accent-dim: rgba(79, 142, 247, 0.12);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.12);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-1);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
}

.b1 {
    width: 400px;
    height: 400px;
    background: #1d4ed8;
    top: -100px;
    right: -50px;
}

.b2 {
    width: 350px;
    height: 350px;
    background: #6d28d9;
    bottom: -80px;
    left: -50px;
}

.b3 {
    width: 300px;
    height: 300px;
    background: #0f766e;
    top: 40%;
    right: 20%;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-name {
    font-size: 1.1rem;
    color: var(--text-2);
    font-weight: 500;
}

.brand-name strong {
    color: var(--accent);
}

.nav-link {
    color: var(--text-3);
    text-decoration: none;
    font-size: 0.9rem;
}

.hero {
    padding: 4rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-label {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(79, 142, 247, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 99px;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero p {
    max-width: 600px;
    color: var(--text-2);
    font-size: 1.1rem;
}

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: center;
}

.search-wrap {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
}

#search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    color: white;
}

.tag-filters {
    display: flex;
    gap: 0.5rem;
}

.tag-pill {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-3);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    cursor: pointer;
}

.tag-pill.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

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

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
}

.tool-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border: 1px solid rgba(79, 142, 247, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.badge-new {
    background: var(--green-dim);
    color: var(--green);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    color: var(--text-2);
    line-height: 1.5;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.tool-tag {
    font-size: 0.75rem;
    color: var(--text-3);
    border: 1px solid var(--border);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    margin-right: 0.4rem;
}

.priv-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
}

.card-arrow {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    color: var(--text-3);
}

.footer {
    padding-top: 6rem;
    text-align: center;
    color: var(--text-3);
    font-size: 0.85rem;
}

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

.priv {
    color: var(--green);
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}