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

:root {
    --bg: #080b12;
    --bg-soft: #0e131d;
    --card: rgba(255,255,255,.045);
    --card-hover: rgba(255,255,255,.075);
    --border: rgba(255,255,255,.09);
    --text: #f5f7fb;
    --muted: #929aaa;
    --primary: #7c5cff;
    --primary-2: #4e9cff;
    --success: #39d98a;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(124,92,255,.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(78,156,255,.12),
            transparent 28%
        ),
        var(--bg);

    color: var(--text);
    min-height: 100vh;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

/* NAVBAR */

nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(135deg,
        var(--primary),
        var(--primary-2));

    box-shadow: 0 8px 30px rgba(124,92,255,.3);
}

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

.nav-links a:hover {
    color: white;
}

.nav-button {
    padding: 10px 17px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--border);
    font-size: 14px;
}

/* HERO */

.hero {
    text-align: center;
    padding: 90px 0 55px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 13px;
    border-radius: 999px;

    background: rgba(124,92,255,.1);
    border: 1px solid rgba(124,92,255,.25);

    color: #b9aaff;
    font-size: 13px;
    margin-bottom: 22px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: .98;
    letter-spacing: -4px;
    max-width: 850px;
    margin: auto;
}

.gradient {
    background:
        linear-gradient(
            100deg,
            #fff,
            #a991ff 45%,
            #63adff
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 650px;
    margin: 25px auto 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

/* SEARCH */

.search-box {
    width: min(650px, 100%);
    margin: auto;

    display: flex;
    align-items: center;

    padding: 6px;

    border-radius: 15px;

    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);

    box-shadow:
        0 20px 60px rgba(0,0,0,.25);
}

.search-icon {
    padding-left: 15px;
    font-size: 18px;
    color: var(--muted);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: white;

    padding: 14px;
    font-size: 15px;
}

.search-box input::placeholder {
    color: #6f7787;
}

.search-button {
    border: none;
    color: white;
    font-weight: 600;

    padding: 13px 20px;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    cursor: pointer;
}

/* STATS */

.stats {
    display: flex;
    justify-content: center;
    gap: 55px;
    margin-top: 42px;
}

.stat strong {
    display: block;
    font-size: 23px;
}

.stat span {
    color: var(--muted);
    font-size: 12px;
}

/* TOOLS */

.tools-section {
    padding: 45px 0 100px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 25px;
    letter-spacing: -.8px;
}

.section-header p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 7px;
}

.categories {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 18px;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category {
    white-space: nowrap;
    padding: 9px 14px;

    border-radius: 9px;

    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);

    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
}

.category.active,
.category:hover {
    background: rgba(124,92,255,.15);
    border-color: rgba(124,92,255,.35);
    color: white;
}

/* GRID */

.tools-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.tool-card {
    position: relative;

    padding: 20px;

    min-height: 185px;

    border-radius: 17px;

    border: 1px solid var(--border);
    background: var(--card);

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;

    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: rgba(124,92,255,.35);
}

.tool-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(124,92,255,.12);

    font-size: 20px;

    margin-bottom: 17px;
}

.tool-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.tool-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.tool-tag {
    position: absolute;
    top: 16px;
    right: 16px;

    padding: 4px 7px;

    font-size: 9px;
    text-transform: uppercase;

    border-radius: 5px;

    background: rgba(57,217,138,.1);
    color: var(--success);
}

.tool-tag.soon {
    background: rgba(255,255,255,.07);
    color: var(--muted);
}

/* CTA */

.cta {
    margin: 0 auto 80px;

    padding: 50px 30px;

    border-radius: 22px;

    text-align: center;

    border: 1px solid var(--border);

    background:
        radial-gradient(
            circle at center,
            rgba(124,92,255,.15),
            transparent 60%
        ),
        rgba(255,255,255,.03);
}

.cta h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.cta p {
    color: var(--muted);
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;

    padding: 12px 21px;

    border-radius: 10px;

    background: white;
    color: #080b12;

    font-weight: 700;
    font-size: 13px;
}

/* FOOTER */

footer {
    border-top: 1px solid var(--border);
    padding: 25px 0;

    color: var(--muted);
    font-size: 12px;

    display: flex;
    justify-content: space-between;
}

/* MOBILE */

@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .nav-links {
        display: none;
    }

    h1 {
        letter-spacing: -2px;
    }
}

@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    nav {
        height: 65px;
    }

    .hero {
        padding: 60px 0 35px;
    }

    h1 {
        font-size: 45px;
    }

    .hero p {
        font-size: 14px;
        line-height: 1.6;
    }

    .search-button {
        display: none;
    }

    .stats {
        gap: 25px;
    }

    .stat strong {
        font-size: 19px;
    }

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

    .tool-card {
        min-height: 170px;
        padding: 16px;
    }

    .tool-card h3 {
        font-size: 14px;
    }

    .tool-card p {
        font-size: 11px;
    }

    .section-header {
        display: block;
    }

    .section-header p {
        margin-top: 5px;
    }

    .cta {
        padding: 35px 20px;
    }

    .cta h2 {
        font-size: 25px;
    }

    footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
