.top-navigation {
    margin-bottom: 60px;
    text-align: left;
    animation: fadeIn 0.8s ease-out;
}

.back-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

.back-link:hover {
    color: #86868b;
}

.page-title {
    font-family: 'Againts', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 72px;
    font-weight: 80;
    color: #1d1d1f;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    line-height: 1.05;
    animation: fadeIn 1s ease-out 0.2s both;
}

.page-subtitle {
    font-size: 21px;
    color: #86868b;
    margin-bottom: 40px;
    font-weight: 400;
    animation: fadeIn 1s ease-out 0.4s both;
}

.search-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    align-items: center;
    animation: fadeIn 1s ease-out 0.5s both;
}

.search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 16px;
    transition: border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-wrapper:focus-within {
    border-color: #1d1d1f;
    box-shadow: 0 0 0 4px rgba(29, 29, 31, 0.1);
}

.search-icon {
    color: #86868b;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 17px;
    color: #1d1d1f;
    padding: 14px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
}

.search-input::placeholder {
    color: #86868b;
}

.clear-search {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #86868b;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
    flex-shrink: 0;
}

.clear-search:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

.sort-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 20px;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    white-space: nowrap;
}

.sort-button:hover {
    background: #f5f5f7;
    border-color: rgba(0, 0, 0, 0.15);
}

.sort-button.active {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}

.sort-button.active:hover {
    background: #424245;
    border-color: #424245;
}

.sort-button svg {
    flex-shrink: 0;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #86868b;
    font-size: 19px;
    animation: fadeIn 0.6s ease-out;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    animation: fadeIn 1s ease-out 0.6s both;
}

.tool-card {
    background: #fff;
    border-radius: 18px;
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    animation: fadeIn 0.6s ease-out both;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: #f5f5f7;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #1d1d1f;
    transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tool-card:hover .tool-icon {
    background: #e8e8ed;
}

.tool-icon svg {
    width: 32px;
    height: 32px;
}

.tool-name {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.16667;
}

.tool-description {
    font-size: 17px;
    color: #86868b;
    line-height: 1.47059;
    margin-bottom: 16px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    flex-shrink: 0;
    min-height: 4.41em;
    max-height: 4.41em;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.tool-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: #1d1d1f;
    background: #f5f5f7;
    border-radius: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
    flex-shrink: 0;
}

.tool-updated {
    font-size: 12px;
    color: #86868b;
    font-weight: 400;
    flex-shrink: 0;
}

.tool-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
}

.action-link svg {
    width: 16px;
    height: 16px;
}

.github-link {
    color: #1d1d1f;
    background: #f5f5f7;
    border-color: transparent;
}

.github-link:hover {
    background: #e8e8ed;
    color: #1d1d1f;
    transform: translateY(-1px);
}

.download-link {
    color: #fff;
    background: #1d1d1f;
    border-color: #1d1d1f;
}

.download-link:hover {
    background: #424245;
    border-color: #424245;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 1068px) {
    .page-title {
        font-size: 56px;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    #main-container {
        padding: 80px 20px 40px;
    }

    .page-title {
        font-size: 48px;
        margin-bottom: 16px;
    }

    .page-subtitle {
        font-size: 19px;
        margin-bottom: 30px;
    }

    .search-controls {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }

    .search-wrapper {
        width: 100%;
    }

    .sort-button {
        width: 100%;
        justify-content: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }

    .tool-card {
        padding: 32px 24px;
        min-height: 300px;
    }

    .tool-description {
        min-height: 4.14em;
        max-height: 4.14em;
    }

    .tool-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }

    .tool-icon svg {
        width: 28px;
        height: 28px;
    }

    .tool-name {
        font-size: 22px;
    }

    .tool-description {
        font-size: 16px;
    }

    .tool-tags {
        margin-bottom: 16px;
    }

    .tool-tag {
        font-size: 11px;
        padding: 3px 10px;
    }

    .tool-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 12px;
    }

    .tool-updated {
        order: 1;
    }

    .tool-actions {
        margin-left: 0;
        width: 100%;
    }

    .action-link {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    #main-container {
        padding: 60px 16px 30px;
    }

    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 17px;
        margin-bottom: 24px;
    }

    .search-controls {
        margin-bottom: 24px;
    }

    .search-input {
        font-size: 16px;
        padding: 12px 0;
    }

    .sort-button {
        font-size: 16px;
        padding: 12px 20px;
    }

    .tool-card {
        padding: 28px 20px;
        min-height: 280px;
    }

    .tool-description {
        min-height: 3.88em;
        max-height: 3.88em;
        font-size: 15px;
    }
}

@media (prefers-color-scheme: dark) {
    .back-link {
        color: #f5f5f7;
    }

    .back-link:hover {
        color: #86868b;
    }

    .page-title {
        color: #f5f5f7;
    }

    .page-subtitle {
        color: #86868b;
    }

    .tool-card {
        background: #1d1d1f;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .tool-icon {
        background: #2d2d2f;
        color: #f5f5f7;
    }

    .tool-card:hover .tool-icon {
        background: #3d3d3f;
    }

    .tool-name {
        color: #f5f5f7;
    }

    .tool-description {
        color: #86868b;
    }

    .tool-tag {
        color: #f5f5f7;
        background: #2d2d2f;
    }

    .tool-footer {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .tool-updated {
        color: #86868b;
    }

    .github-link {
        color: #f5f5f7;
        background: #2d2d2f;
    }

    .github-link:hover {
        background: #3d3d3f;
        color: #f5f5f7;
    }

    .download-link {
        color: #1d1d1f;
        background: #f5f5f7;
        border-color: #f5f5f7;
    }

    .download-link:hover {
        background: #fff;
        border-color: #fff;
        color: #1d1d1f;
    }

    .search-wrapper {
        background: #1d1d1f;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .search-wrapper:focus-within {
        border-color: #f5f5f7;
        box-shadow: 0 0 0 4px rgba(245, 245, 247, 0.1);
    }

    .search-input {
        color: #f5f5f7;
    }

    .search-input::placeholder {
        color: #86868b;
    }

    .clear-search {
        color: #86868b;
    }

    .clear-search:hover {
        background: #2d2d2f;
        color: #f5f5f7;
    }

    .sort-button {
        background: #1d1d1f;
        border-color: rgba(255, 255, 255, 0.1);
        color: #f5f5f7;
    }

    .sort-button:hover {
        background: #2d2d2f;
        border-color: rgba(255, 255, 255, 0.15);
    }

    .sort-button.active {
        background: #f5f5f7;
        color: #1d1d1f;
        border-color: #f5f5f7;
    }

    .sort-button.active:hover {
        background: #fff;
        border-color: #fff;
    }

    .no-results {
        color: #86868b;
    }
}

