* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f7f8fc;
    color: #171a23;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

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


/* =========================================================
   Layout
========================================================= */

.content-width {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   Header
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    height: 72px;

    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(20, 25, 40, 0.07);

    backdrop-filter: blur(20px);
}

.header-inner {
    width: min(1240px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;

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

    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: #171a23;
    color: white;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-text strong {
    font-size: 15px;
    line-height: 1.1;
}

.brand-text small {
    color: #8b91a1;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    position: relative;

    color: #777d8d;

    font-size: 14px;
    font-weight: 600;

    transition:
        color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #171a23;
}

.main-nav a.active::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -26px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #171a23;

    transform: translateX(-50%);
}

.search-button {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 12px;

    border: 1px solid #e4e6ec;
    border-radius: 10px;

    background: #fff;
    color: #7b8190;

    cursor: pointer;
}

.search-button span:first-child {
    font-size: 18px;
}

.search-button kbd,
.search-box kbd {
    padding: 2px 6px;

    border: 1px solid #e4e6ec;
    border-radius: 5px;

    background: #f7f8fa;

    color: #999eab;

    font-size: 10px;
}


/* =========================================================
   Hero
========================================================= */

.hero {
    overflow: hidden;

    background:
        radial-gradient(circle at 75% 35%,
            rgba(119, 95, 255, 0.12),
            transparent 30%),
        radial-gradient(circle at 90% 80%,
            rgba(43, 180, 255, 0.10),
            transparent 28%),
        #fff;
}

.hero-inner {
    width: min(1240px, calc(100% - 48px));
    min-height: 500px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    gap: 50px;
}

.eyebrow,
.section-label {
    color: #7d8495;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero h1 {
    margin: 17px 0 18px;

    font-size: clamp(48px, 6vw, 76px);
    line-height: 0.98;

    letter-spacing: -0.065em;
}

.hero p {
    margin: 0;

    color: #737989;

    font-size: 19px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 32px;
}

.primary-button,
.secondary-button,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 46px;
    padding: 0 20px;

    border-radius: 11px;

    cursor: pointer;

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

.primary-button {
    background: #171a23;
    color: white;
}

.primary-button span,
.cta-button span {
    font-size: 18px;
}

.secondary-button {
    border: 1px solid #e2e4ea;

    background: white;
    color: #424755;
}

/* =========================================================
   Search Section
========================================================= */

.tool-search-section {
    padding: 72px 0 25px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 10px 0 0;

    font-size: 30px;
    letter-spacing: -0.04em;
}

.tool-count {
    display: flex;
    align-items: baseline;
    gap: 5px;

    color: #8b91a0;

    font-size: 13px;
}

.tool-count strong {
    color: #171a23;

    font-size: 24px;
}

.search-box {
    height: 58px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 17px;

    border: 1px solid #e3e5eb;
    border-radius: 13px;

    background: white;

    box-shadow:
        0 8px 25px rgba(30, 35, 55, 0.03);
}

.search-icon {
    color: #969cab;
    font-size: 22px;
}

.search-box input {
    min-width: 0;
    flex: 1;

    border: 0;
    outline: 0;

    background: transparent;

    color: #171a23;
    font-size: 14px;
}

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

.category-tabs {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 18px;

    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-button {
    flex-shrink: 0;

    padding: 9px 15px;

    border: 1px solid transparent;
    border-radius: 9px;

    background: transparent;

    color: #858b99;

    cursor: pointer;

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

.category-button:hover {
    color: #171a23;
}

.category-button.active {
    border-color: #e0e2e8;
    background: white;
    color: #171a23;

    box-shadow:
        0 4px 12px rgba(20, 25, 40, 0.04);
}


/* =========================================================
   Tools
========================================================= */

.tools-section {
    padding: 28px 0 90px;
}

.tools-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.tool-card {
    position: relative;

    min-height: 205px;

    display: flex;
    flex-direction: column;

    padding: 22px;

    border: 1px solid #e4e6eb;
    border-radius: 17px;

    background: white;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.tool-card:hover {
    border-color: #d5d8e1;

    box-shadow:
        0 18px 40px rgba(30, 35, 55, 0.08);

    transform: translateY(-4px);
}

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

.card-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: #f4f5f8;

    font-size: 22px;
}

.card-arrow {
    color: #a2a7b2;
    font-size: 20px;
}

.tool-card h3 {
    margin: 20px 0 8px;

    font-size: 17px;
    letter-spacing: -0.025em;
}

.tool-card p {
    margin: 0;

    color: #858b99;

    font-size: 12px;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;
    padding-top: 20px;
}

.card-category {
    padding: 4px 8px;

    border-radius: 6px;

    background: #f5f6f8;

    color: #8a909d;

    font-size: 10px;
}

.card-status {
    color: #4e9b72;

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

.empty-state {
    display: none;

    padding: 100px 20px;

    text-align: center;
}

.empty-state.visible {
    display: block;
}

.empty-icon {
    color: #c4c8d0;
    font-size: 36px;
}

.empty-state h3 {
    margin: 16px 0 8px;

    font-size: 18px;
}

.empty-state p {
    margin: 0;

    color: #9297a3;
    font-size: 13px;
}


/* =========================================================
   Roadmap
========================================================= */

.roadmap-section {
    padding: 0 0 90px;
}

.roadmap-card {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;

    padding: 45px;

    border-radius: 22px;

    background: #171a23;
    color: white;
}

.roadmap-copy h2 {
    margin: 13px 0 12px;

    font-size: 30px;
    letter-spacing: -0.04em;
}

.roadmap-copy p {
    max-width: 500px;

    margin: 0;

    color: #aeb3c0;

    font-size: 14px;
    line-height: 1.8;
}

.roadmap-list {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.roadmap-item {
    min-height: 75px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 0 18px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.04);
}

.roadmap-item span {
    color: #737989;

    font-size: 10px;
}

.roadmap-item strong {
    margin-top: 5px;

    font-size: 13px;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding-bottom: 80px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 42px;

    border: 1px solid #e3e5eb;
    border-radius: 20px;

    background: white;
}

.cta-card h2 {
    margin: 12px 0 8px;

    font-size: 27px;
    letter-spacing: -0.04em;
}

.cta-card p {
    margin: 0;

    color: #858b99;

    font-size: 13px;
}

.cta-button {
    flex-shrink: 0;

    background: #171a23;
    color: white;
}


/* =========================================================
   Footer
========================================================= */

.site-footer {
    border-top: 1px solid #e5e7ec;

    background: white;
}

.footer-inner {
    width: min(1180px, calc(100% - 48px));
    min-height: 100px;

    margin: 0 auto;

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

    gap: 25px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-brand strong {
    font-size: 13px;
}

.footer-brand span,
.footer-copy {
    color: #969ba7;
    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #858b98;
    font-size: 12px;
}

.footer-links a:hover {
    color: #171a23;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1050px) {

    .main-nav {
        gap: 17px;
    }

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

}

@media (max-width: 820px) {

    .main-nav {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;

        padding: 70px 0;
    }

    .hero-visual {
        height: 330px;
    }

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

    .roadmap-card {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 560px) {

    .content-width,
    .header-inner,
    .footer-inner,
    .hero-inner {
        width: min(100% - 30px, 1180px);
    }

    .search-button span:nth-child(2),
    .search-button kbd {
        display: none;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        gap: 15px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

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

    .roadmap-card {
        padding: 28px;
    }

    .roadmap-list {
        grid-template-columns: 1fr;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;

        padding: 28px;
    }

    .cta-button {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;

        padding: 25px 0;
    }

}