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

:root {
    --bg: #0c0c0f;
    --surface: #141418;
    --surface2: #1c1c23;
    --border: #2a2a35;
    --accent: #5cffb1;
    --accent2: #3d8bff;
    --accent3: #ff6f6f;
    --muted: #52525e;
    --text: #e8e8f0;
    --text-dim: #9898aa;
    --radius: 14px;
    --font-head: 'Syne', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --font-body: 'DM Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: .3;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(92, 255, 177, .07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    height: 64px;
    background: rgba(12, 12, 15, .85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.logo em {
    font-style: normal;
    color: var(--accent);
}

.logo-mark {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 500;
    color: #0c0c0f;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--accent) !important;
    color: #0c0c0f !important;
    padding: .45rem 1.1rem;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: opacity .2s !important;
}

.nav-cta:hover {
    opacity: .85 !important;
    color: #0c0c0f !important;
}

/* HERO */
.hero {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 100px 5vw 70px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(92, 255, 177, .07);
    border: 1px solid rgba(92, 255, 177, .18);
    border-radius: 999px;
    padding: .3rem 1rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: fadeUp .6s ease both;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .25;
    }
}

h1 {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.04em;
    animation: fadeUp .6s .1s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}

h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    margin: 1.5rem auto 0;
    max-width: 520px;
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.7;
    animation: fadeUp .6s .2s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp .6s .3s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}

.btn-primary {
    background: var(--accent);
    color: #0c0c0f;
    border: none;
    border-radius: 10px;
    padding: .75rem 1.8rem;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, opacity .15s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: .88;
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .75rem 1.8rem;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.btn-ghost:hover {
    border-color: var(--text-dim);
    color: var(--text);
}

/* SEARCH */
.search-wrap {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: 3rem auto 0;
    animation: fadeUp .6s .4s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}

.search-wrap input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .9rem 1.2rem .9rem 3rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .95rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

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

.search-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(92, 255, 177, .1);
}

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

/* STATS */
.stats-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2.5rem 5vw;
    border-bottom: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-num span {
    color: var(--accent);
}

.stat-label {
    font-size: .78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: .15rem;
}

/* SECTIONS */
section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 5vw;
}

.section-label {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--accent);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: .6rem;
}

.section-desc {
    color: var(--text-dim);
    max-width: 500px;
    font-size: .95rem;
}

/* CATEGORIES */
.categories {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    margin: 2.5rem 0 1.5rem;
}

.cat-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .45rem 1rem;
    color: var(--text-dim);
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font-body);
}

.cat-btn:hover,
.cat-btn.active {
    background: rgba(92, 255, 177, .07);
    border-color: rgba(92, 255, 177, .4);
    color: var(--accent);
}

/* TOOL GRID */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.tool-card {
    background: var(--surface);
    padding: 1.8rem;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(92, 255, 177, .04), transparent 60%);
    opacity: 0;
    transition: opacity .25s;
}

.tool-card:hover {
    background: var(--surface2);
}

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

.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

.tool-name {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
}

.tool-desc {
    font-size: .82rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.tool-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .3rem;
}

.tool-tag {
    font-family: var(--font-mono);
    font-size: .68rem;
    padding: .2rem .6rem;
    border-radius: 4px;
}

.tool-arrow {
    color: var(--muted);
    font-size: 1rem;
    transition: transform .2s, color .2s;
}

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

/* EMPTY STATE */
.empty-state {
    grid-column: 1/-1;
    padding: 3rem;
    text-align: center;
    color: var(--text-dim);
    font-size: .9rem;
}

.empty-state span {
    font-size: 2rem;
    display: block;
    margin-bottom: .75rem;
}

/* FEATURES */
.features-wrap {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2.5rem;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(92, 255, 177, .07);
    border: 1px solid rgba(92, 255, 177, .14);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.feature-title {
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 700;
}

.feature-desc {
    font-size: .83rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* CTA */
.cta-section {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 90px 5vw;
    max-width: 680px;
    margin: 0 auto;
}

.cta-section h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.04em;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* FOOTER */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2.5rem 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: .82rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-size: .82rem;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--text-dim);
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* MOBILE */
@media (max-width: 620px) {
    .nav-links {
        display: none;
    }

    .stats-bar {
        gap: 1.5rem;
    }

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

    h1 {
        font-size: 2.5rem;
    }
}